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> Modules<br />

2.2 System modules<br />

System modules are used to define common, system-specific data and routines, such<br />

as tools. They are not included when a program is saved, meaning that any update<br />

made to a system module will affect all existing programs currently in, or loaded at a<br />

later stage into the program memory.<br />

2.3 Module declarations<br />

2.4 Syntax<br />

A module declaration specifies the name and attributes of that module. These attributes<br />

can only be added off-line, not using the teach pendant. The following are examples of<br />

the attributes of a module:<br />

Attribute If specified, the module:<br />

SYSMODULE is a system module, otherwise a program module<br />

NOSTEPIN cannot be entered during stepwise execution<br />

VIEWONLY cannot be modified<br />

READONLY cannot be modified, but the attribute can be removed<br />

NOVIEW cannot be viewed, only executed. Global routines can be<br />

reached from other modules and are always run as NOS-<br />

TEPIN. The current values for global data can be reached from<br />

other modules or from the data window on the teach pendant.<br />

A module or a program containing a NOVIEW program module<br />

cannot be saved. Therefore, NOVIEW should primarily be<br />

used for system modules. NOVIEW can only be defined offline<br />

from a PC.<br />

e.g. MODULE module_name (SYSMODULE, VIEWONLY)<br />

!data declarations<br />

!routine declarations<br />

ENDMODULE<br />

A module may not have the same name as another module or a global routine or data.<br />

Module declaration<br />

::=<br />

MODULE [ ]<br />

<br />

<br />

ENDMODULE<br />

::= <br />

::= ‘(‘ { ‘,’ } ‘)’<br />

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

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

Saved successfully!

Ooh no, something went wrong!