13. CUSTOM MACRO
By setting an M code number used to call a macro program in a parameter,
the macro program can be called in the same way as with a simple call
M50 A1.0 B2.0 ;
Parameter No.6080 = 50
By setting an M code number from 1 to 99999999 used to call a custom
macro program (9020 to 9029) in the corresponding parameter (No.6080
to No.6089), the macro program can be called in the same way as with
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
S An M code used to call a macro program must be specified at the start
of a block.
S In a macro called with a G code or in a program called as a subprogram
with an M or T code, no macros can be called using an M code. An M
code in such a macro or program is treated as an ordinary M code.
The time each assist gas is used is measured by using the macro call
function with an M code.
S Measure the total time that assist gas types 1 to 3 are used.
S Determine the variables for storing the assist gas type numbers and the
measured times, as follows:
#501 Total time assist gas type 1 is used
#502 Total time assist gas type 2 is used
#503 Total time assist gas type 3 is used
Macro Call Using
an M Code
numbers and program
D Argument specification