
PROGRAMMING
B–63444EN/01
12. PROGRAM CONFIGURATION
95
The end of a program is indicated by punching one of the following codes
at the end of the program:
Table 12.2 (d) Code of a program end
Code Meaning usage
M02
For main program
M30
M99 For subprogram
If one of the program end codes is executed in program execution, the
CNC terminates the execution of the program, and the reset state is set.
When the subprogram end code is executed, control returns to the
program that called the subprogram.
NOTE
A block containing an optional block skip code such as
/M02; , /M30; , or /M99; is not regarded as the end of a
program, if the optional block skip switch on the machine
operator’s panel is set to on.
(See Section 12.2 for optional block skip.)
D Program end