
1.
INTRODUCTION
Normally, a program number is specified after the CR code at the beginning of
the program, and a program end code (M02, M30) is specified at the end of the
program. (See I -11 MISCELLANEOUS FUNCTION)
Main program and subprogram
When machining of the same pattern appears at many portions of a program, a
program for the pattern is created. This is called the subprogram. On the other
hand, the original program is called the main program. When a subprogram
execution command appears during execution of the main program, commands
of the subprogram are executed. When execution of the subprogram is finished,
the sequence returns to the main program.
The subprograms can be called max. four subprograms.
Main program
Sub program#l
I
I
M98PlOOl -
I
I
I
M98P1002
M98PlOOl
f
I
M99
L
Sub programN2
01002
1
M99
Tool movement range ----- Stroke check
An area available to move can be specified by parameters. This function is
called the stroke check
Reference point
0
l-7