
B–61803E–1/10
3. EXECUTION MACRO
PROGRAMMING
29
By setting compile parameter TMACC(No.9005#7) to 1, program of
No.9008 registered to ROM can be called macros by specifying a T code
in a user program.
All addresses specified in this block are used as arguments except that the
T code is transferred to #27, values for address P and L are transferred to
#16 and #12, respectively. Also G codes are transferred to variables #28
to #32 for each group.
Be sure that addresses shall be those availabe for CNC and the significant
digits are those specified by the CNC.
Variable Data to be transferred
#1-#26 Address data for each variable (Argument designation)
#27 T code
#28 G code
#29 G code
#30 G code
#31 G code
#32 G code
NOTE
G codes are assigned to variables #28 to #32 in ascending
order, starting with the lowest G code group number. When
a G code of G code group 01 exists, G80 may be generated
and assigned to #28 to #32.
Example) G91G28X123.45678T5678:
#24=123.456
#27=5678.0
#28=28.0
#29=91.0
Other variables = < vacant >
ROM-resident program 09009 can be called as a subprogram by using
compilation parameters No. 9042 and No. 9043.
Specify the following codes in compilation parameters No. 9042 and No.
9043:
No. 9042 = M code indicating the lower limit
No. 9043 = M code indicating the upper limit
Examples are given below:
No. 9042 = 100
No. 9043 = 110
If the above codes are specified in the parameters upon compilation,
specifying an M code within the range from M100 to M110 calls
ROM-resident program O9009 as a subprogram.
3.1.7
Calling a Macro Using a
T Code
3.1.8
M Code Subprogram Call
with Range Specified