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

PROGRAMMING
B–62764EN/01
13. PROGRAM CONFIGURATION
167
NOTE
1 The M98 and M99 code signal and strobe signal are not
output to the machine tool.
2 If the subprogram number specified by address P cannot be
found, an alarm (No. 078) is output.
l M98 P51002 ;
l X1000.0 M98 P1200 ;
l Execution sequence of subprograms called from a main program
A subprogram can call another subprogram in the same way as a main pro-
gram calls a subprogram.
This command specifies ”Call the subprogram (number 1002) five times in
succession.” A subprogram call command (M98P_) can be specified in the
same block as a move command.
This example calls the subprogram (number 1200) after an X movement.
1
2
3
Main program
N0010
0 ;
N0020
0 ;
N0030 M98 P21010 ;
N0040
0 ;
N0050 M98 P1010 ;
N0060
0 ;
Subprogram
O1010 0 ;
N1020
0 ;
N1030
0 ;
N1040
0 ;
N1050
0 ;
N1060
0 M99 ;
Examples

Leave a Reply

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