WAITAND Command

Purpose

Waits for all 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

WAITAND time pattern statement#

Example

To wait 20 seconds for a specific contact pattern to occur, enter:

WAITAND 20 000CCXXXXXXXXXXX 10

If the contact pattern does not occur within 20 seconds, the Device Control block proceeds to statement 10.