09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Basic</strong> <strong>Characteristics</strong> <strong>RAPID</strong> Instructions<br />

6 Instructions<br />

6.1 Syntax<br />

Instructions are executed in succession unless a program flow instruction or an interrupt<br />

or error causes the execution to continue at some other place.<br />

Most instructions are terminated by a semicolon “;”. A label is terminated by a colon<br />

“:”. Some instructions may contain other instructions and are terminated by specific<br />

keywords:<br />

Instruction Termination word<br />

IF ENDIF<br />

FOR ENDFOR<br />

WHILE ENDWHILE<br />

TEST ENDTEST<br />

Example: WHILE index < 100 DO<br />

.<br />

index := index + 1;<br />

ENDWHILE<br />

::= { }<br />

::=<br />

[<br />

| <br />

<strong>RAPID</strong> Reference Manual 5-25

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

Saved successfully!

Ooh no, something went wrong!