
B-63943EN-2/01 3.EXECUTION MACRO FUNCTION
- 31 -
3.2.5 Macro Call Using G Code (Specification of 3 Sets)
Up to three sets, each consisting of a start G code number used for
macro calling, start execution macro number to be called, and the
number of execution macros to be defined, can be set. Besides
execution macro numbers called using G code (specification of 1 set),
this capability can additionally define three separate sets of execution
macros.
When a negative number is set as the start G code number of each set,
the corresponding execution macros are called in the modal mode.
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
The table below indicates the compile parameters to be set for each
set.
1st set 2nd set 3rd set
Start G code number
9129 9132 9135
Number of execution
macros to be defined
9130 9133 9136
Start execution macro
number
9131 9134 9137
Example
Setting of the 1st set: No. 9129=900 No. 9131=8000 No. 9130=10
Setting of the 2nd set: No. 9132=950 No. 9134=8100 No. 9133=30
Setting of the 3rd set: No. 9135=1000 No. 9137=8900 No. 9136=5
The settings above define the following sets of macro calls:
1st set 2nd set 3rd set
G900
→
O8000 G950
→
O8100 G1000
→
O8900
G901
→
O8001 G951
→
O8101 G1001
→
O8901
G902
→
O8002 G952
→
O8102 G1002
→
O8902
: : : : G1003 O8903
G909
→
O8009 G979
→
O8129 G1004
→
O8904
When No. 9129 = -900 is set, the same set of modal calls as the 1st set is
defined. Similarly, when No. 9132 = -950 and No. 9135 = -1000 are set, the
same sets of modal calls as the 2nd and 3rd sets are defined, respectively.