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.

Program execution<br />

Example<br />

Syntax<br />

The information text is always written on a new line. If the display is full of text, this<br />

body of text is moved up one line first. Strings longer than the width of the teach pendant<br />

(40 characters) are split into two lines.<br />

Program execution waits until a number is typed on the numeric keyboard (followed by<br />

Enter or OK).<br />

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

FOR i FROM 1 TO reg1 DO<br />

produce_part;<br />

ENDFOR<br />

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

display. The routine produce_part is then repeated the number of times that is<br />

input via the teach pendant.<br />

TPReadNum<br />

[Answer’:=’] ’,’<br />

[String’:=’] <br />

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

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

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

Related information<br />

Described in:<br />

Writing to and reading from <strong>RAPID</strong> Summary - Communication<br />

the teach pendant<br />

Entering a number on the teach pendant Production Running<br />

Examples of how to use the arguments Instructions - TPReadFK<br />

MaxTime, DIBreak and BreakFlag<br />

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

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

Saved successfully!

Ooh no, something went wrong!