B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 639 -
17.6.4 Macro Call Using G Code
By setting a G code number used to call a macro program in a
parameter, the macro program can be called in the same way as for a
simple call (G65).
By setting a G code number from -999 to 999 used to call a custom
macro program (O9010 to O9019) in the corresponding parameter
(N0.7050 to No.7059), the macro program can be called in the same
way as with G65.
If a call is to be made with a G code with the decimal point, custom
macroprogram O9040 to O9049 can be called by setting the code for
parameter No. 7060 to 7069. The G code, for which the number of
decimal positions is 1, must be multiplied by 10.
[Example] When 234 is set for parameter No. 7060, O9040 is
called with G23.4.
If a negative G code is set, the call is regarded as being modal. In this
case, whether the G code is equivalent to G66 or G66.1 can be specified
using parameter MGE (bit 3 of No. 7000).
For example, when a parameter is set so that macro program O9010 can
be called with G81, a user-specific cycle created using a custom macro
can be called without modifying the machining program.
- Correspondence between parameter numbers and program numbers
G code without the decimal point G code with the decimal point
As with a simple call, a number of repetitions from 1 to 999999999 can
be specified at address L.
G81 X10.0 Y20.0 Z-10.0 ;
N9 M99 ;