
PROGRAMMING
15. CUSTOM MACRO
B–63534EN/02
424
O9010
O9011
O9012
O9013
O9014
O9015
O9016
O9017
O9018
O9019
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
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
addresses used.
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.
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
(G65).
O0001 ;
:
M50 A1.0 B2.0 ;
:
M30 ;
O9020 ;
:
:
:
M99 ;
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
G65.
D Correspondence
between parameter
numbers and program
numbers
D Repetition
D Argument specification
Limitations
D Nesting of calls using G
codes
15.6.4
Macro Call Using an
M Code
Explanations