_GLOBAL xVar1 : BOOL; i [...] Var1 : BOOL; // SA0013 i [...] .xVar1; iVar3 := i
_INPUT ref_i [...] _VAR ref_iTest := 99 [...] __ISVALIDREF(ref_iTest) THEN
_GLOBAL g_iTemp1: INT [...] _PRG // Controlled by MainTask g_iTemp1 := g_iTemp1 + INT#2
_Afb VAR_INPUT iIn1: INT; iIn2: INT; END_VAR VAR_OUTPUT i
PROGRAM PLC_PRG VAR i [...] ; END_VAR iVar := i [...] : CASE iVar OF ELSE x
0.0 : BOOL ; g_iTest AT [...] _VAR PROGRAM PLC_PRG IF g_i [...] _xVar := TRUE; g_iTest := INT
0.0 : BOOL ; g_iGlob AT [...] ; END_VAR VAR iCondition : INT; END_VAR i
遵循声明并对应于为基本数据类型定义的命名约定。 例子 已设置以下命名约定: i 在 [...] 3 : REFERENCE TO INT; iVar4 : INT; iVar5 : INT
' := 'off'} iVarA : INT; iVarB : INT [...] '} iVarC : INT; END
_TYPE PROGRAM PLC_PRG VAR i [...] _Enum; END_VAR iTemp1 := i [...] _Enum.red; // OK iTemp1 := My