
B-63943EN-2/01 3.EXECUTION MACRO FUNCTION
- 33 -
3.2.5.1 Macro modal call using G code
If a negative number is set in a compile parameters (Nos. 9013 to
9022), the corresponding execution macro is called in the modal mode.
This capability is usable for multiple macro calls using G code. In
this case, set a negative number as a start G code number in compile
parameter (No. 9045) or in compile parameters (Nos. 9129, 9132, and
9135) for each set.
Until the modal call cancel G code (G67) is specified, the execution
macro is called with the specified G code in the modal mode
equivalent to G66/G66.1 for custom macros. Bit 1 (MCT) of
compile parameter (No. 9163) is used to choose whether the modal
call is equivalent to G66 or G66.1.
* The functions such as move command call (G66) operation,
block-by-block call (G66.1) operation, and multi-level modal
calls are exactly the same as for custom macros. See the
specifications of custom macros as well.
Variable for checking whether a modal call is in progress
The variable #8680 can be used to check if an execution macro is
called in a modal call (macro modal call using a G66/G66.1/G code).
#8680 =0: Not in a macro modal call
=1: In a macro modal call