11. PROGRAM CONFIGURATION
A program number is given to each program to distinguish a program
from other programs. The program number is given at the head of each
program, with a 4–digit number (when the 8–digit program number
option is used, however, eight digits following address O ) after the
Program number of the program currently under execution is always
displayed on the CRT screen. Program search of programs registered in
the memory is done with the program number. The program number can
be used in various ways.
A program name can be given to the program to distinguish the program
from other programs when displaying all the registered program on a
screen. Register the name between the control–out and the control–in.
Any codes usable in the CNC can be used for the program name.
The program name is displayed with the program number in the directory
display of registered programs. Note that the program name displayed is
within 31 characters.
Example) O1234 (PROGRAM FOR ATC);
A program is divided into the main program and the sub program. The
CNC normally operates according to the main program, but when a
command calling a sub program is encountered in the main program,
control is passed to the sub program. When a command indicating to
return to the main program is encountered in the sub program, control is
returned to the main program.