Fanuc Series 15i/150i-MA (Programming) Operators Manual

1.GENERAL PROGRAMMING B-63324EN/03
- 26 -
- 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.
Main program
M98P1001
:
:
M98P1002
:
:
:
:
:
:
:
:
Subprogram #1
Subprogram #2
O1001
M99
Program for hole #1
Program for hole #2
O1002
M99
M98P1001
Hole #1
Hole #1
Hole #2
Hole #2

Leave a Reply

Your email address will not be published. Required fields are marked *