Purpose
Waits for any of the digital input addresses to match the specified contact pattern before continuing to the next statement. If the condition does not occur within the specified time parameter, this command continues to the statement specified by the statement number.
You can enter a wait time from 0 to 32767 seconds. Entering 0 makes the block wait indefinitely. The contact pattern must include a letter (O, C, X) for each digital input address as the following figure shows:
The statement number can reference any programming statement in the block.
Syntax
WAITOR time pattern statement#
Example
To wait 20 seconds for any one of the points specified in the input address fields, 15 to 00, to match the corresponding contact pattern, enter:
WAITOR 20 OOCCCCCXXXXXXXXX 7
If the contact pattern does not occur within 20 seconds, the Device Control block proceeds to statement 07.