
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–61803E–1/10
PROGRAMMING
128
(User program)
O0001;
G100 X10. Z20. ;
M02
O1000;
:
G200 ;
:
M99;
O1001;
:
M99;
(Execution macro program)
O9010;
:
:
Mmm P1000;
:
M99;
O9011;
:
Mmm P1001;
:
M99;
User program cannnot be
called doubly.
(3) Multiple calls
D The number of multiple calls of user programs and execution
macro programs are limited, respectively. The number of
multiple calls of user programs called from execution macro
programs is calculated independently of the number of multiple
calls of execution macros.
Program to be called
Calling method
User program Execution macro program
Subprogram call 4 holds 4 holds
Macro call 4 holds 4 holds
D When an execution macro calls a user program, the number of
multiple calls of user program is added by one.
D When a user program calls an execution macro program, the
number of multiple calls is not added for the first call but it is
added by one from the 2nd call.