
3. EXECUTION MACRO
B–61803E–1/10
PROGRAMMING
28
By commanding G codes which is designated by compilation parameter
(No. 9013 to 9022), the macro programs ”O9010-O9019” registered to
the ROM can be called.
Local variables without argument designation are <Vacant>.
N_ G<gg>< Argument designation>;
A 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 each block for
the 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 by compilation parameter
(No. 9023 to 9032). the programs ”O9020 - O9029” registered to the
ROM 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