Specifications

_____________________________________________________________________
_____________________________________________________________________
CONCISE GUIDE FANUC 87
If it is required to return from the sub-program to a pre-defined block and not to the block that immediately
follows the one in which it has been run, add the pre-defined block to M99, preceded by the letter P.
MAIN
PROGRAM
SUB-
PROGRAM
N10
N20
N30
N40
N50
N60
M98P8003
N70
N80
N90
N100
N110 M30
O8003
N10
N20
N30
N40
N50
N60
N70
N80
N90
N100 M99P80
M30
After the sub-program has run, the NC returns in the main program at block N80
Function M99 (which usually closes a sub-program) can be used also in the main program as an
unconditioned skip (to skip always to a pre-defined block)
O1 (MAIN PROGRAM)
N10
N20
N30 /M99 P70 (USED TO OPTIONALLY SKIP THE PARTS OF THE PROGRAM FROM BLOCK 30 TO
BLOCK 70, SEE USE OF BARRED BLOCK)
N40
N50
N60
N70
N80
N90
N100 M30