09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WaitDO Waits until a digital output signal is set<br />

Example<br />

Arguments<br />

WaitDO (Wait Digital Output) is used to wait until a digital output is set.<br />

WaitDO do4, 1;<br />

Program Running<br />

Program execution continues only after the do4 output has been set.<br />

WaitDO grip_status, 0;<br />

Program execution continues only after the grip_status output has been reset.<br />

WaitDO Signal Value [\MaxTime] [\TimeFlag]<br />

Signal Data type: signaldo<br />

The name of the signal.<br />

Value Data type: dionum<br />

The desired value of the signal.<br />

[\MaxTime] (Maximum Time) Data type: num<br />

The maximum period of waiting time permitted, expressed in seconds. If this<br />

time runs out before the condition is met, the error handler will be called, if there<br />

is one, with the error code ERR_WAIT_MAXTIME. If there is no error handler,<br />

the execution will be stopped.<br />

[\TimeFlag] (Timeout Flag) Data type: bool<br />

The output parameter that contains the value TRUE if the maximum permitted<br />

waiting time runs out before the condition is met. If this parameter is included in<br />

the instruction, it is not considered to be an error if the max. time runs out.<br />

This argument is ignored if the MaxTime argument is not included in the instruction.<br />

If the value of the signal is correct, when the instruction is executed, the program simply<br />

continues with the following instruction.<br />

<strong>RAPID</strong> Reference Manual 8-WaitDO-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!