16. CUSTOM MACRO
By setting a G code number used to call a macro program in a parameter,
the macro program can be called in the same way as for a simple call
G81 X10.0 Y20.0 Z–10.0 ;
N9 M99 ;
Parameter 6050 = 81
By setting a G code number from 1 to 255 used to call a custom macro
program (9010 to 9019) in the corresponding parameter (6050 to 6059),
the macro program can be called in the same way as with G65.
For example, when a parameter is set so that macro program O9010 can
be called with G81, a user–specific cycle created using a custom macro
can be called without modifying the machining program.
Program number Parameter number
As with a simple call, a number of repetitions from 1 to 9999 can be
specified at address L.
As with a simple call, two types of argument specification are available:
Argument specification I and argument specification II. The type of
argument specification is determined automatically according to the
In a program called with a G code, no macros can be called using a G code.
A G code in such a program is treated as an ordinary G code. In a program
called as a subprogram with an M or T code, no macros can be called using
a G code. A G code in such a program is also treated as an ordinary G code.
Macro Call Using
numbers and program
D Argument specification
D Nesting of calls using G