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.

TPWrite Writes on the teach pendant<br />

Examples<br />

Arguments<br />

TPWrite (Teach Pendant Write) is used to write text on the teach pendant. The value<br />

of certain data can be written as well as text.<br />

TPWrite "Execution started";<br />

The text Execution started is written on the teach pendant.<br />

TPWrite "No of produced parts="\Num:=reg1;<br />

If, for example, the answer to No of produced parts=5, enter 5 instead of reg1 on<br />

the teach pendant.<br />

TPWrite String [\Num] | [\Bool] | [\Pos] | [\Orient]<br />

String Data type: string<br />

The text string to be written (a maximum of 80 characters).<br />

[\Num] (Numeric) Data type: num<br />

The data whose numeric value is to be written after the text string.<br />

[\Bool] (Boolean) Data type: bool<br />

The data whose logical value is to be written after the text string.<br />

[\Pos] (Position) Data type: pos<br />

The data whose position is to be written after the text string.<br />

[\Orient] (Orientation) Data type: orient<br />

Program execution<br />

The data whose orientation is to be written after the text string.<br />

Text written on the teach pendant always begins on a new line. When the display is full<br />

of text, this text is moved up one line first. Strings that are longer than the width of the<br />

teach pendant (40 characters) are divided up into two lines.<br />

If one of the arguments \Num, \Bool, \Pos or \Orient is used, its value is first converted<br />

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

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

Saved successfully!

Ooh no, something went wrong!