SWAIT
SWAIT signal number, ……
Function
Waits until the specified external I/O or internal signal meets the set condition
Parameter
Signal number
Specifies the number of the external I/O or internal signal to monitor. Negative numbers
indicate that the conditions are satisfied when the signals are OFF
Explanation
If all the specified signals meet the set conditions, this instruction is ended and the program
executes the next step. If the conditions are not satisfied, the program waits in that step until
they are set.
SWAIT instruction in execution can be skipped using CONTINUE NEXT command.
The same result can be gained using the WAIT instruction
Example
SWAIT 1001,1002 //Waits until the external input signals 1001(WX) and 1002 (WX2) are turned ON.
SWAIT 1,-2001 //Waits until external output signal 1(OX1) is ON and the internal signal 2001(WX1) is OFF.