
B-63943EN-2/01 3.EXECUTION MACRO FUNCTION
- 21 -
Priority of calls
If a call command is set in addition to a custom macro and another
call command, the priority order indicated below is applied.
Priority Call
High Simple call of execution macro (G65)
↑ Modal call of execution macro (G66,G66.1)
| Macro call using G code
| Macro call using G code (specification of 1 set)
| Macro call using G code (specification of 3 sets)
| Macro call using M code
| Macro call using M code (specification of 3 sets)
| Special macro call using axis address
| Special macro call using T code
| Subprogram call of execution macro (M98)
| External device subprogram call (M198)
(*1)
| Subprogram call for user program
| Subprogram call using specific code
| Subprogram call using M code
| Subprogram call using M code in the specified range
| Subprogram call using M code (specification of 3 sets)
| Subprogram call using S code
| Subprogram call using T code
↓ Subprogram call using second auxiliary function code
Low Macro call/subprogram call which calls custom macro
*1 This priority is applied when an external device subprogram call
is executed from an execution macro.
Example
When M100 is set in a macro call using an M code
and a subprogram call using an M code, it operates
as a macro call using an M code if actually
executed.
Nesting
Execution macro calls can be nested to a depth of fifteen levels
including only subprogram calls, to a depth of five levels including
only macro calls, or to a depth of fifteen levels including subprogram
calls and macro calls (to a depth of five levels for macro calls). This
does not include custom macros.
Subprogram calls for user programs and external device subprogram
calls from execution macros are included in the custom macro nesting
levels.