CODESYS Development System
Interface PROGRAM PLC_PRG IF GetInterface() <> 0 THEN // ... END_IF [...] THEN // ... END_IF
Val5:INT; END_VAR IF iVal2 <> 0 THEN iVal1 := i [...] error END_IF; i
*.po files are then [...] can then be [...] “compiled library” If a
CODESYS Development System
_VAR IF (bInit) THEN p [...] Init := FALSE; END_IF IF (pFB <> 0) THEN pFB^(in
CODESYS Development System
THEN {ELSE} IF x = 12 THEN {END_IF} y [...] )} IF x = abc THEN
CODESYS Development System
_Iterative := 1; IF uiN > 1 THEN FOR uiCnt := 1 [...] ; ELSE RETURN; END_IF
CODESYS Development System
INT1:=INT1/2; IF INT1=0 THEN [...] division by zero *) END_IF
CODESYS Development System
Test : BOOL; END_VAR IF bTest x := 9; END_IF 信息: C0006: 'THEN' 预期
CODESYS Development System
; END_VAR IF bTest THEN x := 9; 信息: C [...] 为“ELSIF”、“ELSE”或“END_IF
CODESYS Development System
IF xIsDone THEN RETURN; END_IF; i