Programming Manual: FANUC Series 30 /31 /32 - MODEL A FANUC Series 30 /31 /32 - MODEL B
Programming Manual: FANUC Series 30 /31 /32 - MODEL A FANUC Series 30 /31 /32 - MODEL B
Programming Manual: FANUC Series 30 /31 /32 - MODEL A FANUC Series 30 /31 /32 - MODEL B
Macro Compiler
PROGRAMMING MANUAL
B-66263EN/03
• No part of this manual may be reproduced in any form.
• All specifications and designs are subject to change without notice.
The products in this manual are controlled based on Japan’s “Foreign Exchange and
Foreign Trade Law”. The export of Series 30i-A/B, Series 31i-A5/B5 from Japan is subject
to an export license by the government of Japan. Other models in this manual may also be
subject to export controls.
Further, re-export to another country may be subject to the license of the government of
the country from where the product is re-exported. Furthermore, the product may also be
controlled by re-export regulations of the United States government.
Should you wish to export or re-export these products, please contact FANUC for advice.
In this manual we have tried as much as possible to describe all the various matters.
However, we cannot describe all the matters which must not be done, or which cannot be
done, because there are so many possibilities.
Therefore, matters which are not especially described as possible in this manual should be
regarded as ”impossible”.
B-66263EN/03 DEFINITION OF WARNING, CAUTION, AND NOTE
WARNING
Applied when there is a danger of the user being injured or when there is a
danger of both the user being injured and the equipment being damaged if the
approved procedure is not observed.
CAUTION
Applied when there is a danger of the equipment being damaged, if the
approved procedure is not observed.
NOTE
The Note is used to indicate supplementary information other than Warning and
Caution.
s-1
B-66263EN/03 PREFACE
PREFACE
This manual describes the models indicated in the table below.
For descriptions about the FANUC Series 0/15/16/18/20/21, refer to "FANUC MACRO COMPILER
Programming Manual" (B-66102E).
In the text, the abbreviations indicated below may be used.
This software can run on Microsoft® Windows®. This manual does not describe the basic operation
procedures for Windows. It does not explain editors either.
p-1
B-66263EN/03 TABLE OF CONTENTS
TABLE OF CONTENTS
DEFINITION OF WARNING, CAUTION, AND NOTE .................................s-1
PREFACE ....................................................................................................p-1
1 GENERAL ............................................................................................... 1
1.1 FEATURES.................................................................................................... 1
1.2 OVERVIEW ................................................................................................... 1
2 EQUIPMENT CONFIGURATION ............................................................ 3
3 SYSTEM INSTALLATION (SETUP) ....................................................... 4
3.1 INSTALLING THE FANUC MACRO COMPILER (FOR Series30i/31i/32i)
SYSTEM ........................................................................................................ 4
3.2 INSTALLING THE FANUC MACRO LIBRARY (FOR Series30i/31i/32i)....... 5
3.3 PATH SETTING............................................................................................. 6
3.4 COMPILER SERIES...................................................................................... 6
4 FUNCTIONS............................................................................................ 7
4.1 MACRO COMPILER (MCOMP30I)................................................................ 7
4.2 MACRO LINKER (MLINK30I) ...................................................................... 10
4.3 CONVERSION TO A MEMORY CARD FORMAT (MCARD30I).................. 15
5 SYMBOLIC MACRO PROGRAM.......................................................... 17
6 SYMBOL DEFINITION FILE ................................................................. 23
7 HOW TO CONFIRM REFERENCE LIST/ COMPILE LIST ................... 24
APPENDIX
A SYMBOL DEFINITION .......................................................................... 27
B COMPILE ERROR CODE TABLE ........................................................ 41
C COMPILE/LINK EXAMPLE................................................................... 44
D BOOT SYSTEM..................................................................................... 65
D.1 OVERVIEW ................................................................................................. 65
D.1.1 Displaying the Power ON Sequence ......................................................................66
D.1.2 Starting the Boot System........................................................................................67
D.1.3 System Files and User Files ...................................................................................67
D.2 SCREEN CONFIGURATION AND OPERATING PROCEDURE ................ 68
D.2.1 USER DATA LOADING/SYSTEM DATA LOADING Screen...........................69
D.2.2 SYSTEM DATA CHECK Screen..........................................................................71
D.2.3 SYSTEM DATA DELETE Screen ........................................................................73
D.2.4 SYSTEM DATA SAVE Screen .............................................................................75
D.2.5 SRAM DATA UTILITY Screen ............................................................................77
D.2.6 MEMORY CARD FORMAT Screen.....................................................................79
D.2.7 LOAD BASIC SYSTEM .......................................................................................80
D.2.8 CAUTIONS............................................................................................................80
c-1
TABLE OF CONTENTS B-66263EN/03
c-2
B-66263EN/03 1.GENERAL
1 GENERAL
The FANUC Macro Compiler/Executor function stores programs created using custom macros (macro
programs) in FLASH ROM (called F-ROM in the following) so that machine tool builders can implement
their own conversational screens.
The Macro Compiler for FANUC Series 30i/31i/32i is a macro compiler utility to implement the Macro
Compiler/Executor function for Series 30i/31i/32i –MODEL A/B on personal computers available on the
market.
This manual describes the procedures ranging to transferring macro programs to Series 30i/31i/32i
–MODEL A/B via the memory card by using the macro compiler utility.
For the syntax rule for creating macro programs, refer to the “FANUC Series 30i/31i/32i –MODEL A/B
Macro Executor PROGRAMMING MANUAL (B-63943EN-2).”
1.1 FEATURES
(1) The symbolic macro compiler function allows macro programs to be coded in symbolic format, and
also allows comments to be coded.
(2) A program that references macro variables in array format can be created.
(3) Compile list output makes macro program development, debugging, and maintenance much easier.
(4) A linker (linkage editing) function is employed which allows partial compilation and also facilitates
the development and maintenance of macro programs common to several models.
1.2 OVERVIEW
The Macro Compiler/Executor function of FANUC Series 30i -MODEL A/B, 31i-MODEL A/B, 32i
-MODEL A/B (called Series 30i/31i/32i in the following) allows Series 30i/31i/32i users to develop their
own macro program in a macro language, convert it into the macro MEM file format with the macro
compiler, and execute a macro program developed by the macro executor function of Series 30i/31i/32i.
(See the conceptual diagram on the next page.)
The Macro Compiler utility allows the users to develop and compile a macro program and write it to the
macro MEM file by using a personal computer.
The macro compiler utility enables macro program development, compilation, and writing to a macro
MEM file on a personal computer.
The macro compiler utility functions are listed below.
(1) Macro compiler
• Symbolic macro program analysis
• Macro program compilation
• Object program output
• Reference list/compile list output
(2) Macro linker
• Linkage editing of specified object programs and macro executor/compile parameters
• ROM-format file output
• Link list output
(3) Memory card format conversion
• Converting macro programs to a format capable of accepting write from a memory card
The macro compiler utility is distributed with a 3.5-inch (2HD) floppy disk.
The utility does not provide functions such as those for editing macro programs, and saving and restoring
programs to and from floppy disks.
-1-
1.GENERAL B-66263EN/03
(xx.MEM)
Memory Card
Reader
/Writer
Memory
Card
-2-
B-66263EN/03 2.EQUIPMENT CONFIGURATION
2 EQUIPMENT CONFIGURATION
(1) Personal computer (IBM PC/AT series)
Table 2 (a)
Main memory 640K bytes or more
OS Microsoft Windows98/NT/Me/2000/XP/Vista
Hard disk About 1M bytes is required for install the system (Caution 1)
Floppy disk drive 3.5"Floppy Drive. (2HD)
CAUTION
1 The macro compiler utility software is installed on hard disk. This software
occupies a hard disk space of about 1M bytes. In addition, developed macro
programs and list files/object files generated at compile time are output as files
on hard disk. So the size of hard disk depends on the macro programs
developed.
2 The macro compiler utility software and macro executor are distributed with a
3.5-inch (2HD) floppy disk. A 3.5-inch floppy disk drive is needed to install the
system and executor files.
3 Only IBM PC/AT compatible machines are supported. NEC PC98 Series are not
supported.
-3-
3.SYSTEM INSTALLATION (SETUP) B-66263EN/03
Procedure
Insert the FANUC Series 30i/31i/32i Macro Compiler system floppy disk into the floppy disk drive, click
[Start], and then click [Run].
Enter the following command line in [Open] and then click <OK>.
When the command line in the Fig. 3.1 (a) is entered and then executed, the directories in the Fig. 3.1 (b)
are created on drive C: and the system software and sample programs are copied to them.
C:\MCOMP30I \TOOL
\MEX
\USR \SAMPL
-4-
B-66263EN/03 3.SYSTEM INSTALLATION (SETUP)
(b) \MCOMP30I\MEX
Library file is stored under this directory.
This is performed as described in Section 3.2, "INSTALLING THE FANUC MACRO LIBRARY".
(c) \MCOMP30I\USR
Under this directory, create directories used to develop macro programs.
C:\MCOMP30I \ TOOL
\ MEX
\ USR \ SAMPL
(d) \MCOMP30I\USR\SAMPL
Under this directory, the files including such a link control file, compiler/link result files, and
program files as described in Appendix C, “COMPILE/LINK EXAMPLE” are stored. Use these
files as reference information for development.
-5-
3.SYSTEM INSTALLATION (SETUP) B-66263EN/03
Enter the command line in the Fig. 3.2 (a) and then click <OK> to store the library files in
C:\Mcomp30I\Mex.
These Compiler systems are for the respective series only. Compiling the same macro program using
these compiler systems generates different object codes. For this reason, be sure to use the execution files
(macro compiler/linker/memory card converter) and library files suitable to the development model.
If multiple systems are to be installed on the same personal computer, it is recommended that a separate
directory be used for each CNC series.
For the FANUC Macro Compiler system for FANUC Series 0/15/16/18/20/21, see the FANUC MACRO
COMPILER PROGRAMMING MANUAL (B-66102E).
NOTE
This document focuses on MCOMP30I, MLINK30I, and MCARD30I for Series
30i/31i/32i.
-6-
B-66263EN/03 4.FUNCTIONS
4 FUNCTIONS
4.1 MACRO COMPILER (MCOMP30I)
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.
Macro Object
Program Program
MCOMP30I
(xx.SRC) (xx.REL)
MACRO COMPILER
1 O0001;
2 #100=#101+10;
Procedure
Any of the following methods can be selected, but this manual uses method (2) for description.
(1) Click [Start] and then click [Run].
Enter the following command line in [Open] and then click <OK>.
MCOMP30I 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 directory 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> MCOMP30I file-spec [parameters]
(xxxxx\xxxxx: Current directory)
* The following descriptions assume the source program to be compiled is stored in C:\.
*1 file-spec
This specifies a macro program source file. The extension of a source file name must be .SRC.
Source files to be compiled can be specified in three ways:
(1) Compilation of a single file
C:\> MCOMP30I ABC ⇒ Compiles ABC.SRC.
(2) Compilation of multiple cards by using a wild card
C:\> MCOMP30I ABC* ⇒ Compiles all files whose names start with ABC and have the
extension .SRC.
(3) Selective compilation according to link control file specification
C:\> MCOMP30I @ABC ⇒ Compiles all files specified in the link control file (file name:
ABC.LNK). (For details on the link control file, see Section 4.2,
"MACRO LINKER".)
-7-
4.FUNCTIONS B-66263EN/03
CAUTION
As described in Section 3.4, even if the same macro program is compiled, the
Macro Compiler for Series 30i/31i/32i creates an object file different from an
object file created by the Macro Compiler for Series 0/15/16/18/20/21. Select the
compiler that matches a development model.
*2 [parameters]
This specifies compile conditions.
-NR : Outputs no object file. If this parameter is omitted, an object file with the extension .REL is
output.
-L1 : Outputs no compile list file. If this parameter is omitted, a compile list file with the
extension .LST is output.
-L2 : Outputs no reference list file. If this parameter is omitted, a reference list file with the
extension .REF is output.
-L3 : Outputs a macro program file. If this parameter is omitted, no macro program file is output.
A macro program file is output with the extension .PRG.
-PR : Makes no symbolic macro program analysis. Specify this parameter when a program coded
in standard macro program format is to be compiled. No reference list file is output. Even if
this parameter is not specified, a macro program can be compiled without trouble. However,
this parameter can save time required to make a symbolic macro program analysis and can
also save space for reference list file output.
-Fo : Specifies a destination to which an object file is output. See "Specifying the
-Fr : Specifies a destination to which a reference list file is output. destinations to which the
-Fl : Specifies a destination to which a compile list file is output. compiler outputs files" given
-Fp : Specifies a destination to which a macro program file is output. later.
NOTE
Be sure to use .SRC as the extension of a file name.
Object file
An object file output by the compiler is subject to processing by the macro linker. The name of an object
file is the same as the source file name, except that the extension .REL is assigned to the object file.
-8-
B-66263EN/03 4.FUNCTIONS
Execution example
C:\> CD MCOMP30I\USR\SAMPL
→ Change the current directory to the folder in which the source program is stored.
C:\MCOMP30I\USR\SAMPL>MCOMP30I *.SRC
→ Compile all .SRC files.
Execution result
(The result is output to the current directory because no destination is specified.)
When the following command line is executed, the object file is output to C:\MCOMP30I\USR\OBJ and
the compile list file to C:\MCOMP30I\USR\LST.
-9-
4.FUNCTIONS B-66263EN/03
Link ROM
Control MLINK30I File
(xx.LNK) (xx.ROM)
Macro
Library
file
(F30IA_XX.MEX)
Procedure
Any of the following methods can be selected, but this manual uses method (2) for description.
(1) Click [Start] and then click [Run].
Enter the following command line in [Open] and then click <OK>.
MLINK30I 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 directory 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> MLINK30I file-spec [parameters]
(xxxxx\xxxxx: Current directory)
*1 file-spec
This specifies a link control file created in a specified format beforehand.
*2 [parameters]
This specifies link conditions.
-NR : Outputs no ROM-format file. If this parameter is omitted, a ROM-format file with the
extension .ROM is output.
-NL : Outputs no link list file. If this parameter is omitted, a link list file with the extension .MAP
is output.
-Fm : Specifies the destination to which a link list file is output. See the subsection describing
specification of the destination.
-Fr : Specifies the destination to which a ROM-format file is output
- 10 -
B-66263EN/03 4.FUNCTIONS
The link control file is also used as the control file for selective compilation of the Macro Compiler. (See
(3) "Selective compilation according to link control file specification" in "Procedure" in Section 4.1,
"Macro Compiler".) This function is useful when all programs to be linked are compiled.
CNC= : CNC library file name. F30iA_??.MEX for Series 30i/31i/32i (??: version number)
P9999= : Compile parameters Nos.9000 to 9199
FILE= : Object file name
(Multiple object files can be specified with each name delimited by a comma.)
SERN= : P-CODE file name
VERN= : P-CODE file edition
SERN and VERN specified with 4 alphanumeric characters are displayed, respectively, as the
SERIES and EDITION name of the macro executor on the system configuration screen. (Each
character is a 1-byte letter or number.)
Example
Assume the following statements:
SERN = ABCD /* SERIES
VERN = 0010 /* EDITION
The following will be displayed.
SYSTEM SERIES EDITION
MACRO EXE1 ABCD 0010
- 11 -
4.FUNCTIONS B-66263EN/03
Example
(1) Module division function (example of loading 3 P-CODEs for 1 path)
(2) Multi-path control function (example of a 3-path system with the 1st path used
for execution, conversational, and auxiliary macros, the 2nd path, for execution
macros only, and the 3rd path, for execution and conversational macros)
P-CODE1 file 1st path
P-CODE_NUMBER=01
Execution macro
P-CODE file for the Parameter (No.9048)=1
execution / conver- Load
sational / auxiliary Conversational macro
macro in the 1st path Parameter (No.9049)=1
Auxiliary macro
Parameter (No.9050)=1
P-CODE2 file
P-CODE_NUMBER=02
P-CODE file for the 2nd path
execution macro in the Load Execution macro
2nd path
Parameter (No.9048)=2
P-CODE3 file
P-CODE_NUMBER=03 3rd path
NOTE
1 Be sure to use .LNK as the extension of the link control file.
2 The CNC can be loaded with 1 to 20 P-CODEs.
3 When P-CODE_NUMBER is not specified, the following error occurs.
“ERROR : Can not find SYSTEM define “
- 12 -
B-66263EN/03 4.FUNCTIONS
The example above is for P-CODE file 1. The compile parameters Nos. 9000, 9010, and 9038 are set and
the object files (FRANGE_MAIN.REL, FRANGE_SUB1.REL, FRANGE_SUB2.REL,
FRANGE_SUB3.REL, SHAFT1.REL, SHAFT2.REL, and SCREEN.REL) are linked.
The specification of 0 is assumed for those compile parameters that are not specified in the link control
file.
Example
Assume that the object file is stored in C:\MCOMP30I\TEST.
Executing
C:\MCOMP30I\TEST >MLINK30I SAMPL –FmMAP –FrD:\MCOMP\LNK
generates SAMPL.MAP in C:\MCOMP30I\TEST \MAP and SAMPL.ROM in
D:\MCOMP\LNK.
- 13 -
4.FUNCTIONS B-66263EN/03
Compile parameter
Bit No.
No. #7 #6 #5 #4 #3 #2 #1 #0
9000 M3MB M2MB M1MB M512 M256 M128
9001 M4MB
Execution example
C:\> CD MCOMP30I\USR\SAMPL
→ Change the current directory to the folder in which the object file is stored.
C:\MCOMP30I\USR\SAMPL>MLINK30I SAMPL
Execution result
(The output file is output to the current directory because no destination is specified.)
- 14 -
B-66263EN/03 4.FUNCTIONS
Macro Object
Program MCOMP30I Program
(xxx.SRC) (xxx.REL)
Link MLINK30I
Control (xxx.ROM)
(xxx.LNK)
Macro MCARD30I
Library
(F30IA_XX.MEX)
To memory card
Memory Card File
COPY C:xxx.MEM F:
(F: Memory card device number) Memory
Memory Card Card File
(xxx.MEM)
Procedure
Any of the following methods can be selected, but this manual uses method (2) for description.
(1) Click [Start] and then click [Run].
Enter the following command line in [Open] and then click <OK>.
MCARD30I 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 directory to the folder in which the source program is stored by using the CD
command, and then execute the following command line.
C:\> MCARD30I file-spec
*1 file- spec
Specify the name of a ROM-format file to be converted without using an extension. A MEM format
file having the same name as the ROM-format file and the extension .MEM is created.
Execution example
C:\> CD MCOMP30I\USR\SAMPL
→ Change the current directory to the folder in which the object file is stored.
C:\MCOMP30I\USR\SAMPL>MCARD30I SAMPL
- 15 -
4.FUNCTIONS B-66263EN/03
Execution result
- 16 -
B-66263EN/03 5.SYMBOLIC MACRO PROGRAM
(2) One line can contain only one block. The end of block (EOB) is represented by a semicolon (;). All
data after a semicolon on a line is regarded as a comment.
#100=#101; COMMENT
G00 X123. Y234. ; G01; → "G01 ;" after ; is regarded as comment.
(3) All data after /* is regarded as a comment. A line starting with /* is regarded as a comment line;
such a line is not compiled.
/* comment ⇒ Compiler ignores this line as comment line.
/* comment
/*
O0001 ;
/* comment ⇒ Compiler ignores this line as comment line.
G00 ...;
;/* comment ⇒ Blank block containing only ; is created.
M99;
%
After a symbolic name is defined, the symbolic name used in a program is replaced by the corresponding
definition character string.
- 17 -
5.SYMBOLIC MACRO PROGRAM B-66263EN/03
Example
/* SYMBOL DEFINE
@COUNT1 #100
@ON =1
@OFF =0
@CURSOR #8505
@RETURN M99
/*
Program Meaning
O0001 ;
CURSOR ON ; ⇒ #8505 =1 ;
COUNT1 = COUNT1+1 ; #100 = #100+1 ;
RETURN ;
Example
/* SYMBOL DEFINE
@COUNT1 #100
>JUMP1 100
>SKIP 200
/*
Program Meaning
O0002 ;
GOTO JUMP1 ; ⇒ GOTO 100 ;
IF[COUNT1 LE 0]GOTO SKIP ; IF[#100 LE 0]GOTO 200 ;
SKIP ; N200 ;
JUMP1 M99 ; N100 M99 ;
- 18 -
B-66263EN/03 5.SYMBOLIC MACRO PROGRAM
Example
- Program file
/*
$INCLUDE \MCOMP30I\TOOL\SYSTEM.DEF
/*
Program Meaning
O0003 ;
CMACRO1=5 ; ⇒ #8500 =5 ;
RETURN ; M99 ;
Example
#100<#101> is equivalent to #[100+#101].
Example
Program file
/*
$EJECT
/* ⇒ Advances reference list page.
O0003 ;
:
Example
The left macro instructions are equivalent to the right macro instructions.
WHILE [#100] DO1 ⇒ WHILE [ #100 NE 0 ] DO1 ;
: :
END1 ; END1 ;
Format :
IF[<condition> && <condition>] GOTO xxx ;
IF[<condition> || <condition>] THEN <MACRO statement> ;
An AND is represented with an && sign and OR with an || sign. Up to three ANDs or ORs can be
specified in a single IF statement. However, an AND and OR must not be specified together in a single IF
statement.
Example
IF[#100 EQ 1 && #101 GT 0] GOTO 100 ;
IF[#100 EQ 1 || #101 NE 1 || #102 GT 10] THEN #102=1 ;
IF/THEN/ELSE/ENDIF
The syntax of an IF statement has been enhanced. Structured programming is possible using
IF/THEN/ELSE/ENDIF.
- 20 -
B-66263EN/03 5.SYMBOLIC MACRO PROGRAM
(a) When only a single macro statement is to be executed, the macro statement can be specified
immediately after THEN/ELSE as shown in (2) and (3).
IF[#100 EQ 0] THEN #101 = 1;
ELSE #101 = 2;
(b) When an instruction to be executed is an NC statement or multiple instructions to be executed, the
NC statement or multiple instructions must be specified between the THEN/ELSE line and ENDIF
line as shown in (4) and (5).
IF[#100 EQ 0] THEN ;
G01 X100 Y200 ;
ENDIF ;
When instructions with THEN and ELSE must be executed as shown in (5), the IF statement can be
specified by combining the formats in (a) and (b).
IF[#100 EQ 0] THEN #101 = 1 ;
ELSE ;
#101 = 2 ;
G00 X#103 ;
ENDIF ;
IF[...] THEN ;
IF [...] THEN ;
Statement ;
:
ELSE ; 2nd
IF[...] THEN ; level
3rd
Statement ; level
ENDIF ; 1st
ENDIF ; level
Statement ;
:
ELSE ;
Statement ;
:
ENDIF ;
- 21 -
5.SYMBOLIC MACRO PROGRAM B-66263EN/03
CAUTION
When only a single macro statement is to be executed, the macro statement can
be specified immediately after THEN/ELSE. In this case, no ENDIF statement is
usually required. However, an ENDIF statement is required when IF [...] THEN
Macro-st ; is specified just before ELSE or ENDIF of the previous nesting as
shown below:
IF[...] THEN ;
IF [...] THEN Macro-st ;
IF [...] THEN Macro-st ;
ENDIF ; ⇐ The ENDIF line is required because is specified just
ELSE ; before ELSE or ENDIF of the previous nesting.
IF [...] THEN Macro-st ;
IF [...] THEN Macro-st ;
ENDIF ; ⇐ The ENDIF line is required because is specified just
ENDIF ; before ELSE or ENDIF of the previous nesting.
- 22 -
B-66263EN/03 6.SYMBOL DEFINITION FILE
To use this file, use the external file reference function described in Item, “Reference to external file” in
Chapter 5, “SYMBOLIC MACRO PROGRAM”.
Usage example
$INCLUDE \MCOMP30I\TOOL\SYSTEM.DEF
For details, see Appendix C, “COMPILE/LINK EXAMPLE”.
For information about the defined symbols, see Appendix A, “SYMBOL DEFINITION”.
- 23 -
7.HOW TO CONFIRM REFERENCE LIST/ COMPILE LIST B-66263EN/03
- 24 -
APPENDIX
B-66263EN/03 APPENDIX A.SYMBOL DEFINITION
A SYMBOL DEFINITION
• SYSTEM.DEF (ENGLISH) \MCOMP\TOOL\SYSTEM.DEF
$NOLIST
/*
/* ***************************************************
/* * symbol define *
/* * for series 30i (V01.00 2003.04.24) *
/* ***************************************************
/*
/*
/* No.01 Control instruction code.
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@CALL M98P /* Sub program call.
@RETURN M99 /* Return to main program.
@RETURNP M99P /* Return to main program with sequence No.
/*
@DISPLAY G243 /* Character display.
@FORM F /* Format.
@DATA D /* Data.
@NSUP Z0 /* No Zero suppress.
@ZSUP Z1 /* Zero suppress.
/*
@ELASE G202 /* CRT erase.
@ELASEGR G202P1 /* Graphic erase.
@ELASECH G202P2 /* Charactor erase.
@ELASEAL G202P3 /* Graphic & Character erase.
/*
@RECTNG G204 /* Rectangle display.
/*
@GRPNT G206 /* Graphic paint out.
/*
@COLOR G240 /* Display color select.
@BLACK G240P0 /* Black.
@RED G240P1 /* Red.
@GREEN G240P2 /* Green.
@YELLOW G240P3 /* Yellow.
@BLUE G240P4 /* Blue.
@PERPLE G240P5 /* Perple.
@SKYBL G240P6 /* Sky-blue.
@WHITE G240P7 /* White.
@REDR G240P-1 /* Reverse Red.
@GREENR G240P-2 /* Reverse Green.
@YELLOWR G240P-3 /* Reverse Yellow.
@BLUER G240P-4 /* Reverse Blue.
@PERPLER G240P-5 /* Reverse Perple.
@SKYBLR G240P-6 /* Reverse Sky-blue.
@WHITER G240P-7 /* Reverse White.
/*
@BON L1 /* Blink ON
@BOF L0 /* Blink OFF
/*
@DRLINEK G244 /* Graphic Line kind select.
@DRSTART G242 /* Draw start point.
- 27 -
A.SYMBOL DEFINITION APPENDIX B-66263EN/03
- 28 -
B-66263EN/03 APPENDIX A.SYMBOL DEFINITION
@ASCREAD #8502=3 /* ASCII Data read.
/*
@KEYCODE #8501 /* MDI-KEY IN CODE.
@PAGEDW 1 /* "Page Down" KEY pushed.
@PAGEUP 2 /* "Page Up"
@CURDW 3 /* "Cursor Down"
@CURUP 4 /* "Cursor Up"
@ALTER 5 /* "Alter"
@INSRT 6 /* "Insert"
@DELET 7 /* "Delete"
@INPUT 8 /* "Input"
@START 9 /* "Start/Output"
@RESET 10 /* "Reset"
@CURRT 18 /* "Cursor Right"
@CURLF 19 /* "Cursor Left"
@PINPUT 28 /* "Input" add decimal point
/*
@SFTLF 11 /* "Soft key left" (9"CRT)
@SFT1 12 /* "Soft key 1" (9"CRT)
@SFT2 13 /* "Soft key 2" (9"CRT)
@SFT3 14 /* "Soft key 3" (9"CRT)
@SFT4 15 /* "Soft key 4" (9"CRT)
@SFT5 16 /* "Soft key 5" (9"CRT)
@SFTRT 17 /* "Soft key right" (9"CRT)
/*
@SFTFLF 20 /* "Soft key left" (14"CRT)
@SFTF1 21 /* "Soft key 1" (14"CRT)
@SFTF2 22 /* "Soft key 2" (14"CRT)
@SFTF3 23 /* "Soft key 3" (14"CRT)
@SFTF4 24 /* "Soft key 4" (14"CRT)
@SFTF5 25 /* "Soft key 5" (14"CRT)
@SFTF6 26 /* "Soft key 6" (14"CRT)
@SFTF7 27 /* "Soft key 7" (14"CRT)
@SFTF8 28 /* "Soft key 8" (14"CRT)
@SFTF9 29 /* "Soft key 9" (14"CRT)
@SFTF10 30 /* "Soft key 10" (14"CRT)
@SFTFRT 31 /* "Soft key right" (14"CRT)
- 29 -
A.SYMBOL DEFINITION APPENDIX B-66263EN/03
- 30 -
B-66263EN/03 APPENDIX A.SYMBOL DEFINITION
@PMVSTS1 #8715 /* status.
@PMVFLG2 #8720 /* PMC 2 control flag.
@PMVCMD2 #8721 /* command.
@PMVCSP2 #8722 /* cutting speed.
@PMVLNG2 #8723 /* length.
@PMVSTS2 #8725 /* status.
@PMVFLG3 #8730 /* PMC 3 control flag.
@PMVCMD3 #8731 /* command.
@PMVCSP3 #8732 /* cutting speed.
@PMVLNG3 #8733 /* length.
@PMVSTS3 #8735 /* status.
@PMVFLG4 #8740 /* PMC 4 control flag.
@PMVCMD4 #8741 /* command.
@PMVCSP4 #8742 /* cutting speed.
@PMVLNG4 #8743 /* length.
@PMVSTS4 #8745 /* status.
/*
@WINDIDX #8998 /* Window Index.
@WINDDAT #8999 /* Window Data.
/*
/*
/* No.03 System Variable.
/* ~~~~~~~~~~~~~~~~~~~~~~~
@EMPTY #0 /* "EMPTY".
@ENMTY #0 /* "EMPTY".
@[#_EMPTY] #0 /*
@[#_UI[0]] #1000 /* Interface input signals (bit) No.0
@[#_UI[1]] #1001
@[#_UI[2]] #1002
@[#_UI[3]] #1003
@[#_UI[4]] #1004
@[#_UI[5]] #1005
@[#_UI[6]] #1006
@[#_UI[7]] #1007
@[#_UI[8]] #1008
@[#_UI[9]] #1009
@[#_UI[10]] #1010
@[#_UI[11]] #1011
@[#_UI[12]] #1012
@[#_UI[13]] #1013
@[#_UI[14]] #1014
@[#_UI[15]] #1015
@[#_UI[16]] #1016
@[#_UI[17]] #1017
@[#_UI[18]] #1018
@[#_UI[19]] #1019
@[#_UI[20]] #1020
@[#_UI[21]] #1021
@[#_UI[22]] #1022
@[#_UI[23]] #1023
@[#_UI[24]] #1024
@[#_UI[25]] #1025
@[#_UI[26]] #1026
@[#_UI[27]] #1027
@[#_UI[28]] #1028
@[#_UI[29]] #1029
@[#_UI[30]] #1030
@[#_UI[31]] #1031
- 31 -
A.SYMBOL DEFINITION APPENDIX B-66263EN/03
- 32 -
B-66263EN/03 APPENDIX A.SYMBOL DEFINITION
@[#_OFSZ[3]] #2103
@[#_OFSZ[4]] #2104
@[#_OFSZ[5]] #2105
@[#_OFSZ[6]] #2106
@[#_OFSZ[7]] #2107
@[#_OFSZ[8]] #2108
@[#_OFSZ[9]] #2109
@[#_OFSZ[10]] #2100
@[#_OFSZ[11]] #2111
@[#_OFSZ[12]] #2112
@[#_OFSZ[13]] #2113
@[#_OFSZ[14]] #2114
@[#_OFSZ[15]] #2115
@[#_OFSZ[16]] #2116
@[#_OFS[1]] #2001 /* Tool compensation value No.1(M System)
@[#_OFS[2]] #2002
@[#_OFS[3]] #2003
@[#_OFS[4]] #2004
@[#_OFS[5]] #2005
@[#_OFS[6]] #2006
@[#_OFS[7]] #2007
@[#_OFS[8]] #2008
@[#_OFS[9]] #2009
@[#_OFS[10]] #2010
@[#_OFS[11]] #2011
@[#_OFS[12]] #2012
@[#_OFS[13]] #2013
@[#_OFS[14]] #2014
@[#_OFS[15]] #2015
@[#_OFS[16]] #2016
@[#_WZ_SFTX] #2501 /* X Axis Work Shift(T)
@[#_WZ_SFTZ] #2601 /* Z Axis Work Shift(T)
@ALARM #3000 /* Alarm display.
@[#_ALM] #3000 /*
@TIMER1 #3001 /* Msec Timer.
@[#_CLOCK1] #3001 /*
@TIMER2 #3002 /* Hour Timer.
@[#_CLOCK2] #3002 /*
@SBKCNT #3003 /* Single blok/Auxilialy function control.
@[#_CNTL1] #3003 /*
@FLDCNT #3004 /* Feed hold/Over ride control.
@[#_CNTL2] #3004 /*
@SETTING #3005 /* Setting data.
@[#_SETDT] #3005 /*
@[#_MSGSTP] #3006 /* Operation stopped with a message
@[#_MRIMG] #3007 /* Mirror image state (DI and setting)
@[#_PRSTR] #3008 /* Program not being restarted/program being restarted
@[#_BG_DSP] #3010 /* Back Ground Draw.
@DATE #3011 /* System date.
@[#_DATE] #3011 /*
@TIME #3012 /* System Time.
@[#_TIME] #3012 /*
@[#_PI] #3101 /* Circle ratio(=3.1415926535)
@[#_E] #3102 /* Radian(=2.718281828459)
@PARTCNT #3901 /* Part count.
@[#_PRTSA] #3901 /*
@PARTRQT #3902 /* Part request.
@[#_PRTSN] #3902 /*
- 33 -
A.SYMBOL DEFINITION APPENDIX B-66263EN/03
- 34 -
B-66263EN/03 APPENDIX A.SYMBOL DEFINITION
@[#_ACTG[5]] #4205
@[#_ACTG[6]] #4206
@[#_ACTG[7]] #4207
@[#_ACTG[8]] #4208
@[#_ACTG[9]] #4209
@[#_ACTG[10]] #4210
@[#_ACTG[11]] #4211
@[#_ACTG[12]] #4212
@[#_ACTG[13]] #4213
@[#_ACTG[14]] #4214
@[#_ACTG[15]] #4215
@[#_ACTG[16]] #4216
@[#_ACTG[17]] #4217
@[#_ACTG[18]] #4218
@[#_ACTG[19]] #4219
@[#_ACTG[20]] #4220
@[#_ACTG[21]] #4221
@[#_ACTG[22]] #4222
@[#_ACTG[23]] #4223
@[#_ACTG[24]] #4224
@[#_ACTG[25]] #4225
@[#_ACTG[26]] #4226
@[#_ACTG[27]] #4227
@[#_ACTG[28]] #4228
@[#_ACTG[29]] #4229
@[#_ACTG[30]] #4230
@[#_INTG[1]] #4401 /* Modal G-code Group 1(Interrupted block)
@[#_INTG[2]] #4402
@[#_INTG[3]] #4403
@[#_INTG[4]] #4404
@[#_INTG[5]] #4405
@[#_INTG[6]] #4406
@[#_INTG[7]] #4407
@[#_INTG[8]] #4408
@[#_INTG[9]] #4409
@[#_INTG[10]] #4410
@[#_INTG[11]] #4411
@[#_INTG[12]] #4412
@[#_INTG[13]] #4413
@[#_INTG[14]] #4414
@[#_INTG[15]] #4415
@[#_INTG[16]] #4416
@[#_INTG[17]] #4417
@[#_INTG[18]] #4418
@[#_INTG[19]] #4419
@[#_INTG[20]] #4420
@[#_INTG[21]] #4421
@[#_INTG[22]] #4422
@[#_INTG[23]] #4423
@[#_INTG[24]] #4424
@[#_INTG[25]] #4425
@[#_INTG[26]] #4426
@[#_INTG[27]] #4427
@[#_INTG[28]] #4428
@[#_INTG[29]] #4429
@[#_INTG[30]] #4430
@[#_BUFE] #4108 /* E cord(Pre. Block)
@[#_ACTE] #4308 /* (Act. block)
- 35 -
A.SYMBOL DEFINITION APPENDIX B-66263EN/03
- 36 -
B-66263EN/03 APPENDIX A.SYMBOL DEFINITION
@[#_ABSMT[6]] #5026
@[#_ABSMT[7]] #5027
@[#_ABSMT[8]] #5028
@ABSOT1 #5041 /* Current absolute position.
@ABSOT2 #5042
@ABSOT3 #5043
@ABSOT4 #5044
@ABSOT5 #5045
@ABSOT6 #5046
@ABSOT7 #5047
@ABSOT8 #5048
@[#_ABSOT[1]] #5041
@[#_ABSOT[2]] #5042
@[#_ABSOT[3]] #5043
@[#_ABSOT[4]] #5044
@[#_ABSOT[5]] #5045
@[#_ABSOT[6]] #5046
@[#_ABSOT[7]] #5047
@[#_ABSOT[8]] #5048
@ABSKP1 #5061 /* Skip cutting position.
@ABSKP2 #5062
@ABSKP3 #5063
@ABSKP4 #5064
@ABSKP5 #5065
@ABSKP6 #5066
@ABSKP7 #5067
@ABSKP8 #5068
@[#_ABSKP[1]] #5061
@[#_ABSKP[2]] #5062
@[#_ABSKP[3]] #5063
@[#_ABSKP[4]] #5064
@[#_ABSKP[5]] #5065
@[#_ABSKP[6]] #5066
@[#_ABSKP[7]] #5067
@[#_ABSKP[8]] #5068
@[#_TOFSWX] #5081 /* X AXIS Tool offset (T system)
@[#_TOFSWY] #5082 /* Y AXIS Tool offset (T system)
@[#_TOFSWZ] #5083 /* Z AXIS Tool offset (T system)
@[#_TOFS[1]] #5081 /* AXIS 1 Tool length offset (M system)
@[#_TOFS[2]] #5082
@[#_TOFS[3]] #5083
@[#_TOFS[4]] #5084
@[#_TOFS[5]] #5085
@[#_TOFS[6]] #5086
@[#_TOFS[7]] #5087
@[#_TOFS[8]] #5088
@[#_SVERR[1]] #5101 /* AXIS 1 Servo positional deviation value
@[#_SVERR[2]] #5102
@[#_SVERR[3]] #5103
@[#_SVERR[4]] #5104
@[#_SVERR[5]] #5105
@[#_SVERR[6]] #5106
@[#_SVERR[7]] #5107
@[#_SVERR[8]] #5108
@[#_MIRTP[1]] #5121 /* AXIS 1 Manual handle interrupt value
@[#_MIRTP[2]] #5122
@[#_MIRTP[3]] #5123
@[#_MIRTP[4]] #5124
- 37 -
A.SYMBOL DEFINITION APPENDIX B-66263EN/03
@[#_MIRTP[5]] #5125
@[#_MIRTP[6]] #5126
@[#_MIRTP[7]] #5127
@[#_MIRTP[8]] #5128
@[#_DIST[1]] #5181 /* AXIS 1 Dist. to go value
@[#_DIST[2]] #5182
@[#_DIST[3]] #5183
@[#_DIST[4]] #5184
@[#_DIST[5]] #5185
@[#_DIST[6]] #5186
@[#_DIST[7]] #5187
@[#_DIST[8]] #5188
@OFSEXW1 #5201 /* AXIS 1 External workpiece reference offset.
@OFSEXW2 #5202
@OFSEXW3 #5203
@OFSEXW4 #5204
@OFSEXW5 #5205
@OFSEXW6 #5206
@OFSEXW7 #5207
@OFSEXW8 #5208
@[#_WZCMN[1]] #5201
@[#_WZCMN[2]] #5202
@[#_WZCMN[3]] #5203
@[#_WZCMN[4]] #5204
@[#_WZCMN[5]] #5205
@[#_WZCMN[6]] #5206
@[#_WZCMN[7]] #5207
@[#_WZCMN[8]] #5208
@OFS54W1 #5221 /* AXIS 1 G54 workpiece reference offset.
@OFS54W2 #5222
@OFS54W3 #5223
@OFS54W4 #5224
@OFS54W5 #5225
@OFS54W6 #5226
@OFS54W7 #5227
@OFS54W8 #5228
@[#_WZG54[1]] #5221
@[#_WZG54[2]] #5222
@[#_WZG54[3]] #5223
@[#_WZG54[4]] #5224
@[#_WZG54[5]] #5225
@[#_WZG54[6]] #5226
@[#_WZG54[7]] #5227
@[#_WZG54[8]] #5228
@OFS55W1 #5241 /* AXIS 1 G55 workpiece reference offset.
@OFS55W2 #5242
@OFS55W3 #5243
@OFS55W4 #5244
@OFS55W5 #5245
@OFS55W6 #5246
@OFS55W7 #5247
@OFS55W8 #5248
@[#_WZG55[1]] #5241
@[#_WZG55[2]] #5242
@[#_WZG55[3]] #5243
@[#_WZG55[4]] #5244
@[#_WZG55[5]] #5245
@[#_WZG55[6]] #5246
- 38 -
B-66263EN/03 APPENDIX A.SYMBOL DEFINITION
@[#_WZG55[7]] #5247
@[#_WZG55[8]] #5248
@OFS56W1 #5261 /* AXIS 1 G56 workpiece reference offset.
@OFS56W2 #5262
@OFS56W3 #5263
@OFS56W4 #5264
@OFS56W5 #5265
@OFS56W6 #5266
@OFS56W7 #5267
@OFS56W8 #5268
@[#_WZG56[1]] #5261
@[#_WZG56[2]] #5262
@[#_WZG56[3]] #5263
@[#_WZG56[4]] #5264
@[#_WZG56[5]] #5265
@[#_WZG56[6]] #5266
@[#_WZG56[7]] #5267
@[#_WZG56[8]] #5268
@OFS57W1 #5281 /* AXIS 1 G57 workpiece reference offset.
@OFS57W2 #5282
@OFS57W3 #5283
@OFS57W4 #5284
@OFS57W5 #5285
@OFS57W6 #5286
@OFS57W7 #5287
@OFS57W8 #5288
@[#_WZG57[1]] #5281
@[#_WZG57[2]] #5282
@[#_WZG57[3]] #5283
@[#_WZG57[4]] #5284
@[#_WZG57[5]] #5285
@[#_WZG57[6]] #5286
@[#_WZG57[7]] #5287
@[#_WZG57[8]] #5288
@OFS58W1 #5301 /* AXIS 1 G58 workpiece reference offset.
@OFS58W2 #5302
@OFS58W3 #5303
@OFS58W4 #5304
@OFS58W5 #5305
@OFS58W6 #5306
@OFS58W7 #5307
@OFS58W8 #5308
@[#_WZG58[1]] #5301
@[#_WZG58[2]] #5302
@[#_WZG58[3]] #5303
@[#_WZG58[4]] #5304
@[#_WZG58[5]] #5305
@[#_WZG58[6]] #5306
@[#_WZG58[7]] #5307
@[#_WZG58[8]] #5308
@OFS59W1 #5321 /* AXIS 1 G59 workpiece reference offset.
@OFS59W2 #5322
@OFS59W3 #5323
@OFS59W4 #5324
@OFS59W5 #5325
@OFS59W6 #5326
@OFS59W7 #5327
@OFS59W8 #5328
- 39 -
A.SYMBOL DEFINITION APPENDIX B-66263EN/03
@[#_WZG59[1]] #5321
@[#_WZG59[2]] #5322
@[#_WZG59[3]] #5323
@[#_WZG59[4]] #5324
@[#_WZG59[5]] #5325
@[#_WZG59[6]] #5326
@[#_WZG59[7]] #5327
@[#_WZG59[8]] #5328
@[#_SKPDTC[1]] #5421 /* AXIS 1 skip point(DTC. unit) (M system)
@[#_SKPDTC[2]] #5422
@[#_SKPDTC[3]] #5423
@[#_SKPDTC[4]] #5424
@[#_SKPDTC[5]] #5425
@[#_SKPDTC[6]] #5426
@[#_SKPDTC[7]] #5427
@[#_SKPDTC[8]] #5428
@[#_FOFSP] #5500 /* Fixtur offset number (M system)
@[#_FOFSVAL[1]] #5501 /* AXIS 1 fixture offset value (M system)
@[#_FOFSVAL[2]] #5502
@[#_FOFSVAL[3]] #5503
@[#_FOFSVAL[4]] #5504
@[#_FOFSVAL[5]] #5505
@[#_FOFSVAL[6]] #5506
@[#_FOFSVAL[7]] #5507
@[#_FOFSVAL[8]] #5508
/*
/*
/* No.04 OTHER SYMBOL DEFINE.
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ON =1
@OFF =0
/*
$LIST
- 40 -
B-66263EN/03 APPENDIX B.COMPILE ERROR CODE TABLE
- 41 -
B.COMPILE ERROR CODE TABLE APPENDIX B-66263EN/03
- 42 -
B-66263EN/03 APPENDIX B.COMPILE ERROR CODE TABLE
- 43 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
C COMPILE/LINK EXAMPLE
The compile/link example described below is created under the directory
C:\MCOMP30I\USR\SAMPL
when the macro compiler utility system is installed.
Details of sample:
Times required for instruction execution by each of the conversational macros are measured:
1. #100 = #101+#102 ;
2. #100 = #101 AND #102 ;
3. #100 = SIN [#101] ;
The number of test operations is set beforehand in the common variable (#500). Time required for
looping by the number of test operations by the WHILE instruction is measured by the timer variable
(#3001). Then time required for the same number of loops by the WHILE instruction containing an
instruction subject to measurement is measured. Thus the difference between two measurement times is
the execution time of the instruction subject to measurement.
(1) Programs created
File name = MAIN.SRC Main source program file
File name = SUB1.SRC Subprogram source file
File name = MAIN.REF Main program reference list file
File name = MAIN.LST Main program compile list file
File name = MAIN.REL Main program object file
File name = SUB1.REF Subprogram reference list file
File name = SUB1.LST Subprogram compile list file
File name = SUB1.REL Subprogram object file
(2) Macro liner
File name = SAMPL.LNK Link control file
File name = SAMPL.MAP Link map list file
File name = SAMPL.ROM ROM-format file
- 44 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
Main program source file File name : MAIN.SRC
/*
/* SAMPLE Program.
/*
/* Conversation MACRO Execution-Time Test Program.
/* (Vol 01.00 2003.04.10)
/*
/*
/* ( MAIN Program )
/*
/*
/* Symbol define.
/*
/* System common symbole FILE Include.
/*
$INCLUDE C:\MCOMP30I\TOOL\SYSTEM.DEF
/*
/*
@LOOPCT #500 /* TEST Loop count.
@TIMESAV #501 /* No-operatinon Time save.
@TSTTIME #502 /* Measured Time save.
/*
/*
@COUNT #100 /* Loop counter work.
@WORK #100 /* Work regster.
/*
/*
>LOOP 100 /* GOTO Sequense No. define.
>FIN 999
/*
/*
$EJECT
/*
/* No. O1000 : Main program.
/*
O1000 ;
NUMREAD ; Numeric data input.
CURSOR OFF ; Cursol OFF
DISPLAY X0 Y0 B0 ('EXECUTION TIME TEST') ; "MENU" display.
X2 Y2 ('1.#101=#102+#103') ;
X2 Y3 ('2.#101=#102 AND #103') ;
X2 Y4 ('3.#101=SIN[#102]') ;
;
LOOP DISPLAY X8 Y11 B1 (SELECT TEST NO.) ;
IF [KEYCODE NE INPUT]GOTO FIN ; "INPUT" key push ?
IF [KEYDATA LT 1]GOTO FIN ; 0 < DATA < 3 chk.
IF [KEYDATA GT 3]GOTO FIN ;
; No-ope. Time GET.
COUNT = LOOPCT ; Loop counter set.
TIMER1 = 0 ; Timer initialize.
WHILE[COUNT GT 0]DO1 ;
COUNT = COUNT -1 ; No-operation loop.
END1 ;
TIMESAV = TIMER1 ; Sample time save.
;
TAIWAP1 = KEYDATA*100+1000 ; Jump To TEST progra.
; O1x00:x=key in data.
- 45 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
;
FIN RETURNP LOOP ; END of conv. MACRO.
/*
/*
$EJECT
/*
/*
/* No. O1001 : Answer display sub program.
/*
/* LOOPCT : TEST Loop count.
/* TIMESAV : No-operatinon Time.
/* TSTTIME : Measured Time.
/*
O1001 ;
DISPLAY X5 Y4 B0 (SAMPLE COUNTER) ; Loop count display.
X20 Y4 FORM 6 ZSUP DATA LOOPCT ;
;
X5 Y6 (TOTAL TIME) ; Total measuer Time
X20 Y6 DATA [TSTTIME-TIMESAV] K1 (MSEC) ; display.
;
WORK = [TSTTIME-TIMESAV] / LOOPCT ; 1 operation Time
X5 Y8 (ONE OPERATION) ; display.
X20 Y8 FORM 5.2 DATA WORK K1 (MSEC) ;
;
RETURN ; Return to main.
/*
/*
%
- 46 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
Main program reference list file File name : MAIN.REF
S-Line G-Line
1 /*
2 /* SAMPLE Program.
3 /*
4 /* Conversation MACRO Execution-Time Test Program.
5 /* (Vol 01.00 2003.04.10)
6 /*
7 /*
8 /* ( MAIN Program )
9 /*
10 /*
11 /* Symbol define.
12 /*
13 /* System common symbole FILE Include.
14 /*
15 $INCLUDE C:\MCOMP30I\TOOL\SYSTEM.DEF
16 $NOLIST
796 /*
797 /*
798 @LOOPCT #500 /* TEST Loop count.
799 @TIMESAV #501 /* No-operatinon Time save.
800 @TSTTIME #502 /* Measured Time save.
801 /*
802 /*
803 @COUNT #100 /* Loop counter work.
804 @WORK #100 /* Work regster.
805 /*
806 /*
807 >LOOP 100 /* GOTO Sequense No. define.
808 >FIN 999
809 /*
810 /*
811 $EJECT
S-Line G-Line
812 /*
813 /* No. O1000 : Main program.
814 /*
815 0001 O1000 ;
816 0002 NUMREAD ; Numeric data input.
817 0003 CURSOR OFF ; Cursol OFF
818 0004 DISPLAY X0 Y0 B0 ('EXECUTION TIME TEST') ; "MENU" display.
819 0005 X2 Y2 ('1.#101=#102+#103') ;
- 47 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
S-Line G-Line
842 /*
843 /*
844 /* No. O1001 : Answer display sub program.
845 /*
846 /* LOOPCT : TEST Loop count.
847 /* TIMESAV : No-operatinon Time.
848 /* TSTTIME : Measured Time.
849 /*
850 0025 O1001 ;
851 0026 DISPLAY X5 Y4 B0 (SAMPLE COUNTER) ; Loop count display.
852 0027 X20 Y4 FORM 6 ZSUP DATA LOOPCT ;
853 0028 ;
854 0029 X5 Y6 (TOTAL TIME) ; Total measuer Time
855 0030 X20 Y6 DATA [TSTTIME-TIMESAV] K1 (MSEC); display.
856 0031 ;
857 0032 WORK = [TSTTIME-TIMESAV] / LOOPCT ; 1 operation Time
858 0033 X5 Y8 (ONE OPERATION) ; display.
859 0034 X20 Y8 FORM 5.2 DATA WORK K1 (MSEC) ;
860 0035 ;
861 0036 RETURN ; Return to main.
862 /*
863 /*
864 0037 %
- 48 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
- 49 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
G-Line P-Line
0001 1 O1000;
0002 2 #8502=1;
0003 3 #8505=0;
0004 4 G243X0Y0B0 (*0045 0058 0045 0043 0055 0054 0049 004F004E 0020 0054 0049 004D
0045 0020 0054 0045 0053 0054*);
0005 5 X2Y2 (*0031 002E 0023 0031 0030 0031 003D 0023 0031 0030 0032 002B 0023 0031
0030 0033*);
0006 6 X2Y3 (*0032 002E 0023 0031 0030 0031 003D 0023 0031 0030 0032 0020 0041 004E
0044 0020 0023 0031 0030 0033*);
0007 7 X2Y4 (*0033 002E 0023 0031 0030 0031 003D 0053 0049 004E 005B 0023 0031 0030
0032 005D*);
0008 8 ;
0009 9 N100G243X8Y11B1 (SELECT TEST NO.);
0010 10 IF [#8501NE8] GOTO999;
0011 11 IF [#8503LT1] GOTO999;
0012 12 IF [#8503GT3] GOTO999;
0013 13 ;
0014 14 #100=#500;
0015 15 #3001=0;
0016 16 WHILE [#100GT0] DO1;
0017 17 #100=#100-1;
0018 18 END1;
0019 19 #501=#3001;
0020 20 ;
0021 21 #8500=#8503*100+1000;
0022 22 ;
0023 23 ;
0024 24 N999M99P100;
----------------------------------------------------------------------
0 errors, 24 blocks, 24 total lines
program size = 250 bytes
25-Apr-2003 12:11:55 Page 2
(FS30i) Macro Compiler V01.0 MAIN.SRC
--------------------- Cross Reference --------------------------------
#100 : 14, 16, 17, 17,
#500 : 14,
#501 : 19,
#3001 : 15, 19,
#8500 : 21,
#8501 : 10,
#8502 : 2,
#8503 : 11, 12, 21,
#8505 : 3,
- 50 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
25-Apr-2003 12:11:55 Page 3
(FS30i) Macro Compiler V01.0 MAIN.SRC
---------- program O1001 ---------------------------------------------
G-Line P-Line
0025 1 O1001;
0026 2 G243X5Y4B0 (SANPLE COUNTER);
0027 3 X20Y4F6Z1D#500;
0028 4 ;
0029 5 X5Y6 (TOTAL TIME);
0030 6 X20Y6D [#502-#501] K1 (MSEC);
0031 7 ;
0032 8 #100= [#502-#501] /#500;
0033 9 X5Y8 (ONE OPERATION) ;
0034 10 X20Y8F5.2D#100K1 (MSEC);
0035 11 ;
0036 12 M99;
0037 13 %
----------------------------------------------------------------------
0 errors, 13 blocks, 13 total lines
program size = 145 bytes
25-Apr-2003 12:11:55 Page 4
(FS30i) Macro Compiler V01.0 MAIN.SRC
- 51 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
/*
/* SAMPLE Program.
/*
/* Conversation MACRO Execution-Time Test Program.
/* (Vol 01.00 2003.04.10)
/*
/*
/* ( SUB Program )
/*
/*
/* Symbol define.
/*
/* System common symbole FILE Include.
/*
$INCLUDE C:\\MCOMP30I\TOOL\SYSTEM.DEF
/*
/*
@LOOPCT #500 /* TEST Loop count.
@TIMESAV #501 /* No-operatinon Time save.
@TSTTIME #502 /* Measured Time save.
/*
/*
@COUNT #100 /* Loop counter work.
@MAINPR 1000 /* MAIN Program No.
@DISPSUB 1001 /* Answer display SUB Program.
/*
/*
>LOOP 100 /* GOTO Sequense No. define.
>FIN 999
/*
/*
$EJECT
/*
/*
/* (#101=#102+#103) Operation Time Test.
/*
/* No. O1100 : SUB program.
/*
/*
O1100 ;
NOREAD ; NO data read.
;
DISPLAY X2 Y2 B0 ('#101=#102+#103 TEST') ; Operation code disp.
;
COUNT = LOOPCT ; Loop counter set.
TIMER1 = 0 ; Timer initialize.
WHILE[COUNT GT 0]DO1 ;
#101 = #102 + #103 ; (Time Measure)
COUNT = COUNT -1 ;
END1 ;
;
TSTTIME = TIMER1 ; Measure Time save.
;
CALL DISPSUB ; Measure Time disp.
;
LOOP DISPLAY X8 Y11 B1 (PUSH RESET KEY) ;
- 52 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
IF[KEYCODE EQ RESET]GOTO FIN ; "RESET" key wait.
RETURNP LOOP ;
;
FIN TAIWAP1 = MAINPR ;
RETURN ;
/*
$EJECT
/*
/*
/* (#101=#102 AND #103) Operation Time Test.
/*
/* No. O1200 : SUB program.
/*
/*
O1200 ;
NOREAD ; NO data read.
;
DISPLAY X2 Y2 B0 ('#101=#102 AND #103 TEST'); Operation code disp.
;
COUNT = LOOPCT ; Loop counter set.
TIMER1 = 0 ; Timer initialize.
WHILE[COUNT GT 0]DO1 ;
#101 = #102 AND #103 ; (Time Measure)
COUNT = COUNT -1 ;
END1 ;
;
TSTTIME = TIMER1 ; Measure Time save.
;
CALL DISPSUB ; Measure Time disp.
;
LOOP DISPLAY X8 Y11 B1 (PUSH RESET KEY) ;
IF[KEYCODE EQ RESET]GOTO FIN ; "RESET" key wait.
RETURNP LOOP ;
;
FIN TAIWAP1 = MAINPR ;
RETURN ;
/*
$EJECT
/*
/*
/* (#101=SIN[#102]) Operation Time Test.
/*
/* No. O1300 : SUB program.
/*
/*
O1300 ;
NOREAD ; NO data read.
;
DISPLAY X2 Y2 B0 ('#101=SIN[#102]') ; Operation code disp.
;
COUNT = LOOPCT ; Loop counter set.
TIMER1 = 0 ; Timer initialize.
WHILE[COUNT GT 0]DO1 ;
#101 = SIN[#102] ; (Time Measure)
COUNT = COUNT -1 ;
END1 ;
;
TSTTIME = TIMER1 ; Measure Time save.
- 53 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
;
CALL DISPSUB ; Measure Time disp.
;
LOOP DISPLAY X8 Y11 B1 (PUSH RESET KEY) ;
IF[KEYCODE EQ RESET]GOTO FIN ; "RESET" key wait.
RETURNP LOOP ;
;
FIN TAIWAP1 = MAINPR ;
RETURN ;
%
- 54 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
Subprogram reference list file File name : SUB1.REF
---------------------------------------------------------------------
Fri Apr-25-2003 12:11:55 Page 1
(FS30i) Macro Compiler (Pre) V01.0 SUB1.SRC
S-Line G-Line
1 /*
2 /* SAMPLE Program.
3 /*
4 /* Conversation MACRO Execution-Time Test Program.
5 /* (Vol 01.00 2003.04.10)
6 /*
7 /*
8 /* ( SUB Program )
9 /*
10 /*
11 /* Symbol define.
12 /*
13 /* System common symbole FILE Include.
14 /*
15 $INCLUDE C:\\MCOMP30I\TOOL\SYSTEM.DEF
16 $NOLIST
796 /*
797 /*
798 @LOOPCT #500 /* TEST Loop count.
799 @TIMESAV #501 /* No-operatinon Time save.
800 @TSTTIME #502 /* Measured Time save.
801 /*
802 /*
803 @COUNT #100 /* Loop counter work.
804 @MAINPR 1000 /* MAIN Program No.
805 @DISPSUB 1001 /* Answer display SUB Program.
806 /*
807 /*
808 >LOOP 100 /* GOTO Sequense No. define.
809 >FIN 999
810 /*
811 /*
812 $EJECT
S-Line G-Line
813 /*
814 /*
815 /* (#101=#102+#103) Operation Time Test.
816 /*
817 /* No. O1100 : SUB program.
818 /*
819 /*
820 0001 O1100 ;
821 0002 NOREAD ; NO data read.
- 55 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
822 0003 ;
823 0004 DISPLAY X2 Y2 B0 ('#101=#102+#103 TEST') ; Operation code disp.
824 0005 ;
825 0006 COUNT = LOOPCT ; Loop counter set.
826 0007 TIMER1 = 0 ; Timer initialize.
827 0008 WHILE[COUNT GT 0]DO1 ;
828 0009 #101 = #102 + #103 ; (Time Measure)
829 0010 COUNT = COUNT -1 ;
830 0011 END1 ;
831 0012 ;
832 0013 TSTTIME = TIMER1 ; Measure Time save.
833 0014 ;
834 0015 CALL DISPSUB ; Measure Time disp.
835 0016 ;
836 0017 LOOP DISPLAY X8 Y11 B1 (PUSH RESET KEY) ;
837 0018 IF[KEYCODE EQ RESET]GOTO FIN ; "RESET" key wait.
838 0019 RETURNP LOOP ;
839 0020 ;
840 0021 FIN TAIWAP1 = MAINPR ;
841 0022 RETURN ;
842 /*
843 /*
844 $EJECT
S-Line G-Line
845 /*
846 /*
847 /* (#101=#102 AND #103) Operation Time Test.
848 /*
849 /* No. O1200 : SUB program.
850 /*
851 /*
852 0023 O1200 ;
853 0024 NOREAD ; NO data read.
854 0025 ;
855 0026 DISPLAY X2 Y2 B0 ('#101=#102 AND #103 TEST') ; Operation code disp.
856 0027 ;
857 0028 COUNT = LOOPCT ; Loop counter set.
858 0029 TIMER1 = 0 ; Timer initialize.
859 0030 WHILE[COUNT GT 0]DO1 ;
860 0031 #101 = #102 AND #103 ; (Time Measure)
861 0032 COUNT = COUNT -1 ;
862 0033 END1 ;
863 0034 ;
864 0035 TSTTIME = TIMER1 ; Measure Time save.
865 0036 ;
866 0037 CALL DISPSUB ; Measure Time disp.
867 0038 ;
868 0039 LOOP DISPLAY X8 Y11 B1 (PUSH RESET KEY) ;
869 0040 IF[KEYCODE EQ RESET]GOTO FIN ; "RESET" key wait.
870 0041 RETURNP LOOP ;
871 0042 ;
872 0043 FIN TAIWAP1 = MAINPR ;
873 0044 RETURN ;
- 56 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
874 /*
875 /*
876 $EJECT
S-Line G-Line
877 /*
878 /*
879 /* (#101=SIN[#102]) Operation Time Test.
880 /*
881 /* No. O1300 : SUB program.
882 /*
883 /*
884 0045 O1300 ;
885 0046 NOREAD ; NO data read.
886 0047 ;
887 0048 DISPLAY X2 Y2 B0 ('#101=SIN[#102]') ; Operation code disp.
888 0049 ;
889 0050 COUNT = LOOPCT ; Loop counter set.
890 0051 TIMER1 = 0 ; Timer initialize.
891 0052 WHILE[COUNT GT 0]DO1 ;
892 0053 #101 = SIN[#102] ; (Time Measure)
893 0054 COUNT = COUNT -1 ;
894 0055 END1 ;
895 0056 ;
896 0057 TSTTIME = TIMER1 ; Measure Time save.
897 0058 ;
898 0059 CALL DISPSUB ; Measure Time disp.
899 0060 ;
900 0061 LOOP DISPLAY X8 Y11 B1 (PUSH RESET KEY) ;
901 0062 IF[KEYCODE EQ RESET]GOTO FIN ; "RESET" key wait.
902 0063 RETURNP LOOP ;
903 0064 ;
904 0065 FIN TAIWAP1 = MAINPR ;
905 0066 RETURN ;
906 0067 %
- 57 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
- 58 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
Subprogram compile list file File name : SUB1.LST
G-Line P-Line
0001 1 O1100;
0002 2 #8502=0;
0003 3 ;
0004 4 G243X2Y2B0(*23 31 30 31 3D 23 31 30 32 2B 23 31 30 33 20 54 45 53 54*);
0005 5 ;
0006 6 #100=#500;
0007 7 #3001=0;
0008 8 WHILE[#100GT0]DO1;
0009 9 #101=#102+#103;
0010 10 #100=#100-1;
0011 11 END1;
0012 12 ;
0013 13 #502=#3001;
0014 14 ;
0015 15 M98P1001;
0016 16 ;
0017 17 N100G243X8Y11B1(PUSH RESET KEY);
0018 18 IF[#8501EQ10]GOTO999;
0019 19 M99P100;
0020 20 ;
0021 21 N999#8500=1000;
0022 22 M99;
----------------------------------------------------------------------
#8502 : 2,
G-Line P-Line
0023 1 O1200;
0024 2 #8502=0;
0025 3 ;
0026 4 G243X2Y2B0(*23 31 30 31 3D 23 31 30 32 20 41 4E 44 20 23 31 30 33 20 54
45 53 54*);
0027 5 ;
0028 6 #100=#500;
0029 7 #3001=0;
0030 8 WHILE[#100GT0]DO1;
0031 9 #101=#102AND#103;
0032 10 #100=#100-1;
0033 11 END1;
0034 12 ;
0035 13 #502=#3001;
0036 14 ;
0037 15 M98P1001;
0038 16 ;
0039 17 N100G243X8Y11B1(PUSH RESET KEY);
0040 18 IF[#8501EQ10]GOTO999;
0041 19 M99P100;
0042 20 ;
0043 21 N999#8500=1000;
0044 22 M99;
----------------------------------------------------------------------
- 60 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
(FS30i) Macro Compiler V01.0 SUB1.SRC
G-Line P-Line
0045 1 O1300;
0046 2 #8502=0;
0047 3 ;
0048 4 G243X2Y2B0(*23 31 30 31 3D 53 49 4E 5B 23 31 30 32 5D*);
0049 5 ;
0050 6 #100=#500;
0051 7 #3001=0;
0052 8 WHILE[#100GT0]DO1;
0053 9 #101=SIN[#102];
0054 10 #100=#100-1;
0055 11 END1;
0056 12 ;
0057 13 #502=#3001;
0058 14 ;
0059 15 M98P1001;
0060 16 ;
0061 17 N100G243X8Y11B1(PUSH RESET KEY);
0062 18 IF[#8501EQ10]GOTO999;
0063 19 M99P100;
0064 20 ;
0065 21 N999#8500=1000;
0066 22 M99;
0067 23 %
----------------------------------------------------------------------
- 61 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
P9000 = 00000100
P9001 = 00000000
P9002 = 00100000
P9003 = 00000001
P9004 = 00000000
P9005 = 00000000
P9006 = 00000000
P9007 = 00000000
P9008 = 00000000
P9009 = 00000000
P9010 = 0
P9011 = 0
P9012 = 0
P9013 = 0
P9014 = 0
P9015 = 0
P9016 = 0
P9017 = 0
P9018 = 0
P9019 = 0
P9020 = 0
P9021 = 0
P9022 = 0
P9023 = 0
P9024 = 0
P9025 = 0
P9026 = 0
P9027 = 0
P9028 = 0
P9029 = 0
P9030 = 0
P9031 = 0
P9032 = 0
P9033 = 0
P9038 = 1000
P9039 = 0
P9040 = 0
P9041 = 0
P9042 = 0
P9043 = 0
P9045 = 0
P9046 = 0
P9047 = 0
P9048 = 0
- 62 -
B-66263EN/03 APPENDIX C.COMPILE/LINK EXAMPLE
P9049 = 0
P9054 = 0
P9056 = 0
P9100 = 00000001
P9105 = 00000000
P9111 = 0
P9112 = 0
P9113 = 0
P9114 = 0
P9115 = 0
P9116 = 0
P9117 = 0
P9118 = 0
P9119 = 0
P9120 = 0
P9121 = 0
P9122 = 0
P9123 = 0
P9124 = 0
P9125 = 0
P9126 = 0
P9127 = 0
P9128 = 0
P9129 = 0
P9130 = 0
P9131 = 0
P9132 = 0
P9133 = 0
P9134 = 0
P9135 = 0
P9136 = 0
P9137 = 0
P9160 = 00000000
P9163 = 00000000
P9164 = 00000000
P9165 = 00000000
P9167 = 00000000
- 63 -
C.COMPILE/LINK EXAMPLE APPENDIX B-66263EN/03
- 64 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
D BOOT SYSTEM
D.1 OVERVIEW
The Boot System load the CNC system software (Flash ROM → DRAM), then starts it so that software
can be executed. The Boot System provides the following maintenance functions for the CNC:
This manual describes the activation of the Boot System, as well as the screen displays and operation for
the functions listed above.
CAUTION
1 This control unit supports the use of a Memory card as an input/output device. A
Flash ATA card is available. See the order list for details of the supported
Memory card types.
2 On a Memory card, only those files that are in the root directory can be accessed
for display, reading, and writing. Those in subdirectories cannot be used.
3 The time required to read or write each data item varies depending on the
Memory card type, the status of use, and other factors.
4 For Flash ATA cards, only those recommended by FANUC are available.
5 When formatting a Flash ATA card, use the quick formatting method, which
clears the file allocation table and the directory information on the root directory.
Any Flash ATA card yet to be formatted is supposed to be formatted in FAT16
format on a PC. (No ATA card in FAT32 format is recognized.)
- 65 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
- 66 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
1 2 3 4 5 6 7
Fig. D.1.2 (a)
After an FROM ID and other items are displayed on the CNC screen, releasing the key brings you to
the SYSTEM MONITOR screen.
(2) When the Flash ROM does not contain a file required to start the CNC
Immediately after the CNC is turned on, the Boot System starts transferring files from Flash ROM to
DRAM. If, for some reason, a file required to start the CNC (NC BASIC) is not in Flash ROM or
has been destroyed, the Boot System is automatically started.
System files
CNC and servo control software provided by FANUC
User files
PMC sequence program (ladder), P-CODE macro program, and other user-created files
- 67 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
Operating procedure
Press the [UP] or [DOWN] soft key to select the desired function. After positioning the cursor to the
desired function, press the [SELECT] soft key. Before executing a function, the system may request
confirmation from the operator by having him/her press the [YES] or [NO] soft key.
Basic operation
Position the cursor. Select a function Check the selection
[ UP ] [SELECT] [ YES ]
[ DOWN ] [ NO ]
- 68 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
Screen configuration
(1) SYSTEM DATA LOADING (1) Screen title.
(2) MEMORY CARD DIRECTORY (FREE[KB]: 5123) (2) The size of the free space of the
(3) 1 P_CODE01.MEM 65952 2003-01-01 12:00 Memory card is displayed.
2 P_CODE02.MEM 65952 2003-01-01 12:00 (3) A list of files in the Memory card is
(4) 3 END displayed.
(4) Returning to the MAIN MENU.
Operating procedure
(1) Position the cursor to the file to be read from the Memory card and written to Flash ROM. Then,
press the [SELECT] soft key.
- A single page can list up to ten file names.
- If the Memory card contains ten or more files, the remaining files are displayed on another page.
To display the next page, press the soft key. To display the previous page, press the
soft key.
The END option is displayed on the last page.
(2) When you select a file from the USER DATA LOADING screen, you are prompted for
confirmation.
SYSTEM DATA LOADING
MEMORY CARD DIRECTORY (FREE[KB]: 5123)
1 P_CODE01.MEM 65952 2003-01-01 12:00
2 P_CODE02.MEM 65952 2003-01-01 12:00
3 END
- 69 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
(3) When you select a file from the SYSTEM DATA LOADING screen, a ROM data confirmation
screen is displayed for confirmation. Since the P code does not include parity information for each
management unit, it does not become a particular character string.
SYSTEM DATA CHECK & DATA LOADING
P_CODE01.MEM
1 496@ 14A@
(4) To start loading, press the [YES] soft key. To cancel, press the [NO] key.
*** MESSAGE ***
LOADING FROM MEMORY CARD xxxxxx/xxxxxx
(5) When loading terminates normally, the system displays the following message. Press the [SELECT]
soft key. If an error occurs, see D.3
*** MESSAGE ***
LOADING COMPLETE.
HIT SELECT KEY.
[SELECT][ YES ][ NO ][ UP ][ DOWN ]
- 70 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
Screen configuration
(1) SYSTEM DATA CHECK (1) Screen title.
- 71 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
Operating procedure
(1) Select either the FROM SYSTEM or MEMORY CARD SYSTEM screen.
(2) Select the file that you want to confirm (for example, "NC BAS-1 (0008)").
(3) For the selected file, the management unit numbers are listed, together with the series and editions of
the management units. After checking the listed data, select the [SELECT] soft key to return to the
file selection screen.
Others (Parity information for the system file and user file)
The NC BAS-1, DGD0SRVO, and other system files in Flash ROM contain parity information in each
management unit. If the file name field or parity field on the check screen contains a non-ASCII character
or an "@", the Flash ROM may have been destroyed or a damaged file may have been read. Re-read the
data from the Memory card.
The PMC1, and other user files do not contain parity information in each management unit. A non-ASCII
character or an "@" may appear in the series/edition information. In this case, it does not indicate that the
file has been damaged.
- 72 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
Screen configuration
(1) SYSTEM DATA DELETE (1) Screen title.
- 73 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
Operating procedure
(1) Select either the FROM SYSTEM or MEMORY CARD SYSTEM screen.
(3) The message in the Fig. D.2.3 (d) is displayed for confirmation.
*** MESSAGE ***
DELETE OK ? HIT YES OR NO.
(4) Click the [YES] soft key to start deleting. Click [NO] to cancel deleting.
*** MESSAGE ***
EXECUTING
ADDRESS xxxx:
[SELECT][ YES ][ NO ][ UP ][ DOWN ]
(5) Upon normal termination, a message such as that shown Fig D.2.3 (f) is displayed. Click the
[SELECT] soft key. In the event of an error, see the list of error messages and corrective actions,
given later.
*** MESSAGE ***
DELETE COMPLETE. HIT SELECT KEY.
Others (System files and user files on SYSTEM DATA DELETE screen)
The system files are protected from accidental deletion. User files, however, are not protected.
- 74 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
Screen configuration
(1) SYSTEM DATA SAVE (1) Screen title.
FROM DIRECTORY
(2) 1 NC BAS-1(0008) (2) Names of files in Flash ROM
2 NC BAS-2(0008) The number of management units
3 NC BAS-3(0008) constituting each file appears in
4 NC BAS-4(0008) parentheses to the right of the filename.
5 DGD0SRVO(0003)
6 PS0B (0006)
7 PMC1 (0001)
(3) 8 END (3) Returning to the MAIN MENU.
Operating procedure
(1) Select the file you want to save.
(2) The system displays the confirmation message in the Fig. D.2.4 (b) :
*** MESSAGE ***
SYSTEM DATA SAVE OK ? HIT YES OR NO.
(3) To start saving, press the [YES] key. To cancel, press [NO].
*** MESSAGE ***
STORE TO MEMORY CARD
(4) When saving terminates normally, the system displays the message in the Fig. D.2.4 (d). Press the
[SELECT] key. The names of files written to the Memory card are listed. Check the file names by,
for example, making a note of the list.
*** MESSAGE ***
FILE SAVE COMPLETE. HIT SELECT KEY.
SAVE FILE NAME : PMC1.000
[SELECT][ YES ][ NO ][ UP ][ DOWN ]
- 75 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
Others (System files and user files on SYSTEM DATA SAVE screen)
The SYSTEM DATA SAVE function provides a safeguard against free copying of the system files.
User files, however, are not protected.
Files saved from Flash ROM to a Memory card have the names in the Table D.2.4 (a) :
- 76 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
Screen configuration
(1) SRAM DATA UTILITY (1) Screen title.
(2) If the data cannot be saved entirely onto a single Memory card, a message such as that shown Fig.
D.2.5 (b) is displayed. With the power still on, insert the second Memory card and click the [YES]
key. Press the [NO] key to cancel saving.
*** MESSAGE ***
SET MEMORY CARD NO.002
ARE YOU SURE ? HIT YES OR NO.
[SELECT][ YES ][ NO ][ UP ][ DOWN ]
(3) In this way, you can divide SRAM data onto a maximum of 999 Memory card for backup.
(4) Upon the termination of backup, a message such as that shown Fig. D.2.5 (c) is displayed. Click the
[SELECT] key to terminate the operation.
*** MESSAGE ***
SRAM BACKUP COMPLETE. HIT SELECT KEY.
- 77 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
(2) A message such as that shown Fig. D.2.5 (d) is displayed. Insert the first Memory card containing
SRAM_BAK.001 and click the [YES] key. Click the [NO] key to cancel restoration.
*** MESSAGE ***
SET MEMORY CARD INCLUDING SRAM_BAK.001
ARE YOU SURE ? HIT YES OR NO.
[SELECT][ YES ][ NO ][ UP ][ DOWN ]
(3) If another Memory card is required, a message such as that shown Fig. D.2.5 (e) is displayed. With
the power still on, insert the second Memory card and click the [YES] key. Press the [NO] key to
cancel restoration.
*** MESSAGE ***
SET MEMORY CARD INCLUDING SRAMBAK.002
ARE YOU SURE ? HIT YES OR NO.
[SELECT][ YES ][ NO ][ UP ][ DOWN ]
(4) Replace the second card with another, if required. Repeat this step until backing up all data.
(5) Upon the termination of restoration, a message such as that shown Fig. D.2.5 (f) is displayed. Click
the [SELECT] key to terminate the operation.
*** MESSAGE ***
SRAM RESTORE COMPLETE. HIT SELECT KEY.
CAUTION
1 Backup files will be created with a file name of SRAM_BAK.xxx, where xxx is
replaced with a number between 001 and 999 sequentially.
On the first Memory card, a backup file is created with a name of
SRAM_BAK.001. If all data is not contained on the single card, a backup file
containing the excess data is created with a name of SRAM_BAK.002 on the
second Memory card.
In this way, you can divide data onto a maximum of 999 Memory cards for
saving.
2 Check that the Memory card used for backup does not contain a file with a
name of SRAM_BAK.xxx before performing a BACKUP operation. You can
check a list of file names on a Memory card by using the SYSTEM DATA
LOADING function.
3 The Memory card used for backup needs to be formatted in FAT16.
- 78 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
CAUTION
4 The contents and name of a file to be backed up vary depending on the version
of the boot software used.
• 60W1/06 and earlier versions (Series 30i-A)
Contents of file : SRAM data
File name : SRAMBAK.xxx
• 60W1/07 and later versions (Series 30i/31i/32i-A/B)
Contents of file : SRAM data, NC programs (ATA PROG to be saved in
flash ROM)
File name : SRAM_BAK.xxx
It is also possible to restore data by using software of a version later than one
used to back it up.
Operating procedure
(1) From the SYSTEM MONITOR MAIN MENU screen, select "8.MEMORY CARD FORMAT".
(2) The system displays the confirmation message in the Fig. D.2.6 (a). Press the [YES] key.
*** MESSAGE ***
MEMORY CARD FORMAT OK ? HIT YES OR NO.
(3) The system displays the following message asking whether to delete all data on the Memory card.
To format the Memory card, press the [YES] key.
*** MESSAGE ***
MEMORY CARD FORMAT OK ? HIT YES OR NO.
ALL DATA IN THE MEMORY CARD IS LOST.
[SELECT][ YES ][ NO ][ UP ][ DOWN ]
(4) The system displays the message in the Fig. D.2.6 (c) during formatting :
*** MESSAGE ***
FORMATTING MEMORY CARD.
- 79 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
(5) When a card has been formatted normally, the system display the message in the Fig. D.2.6 (d).
Press the [SELECT] key.
*** MESSAGE ***
FORMAT COMPLETE. HIT SELECT KEY.
Operating procedure
From the MAIN MENU screen, select "1. END." The system displays the "ARE YOU SURE? HIT YES
OR NO" message. To terminate the Boot System and activate the CNC, press the [YES] soft key. Press
the [NO] soft key, and you will be brought back to the main menu.
*** MESSAGE ***
D.2.8 CAUTIONS
CAUTION
When using 60W1/06 or an earlier version (for Series 30i-A)of the boot software,
be sure to observe the following items.
When restoring the following data items in this system, make sure that they are a
pair backed up at the same time.
(The ATA PROG data is in flash ROM.)
• SRAM data
• ATA PROG data
The SRAM data and ATA PROG data are associated with each other. If only the
SRAM data or ATA PROG data is restored, their data integrity will be lost (for
example, a program file may be corrupted.)
If you have to restore either the SRAM or ATA PROG data alone for any reason,
be sure to initialize (clear) the program files after restoration.
- 80 -
B-66263EN/03 APPENDIX D.BOOT SYSTEM
- 81 -
D.BOOT SYSTEM APPENDIX B-66263EN/03
- 82 -
B-66263EN/03 APPENDIX E.PARAMETERS
E PARAMETERS
E.1 COMPILE PARAMETERS
When the power is turned on, the compile parameters are initialized to the values set in P-CODE variables.
So, these parameters cannot be modified, for example, from the MDI panel and so on.
#7 #6 #5 #4 #3 #2 #1 #0
9000 M3MB M2MB M1MB M512 M256 M128
9001 M4MB
No.9000 # 1 M128
#2 M256
#3 M512
#4 M1MB
#5 M2MB
#6 M3MB
No.9001 # 2 M4MB
M4MB M3MB M2MB M1MB M512 M256 M128 P-CODE file size
0 0 0 0 0 0 1 128Kbyte
0 0 0 0 0 1 0 256Kbyte
0 0 0 0 0 1 1 384Kbyte
0 0 0 0 1 0 0 512Kbyte
0 0 0 0 1 0 1 640Kbyte
0 0 0 0 1 1 0 768Kbyte
0 0 0 0 1 1 1 896Kbyte
0 0 0 1 0 0 0 1Mbyte
0 0 0 1 1 0 0 1.5Mbyte
0 0 1 0 0 0 0 2Mbyte
0 1 0 0 0 0 0 3Mbyte
1 0 0 0 0 0 0 4Mbyte
#7 #6 #5 #4 #3 #2 #1 #0
9002 EXT1 PWSR DAUX ACL2 ACL1 TCAL
- 83 -
E.PARAMETERS APPENDIX B-66263EN/03
#5 DAUX When the power is turned on, the conversational macro function is:
0: Not executed.
1: Executed.
#7 EXT1 The extended functions (CNC program reference/write, cutting distance accumulation/
preset, and reader/puncher interface control) are:
0: Disabled.
1: Enabled.
#7 #6 #5 #4 #3 #2 #1 #0
9003 PTCH KY20 GPNT * ONMSK
#2 *
NOTE
For 7.2" and 8.4" LCD units, be sure to set this parameter to 1.
#3 GPNT When a color other than black is to be specified as boundary color with the graphic filling
function (G206):
0: P8 is used for specification.
1: P16 is used for specification.
NOTE
When this parameter is set to 0, color palette 8 is used as
boundary color, and cannot be used for filling. When using color
palette 8 for filling, set this parameter to 1.
#5 KY20 For a key-input variable allowing decimal point input, #8501 is:
0: Not incremented by α.
1: Incremented by α.
+α: +20 for a display unit with 7 soft keys
+40 for a display unit with 12 soft keys
- 84 -
B-66263EN/03 APPENDIX E.PARAMETERS
Example
Example where this parameter is set to 1 for an indicator with 7 soft
keys:
For <1> and , #8503=1.0, #8501=8
For <1.> and , #8503=1.0, #8501=28
Thus, whether the decimal point is entered can be identified.
NOTE
When using a system with vertical soft keys, use bit 1 (KY100) of
compile parameter No. 9160.
#7 #6 #5 #4 #3 #2 #1 #0
9004 CUTLG SP_G_C SP_G_B
#0 SP_G_B
#1 SP_G_C For lathe systems, specify the G code system, A, B, or C, used to create the P-CODE
programs.
#7 #6 #5 #4 #3 #2 #1 #0
9005 AX4CL AX3CL AX2CL AX1CL
- 85 -
E.PARAMETERS APPENDIX B-66263EN/03
#7 #6 #5 #4 #3 #2 #1 #0
9005 TMACC AXCLS
#7 #6 #5 #4 #3 #2 #1 #0
9006 NNUM US19W STDM KEYC
#1 KEYC With the CNC program reference/write function, the memory protection signal (KEY3)
and 8-level data protection function are:
0: Checked.
(When protection is provided, completion code #8529=254.)
1: Not checked.
#2 STDM On the conversational macro screen, state display (mode and status display) is:
0: Not masked.
1: Masked.
- 86 -
B-66263EN/03 APPENDIX E.PARAMETERS
#5 US19W For the 12-soft key type, conversational macro user screen 1 is:
0: Not displayed as the 7-soft key type.
1: Displayed as the 7-soft key type.
#6 NNUM When data input control is enabled on the conversational macro screen, the "NUM"
prompt is:
0: Displayed.
1: Not displayed.
#7 #6 #5 #4 #3 #2 #1 #0
9007 US19WK TTDSP
#3 US19WK When the 7-soft key type display is specified for the 12-soft key type bit 5 (US19W) of
compile parameter No. 9006 = 1), the position for displaying the key input line is:
0: Not changed.
1: Changed to within the display area for the 7-soft key type.
#7 #6 #5 #4 #3 #2 #1 #0
9008 MCARG MDLP
#4 MDLP A cancel G code (G167 or a G code specified using compile parameter No. 9034) for G
code-based modal calls calls:
0: Nothing (only a modal call is canceled).
1: O9006 (a modal call is canceled and O9006 is called).
NOTE
This parameter is valid only when the Series 16i method (bit 0
(GMC) of compile parameter No. 9163 = 1) is used for modal calls.
(If bit 0 (GMC) of compile parameter No. 9163 = 0, G67 cancels
modal calls but does not call O9006 regardless of what the setting of
this compile parameter is.)
- 87 -
E.PARAMETERS APPENDIX B-66263EN/03
NOTE
Input format restrictions regarding NC commands are placed on
address G. For example, specifying G1000 results in alarm
PS0010 being issued. If there are two or more G codes, only the
last G code will be an argument. O, N, and non-00 group G codes
are passed as modal information to the next block.
#7 #6 #5 #4 #3 #2 #1 #0
9009 MSCL CM30
#3 MSCL A subprogram call based on a range-specified M code specified using compile parameters
Nos. 9042 and 9043 is regarded as:
0: An ordinary subprogram call
1: A special macro call
NOTE
This parameter is valid only when the Series 16i method (bit 0
(GMC) of compile parameter No. 9163 = 1) is used for modal calls.
(If bit 0 (GMC) of compile parameter No. 9163 = 0, G67 cancels
modal calls regardless of what the setting of this compile parameter
is.)
- 89 -
E.PARAMETERS APPENDIX B-66263EN/03
NOTE
The program number specified in each parameter is set in the
corresponding conversational macro execution control variable
when the power is turned on.
NOTE
The program number specified in this parameter is set in the
auxiliary macro execution control variable when the power is turned
on.
9042 Code for subprogram call using a range specification M code (lower limit)
9043 Code for subprogram call using a range specification M code (upper limit)
NOTE
1 If a value not within the specifiable range is set, or a specified
range is such that No. 9042 > No. 9043, subprogram call using a
range specification M code is disabled.
2 An M code used for macro call/subprogram call is not used as a
calling code even when the M code is within the setting range.
9111 Start M code of subprogram call using an M code (specification of 3 sets) (1st set)
9112 Count of subprogram call using an M code (specification of 3 sets) (1st set)
9113 Start program number of subprogram call using an M code (specification of 3 sets) (1st set)
9114 Start M code of subprogram call using an M code (specification of 3 sets) (2nd set)
9115 Count of subprogram call using an M code (specification of 3 sets) (2nd set)
- 90 -
B-66263EN/03 APPENDIX E.PARAMETERS
9116 Start program number of subprogram call using an M code (specification of 3 sets) (2nd set)
9117 Start M code of subprogram call using an M code (specification of 3 sets) (3rd set)
9118 Count of subprogram call using an M code (specification of 3 sets) (3rd set)
9119 Start program number of subprogram call using an M code (specification of 3 sets) (3rd set)
9120 Start M code of macro call using an M code (specification of 3 sets) (1st set)
9121 Count of macro call using an M code (specification of 3 sets) (1st set)
9122 Start program number of macro call using an M code (specification of 3 sets) (1st set)
9123 Start M code of macro call using an M code (specification of 3 sets) (2nd set)
9124 Count of macro call using an M code (specification of 3 sets) (2nd set)
9125 Start program number of macro call using an M code (specification of 3 sets) (2nd set)
9126 Start M code of macro call using an M code (specification of 3 sets) (3rd set)
9127 Count of macro call using an M code (specification of 3 sets) (3rd set)
9128 Start program number of macro call using an M code (specification of 3 sets) (3rd set)
Count
(Nos. 9112, 9115, 9118, 9121, 9124, and 9127) : 1 and up
The upper limit depends on the start M code and start program number.
NOTE
1 In the following cases, this call is disabled:
(1) In a compile parameter, a value not within the range is set.
(2) A defined M code range (start M code number + count) exceeds
99999999.
(3) A defined program number range (start program number +
count) exceeds 99999999.
2 An M code used for macro/subprogram call, even when included in
the setting range, is not used as an instruction for this subprogram
call.
- 91 -
E.PARAMETERS APPENDIX B-66263EN/03
NOTE
3 If duplicate M codes are set, the M codes are valid according to the
priority order below.
(1) Macro call using an M code
(Compile parameters Nos. 9023 to 9032)
(2) Subprogram call using an M code
(Compile parameters Nos. 9010 to 9012)
(3) Subprogram call using a range specification M code
(Compile parameters Nos. 9042 and 9043)
(4) Subprogram call using an M code (specification of 3 sets)
(Compile parameters Nos. 9111 to 9113, 9114 to 9116, and
9117 to 9119)
9047 Start program number of macro call using an G code (specification of 1 set)
9129 Start G code of macro call using an G code (specification of 3 sets) (1st set)
9130 Count of macro call using an G code (specification of 3 sets) (1st set)
9131 Start program number of macro call using an G code (specification of 3 sets) (1st set)
9132 Start G code of macro call using an G code (specification of 3 sets) (2nd set)
9133 Count of macro call using an G code (specification of 3 sets) (2nd set)
9134 Start program number of macro call using an G code (specification of 3 sets) (2nd set)
9135 Start G code of macro call using an G code (specification of 3 sets) (3rd set)
9136 Count of macro call using an G code (specification of 3 sets) (3rd set)
9137 Start program number of macro call using an G code (specification of 3 sets) (3rd set)
Start program number (parameters Nos. 9047, 9131, 9134, and 9137) :
1 to 99999999
If a negative value is set as a start G code number (parameters Nos. 9045, 9129, 9132,
and 9135), modal call results. Use bit 1 (MCT) of parameter No. 9163 for setting of move
command call (G66)/call of each block (G66.1).
- 92 -
B-66263EN/03 APPENDIX E.PARAMETERS
NOTE
1 In the following cases, this call is disabled:
(1) In a compile parameter, a value not within the range is set.
(2) A defined G code range (start G code number + count) exceeds
9999.
(3) A defined program number range (start program number +
count) exceeds 99999999.
2 A G code used for macro call, even when included in the setting
range, is not used as an instruction for this macro call.
3 If duplicate G codes are set, the G codes are valid according to the
priority order below.
Three types of macro call using G codes are available as indicated
below. If the range of G codes set in <1> duplicates the ranges of
G codes set in <2> or <3>, the G code priority order is, from high to
low, <1> to <2> to <3>.
(1) Individual specification :
Compile parameters Nos. 9013 to 9022
(2) Specification of 1 sets :
Compile parameters Nos. 9045 to 9047
(3) Specification of 3 sets :
Compile parameters Nos. 9129 to 9131, 9132 to 9134, and
9135 to 9137
9050 Program number to add the item to the help (initial menu) screen
NOTE
Each time switching occurs from the help (initial menu) screen or
NC screen to the user help screen, #8555 is initialized with a
program number specified with the compile parameter No. 9051
and executed as the main program for the user help screen.
- 93 -
E.PARAMETERS APPENDIX B-66263EN/03
#7 #6 #5 #4 #3 #2 #1 #0
9100 MSFT C9WN DLMT VKLN VGAR
#0 VGAR When the display command with background color (G250) is specified:
0: Display with background color is disabled.
1: Display with background color is enabled.
#4 VKLN In background color display, background display for the key input line is:
0: Not provided.
1: Provided.
NOTE
1 Please set 0 usually.
2 The setting DLMT=1 is effective for 10.4" display device. The range
of the display is as follows.
DLMT=0: X is 0 to 79 and Y is 0 to 29
DLMT=1: X is 0 to 79 and Y is 2 to 24 (Upper 2 rows and Lower 5
rows are ignored)
#6 C9WN When the 7-soft key type display is selected for the 12-soft key type (bit 5 (US19W) of
compile parameter No. 9006 = 1), the character display coordinates are:
0: Not adjusted as the 7-soft key window display (the same coordinates as for the
12-soft key type display).
1: Adjusted as the 7-soft key window display.
NOTE
This parameter is valid only for screens with a background (bit 0
(VAGR) of compile parameter No. 9100 = 1).
- 94 -
B-66263EN/03 APPENDIX E.PARAMETERS
#7 MSFT When no background color is specified (bit 0 (VGAR) of compile parameter No.9100 =
0), the conversational macro screen:
0: Displays a soft key frame.
1: Does not display a soft key frame.
#7 #6 #5 #4 #3 #2 #1 #0
9103 EXMSCL PRDGCAL
#4 EXMSCL Up to 3 macro calls based on M codes specified with compile parameters Nos. 9120 to
9128 and up to 3 subprogram calls based on M codes specified with compile parameters
Nos. 9111 to 9119 are made as:
0: Ordinary macro or subprogram calls.
1: Special macro calls.
#7 #6 #5 #4 #3 #2 #1 #0
9104 GMACC SMACC HMACC DMACC
#7 #6 #5 #4 #3 #2 #1 #0
9105 BSC SSC
- 95 -
E.PARAMETERS APPENDIX B-66263EN/03
#7 #6 #5 #4 #3 #2 #1 #0
9160 PMX16 PG1O TDVDPI EXST TM99 PRDPI KY100 CUNIT
NOTE
The cutting distance 1.0 mm on a machine with the reference axis
based on IS-B/metric input depends on the setting of this
parameter as follows:
0: #8554=1000
1: #8554=1.0
#1 KY100 For a key-input variable allowing decimal point input, #8501 is:
0: Not incremented by 100.
1: Incremented by 100.
NOTE
Example where this parameter is set to 1 for an indicator with 7 soft
keys:
For <1> and , #8503=1.0, #8501=8
For <1.> and , #8503=1.0, #8501=108
Thus, whether the decimal point is entered can be identified.
#2 PRDPI For the word-type specified-block read (G325) of the CNC program reference function,
the decimal places of the value read:
0: Follow the setting of bit 0 (DPI) of parameter No. 3401.
1: Are always of a calculator type decimal point input.
NOTE
If this parameter is 1, the behavior is equivalent to that of the
Series 16i.
#3 TM99 A check to see if a cause to end conversational macro function execution has occurred is
made when:
0: The execution of the current block ends.
If the cause is found, screen switching occurs immediately, before the program end
instruction (execution control code M99/M99Pp) in the main program is executed.
1: The program end instruction (execution control code M99/M99Pp) in the
conversational macro main program is executed.
If the cause is found, screen switching occurs after the program end instruction
(execution control code M99/M99Pp) in the main program is executed.
NOTE
If this parameter is 1, the behavior is equivalent to that of the
Series 16i.
- 96 -
B-66263EN/03 APPENDIX E.PARAMETERS
#4 EXST In the status display of the conversational macro screen, three-dimensional interference
check in progress or program coordinate system switching is:
0: Not indicated.
1: Indicated.
#5 TDVDPI In variable-based PMC axis control, the distance to move specified with control travel
distance variables (#8713, #8723, #8733, and #8743) is regarded as of:
0: Calculator type decimal point input.
1: Least input increment.
NOTE
If this parameter is 1, the behavior is equivalent to that of the
Series 16i.
#7 PMX16 In PMC axis control, the controlled-axis number selected using the axis select variable
(#8700) and the relationships between control variables and groups in variable-based
PMC axis control are specified as listed below:
Example
In a 2-path system with each path containing a 3-axis machine,
path 2 can select the 1st axis in the path by specifying the:
• System-common 4th axis if bit 7 (PMX16) of compile parameter
No. 9160 = 0.
#8700 = 16
• 1st axis in the path if bit 7 (PMX16) of compile parameter No.
9160 = 1.
#8700 = 1
NOTE
If this parameter is 1, the behavior is equivalent to that of the
Series 16i.
- 97 -
E.PARAMETERS APPENDIX B-66263EN/03
#7 #6 #5 #4 #3 #2 #1 #0
9163 C16 P98 LCLLV PCDC MCT GMC
NOTE
If this parameter is 1, the behavior is equivalent to that of the
Series 16i.
NOTE
This parameter is valid only for modal calls of the standard method
(bit 0 (GMC) of compile parameter No. 9163 = 0).
For modal calls of the Series 16i method (bit 0 (GMC) of compile
parameter No. 9163 = 1), set this parameter to 0.
#2 PCDC How to make calls from an execution macro that was called from a user program, using a
code like G/M/T…, varies depending on the combination of this parameter and bit 6
(GMP) of parameter No. 6008. For details, see the following table.
- 98 -
B-66263EN/03 APPENDIX E.PARAMETERS
NOTE
This parameter is valid only for modal calls of the standard method
(bit 0 (GMC) of compile parameter No. 9163 = 0).
For modal calls of the Series 16i method (bit 0 (GMC) of compile
parameter No. 9163 = 1), this parameter is regarded as 0.
O90xx
:
M99
- 99 -
E.PARAMETERS APPENDIX B-66263EN/03
O pp2
:
M99
- 100 -
B-66263EN/03 APPENDIX E.PARAMETERS
NOTE
1 If a disabled type of call is attempted, the command is treated as
an ordinary G/M/S/T/D/H/second auxiliary function/axis address
code.
2 The same behavior as for bit 6 (GMP) of parameter No. 6008 = 0
and bit 2 (PCDC) of compile parameter No. 9163 = 0 occurs if bit 0
(GMC) of compile parameter No. 9163 = 1.
#3 LCLLV If an execution macro is called as a subprogram from a user program (subprogram call
using an M/S/T/second auxiliary function/specific code), the local variable level:
0: Does not change.
(The local variable at the calling source is used.)
1: Changes.
(The local variable at the called destination is used. (Equivalent to that of the Series
16i.))
#4 P98 The execution macro for P-CODE workpiece number search is:
0: Called as a macro.
The local variable used with the execution macro cannot be used with the main
program.
1: Called as a subprogram.
The local variable used with the execution macro is passed to the main program.
#6 C16 When an execution macro program is called from a program called as a subprogram from
a user program:
0: Each non-G code, such as M/T/S/…, or an axis code cannot use each non-G code,
such as M/T/S/…, or an axis code to call an execution macro. In addition, a program
called using a G code cannot use a G code to call an execution macro (no call can be
made at all if bit 6 (GMP) of parameter No. 6008 = 0).
1: Regardless of the setting of bit 6 (GMP) of parameter No. 6008, each code, such as
G/M/T/S/…, and axis address can be used to call an execution macro in the same
manner as when an execution macro is called from a user program. (Equivalent to
the behavior of the Series 16i.)
#7 #6 #5 #4 #3 #2 #1 #0
9167 PL30 NVGA INCD NTV
#0 NTV When an "LF" is output with G336 (data transmission), a space for a TV check is:
0: Output.
1: Not output.
- 101 -
E.PARAMETERS APPENDIX B-66263EN/03
#3 INCD The coordinates (X,Y,I,J) in the character coordinate system or graphic coordinate system
are:
0: Specified in the absolute specification mode at all times.
1: Switchable between the absolute specification mode and incremental specification
mode with G390/G391. (Valid for G204, G230, G242, G243, G300, G249, G250,
G01, G02, G03, G206, and G317)
#4 NVGA This parameter is used with applications created for character cards of the old type, and is
usually set to 0.
0: Normal mode
1: Equivalent to character cards (All graphic commands are ignored.)
#7 PL30 For screens with a background, the coloration of the color palette is set to the standard
colors of the:
0: Conversational macro screen of the Series 16i.
1: Series 30i.
#7 #6 #5 #4 #3 #2 #1 #0
9168 VGET PAN US19WG
#0 US19WG When the 7-soft key type display is specified for the 12-soft key type (the compile
parameter US19W(No.9006#5)=1), the number of display groups of G-code modal
information is:
0: 18 groups.
1: 24 groups.
#1 PAN In the parameter writing command (G314), when two or more parameter writings are
executed by specifying the intra-path control axis (spindle) number, Next parameter
writing of the intra-path control axis (spindle) number is :
0: Order of the system common control axis (spindle) number.
1: Order of the intra-path control axis (spindle) number.
Example : 2path-6axes, parameter No.981=1, 2, 1, 2, 1, 2 (X1, X2, Y1, Y2, Z1, Z2)
#2 VGET For virtual MDI key, the control variables of MDI keyboard type reading(#8533) and
MDI key image reading(#8549) are :
0: Disabled.
1: Enabled.
When this compile parameter is set to 1, the following value can be read.
- In #8533, the value 0 can be read as the kind of virtual MDI key regardless of the
kind of the connected MDI keyboard.
- In #8549, the key images of virtual MDI key can be read.
- 102 -
B-66263EN/03 APPENDIX E.PARAMETERS
#7 #6 #5 #4 #3 #2 #1 #0
3109 HPU
#7 #6 #5 #4 #3 #2 #1 #0
9000 RSC STP NDP SQN
#0 SQN During execution macro execution, the program number and sequence number are:
0: Not displayed.
The program and sequence numbers of a calling user program are kept displayed
until program control is returned to the calling user macro after the end of the
execution macro.
1: Displayed.
#1 NDP On the macro variable screen, the P-CODE variable screen is:
0: Not displayed.
1: Displayed.
#2 STP When a conversational macro/auxiliary macro is executed using the debug function:
0: The macro is executed in the continuous mode.
1: The macro is executed in the single block mode.
This parameter is valid when bit 0 (DBG) of parameter No. 9033 is set to 1.
NOTE
When this parameter is set, the power must be turned off before
operation is continued.
#4 RSC Upon reset, the P-CODE macro common variables (#100 to #199) are:
0: Not cleared to <null>.
1: Cleared to <Null>.
NOTE
This parameter does not affect the custom macro common
variables #100 to #199, regardless of the states of bits 0 (MV0) and
1 (MV1) of parameter No. 9034.
The custom macro common variables #100 to #199 depend on bit
6 (CCV) of parameter No. 6001.
- 103 -
E.PARAMETERS APPENDIX B-66263EN/03
NOTE
If either this parameter or parameter No. 9003 is set to a value
other than 0 when the conversational macro function is executed,
the break function is enabled, and the program number set in this
parameter and the sequence number set in parameter No. 9003
are set as break conditions.
NOTE
If either this parameter or parameter No. 9002 is set to a value
other than 0 when the conversational macro function is executed,
the break function is enabled, and the sequence number set in this
parameter and the program number set in parameter No. 9002 are
set as break conditions.
#7 #6 #5 #4 #3 #2 #1 #0
9010 08M 07M 06M 05M 04M 03M 02M 01M
The axes for which special macro call using an axis address is enabled are:
0: Enabled.
1: Disabled.
With these parameters, special macro call using an axis address enabled with the compile
parameters Nos. 9005, 9008, 9164, and 9165 can be disabled.
Select a control axis number within the path, using a bit.
- 104 -
B-66263EN/03 APPENDIX E.PARAMETERS
No. 9010 #0 01M 1st axis
#1 02M 2nd axis
: : :
#7 08M 8th axis
No. 9020 #0 09M 9th axis
#1 10M 10th axis
: : :
No. 9021 #7 24M 24th axis
#7 #6 #5 #4 #3 #2 #1 #0
9011 VRM MTC
#7 #6 #5 #4 #3 #2 #1 #0
9012 MSC MHC MDC
- 105 -
E.PARAMETERS APPENDIX B-66263EN/03
#7 #6 #5 #4 #3 #2 #1 #0
9013 MCA
#1 MCA If an execution macro call code specified using a compile parameter has the same setting
as for a custom macro call code specified using a parameter:
0: The execution macro call is enabled.
1: The custom macro call is enabled.
Example
If both parameter No. 6050 and compile parameter No. 9013
specify 100 as a G code for calling O9010:
• O9010 specified in the execution macro is called if bit 1 (MCA)
of parameter No. 9013 = 0.
• O9010 specified in the user program is called if bit 1 (MCA) of
parameter No. 9013 = 1.
#7 #6 #5 #4 #3 #2 #1 #0
9026 NDTx
NOTE
This parameter is valid only during linear interpolation as with the
G01 command. (During circular interpolation as with the G02 or
G03 command, an axis for which this parameter is set to 1 is also
included in a cumulative cutting distance calculation.)
#7 #6 #5 #4 #3 #2 #1 #0
9032 BGW
NOTE
When this parameter is set, the power must be turned off before
operation is continued.
NOTE
The monochrome LCD is for the Series 30i /31i /32i -A.
- 106 -
B-66263EN/03 APPENDIX E.PARAMETERS
#7 #6 #5 #4 #3 #2 #1 #0
9033 SHS EVF EV2 MVD SEP DBG
NOTE
When at least one of these parameters is set, the power must be
turned off before operation is continued.
NOTE
The monochrome LCD is for the Series 30i /31i /32i -A.
NOTE
Re-setting this parameter clears all data assigned to the P-CODE
variables (#10000 and up) and extended P-CODE variables
(#20000 and up) for all paths to 0.
NOTE
Re-setting this parameter clears all data assigned to the extended
P-CODE variables (#20000 and up) and P-CODE variables
(#10000 and up) for all paths to 0.
#5 SHS When the high-speed cycle machining function is enabled, variables #20000 and up are
used as:
0: High-speed cycle machining data variables.
1: Expansion P code variables.
- 107 -
E.PARAMETERS APPENDIX B-66263EN/03
#7 #6 #5 #4 #3 #2 #1 #0
9034 MV7 MV6 MV5 MV4 MV3 MV2 MV1 MV0
NOTE
When at least one of these parameters is set, the power must be
turned off before operation is continued.
#0 MV0 The common variables #100 to #149 used by a P-CODE macro are:
0: P-CODE macro common variables independent of the custom macro common
variables.
1: Shared as custom macro common variables.
#1 MV1 The common variables #150 to #199 used by a P-CODE macro are:
0: P-CODE macro common variables independent of the custom macro common
variables.
1: Shared as custom macro common variables.
#2 MV2 The common variables #500 to #549 used by a P-CODE macro are:
0: P-CODE macro common variables independent of the custom macro common
variables.
1: Shared as custom macro common variables.
#3 MV3 The common variables #550 to #599 used by a P-CODE macro are:
0: P-CODE macro common variables independent of the custom macro common
variables.
1: Shared as custom macro common variables.
#4 MV4 The common variables #600 to #699 used by a P-CODE macro are:
0: P-CODE macro common variables independent of the custom macro common
variables.
1: Shared as custom macro common variables.
#5 MV5 The common variables #700 to #799 used by a P-CODE macro are:
0: P-CODE macro common variables independent of the custom macro common
variables.
1: Shared as custom macro common variables.
#6 MV6 The common variables #800 to #899 used by a P-CODE macro are:
0: P-CODE macro common variables independent of the custom macro common
variables.
1: Shared as custom macro common variables.
#7 MV7 The common variables #900 to #999 used by a P-CODE macro are:
0: P-CODE macro common variables independent of the custom macro common
variables.
1: Shared as custom macro common variables.
- 108 -
B-66263EN/03 APPENDIX E.PARAMETERS
#7 #6 #5 #4 #3 #2 #1 #0
9035 SKX NPA CWB EUI RCN XIT
#4 CWB When the data transmission (G336) command in reader/puncher control or the macro
variable data output (G338) command is executed, actual data transmission is carried out:
0: In units of blocks.
1: When the send buffer (255 bytes) becomes full or the line close (G331) command is
executed.
NOTE
1 Even when this parameter is 0 (data is sent in units of blocks), no
data is sent with a block which contains the R1xx command.
2 When only 1 byte (for example control code) is to be sent or when
output and input are to be performed alternately since the line is
opened until the line is closed, set this parameter to 0. If it is set to
1, data transmission cannot be performed normally because data is
transmitted 255 bytes at a time.
#5 NPA When a P-CODE work number search is enabled, an attempt to start automatic operation
with no main program selected results in:
0: Nothing being performed.
1: Alarm PS1079 being issued.
#6 SKX The skip signal to be referenced by a linear or rotation axis move direction variable
(#8601/#8608) when the skip signal rises is the:
0: SKIPP signal (Gn006.6).
1: SKIP signal (X004.7).
If this parameter is 1:
1. X013.7 for the 2nd PMC and X011.7 for the 3rd PMC.
2. X address assigned by parameter No. 3012 if bit 2 (XSG) of parameter No.
3008 = 1.
NOTE
If this parameter is 1, the behavior is equivalent to that of the
Series 16i.
- 109 -
E.PARAMETERS APPENDIX B-66263EN/03
#7 #6 #5 #4 #3 #2 #1 #0
9036 PRS NOB AMP AFT MPE
#0 MPE When bit 0 (PWE) of parameter No. 8900 = 0, the parameter write (G314) function can
write to:
0: The parameters whose input type is setting input and parameter No. 9036.
1: All writable parameters.
If bit 0 (PWE) of parameter No. 8900 = 1, however, the parameter write function can
write to all writable parameters regardless of the setting of this parameter.
NOTE
Usually, set this parameter to 0 in order to keep auxiliary macro
function execution from stopping accidentally.
#4 NOB With execution macros, the G310 (relative coordinate preset and PMC data read/write
functions) block is executed as:
0: NC statement.
1: Macro statement.
NOTE
If this parameter is 1, the behavior is equivalent to that of the
Series 16i.
NOTE
When this parameter is 1, do not edit programs during high-speed
read; no correct data may be read.
NOTE
1 With a path for which this parameter is set to 0, the execution
macro is not executed.
2 When this parameter is set, the power must be turned off before
operation is continued.
NOTE
1 With a path for which this parameter is set to 0, the conversational
macro is not executed.
2 When this parameter is set, the power must be turned off before
operation is continued.
NOTE
1 With a path for which this parameter is set to 0, the auxiliary macro
is not executed.
2 When this parameter is set, the power must be turned off before
operation is continued.
NOTE
When this parameter is set, the power must be turned off before
operation is continued.
NOTE
When this parameter is set, the power must be turned off before
operation is continued.
NOTE
1 When this parameter is set, the power must be turned off before
operation is continued.
2 Re-setting this parameter clears all data assigned to the P-CODE
variables (#10000 and up) and extended P-CODE variables (#20000
and up) for all paths to 0.
NOTE
1 When this parameter is set, the power must be turned off before
operation is continued.
2 Re-setting this parameter clears all data assigned to the extended
P-CODE variables (#20000 and up) and P-CODE variables (#10000
and up) for all paths to 0.
NOTE
1 When this parameter is set, the power must be turned off before
operation is continued.
2 The 2nd module is invalid in a path for which this parameter is 0.
- 112 -
B-66263EN/03 APPENDIX E.PARAMETERS
NOTE
3 This parameter is valid only when the P-CODE numbers specified
in parameters Nos. 9048 to 9050 are 0 or the same number as
specified in this parameter.
Example:
When No. 9048=1, No. 9049=0, and No. 9050=1:
This parameter is valid.
When No. 9048=2, No. 9049=0, and No. 9050=1:
This parameter is invalid.
NOTE
1 When this parameter is set, the power must be turned off before
operation is continued.
2 The 3rd module is invalid in a path for which this parameter is 0.
3 This parameter is valid only when the P-CODE numbers specified
in parameter Nos. 9048 to 9050 are 0 or the same number as
specified in this parameter.
Example:
When No. 9048=1, No. 9049=0, and No. 9050=1:
This parameter is valid.
When No. 9048=2, No. 9049=0, and No. 9050=1:
This parameter is invalid.
NOTE
During conversational macro execution (while the conversational
macro screen is being displayed), sequential execution (bit 1 (SEP)
of parameter No. 9033 = 0) continues till the program end
instruction (execution control code M99/M99Pp) in the main
program regardless of the setting of this parameter.
- 113 -
E.PARAMETERS APPENDIX B-66263EN/03
9067 Protection range of P-CODE macro common variables (#500 to #999) (start)
9068 Protection range of P-CODE macro common variables (#500 to #999) (end)
NOTE
If a value not within the specifiable range is set, or a specified
range is such that No. 9067 > No. 9068, the P-CODE macro
common variables are not protected from writing.
9069 PMC internal relay (R area) address of an interlock mode signal for each axis direction
9070 PMC internal relay (R area) bit position of an interlock mode signal for each axis direction
NOTE
1 In the following cases, the interlock function for each axis direction
is disabled:
(1) An address not in the R area is specified.
(2) An incorrect bit position is specified.
(3) Bit 0 (XIT) of parameter No. 9035 is set to 0.
2 When specifying the R area for the 2nd- or 3rd-path PMC, specify
the path for the PMC, using control variable #8603 in advance.
Number of blocks for which macro statements in the execution macro program are executed in
9072
succession
- 114 -
B-66263EN/03 APPENDIX E.PARAMETERS
Specify the number of blocks for which macro statements in the execution macro
program are executed in succession. If this parameter is 0, 500 blocks are assumed.
NOTE
This parameter is valid only for macro statements in the execution
macro program. It affects no macro statement in the custom macro
program.
The setting of this parameter takes effect only when a specified
number of macro statement blocks continue.
- 115 -
E.PARAMETERS APPENDIX B-66263EN/03
Example 1
To use P-CODE macros created in a 5-axis (X, Y, Z, B1 (&D), B2
(&E)) configuration on a machine in a 4-axis configuration (1st axis =
X, 2nd axis = Y, 3rd axis = Z, and 4th axis = B2), set parameter No.
9076 as follows:
[P-CODE macro]
Symbol definition
@B1 &D /* Defines an axis name for the 4th axis.
@B2 &E /* Defines an axis name for the 5th axis.
Axis name to be
Axis number Remark
specified
Axis with no expansion axis name is specified with
1st axis X
no modification.
Axis with no expansion axis name is specified with
2nd axis Y
no modification.
Axis with no expansion axis name is specified with
3rd axis Z
no modification.
4th axis B1 &D (4th axis) is specified.
5th axis B2 &E (5th axis) is specified.
- 116 -
B-66263EN/03 APPENDIX E.PARAMETERS
Example 2
To use P-CODE macros created in a 3-axis (XA(&A), Y, ZA2(&C))
configuration on a machine in a 3-axis configuration (1st axis = XA,
2nd axis = ZA2, and 3rd axis = Y), set parameter No. 9076 as
follows:
[P-CODE macro]
Symbol definition
@XA &A /* Defines an axis name for the 1st axis.
@ZA2 &C /* Defines an axis name for the 3rd axis.
Axis name to be
Axis number Remark
specified
1st axis XA &A (1st axis) is specified.
Axis with no expansion axis name is specified with no
2nd axis Y
modification.
3rd axis ZA2 &C (3rd axis) is specified.
NOTE
1 If 2 or more axes are specified for the same axis number, alarm
PW1106 will be issued at power on.
[Example]
If parameter No. 9076 is set as listed below, alarm PW1106 will be
issued at power on.
Parameter
Axis number Remark
No.9076
1st axis 2 The 1st axis is &B (YB).
2nd axis 1 The 2nd axis is &A(YA).
Invalid because the parameter setting is the same
3rd axis 2
as for the 1st axis.
2 When this parameter is set, the power must be turned off before
operation is continued.
- 117 -
B-66263EN/03 INDEX
INDEX
<B> <S>
BOOT SYSTEM ............................................................65 SCREEN CONFIGURATION AND OPERATING
PROCEDURE ............................................................68
<C> SRAM DATA UTILITY Screen....................................77
CAUTIONS ...................................................................80 Starting the Boot System................................................67
COMPILE ERROR CODE TABLE ..............................41 SYMBOL DEFINITION................................................27
COMPILE PARAMETERS ...........................................83 SYMBOL DEFINITION FILE ......................................23
COMPILE/LINK EXAMPLE ........................................44 SYMBOLIC MACRO PROGRAM ...............................17
COMPILER SERIES .......................................................6 SYSTEM DATA CHECK Screen..................................71
CONVERSION TO A MEMORY CARD FORMAT SYSTEM DATA DELETE Screen ................................73
(MCARD30I) .............................................................15 SYSTEM DATA SAVE Screen.....................................75
System Files and User Files ...........................................67
<D> SYSTEM INSTALLATION (SETUP) ............................4
DEFINITION OF WARNING, CAUTION, AND
NOTE ........................................................................s-1 <U>
Displaying the Power ON Sequence ..............................66 USER DATA LOADING/SYSTEM DATA LOADING
Screen.........................................................................69
<E>
EQUIPMENT CONFIGURATION .................................3
ERROR MESSAGES AND REQUIRED ACTIONS ....81
EXECUTOR PARAMETERS .....................................103
<F>
FEATURES .....................................................................1
FUNCTIONS ...................................................................7
<G>
GENERAL .......................................................................1
<H>
HOW TO CONFIRM REFERENCE LIST/ COMPILE
LIST ...........................................................................24
<I>
INSTALLING THE FANUC MACRO COMPILER
(FOR Series30i/31i/32i) SYSTEM...............................4
INSTALLING THE FANUC MACRO LIBRARY
(FOR Series30i/31i/32i) ...............................................5
<L>
LOAD BASIC SYSTEM ...............................................80
<M>
MACRO COMPILER (MCOMP30I) ..............................7
MACRO LINKER (MLINK30I)....................................10
MEMORY CARD FORMAT Screen.............................79
<O>
OVERVIEW ...............................................................1,65
<P>
PARAMETERS .............................................................83
PATH SETTING..............................................................6
PREFACE .................................................................... p-1
i-1
B-66263EN/03 REVISION RECORD
REVISION RECORD
Edition Date Contents
• Addition and correction of parameters
03 Aug., 2011
• Correction of errors
02 Jul., 2010 Addition of Series 30i/31i/32i-MODEL B
01 Jul., 2009
r-1