; ELSE x:= 0; END_IF IF x < 0 THEN i [...] 得出值范围 [0..9] 为了 x 第6行。结合
; END_VAR xVar := %IX0.0; %QX0.0 := xVar; %MX0 [...] PLC_PRG VAR x
_GLOBAL g_xGlob AT %QX0.0 [...] VarOut2 := INT#0; x [...] _OUTPUT xVarOut1:BOOL; x
_GLOBAL g_xVar AT %QX0.0 [...] #0 THEN bTemp := g_x [...] Condition < INT#0 THEN b
.: %QW0 xTest AT %QW [...] 中的有效大小前缀:X 表示 BOOL B 表示 1 [...] _Address_Type_PRG VAR iVar AT %QB0
具有相同语义的反转逻辑命令后的代码: iVar := 0; IF (x [...] Inversion1 VAR xA, xB, x [...] ; END_VAR iVar := 0
_GLOBAL g_xVar AT %QX0.0 [...] _iCondition < INT#0 THEN g_x [...] %QW0 : INT ; END
_GLOBAL g_xGlob AT %QX0.0 [...] _INPUT xVarIn1 : BOOL; x [...] Condition OF INT#1: g_x
1 : BYTE; xVar2 AT %QX0.0 [...] PLC_PRG VAR xVar1 AT %IX0.0 : BOOL
usintTest := 0; x [...] ; 在 CODESYS , x [...] 避免这种情况,您需要显式转换中间结果: x