
3.EXECUTION MACRO FUNCTION B-63943EN-2/01
- 30 -
3.2.4 Macro Call Using G Code (Specification of 1 Set)
Execution macros to be called using a G code can be added by setting
the start number of G codes to be used for macro calls, the start
number of execution macros to be called, and the number of
definitions for compile parameters. When a negative number is set as
the start G code number, modal calls are defined for the
corresponding execution macros. For details of modal calls, see
Subsection 3.2.5.1, "Macro Modal Call Using G Code".
The format, argument specification, and limitation are the same as for
Subsection 3.2.3, “Macro Call Using G code”.
Parameter setting
Compile parameter (No. 9045) : Start G code number
Compile parameter (No. 9046) : Number of definitions
Compile parameter (No. 9047) : Start execution macro number
Example
When 900 is set for parameter (No. 9045), 100 is
set for parameter (No. 9046), and 8000 is set for
parameter (No. 9047), the macro calls for the
following combinations are defined. When -900 is
set for parameter (No. 9045), the modal calls for
the same combinations are defined.
G900 → O8000
G901 → O8001
G902 → O8002
:
G999 → O8099
Limitation
1 This type of macro call is invalidated in the following cases:
<1> A value outside the valid range is set for a compile
parameter.
<2> The defined G code range exceeds 9999.
<3> The defined program number range exceeds 99999999.
NOTE
When a 5-digit or longer O number is used, the
option for 8-digit program numbers is required.
2 G codes used for macro calls are not used as call commands in
this type of macro call even when included in the setting range.
3 If the G code range of a call based on specification of 1 set
duplicates the G code of a call based on compile parameter Nos.
9013 to 9022, the call based on compile parameter Nos. 9013 to
9022 has higher priority.