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.

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

2 Modules<br />

The program is divided into program and system modules. The program can also be<br />

divided into modules (see Figure 1).<br />

Program memory<br />

Program<br />

Main module<br />

Module1<br />

Module2<br />

Module3<br />

Module4<br />

System module1<br />

System module2<br />

2.1 Program modules<br />

Program data<br />

Main routine<br />

Routine1<br />

Routine2<br />

Routine3<br />

Program data<br />

Routine4<br />

Routine5<br />

Program data<br />

Routine6<br />

Routine7<br />

Figure 1 The program can be divided into modules.<br />

A program module can consist of different data and routines. Each module, or the<br />

whole program, can be copied to diskette, RAM disk, etc., and vice versa.<br />

One of the modules contains the entry procedure, a global procedure called main. Executing<br />

the program means, in actual fact, executing the main procedure. The program<br />

can include many modules, but only one of these will have a main procedure.<br />

A module may, for example, define the interface with external equipment or contain<br />

geometrical data that is either generated from CAD systems or created on-line by digitizing<br />

(teach programming).<br />

Whereas small installations are often contained in one module, larger installations may<br />

have a main module that references routines and/or data contained in one or several<br />

other modules.<br />

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

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

Saved successfully!

Ooh no, something went wrong!