
B–62073E–2/03
3. EXECUTION MACRO
43
(10)Macro call by M code (O9020 – O9029)
By commanding designated M codes, the P–CODE programs
”O9020 – O9029” can be called by macro.
Local variables without argument designation will become <Blank>.
N_ _ M <mm> Argument designation>;
(1) P–CODE local variables for automatic operation (#1–#33)
The local variable to be used by the automatic operation P–CODE
program is the same as the local variable to be used by the normal NC
macro.
(2) P–CODE common variable for automatic operation
(#100–#199, #500–#999)
Whether the common variable to be used by the P–CODE program
is the same as that used by the normal NC macro or whether it is
different can be selected by parameter (No. 8503).
Further, when it is a different one, the common variable for the
P–CODE program can be displayed after the normal macro variable
by setting the parameter (No. 8502 #1 or No. 8502 #4).
Argument specification is possible in the case of macro call. It can be
referred to as a local variable on the P–CODE program side.
For the specification method for the argument, in the same manner as the
normal NC macro, there are possible 2 types of specification methods,
argument specification I, argument specification II, or a mixture of
argument specification I and II.
Regarding detailed specifications, refer to the FANUC Series 15
OPERATOR’S MANUAL (macro call command).
3.1.2
Variables
3.1.3
Argument Designation