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

B-63324EN/03 PROGRAMMING 12.PROGRAM CONFIGURATION
- 273 -
- Using a subprogram only
A subprogram can be executed just like a main program by searching
for the start of the subprogram with the MDI. (See Operation II-10.3-
for information about search operation.)
In this case, if a block containing M99 is executed, control returns to
the start of the subprogram for repeated execution. If a block containing
M99Pn is executed, control returns to the block with sequence number
n in the subprogram for repeated execution. To terminate this program,
a block containing /M02 ; or /M30 ; must be placed at an appropriate
location, and the optional block switch must be set to off ; this switch is
to be set to on first.
N1010 ... ;
N1020 ... ;
N1030 ... ;
N1040 M02 ;
N1050 M99 P1020 ;
/
Optional block skip ON

Leave a Reply

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