
B–62093E–1/02
3. EXECUTION MACRO
PROGRAMMING
33
By commanding G codes which is designated, the macro programs
“O9010–O9019” registered as P–CODE program can be called.
Local variables without argument designation are <Vacant>.
N_ G<gg>< Argument designation>;
A P–CODE modal call can be used to call a macro when using G code.
When calling a G code is specified with a compilation parameter,
continuous–state calling can be specified using a negative number.
Continuous–state calling is canceled with G167 or the G code specified
by compilation parameter 9034.
During continuous–state calling, the values of address of user program are
all arguments.
Example) When compilation parameter 9013 = –100
User’s program
O0001;
:
G100X123Y456;
X789 Z678;
:
:
G167;
(Modal call cancelled or code
set to compile parameter
No.9034.)
:
M02;
P–CODE program
O9010
for each block the difined address is
called as a parameter of “09010”
and executed.
Multiple modal calls is not permitted.
By commanding M codes which is designated, the programs “O9020 –
O9029” registered as P–CODE program can be called.
Local variables without argument designation will become <Vacant> .
N_ M<mm>< Argument designation>;
3.1.4
Calling Macros
O9010–9019 by G Code
3.1.5
Modal Call Using G
Code
3.1.6
Calling Macros
O9020–9029 by M Code