CODESYS Development System
. 例子 这 iVarB 局部变量覆盖 iVarB 功能 [...] _INPUT iVarA: INT; END
PROGRAM PLC_PRG VAR i [...] _Instance : BFB; END_VAR iCounter := A_PRG.i
0.0 : BOOL ; g_iTest AT [...] prog1 VAR i [...] ; END_VAR i
CODESYS Development System
示例: PROGRAM PLC_PRG VAR i : INT; END_VAR CASE i OF 1: i := i+1; 1
CODESYS Development System
_MyB VAR_INPUT i [...] _OUTPUT iOutB : INT; END_VAR VAR iCounter : INT
CODESYS Development System
示例: PROGRAM PLC_PRG VAR i [...] ; END_VAR CASE i OF 1: i := i+1; a: i
CODESYS Development System
PLC_PRG VAR i : INT; END_VAR CASE i OF 3..5: i := i+2; 4: i
; END_VAR VAR iInit : INT; iLocal : INT; iManual : INT
PROGRAM PLC_PRG VAR iCounter, iVar1, iVar2 : INT; END_VAR FOR i
CODESYS Development System
PLC_PRG VAR i : INT; END_VAR CASE i OF 3..5: i := i+2; 1..4