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.

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

1 <strong>Basic</strong> Elements<br />

1.1 Identifiers<br />

Identifiers are used to name modules, routines, data and labels;<br />

e.g. MODULE module_name<br />

PROC routine_name()<br />

VAR pos data_name;<br />

label_name:<br />

The first character in an identifier must be a letter. The other characters can be letters,<br />

digits or underscores “_”.<br />

The maximum length of any identifier is 16 characters, each of these characters being<br />

significant. Identifiers that are the same except that they are typed in the upper case,<br />

and vice versa, are considered the same.<br />

Reserved words<br />

The words listed below are reserved. They have a special meaning in the <strong>RAPID</strong> language<br />

and thus must not be used as identifiers.<br />

There are also a number of predefined names for data types, system data, instructions,<br />

and functions, that must not be used as identifiers. See Chapters 7, 8, 9, 10 ,13, 14 and<br />

15 in this manual.<br />

AND BACKWARD CASE CONNECT<br />

CONST DEFAULT DIV DO<br />

ELSE ELSEIF ENDFOR ENDFUNC<br />

ENDIF ENDMODULE ENDPROC ENDTEST<br />

ENDTRAP ENDWHILE ERROR EXIT<br />

FALSE FOR FROM FUNC<br />

GOTO IF INOUT LOCAL<br />

MOD MODULE NOSTEPIN NOT<br />

NOVIEW OR PERS PROC<br />

RAISE READONLY RETRY RETURN<br />

STEP SYSMODULE TEST THEN<br />

TO TRAP TRUE TRYNEXT<br />

VAR VIEWONLY WHILE WITH<br />

XOR<br />

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

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

Saved successfully!

Ooh no, something went wrong!