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.

Write Writes to a character-based file or serial channel<br />

Examples<br />

Arguments<br />

Write is used to write to a character-based file or serial channel. The value of certain<br />

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

Write logfile, "Execution started";<br />

The text Execution started is written to the file with reference name logfile.<br />

Write logfile, "No of produced parts="\Num:=reg1;<br />

The text No of produced parts=5, for example, is written to the file with the reference<br />

name logfile (assuming that the contents of reg1 is 5).<br />

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

[\NoNewLine]<br />

IODevice Data type: iodev<br />

The name (reference) of the current file or serial channel.<br />

String Data type: string<br />

The text to be written.<br />

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

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

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

The data whose logical values are 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 />

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

[\NoNewLine] Data type: switch<br />

Omits the line-feed character that normally indicates the end of the text.<br />

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

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

Saved successfully!

Ooh no, something went wrong!