Acu-Rite CNC 3500i User Manual

Page of 472
ACU-RITE 3500i
429
1
1
.4 A
d
v
a
nced Pr
ogr
a
mming
In Example 2, a program named TOOLCHNG.G can be called from the 
main program (or from an existing sub-program). It is made possible 
by line N52. The program inclusion function is programmed on N52.
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.