Fanuc Series 15i/150i-MA (Programming) Operators Manual

B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 645 -
17.6.9 Subprogram Call Using an 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).
Explanation
By setting an M code number from 3 to 99999999 used to call a
subprogram in a parameter (No.7071 to No. 7079), the corresponding
custom macro program (O9001 to O9009) can be called in the same
way as with M98.
- Correspondence between parameter numbers and program numbers
Program number Parameter number
O9001
O9002
O9003
O9004
O9005
O9006
O9007
O9008
O9009
7071
7072
7073
7074
7075
7076
7077
7078
7079
- Repetition
As with a simple call, a number of repetitions from 1 to 999999999 can
be specified at address L.
- Argument specification
Argument specification is not allowed.
- M code
An M code in a macro program that has been called is treated as an
ordinary M code.
Limitation
In a macro called with a G code or in a program called with an M, S, T,
2nd auxiliary function code when parameter GMP (No.7000#5) is 1, 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.
O0001 ;
:
M03 ;
:
M30 ;
O9001 ;
:
:
:
M99 ;
Parameter @No.7071=03

Leave a Reply

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