_VAR //Implementation IF bTest THEN [...] _VAR //Implementation IF bTest THEN x [...] THEN y := 13; END_IF
CODESYS Development System
THEN {ELSE} IF x = 12 THEN {END_IF} y [...] )} IF x = abc THEN
CODESYS Development System
码中的某些位置至少需要一个语句。例如,在 IF 语句的 THEN 和 [...] Test: BOOL; END_VAR IF bTest THEN END_IF 信息: C
CODESYS Development System
Interface PROGRAM PLC_PRG IF GetInterface() <> 0 THEN // ... END_IF [...] THEN // ... END_IF
E (*.*) THEN EXIT; END_IF di [...] _MODE.AM_READ, ADR(udiResult)); IF [...] .ERR_OK THEN // handle error
); IF Power.Status THEN iStatus := iStatus + 1; END_IF // Move
条件下的分配 IF , CASE , 或者 [...] ; END_VAR IF INT [...] Cond2) THEN // SA0095 i
CODESYS Development System
_VAR IF (bInit) THEN p [...] Init := FALSE; END_IF IF (pFB <> 0) THEN pFB^(in
bolt . If more then [...] coordination work. If access [...] user tasks then
Val5:INT; END_VAR IF iVal2 <> 0 THEN iVal1 := i [...] error END_IF; i