CODESYS Development System
_MyB VAR_INPUT i [...] ; END_VAR VAR_OUTPUT iOutB : INT; END_VAR
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
_BLOCK FBDynamic VAR_INPUT in1, in2 : INT; END_VAR VAR_OUTPUT out
CODESYS Development System
果是全局变量列表的变量只能通过指定全局变量名来寻址,例如 gvl.g_var .这也 [...] 行 VAR_GLOBAL 在 GVL 中 [...] 'qualified_only'} VAR
CODESYS Development System
示例: PROGRAM PLC_PRG VAR VAR END_VAR END_VAR 信息 [...] 变量声明而不是 VAR END_VAR 本节内容如下 :
CODESYS Development System
量的一维数组 //Declaration VAR ai [...] LocalVariable : INT; END_VAR [...] 的二维数组 //Declaration VAR ai
CODESYS Development System
Bounds : DINT VAR_INPUT index [...] ; END_VAR 执行 [...] . Declaration: VAR _p