
PROGRAMMING
B–63534EN/02
15. CUSTOM MACRO
425
O9020
O9021
O9022
O9023
O9024
O9025
O9026
O9027
O9028
O9029
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
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.
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.
By setting an M code number used to call a subprogram (macro program)
in a parameter, the macro program can be called in the same way as with
a subprogram call (M98).
O0001 ;
:
M03 ;
:
M30 ;
O9001 ;
:
:
:
M99 ;
Parameter No.6071 = 03
By setting an M code number from 1 to 99999999 used to call a
subprogram in a parameter (No.6071 toNo. 6079), the corresponding
custom macro program (O9001 to O9009) can be called in the same way
as with M98.
D Correspondence
between parameter
numbers and program
numbers
D Repetition
D Argument specification
Limitations
15.6.5
Subprogram Call
Using an M Code
Explanations