
・Sub-program call
Sub-program can be called by specifying M98 and a sub-program number P.
Optional block skip function can be applied to the block with M98 (sub-program
call).
Example)
1. In case a sub-program is called:
M98 Ppppp ;
Sub-program number
Repeating number can not be specified.
Use “WHILE” statement to call a sub-program repeatedly.
In case of program number 8 digits, calling format is the same.
2.In case optional block skip function is used:
/1 M98 P7000;
When optional block skip signals BDT1 is set to 1 before
the CNC start reading a block containing /1, the block is ignored.
・Sub-program call nesting
A sub-program can call another sub-program. Sub-program call can be
nested to a depth of four levels including sub-program call from
main-program.
Main-program Sub-program Sub-program Sub-program Sub-program
(1 level nesting) (2 level nesting) (3 level nesting) (4 level nesting)
O8001;
M98P7000;
%
O7000;
M98P7001;
M99;
O7001;
M98P7002;
M99;
O7002;
M98P7003;
M99;
O7003;
M99;
Note
1. A sub-program can not start alone directly. A sub-program must
be called from a main-program (O8000 to O8031).
2. A sub-program can not call a main-program. (If call, an alarm
1020 occurs.) It is only a sub-program that a program can call.
EDIT
DATE DISIGNE
DESCRIPTION
TITLE
DRAW
FANUC Power Mate i - MODEL H
Sub program call for high-speed
response function
B-63173EN-1/01-39
SHEET
3/12
APPROV.
FANUC LTD
01 020621 New design