
PROGRAMMING
15. CUSTOM MACRO
B–63534EN/02
426
O9001
O9002
O9003
O9004
O9005
O9006
O9007
O9008
O9009
6071
6072
6073
6074
6075
6076
6077
6078
6079
Program number Parameter number
As with a simple call, a number of repetitions from 1 to 9999 can be
specified at address L.
Argument specification is not allowed.
An M code in a macro program that has been called is treated as an
ordinary M code.
In a macro called with a G code or in a program called with an M or T code,
no subprograms can be called using an M code. An M code in such a
macro or program is treated as an ordinary M code.
By enabling subprograms (macro program) to be called with a T code in
a parameter, a macro program can be called each time the T code is
specified in the machining program.
O0001 ;
:
T23 ;
:
M30 ;
O9000 ;
:
:
:
M99 ;
Bit 5 of parameter 6001 = 1
By setting bit 5 of parameter TCS No.6001 to 1, the macro program
O9000 can be called when a T code is specified in the machining program.
A T code specified in a machining program is assigned to common
variable #149.
In a macro called with a G code or in a program called with an M or T code,
no subprograms can be called using a T code. A T code in such a macro
or program is treated as an ordinary T code.
D Correspondence
between parameter
numbers and program
numbers
D Repetition
D Argument specification
D M code
Limitations
15.6.6
Subprogram Calls
Using a T Code
Explanations
D Call
Limitations