
15. CUSTOM MACRO
15.1
Macro Call Command (Custom Macro Command)
15.1.3
Macro call using
G
codes
A G code can be set by a parameter to call a macro. That is, instead of specifying
N
G65P
AAAA
<argument assignment >
;
the
following
simple command
can be used. .
N
Gxx < argument assignment)
;
The correspondence between the calling G code xx and the program number
AAAA
of the called macro must be set as a parameter.
.
A calling G code and the program number
AAAA
of a called macro are set in a
parameter.
The program number for macros ranges from 9010 to 9019.
Up to ten GO1 to
G255
commands can be used to call macros. GOO, G65 to
G67
cannot be used. These G codes cannot be specified in a macro called with a G code.
These G codes cannot be specified in a subprogram called with an M code or a T
code. Set parameters 6050 to 6059.
15.1.4
Custom macro call with
M
code
Macro can be called with an M code set by a parameter, namely, the following
command:
N
G65 P
AAAA
<argument
assignment
>
;
isTq;alent
to the following command:
N
M x x <argument assignment
>
;
Thecorrespondence
between the M code. x x which executes macro calling and the
macro program No.
AAAA
accessed must be set as a parameter (No. 6080 to
6089). The macro program numbers involved range from 9020 to 9029. The calling
codes are not issued to the machine side.
When this M code is specified in a macro called with a G code, or in a subprogram
called with an M, S, or T code, the macro is not called; but this M code is treated as
ordinary M code.
Up to 10 codes of MOO6 to
M255
can be used to call macro.
.
(Note)
These
M
block (just after the
codes are different from
sequence No., if there is).
and they must be
commanded
at the start of a
151.5
Subprogram call with
M
code
An M code can be set by a parameter to call a subprogram. That is, instead of
N
G
X
Y
-
P-P
Mg8PAAAA;
the following simple command can be specified.
N --G X Y
-p-p
Mxx;
As for M98, the instruction is displayed on the program check screen, but MF and M
codes are not transmitted.
’
The correspondence between the calling M code xx and the program number
AAAA
of
the called subprogram must be set as a parameter. The subprogram
numbers involved range from 9001 to 9003. Up to
three M codes can be used for a
subprogram call.