Subprogram Call - Roland Camm-3 PNC-3200 Programmer's Manual

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

Advertisement

M98
Format
M98[P times number]
Parameter
times
number
Description
The subprogram of the specified number is called up and executed. A subprogram call can be made not only from a main program, but
from another subprogram as well. However, attempting to call another subprogram from a fourth-level subprogram of a main program
causes an error to be generated.
The times parameter indicates the number of calls. The subprogram is called and executed the number of times specified by this
parameter. When times is not specified, the subprogram is called once.
The number parameter indicates the program number of the subprogram. A four-digit number must be specified. For example, "0002"
is used to specify Program number 2. If a program of the specified number does not exist, an error is generated.
Main
program
(Program No. 1)
Call
N100M98P0002
N101G00X10.
..........
Call
Second
N176M98P20006
N177G00Y2.
times

Subprogram Call

Function
Number of calls
Program number
O0002
Subprogram
(Program No. 2)
Call
N254M98P0003
N255G00Y5.
M99
O0006
Subprogram
(Program No. 6)
M99
Acceptable range
O0003
Subprogram
(Program No. 3)
Call
N312M98P0004
N313G00Z0
M99
Effective range
Range 2
Range 2
O0004
Subprogram
(Program No. 4)
Call
N447M98P0005
N448G00X0
M99
* Attempting to call another
subprogram from a fourth-level
subprogram of a main program
causes an error to be generated.
1–9999
0001–9999
O0005
Subprogram
(Program No. 5)
M99
49

Advertisement

Table of Contents
loading

Table of Contents