
2.MACRO COMPILER AND MACRO EXECUTOR B-63943EN-2/01
- 4 -
2.1 MACRO COMPILER
The macro compiler converts (compiles) a custom macro program (P-
CODE source program) to an executable macro program. Then, the
macro compiler links the executable macro program with compile
parameters and converts it to a MEM-format file.
The macro compiler loads the created MEM-format file into F-ROM
(FLASH ROM module).
* For details such as operation procedures, refer to "FANUC
Macro Compiler For Series 30i OPERATOR’S MANUAL (B-
66264EN).”
2.1.1 P-CODE Macro and P-CODE File
A P-CODE file is converted to a MEM-format file and the MEM-
format file is loaded from the memory card into Series 30i/300i/300is-
A F-ROM. A P-CODE file loaded into F-ROM can also be saved onto
a memory card.
Concept of saving and registering a P-CODE file
Series 30
i
/300
i
/300
i
s-A
P-CODE file
O9000;
#1=#2+#5;
:
M99;
9001=00010000
9002=10000011
:
P-CODE
source program
Compile parameter
Compile&Link
Memory card
F-ROM
LOAD
SAVE
Conversion to
the memory
card format
Compile
parameter
P-CODE
macro
P-CODE file