FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
304
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 6071 = 03
By setting an M code number from 1 to 99999999 used to call a
subprogram in a parameter (Nos. 6071 to 6076), the corresponding
custom macro program (O9001 to O9006) can be called in the same way
as with M98.
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.
16.6.5
Subprogram Call
Using an M Code

D Correspondence
between parameter
numbers and program
numbers
D Repetition
D Argument specification
D M code
Limitations

Leave a Reply

Your email address will not be published. Required fields are marked *