
3.EXECUTION MACRO FUNCTION B-63943EN-2/01
- 36 -
3.2.7 Macro Call Using M Code (Specification of 3 Sets)
Up to three sets, each consisting of a start M 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 in compile
parameters. This capability can additionally define three separate
sets of execution macros. The format, argument specification, and
limitation are the same as for Subsection 3.2.6, “Macro call using M
code”.
Parameter setting
The table below indicates the compile parameters to be set for each
set.
1st set 2nd set 3rd set
Start M code number
9120 9123 9126
Number of execution macros to
be defined
9121 9124 9127
Start execution macro number
9122 9125 9128
Example
Setting of the 1st set: No. 9120=100 No. 9122=8000 No. 9121=10
Setting of the 2nd set: No. 9123=150 No. 9125=8100 No. 9124=30
Setting of the 3rd set: No. 9126=200 No. 9128=8900 No. 9127=5
The settings above define the following sets of macro calls:
1st set 2nd set 3rd set
M100
→
O8000 M150
→
O8100 M200
→
O8900
M101
→
O8001 M151
→
O8101 M201
→
O8901
M102
→
O8002 M152
→
O8102 M202
→
O8902
: : : : M203
→
O8903
M109
→
O8009 G179
→
O8129 M204
→
O8904
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 M code range exceeds 99999999.
<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 M 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 M code range of a call based on specification of 3 sets
duplicates the M code of a call based on compile parameter Nos.
9023 to 9032, the call based on compile parameter Nos. 9023 to
9032 has higher priority.