
3. EXECUTION MACRO
B–62093E–1/02
PROGRAMMING
34
By setting compile parameter TMACC(No.9005#7) to 1, P–CODE
program (No.9008) 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
#27 T code
#28 G code
#29 G code
#30 G code
#31 G code
#32 G code
Example) G91G28X123.45678T5678:
#24=123.456
#27=5678.0
#28=28.0
#29=91.0
Other variables = < vacant >
3.1.7
Calling a Macro Using
a T Code