
3.EXECUTION MACRO FUNCTION B-63943EN-2/01
- 66 -
Function
Series 16i Series 30i
NC command specified in a
block containing a macro
call code based on a G or M
code
- If the NC command is specified before
the call code, it is ignored (with the
modal information updated). If the NC
command is specified after the call
code, it is treated as an argument.
- If multiple call codes are specified, the
first code is used for calling, and the
subsequent code or codes are treated
as arguments.
If the NC command is specified before the
call code, alarm PS0090 (NC
statement/macro statement duplication) is
issued. If the NC command is specified
after the call code, it is treated as an
argument.
Macro call using a G code
(specification of multiple
calls)
Modal calling is disabled. Modal calling is enabled.
Macro modal call using a G
code
Specification different from macro modal
calling based on a custom macro G code
Same specification as for macro modal
calling based on a custom macro G code
- A modal call is canceled using G167 or
the G code specified in compile
parameter (No. 9034).
- A modal call is canceled using G67 as
in the case of a custom macro.
G code for canceling a
macro modal call using a G
code
- By using a cancellation G code, the
execution macro program O9006 can be
called as a macro.
- By using a cancellation G code, no
macro can be called.
- A macro is called after modal change
using the address specified in the call
block. (By setting bits 4 and 7 of compile
parameter (No. 9101) to 1, modal
change can be disabled.)
- A macro is called without modal change
using the address specified in the call
block.
Special macro call using a
T code/axis address
- The handling of a block for calling a
single command consisting of only a call
code depends on bit 6 (NOPB) of
compile parameter (No. 6004) as
follows:
=0: An empty block is generated, then
the execution macro is called after
execution.
=1: The execution macro is called
immediately without generating an
empty block.
- No empty block is generated. (The
NOPB parameter is not used.)