WAITSTAT Command
Purpose
Suspends the operation of this block until the specified block is switched to the specified status. Valid status entries are OFF, ON, AUTO, and MANL.
Syntax
WAITSTAT block status
Examples
You can use the WAITSTAT command to:
- Suspend the operation of the block.
- Limit suspension time.
- Wait for an operator to change a block's status manually.
For example, to suspend the operation of the block until a previous RUN, STOP, SETAUTO, or SETMAN command has fully executed, enter:
SETAUTO AI1
WAITSTAT AI1 AUTO
To limit the suspension time, use the WAITSTAT command with the MAXWAIT command. When used together, the next command is executed only after the designated status occurs, or when MAXWAIT times out. For example, the following commands prevent the block from moving to the next step until PID1 is switched to an Automatic status or until MAXWAIT times out after 5 seconds:
MAXWAIT 5
WAITSTAT PID1 AUTO
To set up the WAITSTAT command to wait for a block's status to change, use the command with a Data link in a picture. For example, the following command suspends the Program block indefinitely unless a previous command switches AI1 to Manual mode:
WAITSTAT AI1 MANL
NOTE: If the operator places AI1 into Manual mode with a Data link, the block continues executing the remaining steps.