Fanuc Power Mate i-D/H Operator Manual

3. HIGH–SPEED RESPONSE
FUNCTION
PROGRAMMING
(Power Mate i–H)
B–63174EN/03
268
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.
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.
O8001 ;
M98P7000 ;
%
Main–program
O7002 ;
M99 ;
O7000 ;
M98P7001 ;
M99 ;
O7001 ;
M98P7002 ;
M99 ;
(1 level nesting)
O7003 ;
M99 ;
M98P7003 ;
M99 ;
Sub–program Sub–program Sub–program Sub–program
(2 level nesting) (3 level nesting) (4 level nesting)
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.
If M99 is executed in a sub–program, control returns to the program that
calls this sub–program. Then the block next to M98 is executed. In
high–speed response mode, sub–program return with return block
command (M99 Ppppp) can not be specified. M99 must be commanded
alone.
Sub–program call
Sub–program call
nesting
Return form a
sub–program

Leave a Reply

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