
B-63943EN-2/01 3.EXECUTION MACRO FUNCTION
- 43 -
Example
To invalidate the call of the 1st and 3rd axes,
#8690 = (1+4) = 5 can be set. To invalidate the
call of the 1st, 16th, and 24th axes, the following
can also be specified:
#100=2
#1=1-1
#16=16-1
#24=24-1
#101=POW[#100,#1] ; 1 axis
#116=POW[#100,#16] ; 16 axes
#124=POW[#100,#24] ; 24 axes
#8690=#101+#116+#124
#8690 =8421377 can be read.
NOTE
1 It may take time until the value set for the variable is
reflected in parameters (Nos. 9010 and 9020 to
9021), depending on the CNC operation status.
Whether a macro call is enabled or disabled
depends on the values set for the parameters when
the macro call is issued.
2 This variable can be written and referenced using an
execution macro, conversational macro, or auxiliary
macro.
Selecting an execution macro
When multiple axes for which macro calls are enabled are set,
whether to always call the same execution macro or call an execution
macro for each axis can be selected using bit 4 (AXCLS) of compile
parameter (No. 9005).
AXCLS =0: Always calls O9009.
=1: First axis specification
→ Calls O9031.
Second axis specification
→ Calls O9032.
:
nth axis specification
→ Calls O9030+n