
3. EXECUTION MACRO
B–62093E–1/02
PROGRAMMING
36
Axis address commands enable calling macros.
When AX1CL to AC8CL of compilation parameter 9005#0 to #3,
9008#0 to #3 are set to 1, the programs registered to Power Mate can be
called by the axis address command.
The program number to be called is selected by compile parameter
AXCLS (No. 9005#4) as follows:
AXCLS 1 : The program number to be called depends on a specified
axis:
Program O9031 is called when 1st axis is specified.
Program O9032 is called when 2nd axis is specified.
::
Program O9038 is called when 8th axis is specified.
0 : Always program O9009 is called irrespective of specified
axes.
In this case, all the addresses in the block specified axis address are passed
for use as arguments. However, the specified axis address is passed to
variable 27. Addresses P and L are passed to variable 16 and 12,
respectively, for use as arguments. Up to five G codes in each G code
group are passed to variables 28 to 32 starting from the group with the
lowest number. When a G code of G code group 01 exists, G80 may be
generated and assigned to #28 to #32.
Variable No. Address
#1 to #26 Usual argument address
#27 Specified axis address (1st to 8th)
#28 Specified G code
#29 Specified G code
#30 Specified G code
#31 Specified G code
#32 Specified G code
If the following are specified when a 2nd–axis address is B, for example:
G91G28B1.234567X123.4567;
The settings are passed to variables as follows:
123.456 to variable #24
1.234 to variable #27
28.0 to variable #28
91.0 to variable #29
Other variables: Null
NOTE
The addresses those can be used and the range of the
values specified to those addresses are the same as those
allowed to each CNC model concerned.
3.1.9
Function for Calling
Macros with an Axis
Address