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

PROGRAMMING
B–62764EN/01
13. PROGRAM CONFIGURATION
169
A subprogram can be executed just like a main program by searching for
the start of the subprogram with the MDI.
(See III–9.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
D Using a subprogram only

Leave a Reply

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