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

17.CUSTOM MACRO PROGRAMMING B-63324EN/03
- 648 -
17.6.12 Subprogram Calls Using a S Code
By enabling subprograms (macro program) to be called with a S code in
a parameter, a macro program can be called each time the S code is
specified in the machining program.
Explanation
- Call
By setting bit 1 of parameter SCS No.7000 to 1, the macro program
O9029 can be called when a S code is specified in the machining
program. A S code specified in a machining program is assigned to
common variable #147.
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 a S code. A S code in such a macro or
program is treated as an ordinary S code.
O0001 ;
:
S23 ;
:
M30 ;
O9029 ;
:
:
:
M99 ;
Parameter @No.7000#1=1

Leave a Reply

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