CODESYS Development System
'} FUNCTION_BLOCK FB1 VAR_INPUT END_VAR VAR_OUTPUT END_VAR VAR END_VAR
CODESYS Development System
_MyB VAR_INPUT i [...] ; END_VAR VAR_OUTPUT iOutB : INT; END_VAR
CODESYS Development System
PUBLIC DoIt : BOOL VAR_INPUT END_VAR 有关更多信息,请参 [...] _TYPE PROGRAM PLC_PRG VAR fb
CODESYS Development System
示例: PROGRAM PLC_PRG VAR inst : FB; END_VAR [...] 1 VAR_INPUT END_VAR
CODESYS Development System
_ReInit : BOOL VAR_INPUT input_var [...] _ReInit END_VAR VAR_OUT_PUT output_var : INT; //C
CODESYS Development System
示例: PROGRAM PLC_PRG VAR inst : FB; END_VAR [...] 1 VAR_INPUT i
CODESYS Development System
PLC_PRG VAR fb : FB; END_VAR FUNCTION [...] 3 VAR END_VAR
CODESYS Development System
itf_A VAR END_VAR [...] _A1 IMPLEMENTS itf_A VAR str [...] ; iCnt : INT; END_VAR
CODESYS Development System
_BLOCK FBDynamic VAR_INPUT in1, in2 : INT; END_VAR VAR_OUTPUT out
CODESYS Development System
果是全局变量列表的变量只能通过指定全局变量名来寻址,例如 gvl.g_var .这也 [...] 行 VAR_GLOBAL 在 GVL 中 [...] 'qualified_only'} VAR