
B-63943EN-2/01 3.EXECUTION MACRO FUNCTION
- 19 -
Usable call command
Call method (call source →
→→
→ call destination)
User program
→
→→
→Execution macro
Execution macro
→
→→
→Execution macro
Execution macro
→
→→
→User program
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 T code
Special macro call using axis address
Subprogram call of execution macro (M98)
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
Subprogram call using specific code
Subprogram call of user program - -
External device subprogram call (M198)
: Allowed
: Not allowed
: Depends on bit 2 (PCDC) of compile parameter (No. 9163) and
bit 6 (GMP) of parameter (No. 6008).
See "Limitations on calls" described later for details.
Limitations on calls
1) G65, G66, G66.1, or M98 cannot be used to call an execution
macro from a user program.
2) It is impossible to make a call using an M, S, T, second auxiliary
function code, or specific code from a macro program called
with a G code. It is also impossible to make a macro call using
G code from a program called using a G, M, S, T, second
auxiliary function code, or specific code. (However, this
limitation does not apply when an execution macro is called
from a user program called with a G, M, S, T, second auxiliary
function code, or specific code.)
3) The following features may be observed depending on the values
of bit 2 (PCDC) of compile parameter No. 9163 and bit 6 (GMP)
of parameter No. 6008.
In this description, calls using a G, M, S, T, second auxiliary
function code, or specific code are generically referred to as calls
using a code.