09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

WaitDI Waits until a digital input signal is set<br />

Example<br />

Arguments<br />

WaitDI (Wait Digital Input) is used to wait until a digital input is set.<br />

WaitDI di4, 1;<br />

Program Running<br />

Program execution continues only after the di4 input has been set.<br />

WaitDI grip_status, 0;<br />

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

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

Signal Data type: signaldi<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-WaitDI-1

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

Saved successfully!

Ooh no, something went wrong!