13. Program Support Functions
13.5 User Macro Specifications
306
G code macro call
User macro subprogram with prescribed program numbers can be called merely by issuing the G
code command.
Format
G
**
argument ;
G**
:G code for macro call
Detailed description
(1) The above instruction functions in the same way as the instructions below, and parameters are
set for each G code to determine the correspondence with the instructions.
a.
G22L
ΔΔΔΔ
;
b.
G65L
ΔΔΔΔΔ
argument ;
c.
G66L
ΔΔΔΔΔ
argument ;
d.
G66.1L
ΔΔΔΔΔ
argument ;
When the parameters corresponding to c and d above are set, issue the cancel command
(G67) either in the user macro or after the call code has been commanded so as to cancel the
modal call.
(
2) The correspondence between the "**" which conducts the macro call and the macro program
number L
ΔΔΔΔ
to be called is set by parameter.
(3) Up to 10 G codes from G100 to G255 can be used with this instruction. (G codes used in the
system can also be used with parameter "#1081 Gmac_P").
(Note 1)
G101 to G110 and G200 to G202 are user macro I codes, but if the parameters
are set as the G code call codes, the G code call will be the priority, and these
codes cannot be used for user macro I.
(4) These commands cannot be issued during a user macro subprogram which has been called
by a G code.
Program example
G16X100. Y100. Z100. F500 ;
L9016
G68 ;