
3. EXECUTION MACRO
B–62073E–2/03
46
The specifiable G code range is 1 to 9999, and the specifiable program
number range is 9000 to 9999. Up to 40 programs can be called at a time.
Parameter No.8546 : 10
No.8551 : 1000
No.8552 : 9500
When the parameters are set as shown above, the correspondence between
the G codes and program numbers is as follows:
G code Corresponding program number
G1000 O9500
G1001 O9501
G1002 O9502
G1003 O9503
G1004 O9504
G1005 O9505
G1006 O9506
G1007 O9507
G1008 O9508
G1009 O9509
Note
For each parameter, the action taken when a value outside
the specifiable range is specified is as follows.
Parameter No.8546:
If zero on a negative value is specified, the program call
is not activated. Even when a value larger than 40 is
specified, only 40 programs are called.
Parameter No.8551:
Values outside the specifiable range are ignored (the
program call is not activated).
Parameter No.8552:
Values outside the specifiable range are a any
out–of–range value is ignored (the program call is not
activated).
By setting compile parameter TMCC (No.8502) to 1, P–CODE program
No. 9008 is called 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 available for CNC and the significant
digits are those specified by the CNC.
Example
3.2.10
Calling a Macro Using
a T Code