
PROGRAMMING
B–61404E/08
15. CUSTOM MACRO A
280
The custom macro command is the command to call the custom macro
body.
Command format is as follows :
M98 P__;
Called macro body program No.
With the above command, the macro body specified by P is called.
The subprogram can be called using M code set in parameter.
N_ G_ X_ M98P <p> ;
instead of commanding as above, the same operation can be commanded
using following command :
N_ G_ X_ M <m> ;
The correspondence of M code <m> which calls subprogram and the
program number <p> (O9001 to O9003) of the called subprogram shall
be set by parameters (No. 0240 to No. 0242).
For subprogram call, a maximum of 3 among M03 to M255, except M30
and M code which does not buffer (parameter No. 111, 112) can be used.
NOTE
1 Similarly to M98, signal MF and M code are not output.
2 Delivery of argument is not possible.
3 Subprogram call M code used in the subprogram which is
called by M or T code does not executes subprogram call
but as an ordinal M code.
15.1
CUSTOM MACRO
COMMAND
15.1.1
M98 (Single Call)
Format
15.1.2
Subprogram Call Using
M Code