End Of Subprogram - Roland Camm-3 PNC-3200 Programmer's Manual

Nc code
Hide thumbs Also See for Camm-3 PNC-3200:
Table of Contents

Advertisement

M99
Format
M99[P times number]
Parameter
number
Description
This indicates the end of a subprogram. M99 is normally specified alone, with no number parameter, and execution returns to the code
after the call source (M98) at that time.
The number parameter specifically designates a program number or sequence number as the destination for returning. The entire
program is searched from its beginning, and execution returns to the first program number or sequence number. The PNC-3200 does
not operate while the number search is in progress. The search process may take some time when execution the return destination is a
number near the end of a lengthy program.
An error is generated if the specified number does not exist.
When M99 is specified at the end of a main program, execution of the main program is repeated.
50

End of Subprogram

Function
Program number or sequence number
Main
program
(Program No. 1)
Call
N100M98P0002
N101G00X10.
.......
N176M98P0003
..
N185G00Y2.
Acceptable range
Range 1
O0002
Subprogram
(Program No. 2)
M99
O0003
Call
Subprogram
(Program No. 3)
M99P0185
Effective range
1—9999

Advertisement

Table of Contents
loading

Table of Contents