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.

TPReadNum Reads a number from the teach pendant<br />

Example<br />

Arguments<br />

TPReadNum (Teach Pendant Read Numerical) is used to read a number from the teach<br />

pendant.<br />

TPReadNum reg1, “How many units should be produced?“;<br />

The text How many units should be produced? is written on the teach pendant<br />

display. Program execution waits until a number has been input from the<br />

numeric keyboard on the teach pendant. That number is stored in reg1.<br />

TPReadNum Answer String [\MaxTime] [\DIBreak]<br />

[\BreakFlag]<br />

Answer Data type: num<br />

The variable for which the number input via the teach pendant is returned.<br />

String Data type: string<br />

The information text to be written on the teach pendant (a maximum of 80 characters).<br />

[\MaxTime] Data type: num<br />

The maximum amount of time that program execution waits. If no number is<br />

input within this time, the program continues to execute in the error handler<br />

unless the BreakFlag is used (see below). The constant ERR_TP_MAXTIME<br />

can be used to test whether or not the maximum time has elapsed.<br />

[\DIBreak] (Digital Input Break) Data type: signaldi<br />

The digital signal that may interrupt the operator dialog. If no number is input<br />

when the signal is set to 1 (or is already 1), the program continues to execute in<br />

the error handler unless the BreakFlag is used (see below). The constant<br />

ERR_TP_DIBREAK can be used to test whether or not this has occurred.<br />

[\BreakFlag] Data type: errnum<br />

A variable that will hold the error code if maxtime or dibreak is used. If this<br />

optional variable is omitted, the error handler will be executed.The constants<br />

ERR_TP_MAXTIME and ERR_TP_ DIBREAK can be used to select the<br />

reason.<br />

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

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

Saved successfully!

Ooh no, something went wrong!