
B-63943EN-2/01 3.EXECUTION MACRO FUNCTION
- 15 -
3.1 GENERAL
Execution macro
An execution macro is a loaded P-CODE macro which is operated as
a machining program.
A registered P-CODE macro cannot be executed singly.
A registered P-CODE macro is called for execution from a user
program by using a call code such as G, M, S, or T specified by a
compile parameter. An execution macro allows the same
specification as done with a custom macro.
Which P-CODE to be executed by each path is set in parameter (No.
9048).
At this time, an argument can be specified in a macro call, and can be
referenced as a local variable by a P-CODE macro (execution macro).
User program / Custom macro
A user program means an NC program loaded into program memory
or an NC program to be executed as an execution macro caller during
DNC or MDI operation.
A custom macro means an NC program to be called as a macro or
subprogram in a user program.