FANUC Series 16/18/160/180-Model C Machining Center Operators Manual

PROGRAMMING
B–62764EN/01
1. GENERAL
25
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
M98P1001
Subprogram #1
Subprogram #2
O1001
M99
Program for
hole #1
Program for
hole #2
O1002
M99
Hole #1
Hole #2
Hole #1
Hole #2
D Main program and
subprogram

Leave a Reply

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