50
End of Subprogram
Format
M99[P
times number
]
M99
Parameter
Function
Acceptable range
Effective range
number
Program number or sequence number
Range 1
1—9999
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.
N100M98P0002
N101G00X10.
M99
M99P0185
N176M98P0003
N185G00Y2.
O0002
O0003
.......
..
Main
program
(Program No. 1)
Subprogram
(Program No. 2)
Call
Subprogram
(Program No. 3)
Call
When M99 is specified at the end of a main program, execution of the main program is repeated.
Содержание CAMM-3 PNC-3200
Страница 2: ......
Страница 62: ...60 MEMO ...
Страница 63: ......
Страница 64: ...R3 001018 NC code PNC 3200 ...