发布于 2007-04-19 17:16:37
0楼
/*
File-Name: SAMTIM.dat
Last modified: 18.04.2007
*/
/*Allgemeine Information zur Bausteinansicht im CFC-Plan*/
/*general information for blockview in CFC chart*/
/*o: Mit "o:" markierte Zeilen / Strings sind optional; sie duerfen leer bleiben*/
/*o: rows or strings marked with "o:" are optional data; could be left empty*/
FUNCTION_BLOCK
{
COMMENT gr := ''; /*o: Kommentar bzw. (Lang)Name des FB f黵 deutsch*/
COMMENT us := ''; /*o: Comment or (long)name of FB for english*/
FAMILY gr := 'C-UserFB'; /*o: FB-Familienname f黵 dt.FB-Katalogansicht;max.8Zeich.*/
FAMILY us := 'C-UserFB'; /*o: FB family name for engl. FB catalog view; max.8Char*/
ICON := 'SAMTIM.bmp'; /*filename for FB symbol*/
BLOCKVIEW := BIG; /*big blockview in CFC chart; (or: SMALL)*/
ALARM := TRUE; /*FB is allowed to be used inside an Alarm task (or FALSE)*/
ONLINE_INSERT := TRUE; /*can be inserted online (=standard); or FALSE*/
INI_MODE := TRUE; /*o: only if FB has an "initialisation mode"*/
};
NAME_FB:SAMTIM; /*Keyword: FB-name,is set automatically by FB generator*/
RUNTIME:16; /*estimated runtime for PM5/T400 boards */
/*used for compiler calculation of CPU load [1/10us]*/
/*-------------------------------------------------------------------------------------*/
/*Definition der Namen von Ein-/Ausg鋘gen*/
/*max. 3 Zeichen (Grossbuchstaben oder Ziffern)*/
/*Definition of Names for FB inputs/outputs*/
/*max. 3 characters (capital letters or numbers)! e.g. OUT, Y1*/
/*COMMENT: optional comment for input/output) */
/*die ersten 11 Zeichen sind direkt im CFC Plan sichtbar*/
/*the first 11 char. are directly visible in CFC chart*/
/*Vorbelegung kann optional hinzugef黦t werden*/
/*optional presetting can be added*/
VAR_INPUT
END_VAR
/*-------------------------------------------------------------------------------------*/
VAR_OUTPUT
TSK : DINT;
TIM : DINT;
BAS : DINT;
END_VAR
END_FUNCTION_BLOCK