i := 0 TO 10 BY 1 [...] ) FOR i := 0 TO 10 BY [...] _VAR //Implementation i_fb3(); // +0
C : BOOL; iVar : INT; END_VAR iVar := 0 [...] 具有相同语义的反转逻辑命令后的代码: iVar := 0; IF (x
引用在使用之前应该检查<> 0。否则 [...] 2 : BOOL VAR_INPUT i [...] _INPUT iInput:INT; END
_GLOBAL g_xGlob AT %QX0.0 [...] VarIn2 : BOOL; END_VAR VAR iCondition : INT; END_VAR i
_TYPE PROGRAM PLC_PRG VAR i [...] _Enum; END_VAR iTemp1 := i [...] _Enum.red; // OK iTemp1 := My
错误的原因并导致代码的可读性和可维护性较差。因此,最好在设备编辑器的 I/O [...] Var1 AT %IX0.0 : BOOL [...] 1 : BYTE; xVar2 AT %QX0.0
Counter := 0 TO 10 DO i [...] PROGRAM PLC_PRG VAR iCounter, iVar1, i
_TEMP iIndex : INT; END_VAR FOR iIndex := INT#0 [...] DO iIndex := i
well iVar := 0; END [...] PROGRAM PLC_PRG VAR iCond1:INT := INT#1; i
(BYTE#0..BYTE#11); i [...] . 例子 VAR_GLOBAL i [...] _PRG VAR iSubr1: INT