CODESYS Development System
示例: PROGRAM PLC_PRG VAR arr1 : ARRAY [1..5] OF INT := [1,2,3,4,5,6]; END_VAR
.: %QX1.0 END_VAR iVar := iVar + INT#1; x [...] 中的有效大小前缀:X 表示 BOOL B 表示 1
CODESYS Development System
示例: PROGRAM PLC_PRG VAR i : INT; END_VAR i := TEST(1,2); FUNCTION
CODESYS Development System
2 : UINT := -1; END_VAR [...] 译指示应用于变量声明: VAR {warning disable C0195} test1
CODESYS Development System
_PRG VAR b : BOOL; arr1 : ARRAY [1..2] OF INT; arr2 : ARRAY [1..3
CODESYS Development System
; END_VAR test1 [...] 示例: PROGRAM PLC_PRG VAR test1: INT; test
CODESYS Development System
示例: PROGRAM PLC_PRG VAR inst : FB; END_VAR INTERFACE XY METHOD METH1
的命名约定: 1) INT 变量名称必须以“int”作为标识符前缀,例如“intVar1 [...] 分析仅针对以下变量发出消息: cccVar , a
CODESYS Development System
示例: PROGRAM PLC_PRG VAR END_VAR PLC_PRG.METH1(); METHOD METH VAR
:= iVar + 1; // SA [...] 于设备树中。 PROGRAM PLC_PRG VAR iVar: INT; _123test_var