File Inclusion

File inclusion is a function that allows a sub-program that is not actually part of the program to be called from the main program, or from another sub-program in the program.

In this way, a tool change sub-program or a macro can be stored in the directory, and called from any other program that has the proper "file inclusion" code, which allows the execution of the external sub-program.

Format: open left bracket ([), then double quote character ("), then the program name and its extension. This line must display somewhere in the program that is to call the "included" program.

In this way, the same sub-program can be used in many programs, but you do not need to type it into each program. Each program must contain the proper “program inclusion” block.

The program to be included must be in the form of a sub-program, beginning with Onnn, and ending with the M99 code.

The format for program inclusion is: “FILENAME.G”.

It is especially useful for including tool change sub-programs, zero-setting sub-programs, and macros.

Example 1: ["FILENAME.G

Example 1 shows the syntax necessary to "include" a program into another program.

11.4 Advanced Programming

ACU-RITE 3500i

427

Page 453
Image 453
Acu-Rite CNC 3500i user manual File Inclusion, 427