ADDITIONAL INFORMATION
FANUC Series 0i-MODEL D, FANUC Series 0i Mate-MODEL D,
FANUC Series 30i -MODEL A/B, FANUC Series 31i -MODEL A/B,
FANUC Series 32i -MODEL A/B, FANUC Series 35i -MODEL B,
FANUC Power Motion i-MODEL A
Supplemental manual for FANUC Series 0i-F support of Macro compiler
1. Type of applied technical documents
FANUC Series 0i-MODEL D, FANUC Series 0i Mate-MODEL D,
Name
FANUC Series 30i -MODEL A/B, FANUC Series 31i -MODEL A/B,
FANUC Series 32i -MODEL A/B, FANUC Series 35i -MODEL B,
FANUC Power Motion i-MODEL A
Macro Compiler PROGRAMMING MANUAL
Spec.No./Version B-64303EN-5/02
2. Summary of change
Group Name / Outline New, Applicable
Add, Date
Correct,
Delete
Basic FANUC Series 0i-F support of Macro compiler. Add Immediately
Function
Optional
Function
Unit
Maintenance
parts
Notice
Correction
Another
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 1/11
Date 11. Nov. 2014 Design Apply
General
This supplemental manual is the instructions for Macro executor support in FANUC Series 0i-F.
Series 0i-F can use the MEM-format file of Series 30i/31i/32i.
Customers that have been developed with the Series 30i can develop a Macro Executor of Series 0i-F in the
development environment for Series 30i.
Customers that have been developed with the Series 0i-D/0i Mate-D, or customers who develop a new Macro
Executor for Series 0i-F, refer to this supplemental manual.
Relationship between compiling method and MEM-format files in the Series 0i-F are shown in the table below.
MEM-format
Software Compiling method Edition
for FS0i-F
MACRO COMPILER
MCOMPI30I : For Series 30i Available 1.0 or later
A08B-9010-J600#EN07
MCOMPI -30 : For Series 30i Available 1.0 or later
MACRO COMPILER MCOMPI -0 : For Series 0i-D Not available 1.0 or later
A08B-9010-J604#EN11 MCOMPI -PM : For Power Motion i Not available 2.0 or later
MCOMPI -0F : For Series 0i-F Available 3.0 or later
Applied Software
The description concerning this supplemental manual is applied to the following software.
- MACRO COMPILER
Software Specification Edition
FANUC Series 30i, 0i-MODEL D/F, Power Motion i
A08B-9010-J604#EN11 3.0 or later
MACRO COMPILER
FANUC Series 30i, 0i-MODEL D/F, Power Motion i
A08B-9010-J605#EN11 3.0 or later
MACRO COMPILER Upgrade
* MACRO COMPILER Upgrade is for the customer who bought the MACRO COMPILER
(A08B-9010-J604#EN11).
- MACRO LIBRARY
Software Specification Edition
CNC Application Development Kit A08B-9010-J555#ZZ12 1.1 or later
* Series 0i-F MACRO LIBRARY is distributed with the CNC Application Development Kit.
Operating environment
- Operating system : Microsoft Windows98/NT/Me/2000/XP/Vista/Windows 7/Windows 8
- Empty capacity of HDD : 2MB or more
- CD-ROM drive
- DVD-ROM drive
NOTE
32Bit Windows system is supported. 64bit Windows system can not change the
installation folder. refer to 1.1 INSTALLING THE MACRO COMPILER for
details.
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 2/11
Date 11. Nov. 2014 Design Apply
1 SYSTEM INSTALLATION (SETUP)
The Macro Compiler is distributed with the CD-ROM disk. The Macro Library is distributed with the
DVD-ROM disk.
The Macro Compiler and the Macro Library are installed from each media into the hard disk and used.
1.1 INSTALLING THE MACRO COMPILER
This section describes how to install Macro Compiler into the PC hard disk.
Procedure
(1) Preparation
If FANUC Series 30i, 0i-D Macro Compiler version 1.0 is installed, upgrade can not be performed by
the installer. Before installation, Please uninstall the Macro Compiler version 1.0. For details, refer to 1.4.
(2) Installer starts up
If any programs are running, exit them all.
Set CD-ROM in the drive which can read CD-ROM. The installer starts up.
If the installer does not start up, click [Start Menu] – [Run]. Input the following in the Open field, and
then click <OK>.
(Drive name which can read CD-ROM) : \setup.exe
(3) Start up
MACRO COMPILER installer starts up. After the following window is displayed, click <Next>.
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 3/11
Date 11. Nov. 2014 Design Apply
(4) Licence Agreement
The confirmation screen of the license agreement is displayed. Then, select "I accept the terms in the
license agreement", and click <Next>.
(5) Serial number
Input the serial number included in the MACRO COMPILER package, and click <Next>.
Serial Number is not included in the MACRO COMPILER Upgrade. Input the Serial Number that
was in the MACRO COMPILER.
(6) Destination folder
Specify the folder in which MACRO COMPILER is installed, and click <Next>.
If installing on 64bit Windows, install the default folder (C:\MCOMPI\).
Can not change the installation folder.
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 4/11
Date 11. Nov. 2014 Design Apply
(7) Ready to install
The "Ready to Install the Program" window is displayed. If the installation starts, click <Install>.
(8) Install
Installation of MACRO COMPILER starts.
(9) Finish
The installation has been finished.
When the following window is displayed, click <Finish>.
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 5/11
Date 11. Nov. 2014 Design Apply
Explanation of the folders
The Macro Compiler system software and sample program are installed as follows.
C:¥MCOMPI ¥TOOL
¥MEX
¥USR ¥SAMPL ¥0IF
¥0I
¥30I
¥PMI
(a) \MCOMPI\TOOL
FANUC Macro Compiler system software, batch files, document files, and so forth are stored under
this folder.
MCOMPI.EXE, MLINKI.EXE, MMCARDI.EXE : System software
ERROR.DOC : Compilation error code table
SYSTEM.DEF : Symbol definition file in English (For $INCLUDE)
(b) \MCOMPI\MEX
The Macro Library is stored under this folder.
This is performed as described in Section 1.2, "INSTALLING THE MACRO LIBRARY".
(c) \MCOMPI\USR
Under this folder, create folders used to develop macro programs.
(d) \MCOMPI\USR\SAMPL\0IF(For series 0i-F)
(e) \MCOMPI\USR\SAMPL\0I(For series 0i-D)
(f) \MCOMPI\USR\SAMPL\30I(For series 30i/31i/32i/35i Series)
(g) \MCOMPI\USR\SAMPL\PMI(For Power Motion i)
Under this folder, the files including such a link control file, compiler/link result files, and
program files. Use these files as reference information for development.
1.2 INSTALLING THE MACRO LIBRARY
This operation loads the Macro Library under the library folder of the Macro Compiler installed by the
operation of Section 1.1.
Insert CNC Application Development Kit DVD-ROM into the drive which can read DVD-ROM,
F0iF_??.MEX (??: version number) of "\Macro Library\0i-F" in DVD-ROM is copied to
"C:\MCOMPI\MEX".
1.3 PATH SETTING
All system software is stored in the "\MCOMPI\TOOL" folder. So the PATH setting must be set from
System in Control Panel.
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 6/11
Date 11. Nov. 2014 Design Apply
1.4 UNINSTALLING THE MACRO COMPILER
The Macro Compiler is uninstalled from the PC hard disk.
The following procedures are done.
(1) Click [Start Menu] - [Control Panel].
(2) On the [Control Panel] screen, click [Programs and Features].
(3) The list of currently installed programs is displayed.
(4) Select "Macro Compiler (FANUC Series 30i 0i-D PMi)", and then click <Uninstall>.
(5) The Macro Compiler is uninstalled.
2 COMPILE
2.1 MACRO COMPILER (MCOMPI)
The Macro Compiler can compile macro programs created in the text file format. The Macro Compiler
outputs an object file for the macro linker, reference list file, and compile list file.
Procedure
The following 2 methods can be selected.
(1) Click [Start] and then click [Run].
Enter the following command line in [Open] and then click <OK>.
MCOMPI file-spec [parameters]
(2) Click [Start], click [Programs], and then click [Command Prompt]. Execute the command by
entering it at the DOS prompt.
Change the current folder to the folder in which the source program is stored by using the CD
command, and then execute the following command line.
C:\xxxxx\xxxxx> MCOMPI file-spec [parameters]
(xxxxx\xxxxx: Current folder)
* The following descriptions assume the source program to be compiled is stored in C:\.
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 7/11
Date 11. Nov. 2014 Design Apply
*1 file-spec
This specifies a macro program source file. The extension of a source file name must be .SRC.
*2 [parameters]
This specifies compile conditions.
-0F : For Series 0i-F
-0 : For Series 0i-D, Series 0i Mate-D Specify any parameter.
If this parameter is omitted,
-30 : For Series 30i, Series 31i, Series 32i, Series 35i
a compile error occurs.
-PM : For Power Motion i
Execution example
C:\> CD MCOMPI\USR\SAMPL\0IF
Change the current folder to the folder in which the source program is stored.
C:\MCOMPI\USR\SAMPL\0IF >MCOMPI *.SRC -0F
Compile all .SRC files.
Execution result
(The result is output to the current folder because no destination is specified.)
When the following command line is executed, the object file is output to C:\MCOMPI\USR\OBJ and the
compile list file to C:\MCOMPI\USR\LST.
MCOMPI *.SRC -0F -FoC:\MCOMPI\USR\OBJ -FlC:\MCOMPI\USR\LST
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 8/11
Date 11. Nov. 2014 Design Apply
2.2 MACRO LINKER (MLINKI)
According to the specification in the link control file created beforehand, the macro linker links the object
file and library file compiled by the Macro Compiler and creates a ROM-format file and link list file.
Procedure
The following 2 methods can be selected.
(1) Click [Start] and then click [Run].
Enter the following command line in [Open] and then click <OK>.
MLINKI file-spec [parameters]
(2) Click [Start], click [Programs], and then click [Command Prompt]. Execute the command by
entering it at the DOS prompt.
Change the current folder to the folder in which the object file is stored by using the CD
command, and then execute the following command line.
C:\xxxxx\xxxxx> MLINKI file-spec [parameters]
(xxxxx\xxxxx: Current folder)
* The following descriptions assume the object file is stored in C:\.
Example of link control file
In case of Series 0i-F, the library of CNC in the link control file specifies F0iF_??.MEX (??: version number).
Example:
CNC=C:\MCOMPI\MEX\F0iF_01.MEX
Execution example
C:\> CD MCOMPI\USR\SAMPL\0IF
Change the current folder to the folder in which the object file is stored.
C:\MCOMPI\USR\SAMPL\0IF >MLINKI SAMPL
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 9/11
Date 11. Nov. 2014 Design Apply
Execution result
(The output file is output to the current folder because no destination is specified.)
2.3 CONVERSION TO A MEMORY CARD FORMAT (MMCARDI)
Convert a ROM-format file created by the macro linker (MLINKI) to the memory-card format file (MEM
format file) which can be loaded from the memory card using the boot function.
Procedure
The following 2 methods can be selected.
(1) Click [Start] and then click [Run].
Enter the following command line in [Open] and then click <OK>.
MMCARDI file-spec
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 10/11
Date 11. Nov. 2014 Design Apply
(2) Click [Start], click [Programs], and then click [Command Prompt]. Execute the command by
entering it at the DOS prompt.
Change the current folder to the folder in which the source program is stored by using the CD
command, and then execute the following command line.
C:\> MMCARDI file-spec
Execution example
C:\> CD MCOMPI\USR\SAMPL\0IF
Change the current folder to the folder in which the object file is stored.
C: \MCOMPI\USR\SAMPL\0IF >MMCARDI SAMPL
Execution result
Supplemental manual for
Title FANUC Series 0i-F support of
Macro compiler.
Draw
No. B-64303EN-5/02-01
Edit Date Design Description Sheet 11/11
Date 11. Nov. 2014 Design Apply