CODESYS Development System
_PRG VAR x: INT; bTest : BOOL; END_VAR IF
CODESYS Development System
PLC_PRG VAR i: INT; END_VAR FOR i := 0
CODESYS Development System
_PRG VAR arr : ARRAY[1..2] OF BIT; END_VAR
CODESYS Development System
示例: PROGRAM PLC_PRG VAR Value : INT; END_VAR
CODESYS Development System
_PRG VAR r1 : REAL; END_VAR
CODESYS Development System
_PRG VAR i : INT; END_VAR
CODESYS Development System
示例: PROGRAM PLC_PRG VAR END_VAR
CODESYS Development System
示例: PROGRAM PLC_PRG VAR X: BYTE; END_VAR X
CODESYS Development System
. 例子 造成 diVar : 1 英石 diVar := TRUNC(1.9); (* Result: 1 *) diVar
CODESYS Development System
. 例子 造成 iVAR : 1 英石 iVar := TRUNC [...] : 1 *) iVar