代码违反了命名约定并且难以阅读。 PROGRAM plc1 VAR var1 [...] 8 REF= iVar4; var1 [...] 的变量名“var1”:预期的前缀“aaax
_GLOBAL xVar1 : BOOL; iVar [...] PROGRAM PLC_PRG VAR xVar1 [...] xVar1 := NOT GVL.xVar1
Inversion1 VAR xA, xB, x [...] iVar := iVar + 1 [...] iVar:= 1; (* IF 1
Counter, iVar1, iVar [...] Counter := 0 TO 10 DO iVar1 [...] 2 := iVar2 + iVar1
%QW1 : INT ; END_VAR [...] _OUTPUT xVarOut1:BOOL; xVar [...] Condition OF INT#1: xVarOut1
33 := 3.3; lrVar1 := lr [...] 33 - lr11; botest := lrVar1 [...] 变量 lrVar1 和 lrVar2 两者
PROGRAM PLC_PRG VAR ptiVar1 [...] ; ptiVar1 := ADR(iVar); ptiVar1^ := i
PROGRAM PLC_PRG VAR strVar1 [...] strVar2 := strVar1 [...] ”的截断 SA0026:字符串“strVar1
_INPUT xVarIn1 : BOOL; xVar [...] _xGlob := xVarIn1; INT#2: g [...] _xGlob := FALSE; xVarIn1
_GLOBAL iGlob1 : INT; END_VAR [...] 错误的示例 VAR_GLOBAL iGlob1 [...] VAR_EXTERNAL iGlob1