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.

Load Load a program module during execution<br />

Example<br />

Arguments<br />

Load is used to load a program module into the program memory during execution.<br />

The loaded program module will be added to the already existing modules in the program<br />

memory.<br />

Load ram1disk \File:="PART_A.MOD";<br />

Load the program module PART_A.MOD from the ram1disk into the program<br />

memory. ( ram1disk is a predefined string constant "ram1disk:").<br />

Load FilePath [\File]<br />

FilePath Data type: string<br />

The file path and the file name to the file that will be loaded into the program<br />

memory. The file name shall be excluded when the argument \File is used.<br />

[\File] Data type: string<br />

Program execution<br />

When the file name is excluded in the argument FilePath then it must be defined<br />

with this argument.<br />

Program execution waits for the program module to finish loading before proceeding<br />

with the next instruction.<br />

To obtain a good program structure, that is easy to understand and maintain, all loading<br />

and unloading of program modules should be done from the main module which is<br />

always present in the program memory during execution.<br />

After the program module is loaded it will be linked and initialised. The initialisation<br />

of the loaded module sets all variables at module level to their init values. Unresolved<br />

references will be accepted if the system parameter for Load is set (BindRef = NO).<br />

However, when the program is started, the teach pendant function Program/File/Check<br />

program will not check for unresolved references if the parameter BindRef = NO.<br />

There will be a run time error on execution of an unresolved reference.<br />

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

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

Saved successfully!

Ooh no, something went wrong!