(3) Macro Call by Arbitary G Code
Gxx (argument designation) ;
This provides the command with is equivalent to
G65 P...
(argument designation) ; . For Gxx,
ten G codes of GO1 through G199 excluding those
designated by NC maker can be set by parameter.
The macro program numbers which correspond to
these G codes are as follows:
#6120 ~. .
Sets G code which calls the macro of
program number 09010.
#6121 . . ~
Sets G code which calls the macro of
program number 09011.
\
#6129 ...
Sets G code which callsthe macro of
program number 09019.
Note :
Macro call by arbitrary G code permits
only sin gle nesting.
Namely, the macro which
was called for by using arbitrary G code, M code,
or T code does not permit another macro call by
arbitrary code.
(4) Macro Call by M Code
G. X“. ”
Z-”- h’ixx;
This command may call macros. In this case, the
macro is executed after the move command is
completed in that block. MF and M codes are not
transmitted.
For Mxx, four M codes may be des-
ignated by parameter excluding MOO, MO1, M02,
M30, M90 through M99.
#6130 . . ~ Sets M code which calls the macro of
program number 09001.
#6131 . ~
Sets M code which calls the macro of
program number 09002.
#6132 . . .
Sets M code which calls the macro of
program number 09003.
#6133 ~..
Sets M code which calls the macro of
program number 09004.
NOTE THAT THE MACRO CALL BY M CODE
DOES NOT PERMIT ARGUMENT DESIGNATION.
When a macro M code is programmed in a
macro subroutine that has been called by an ar-
bitrary G code or by a macro M or T code, it will
be processed like a normal M code.
(5) Macro Call by T Code
All the T code commands provide a macro callcom-
mand .
G
. . .
X.. . Z.. Txxxx ;
With this command, the macro of program num–
ber 09000 is executed after the move command
in the same block is completed.
Transmission of T code and TF signal is not per-
formed. Whether a T code is to be used as a
macro call command may be specified by the fol-
lowing parameter :
Parameter No.
#6134
o ... T code designation is handled as a T code.
1 . . . T code designation is handled as a macro
call command to call the macro of program
number 09000.
When a T code is specified as a macro call
command,
the value designated by T “XXXX” (up
to decimal 4 digits) becomes the argument of
common variable #149.
NOTE THAT THE ARGU-
MENT DESIGNATION OTHER THAN THIS IS NOT
PERMITTED . When a T code is programmed in a
macro subroutine that has been called by an ar-
bitrary G code or by a macro M or T code, it will
be processed like a normal T code.
(6)
Multiple Call
a.
G65 Simple Call And G66 Modal Call
As a subprogram is called from another sub-
program, a macro program may be called from
another macro program. Quadruple nesting is
permitted for simple call and modal call com-
bined. Multiple call is disabled for the macro
call by arbitrary G code, or M code or T code.
b,
Multiple Call by G66 Modal Call
In
modal call,each time a move command is ex-
ecuted, the designated macro is run.
This is
also valid for the move command in the macro
called by multiple call.
The macros are sequen-
tiallyexecuted from the one designated latest.
67