Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
11. PROGRAM CONFIGURATION
B–63174EN/03
92
M98 P51002 ;
X1000.0 M98 P1200 ;
Execution sequence of subprograms called from a main pro-
gram
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
 ;
N0020
 ;
N0030 M98 P21010 ;
N0040
 ;
N0050 M98 P1010 ;
N0060
 ;
Subprogram
O1010
 ;
N1020
 ;
N1030
 ;
N1040
 ;
N1050
 ;
N1060
 M99 ;
Examples

Leave a Reply

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