_INPUT bTest : BOOL; END_VAR IF bTest THEN
_PRG //Declaration VAR x: INT; bTest [...] < 100 THEN bTest [...] _VAR //Implementation IF bTest THEN
VAR_INPUT bTest : BOOL; END_VAR IF bTest
0021 PROGRAM PLC_PRG VAR dwTest : DWORD; END_VAR dwTest
在这些行中检查,因此 nTest:=DINT#99 [...] -24} nTest := 99; i
Temp : DWORD := 22; dwTest
_OUTPUT test : INT; i : INT [...] test := 0; // +1 END_IF WHILE test = 1 DO