
B-63943EN-2/01 3.EXECUTION MACRO FUNCTION
- 41 -
3.2.9 Special Macro Call Using Axis Address
When compile parameters (Nos. 9005#0 to 9005#3, 9008#0 to
9008#3, and 9164#0 to 9165#7) are set, an execution macro is called
using an axis address (controlled axis move command) as a macro.
Format
*1 When bit 2 (PCDC) of compile parameter (No. 9163) is set to 1,
a call can be made from an execution macro.
Selecting axes
Select the target controlled axes for a macro call using each bit of
compile parameters (Nos. 9005#0 to 9005#3, 9008#0 to 9008#3, and
9164#0 to 9165#7) for each axis. These parameters are initialized to
the values set for P-CODE at power-on.
For the target axes for a macro call, a macro call can also be disabled
using each bit of parameters (Nos. 9010 and 9020 to 9021) for each
axis for which the macro call is to be disabled as required. These
parameters can be changed using MDI because they are ordinary
parameters.
Example
When parameter (No. 9005) is set to 00000111 for
a machine having five axes, X, Y, Z, A, and C, a
macro call is enabled for X, Y, and Z axes.
When parameter (No. 9010) is set to 00000101, a
macro call is disabled for X and Z axes.
xx <argument-specification> ;
xx : Call code.
argument : Data to be passed to the execution
macro. Argument specifications I is
available.
User program
(*1)
Execution macro
O0001 ;
:
G91G01X100.0
:
M30 ;
O9009 ;
:
:
:
M99 ;
Compile parameter AXCLS(9005#4)=0