: STRUCT xA : BOOL; x [...] ; END_VAR VAR x [...] Teststruct^.xA; //SA0124 END
; lrTest4 : LREAL; x [...] cause an SA0054: x [...] Test1; xResult := r
Var : My_Enum; x [...] _Enum.red: xTemp := FALSE [...] _Enum.green: xTemp := TRUE
usintTest := 0; x [...] ; 在 CODESYS , x [...] 避免这种情况,您需要显式转换中间结果: x
PROGRAM PLC_PRG VAR xReturn_Before_End: BOOL; x [...] ; END_VAR x
PLC_PRG VAR x [...] ; END_VAR xVar := %IX0.0; %QX0.0 := xVar; %MX
_GLOBAL xVar1 : BOOL; i [...] _VAR PROGRAM PLC_PRG VAR x [...] _VAR xVar1 := NOT GVL.x
Dummy : INT; xDummy : BOOL [...] POU; xDummy := inst [...] MasterITF1 := instPOU; x
Var : INT; xTemp : BOOL [...] : CASE iVar OF ELSE xTemp := NOT xTemp; END
中的有效大小前缀:X 表示 BOOL B 表示 1 [...] .: %QW0 xTest AT %QW [...] Var := iVar + INT#1; x