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.

Examples<br />

Limitation<br />

Syntax<br />

VAR bool timeout;<br />

WaitUntil start_input = 1 AND grip_status = 1\MaxTime := 60<br />

\TimeFlag := timeout;<br />

IF timeout THEN<br />

TPWrite "No start order received within expected time";<br />

ELSE<br />

start_next_cycle;<br />

ENDIF<br />

If the two input conditions are not met within 60 seconds, an error message will<br />

be written on the display of the teach pendant.<br />

WaitUntil \Inpos, di4 = 1;<br />

Program execution waits until the robot has come to a standstill and the di4 input<br />

has been set.<br />

If the argument \Inpos is used, the movement instruction which precedes this instruction<br />

should be terminated with a stop point, in order to be able to restart in this instruction<br />

following a power failure.<br />

WaitUntil<br />

[’\’InPos’,’]<br />

[Cond ’:=’] <br />

[’\’MaxTime ’:=’]<br />

[’\’TimeFlag’:=’] ’;’<br />

Related information<br />

Described in:<br />

Waiting until an input is set/reset Instructions - WaitDI<br />

Waiting a given amount of time Instructions - WaitTime<br />

Expressions <strong>Basic</strong> <strong>Characteristics</strong> - Expressions<br />

8-WaitUntil-2 <strong>RAPID</strong> Reference Manual

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

Saved successfully!

Ooh no, something went wrong!