Contents Summary of FAPT Macro Compiler (for PC) Programming manual
Page 1GE Fanuc Automation Europe CNC Controls FAPT MACRO COMPILER For PersonalComputer Operator's Manual B-66102EN/10 TECHNOLOGY AND MORE
Page 2Ȧ No part of this manual may be reproduced in any form. Ȧ All specifications and designs are subject to change without notice. The export of this product is subject to the authorization of the government of the country from where the product is exported. In this manual we have tried as much as possi
Page 3B–66102E/07 DEFINITION OF WARNING, CAUTION, AND NOTE DEFINITION OF WARNING, CAUTION, AND NOTE This manual includes safety precautions for protecting the user and preventing damage to the machine. Precautions are classified into Warning and Caution according to their bearing on safety. Also, suppleme
Page 5B–66102E/10 PREFACE PREFACE The models covered by this manual, and their abbreviations are : Product Name Abbreviations FANUC Series 0–MODEL A, B, C 0–A/B/C Series 0–A/B/C Series 0 FANUC Series 0i–MODEL A 0i–A Series 0i–A FANUC Series 15–MODEL A 15–A Series 15–A FANUC Series 150–MODEL A 150–A FANUC
Page 6PREFACE B–66102E/10 Product Name Abbreviations FANUC Series 21–TA 21–TA Series 21–A FANUC Series 21–TB 21–TB *1 FANUC Series 210–TB 210–TB Series 21–B FANUC Series 21–MB 21–MB FANUC Series 210–MB 210–MB Series 21 FANUC Series 21i–A 21i–A Series 21i–A FANUC Series 210i–A 210i–A FANUC Series 21i–B 21i
Page 11B–66102E/10 1. GENERAL 1 GENERAL The MACRO Compiler/Executor function stores programs created using custom macros (macro programs) in ROM so that machine tool builders can implement their own conversational screens. The FAPT MACRO Compiler is a macro compiler utility to implement the MACRO Compiler/
Page 121. GENERAL B–66102E/10 1.1 FEATURES (1) Macro programs can be edited using a commercially available screen editor that operates under the MS-DOS environment. (2) The symbolic macro compiler function allows macro programs to be coded in symbolic format, and also allows comments to be coded. (3) A pro
Page 13B–66102E/10 1. GENERAL 1.2 OVERVIEW The FAPT MACRO Compiler/Executor function enables the FANUC CNC users to develop their own macro programs in a macro language, store the macro programs in ROM as a macro ROM by using the macro compiler, and execute the macro programs with the macro executor functi
Page 141. GENERAL B–66102E/10 * Create a macro program using an editor. (An editor is MS-DOS not supplied.) Editor * The macro program (source file) must be in standard Macro Program MS-DOS text format. (Source file) MCOMP0 MCOMP15 MCOMP15I * The macro compiler generates an object file. It also MACRO creat
Page 15B–66102E/10 2. EQUIPMENT CONFIGURATION 2 EQUIPMENT CONFIGURATION (1) Personal computer: (Fujitsu : FMR Series) (NEC : PC98 Series) (IBM : PC-AT Series) Main memory 640K bytes or more OS (FMR/PC98) MS-DOS Version 3.1 and later (PC-AT) PC-DOS Version 3.3 and later Hard disk About 1M bytes is required
Page 163. SYSTEM INSTALLATION (SETUP) B–66102E/10 3 SYSTEM INSTALLATION (SETUP) The FAPT MACRO Compiler software is distributed with two 5-inch (2HD) floppy disks or 3.5-inch (2HD) floppy disk for series 15i/16i/18i/21i. To use the software, load the software to the hard disk from the system floppy disks.
Page 17B–66102E/10 3. SYSTEM INSTALLATION (SETUP) 3.1 This operation installs the FAPT MACRO Compiler system software on the hard disk. First set the FAPT MACRO Compiler system floppy disk INSTALLING THE in the floppy disk drive, then activate MSETUP.BAT on the floppy disk. SYSTEM FROM THE > ?: \ > MSETUP
Page 183. SYSTEM INSTALLATION (SETUP) B–66102E/10 d) \MCOMP\USR\SAMPL Under this directory, the files including such a link control file, compiler/link result files, and program files as described in Appendix D are stored. Use these files as reference information for development. 8
Page 19B–66102E/10 3. SYSTEM INSTALLATION (SETUP) 3.2 This operation loads the executor file under the library directory of the FAPT MACRO Compiler system installed by the operation of Section INSTALLING THE 3.1. EXECUTOR FILE As with the FAPT MACRO Compiler system floppy disk, set the FAPT FROM THE FAPT M
Page 203. SYSTEM INSTALLATION (SETUP) B–66102E/10 3.3 All system software is contained under the \MCOMP\TOOL directory. So specify this directory by path setting with AUTOEXEC.BAT. PATH SETTING 10
Page 21B–66102E/10 3. SYSTEM INSTALLATION (SETUP) 3.4 To match the CNC series, there are three types of the FAPT MACRO Compiler system: COMPILER SERIES a) For Series 0/Series 16/Series 18/Series 20/Series 21 b) For Series 15–A/15–B c) For Series 15i–A These Compiler systems are for the respective series on
Page 223. SYSTEM INSTALLATION (SETUP) B–66102E/10 3.5 SPECIFYING ENVIRONMENT VARIABLES 3.5.1 A macro program or a ROM-format file is transferred via the Selecting a RS-232-C/GPIB interface. The interface control systems vary between personal computer manufacturers. Control software including MPOUT, RS–232–
Page 244. FUNCTIONS B–66102E/10 4.1 MACRO COMPILER (1) Operation (MCOMP0/MCOMP15/ The macro compiler can compile macro programs created in the MS-DOS text file format. The macro compiler outputs an object file MCOMP15i) for the macro linker, reference list file, and compile list file. *1 *2 A:\> MCOMP0 fil
Page 25B–66102E/10 4. FUNCTIONS *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 o
Page 264. FUNCTIONS B–66102E/10 (5) Compile list file A compile list file is output as a result of macro program compilation after symbolic macro program analysis. A source program, errors, error codes, variable cross reference information, object file size information, and so forth are listed. The name of
Page 27B–66102E/10 4. FUNCTIONS 4.2 MACRO LINKER (1) Operation (MLINK) According to the specification in a link control file created beforehand, the macro linker creates a link list file and ROM-format file for creating a desired macro cassette. *1 *2 A:\> MLINK file-spec [parameters] ==> (For Series 0/16/
Page 284. FUNCTIONS B–66102E/10 (2) Link control file The link control file specifies a library file name, compile parameters, and object file names subject to linkage. As with a source file, a link control file must be created in MS-DOS text file format. At this time, be sure to assign the file name exten
Page 29B–66102E/10 4. FUNCTIONS (3) Link list file The link list file is output by the linker, and a library name, compile parameters, compile program list and size information, erroneous program numbers, error codes, ROM-format file size information and so forth are listed. The name of a link list file is
Page 304. FUNCTIONS B–66102E/10 NOTE 1 For the 21-TB (Controller A), always specify 128 KB. 2 For the Series 16, a 128-KB ROM-format file cannot be specified. 3 For the 21-MB or 21-TB (Controller B), no more than 1.0 MB can be specified. 4 For the 0i–A, no more than 512 KB can be specified. D Series 15i–A
Page 31B–66102E/10 4. FUNCTIONS 4.3 A linked ROM-format file can be transferred to CNC memory via a RS-232-C line, and whether the created ROM-format file operates ROM–FORMAT FILE correctly can be checked using the macro executor RAM operation TRANSMITTER (CNC) function of the CNC system. (FOR Series NOTE
Page 324. FUNCTIONS B–66102E/10 a) Activate the P-code loader function in the initialization loader function mode specified for the CNC (bit 1 of parameter No. 8701 = 0) to transfer all files from the personal computer. MTRNSC SAMPL.ROM 32 00800000 b) Debug the macro program. c) If an error is found, corre
Page 33B–66102E/10 4. FUNCTIONS 4.4 ROM–FORMAT FILE (1) Operation TRANSMITTER A linked ROM-format file is transferred to the FANUC PMC Writer or FANUC FA Writer via a RS-232-C line, and is written to (FANUC PMC a macro ROM and verified. WRITER/FANUC FA A:\> MROMWT file-spec parameters Write or write/verifi
Page 344. FUNCTIONS B–66102E/10 4.5 SERIAL INTERFACE UTILITY 4.5.1 Macro Program Input (1) Operation A macro program is read from the CNC/SYSTEM P via a RS-232-C line, then is stored in an MS-DOS text file for the macro compiler. A macro program is transferred from the CNC/SYSTEM P after the command below
Page 35B–66102E/10 4. FUNCTIONS 4.6 ROM–FORMAT FILE (1) Operation TRANSMITTER A linked ROM-format file is transferred to the FANUC FA Writer via a GP-IB interface, and is written to a macro cassette and verified. (FANUC FA WRITER, Since a linked ROM-format file is transferred to the FANUC FA GP–IB INTERFAC
Page 364. FUNCTIONS B–66102E/10 4.7 CONVERSION TO A (1) Operation Convert a ROM-format file created by the macro linker (MLINK) to MEMORY CARD the memory-card format file which can be loaded from the memory FORMAT (MMCARD) card using the boot function of the Series 15-B/16-B/20. (THIS FUNCTION IS A:\> MMCA
Page 37B–66102E/10 5. SYMBOLIC MACRO PROGRAM 5 SYMBOLIC MACRO PROGRAM A macro program is to be created according the rule described below. (1) A macro program must start with address O. Address % must be specified at the end of the file. Multiple programs can be coded in a single file. At this time, the st
Page 385. SYMBOLIC MACRO PROGRAM B–66102E/10 Symbolic name definition @xxxx yyyyyy xxxx: Symbolic name (String of alphanumeric characters beginning with an alphabetic character) Version 1.4 or pre- Version 2.1 or subse- Version of the compiler vious versions quent versions Maximum number of 8 32 characters
Page 39B–66102E/10 5. SYMBOLIC MACRO PROGRAM Example) @COUNT1 #100 >JUMP1 100 >SKIP 200 /: O0002 ; ==> O0002 ; GOTO JUMP1 ; GOTO 100 ; IF[COUNT1 LE 0]GOTO SKIP ; IF[#100 LE 0]GOTO 200 ; SKIP ; N200 ; JUMP1 M99 ; N100 M99 ; (6) Automatic conversion of hiragana and kanji codes Hiragana and kanji, when coded
Page 405. SYMBOLIC MACRO PROGRAM B–66102E/10 (8) Array variable coding Variables can be used as a one-dimensional array by using a simple coding method. Coding method #999 999: Number of first variable in array By this coding method, variables can be referenced or written to as array data with
Page 425. SYMBOLIC MACRO PROGRAM B–66102E/10 IF[#100 EQ 0] THEN #101 = 1; ELSE ; #101 = 2 ; GOO X#103 ; ENDIF ; Up to three levels of nesting of the IF statement are allowed. IF [...] THEN ; IF [...] THEN ; Statement ; ELSE ; IF [...] THEN ; Statement ; ENDIF ; ENDIF ; Statement ; ELSE ; Statement
Page 43B–66102E/10 6. RS-232-C INTERFACE SETTING 6 RS-232-C INTERFACE SETTING To transfer a ROM-format file to the CNC system or FANUC PMC-Writer/FA-Writer for writing to ROM/verification or transfer a macro program, the RS-232-C interface is controlled using the DOS function call (21H) auxiliary I/O devic
Page 447. GP-IB INTERFACE SETTING (FOR Series 0, 15–A, 16–A, 18–A) B–66102E/10 GP-IB INTERFACE SETTING 7 (FOR Series 0, 15-A, 16-A, 18-A) The GP-IB interface performs interface processing by using a GP-IB BIOS driver provided by each personal computer supplier. The user is to prepare a GP-IB interface boar
Page 45B–66102E/10 8. SYSTEM COMMON SYMBOL DEFINITION FILE 8 SYSTEM COMMON SYMBOL DEFINITION FILE When the system is installed, a system common symbol definition file is stored under the directory \MCOMP\TOOL. For macro program creation, the user should make full use of the symbolic names defined in the fi
Page 469. HOW TO VIEW REFERENCE LIST/COMPILE LIST B–66102E/10 9 HOW TO VIEW REFERENCE LIST/COMPILE LIST A source program coded using symbolic macro programs is converted by the macro compiler to a program in custom macro format for compile processing. The macro compiler outputs two types of list files: one
Page 49A. SYSTEM COMMON SYMBOL DEFINITION B–66102E/10 APPENDIX (\MCOMP\TOOL\SYSTEM.DEF) SYSTEM COMMON SYMBOL DEFINITION A (\MCOMP\TOOL\SYSTEM.DEF) D SYSTEM. DEF for series 0/16/18/20/21 $NOLIST /: /: ************************************************************** /: * System common symbol define * /: * for
Page 50A. SYSTEM COMMON SYMBOL DEFINITION (\MCOMP\TOOL\SYSTEM.DEF) APPENDIX B–66102E/10 /: @DRLINEK G244 /: Graphic Line kind select. @DRSTART G242 /: Draw start point. @DRLINE G01 /: Linear line display. @DRCW G02 /: Circle display(CW). @DRCCW G03 /: Circle display(CCW). /: @GRCSR G249 /: Graphic cursor.
Page 51A. SYSTEM COMMON SYMBOL DEFINITION B–66102E/10 APPENDIX (\MCOMP\TOOL\SYSTEM.DEF) @KEYCONT #8502 /: MDI–KEY IN CONTROL. @NOREAD #8502=0 /: No Data read. @NUMREAD #8502=1 /: Numeric Data read. @ADRREAD #8502=2 /: Address+Numeric Data read. @ASCREAD #8502=3 /: ASCII Data read. /: @KEYCODE #8501 /: MDI–
Page 52A. SYSTEM COMMON SYMBOL DEFINITION (\MCOMP\TOOL\SYSTEM.DEF) APPENDIX B–66102E/10 @ARRYTOP #8519 /: Array CONTORL (Top variable No.) /: @TRNSDAT #8511 /: Transfer CONTORL @TRNS2BS #8512 /: Transfer CONTORL @TRNS3BS #8513 /: Transfer CONTORL @TRNS2TO #8514 /: Transfer CONTORL @TRNS3TO #8515 /: Transfe
Page 56A. SYSTEM COMMON SYMBOL DEFINITION (\MCOMP\TOOL\SYSTEM.DEF) APPENDIX B–66102E/10 D SYSTEM. DEF for series 15i0/16/18/20/21 (Possible to use this symbol definition evenby series 15B) $NOLIST /: /: ************************************************************* /: * System common symbol define. * /: * f
Page 57A. SYSTEM COMMON SYMBOL DEFINITION B–66102E/10 APPENDIX (\MCOMP\TOOL\SYSTEM.DEF) @DRSTART G242 /: Draw start point. @DRLINE G301 /: Linear line display. @DRCW G302 /: Circle display(CW). @DRCCW G303 /: Circle display(CCW). /: @PMCDATA G310 /: PMC relay/data read and write. @1BYTE L1 /: 1 BYTE @2BYTE
Page 63B–66102E/10 APPENDIX B. COMPILE ERROR CODE TABLE B COMPILE ERROR CODE TABLE The table below indicates the error codes that may occur in compile processing. Compile Error Codes (1/3) Error code Meaning 0000 Normal termination 0201 Too many programs 0202 There is no program. 1001 Block delete number c
Page 64B. COMPILE ERROR CODE TABLE APPENDIX B–66102E/10 Compile Error Codes (2/3) Error code Meaning 101e Error in the PGN command 101f Error in the FDEL command 1020 Error in the FOPEN command 1021 Error in the FCLOS command 1022 Error in the FREAD command 1023 Error in the FWRITE command 1024 Error in th
Page 65B–66102E/10 APPENDIX B. COMPILE ERROR CODE TABLE Compile Error Codes (3/3) Error code Meaning 140a Number m in DO m or END m is not number from 1 to 3. 140b DO or END is followed by code other than number. 140c Alphabetic character string not identifiable as control command or function are present.
Page 66C. ROM WRITE/VERIFICATION PARAMETER TABLE APPENDIX B–66102E/10 C ROM WRITE/VERIFICATION PARAMETER TABLE Cassette type –K1xx –K2xx –IDxxxx –VCxx –VPxx –Pxx Series 0 64Kbyte –K110 –K223 –ID40B0 Omitted Omitted Omitted Series 0 128Kbyte –K110 –K226 –ID50B0 Omitted Omitted Omitted Series 0 256Kbyte –K11
Page 67B–66102E/10 APPENDIX D. COMPILE/LINK EXAMPLE D COMPILE/LINK EXAMPLE The compile/link example described below is created under the directory X:\MCOMP\USR\SAMPL when the macro compiler utility system is installed. Details of sample: Times required for instruction execution by each of the conversationa
Page 68D. COMPILE/LINK EXAMPLE APPENDIX B–66102E/10 Main program source file File name : MAIN.SRC /: /: SAMPLE Program. /: /: Conversation MACRO Execution-Time Test Program. /: (Vol 01.01 1997.03.14) /: /: /: ( MAIN Program ) /: /: /: Symbol define. /: /: System common symbole FILE Include. /: $INCLUDE \MC
Page 69B–66102E/10 APPENDIX D. COMPILE/LINK EXAMPLE TAIWAP1 = KEYDATA*100+1000 ; Jump To TEST progra. ; O1x00:x=key in data. ; FIN RETURNP LOOP ; END of conv. MACRO. /: /: $EJECT /: /: /: No. O1001 : Answer display sub program. /: /: LOOPCT : TEST Loop count. /: TIMESAV : No-operatinon Time. /: TSTTIME : M
Page 70D. COMPILE/LINK EXAMPLE APPENDIX B–66102E/10 Main program reference list file File name : MAIN.REF Fri Mar-14-1997 16:27:3 Page 1 (F0/F16) Macro Compiler (Pre) V01.01 MAIN.SRC ---------- Compile Parameter ----------------------------------------- ---------- Program ----------------------------------
Page 71B–66102E/10 APPENDIX D. COMPILE/LINK EXAMPLE Fri Mar-14-1997 16:27:3 Page 2 (F0/F16) Macro Compiler (Pre) V01.01 MAIN.SRC S-Line G-Line 219 /: 220 /: No. O1000 : Main program. 221 /: 222 0001 O1000 ; 223 0002 NUMREAD ; Numeric data input. 224 0003 CURSOR OFF ; Cursol OFF 225 0004 DISPLAY X0 Y0 B0 (’
Page 87B–66102E/10 APPENDIX D. COMPILE/LINK EXAMPLE ---------- Cross Reference ------------------------------------------- #100 : 6, 8, 10, 10, #101 : 9, #102 : 9, #500 : 6, #502 : 13, #3001 : 7, 13, #8500 : 21, #8501 : 18, #8502 : 2, Link control file File name : SAMPL.LNK --------------------------------
Page 88D. COMPILE/LINK EXAMPLE APPENDIX B–66102E/10 Link map list file File name : SAMPL.MAP -------------------------------------- Fri Mar-14-1997 16:28:3 Page 1 Macro Linker V01.01 SAMPL.MAP ---------- Library List ------------------------------------------------ NO FILE NAME LIBRARY NAME 1 \MCOMP\MEX\F0
Page 89E. MACRO CONVERTER (MCONV) OPERATION GUIDE FOR THE FANUC Series 16/18 B–66102E/10 APPENDIX Super CAP M/Super CAP II M MACRO CONVERTER (MCONV) OPERATION GUIDE FOR E THE FANUC Series 16/18 Super CAP M/Super CAP II M 79
Page 90E. MACRO CONVERTER (MCONV) OPERATION GUIDE FOR THE FANUC Series 16/18 Super CAP M/Super CAP II M APPENDIX B–66102E/10 E.1 Appendix E describes how to operate the tool for supporting the conversational automatic programming function (Super CAP M/Super INTRODUCTION CAP II M) for milling machines. The
Page 91E. MACRO CONVERTER (MCONV) OPERATION GUIDE FOR THE FANUC Series 16/18 B–66102E/10 APPENDIX Super CAP M/Super CAP II M E.2 MACRO CONVERTER (MCONV) E.2.1 A source file (extension: .DAT) containing a menu definition program, conversational data definition program, and data item display program is Outli
Page 92E. MACRO CONVERTER (MCONV) OPERATION GUIDE FOR THE FANUC Series 16/18 Super CAP M/Super CAP II M APPENDIX B–66102E/10 E.2.4 This file, which is output by the converter, is to be edited by the macro Table Data File linker. The name of the table data file is the same as that of the source file but wit
Page 93E. MACRO CONVERTER (MCONV) OPERATION GUIDE FOR THE FANUC Series 16/18 B–66102E/10 APPENDIX Super CAP M/Super CAP II M E.3 CONVERSION OF TABLE DATA WITH THE MACRO LINKER (MLINK) E.3.1 The table data file output by the macro converter can be converted together with the object file output by the macro
Page 94F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T WITH Series 16i/18i APPENDIX B–66102E/10 CREATING PROGRAMS BY USING SUPER CAP II F M/SUPER CAP II T WITH Series 16i/18i 84
Page 95F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T B–66102E/10 APPENDIX WITH Series 16i/18i F.1 The conventional Super CAP system (referred to below as CAP), compiles and links all the required user programs (referred to below as OVERVIEW programs) into a single MEM file (referred to below
Page 96F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T WITH Series 16i/18i APPENDIX B–66102E/10 F.2 The requirements for developing a user module and operating it on the CNC are listed below: DEVELOPMENT ENVIRONMENT (1) Personal computer D Main memory: At least 640K bytes D OS: MS–DOS Version 3
Page 97F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T B–66102E/10 APPENDIX WITH Series 16i/18i F.3 The CAP control module is a MEM file that is provided in place of the conventional library file. The CAP control module is loaded into the CAP CONTROL CNC. MODULE The CAP control module contains
Page 98F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T WITH Series 16i/18i APPENDIX B–66102E/10 F.4 The following user modules can be created: USER MODULES D Up to two user modules (user modules 1 and 2). D The maximum total size of user modules 1 and 2 is 768K bytes for Super CAP II T and 1.62
Page 99F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T B–66102E/10 APPENDIX WITH Series 16i/18i NOTE Specify the user module series/edition display. When a single user program is divided into two modules, specify the same compile parameters (except parameter 9000) in the link files for user mod
Page 100F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T WITH Series 16i/18i APPENDIX B–66102E/10 F.5 RESTRICTIONS (1) The P–CODE loading function cannot be used with modular CAP. IMPOSED ON THE (2) No program can be executed with the user modules only. The CAP control module is necessary. SYSTEM
Page 101F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T B–66102E/10 APPENDIX WITH Series 16i/18i F.6 CREATING SAMPLE D Example Create a 256K–byte user module 1 and link it with the user programs USER MODULES of CAPS and auxiliary processes. Create a 512K–byte user module FOR SUPER CAP II T 2 and
Page 102F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T WITH Series 16i/18i APPENDIX B–66102E/10 F.6.2 Create the link files to be used to create user modules 1 and 2. Creating Link Files D Link file for user module 1 (F16ITP1.LNK) /* /* Conversation MACRO Sample program LINK control file. /* ––
Page 103F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T B–66102E/10 APPENDIX WITH Series 16i/18i D Link file for user module 2 (F16TCP2.LNK) /* /* Conversation MACRO Sample program LINK control file. /* ––––––––––––––––––––––––––––––––––––––––––––––––––––––– /* /* executer file ’FS16TI for VGA’
Page 104F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T WITH Series 16i/18i APPENDIX B–66102E/10 F.7 CREATING SAMPLE D Example Create a 1.375M–byte user module 1 and link it with a conversational USER MODULES macro program and C program. Create a 256K–byte user module 2 FOR SUPER CAP II M and li
Page 105F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T B–66102E/10 APPENDIX WITH Series 16i/18i F.7.2 Create the link files to be used to create user modules 1 and 2. Creating Link Files D Link file for user module 1 (F16IMP1.LNK) /* /* Conversation MACRO Sample program LINK control file. /* ––
Page 106F. CREATING PROGRAMS BY USING SUPER CAP II M/SUPER CAP II T WITH Series 16i/18i APPENDIX B–66102E/10 D Link file for user module 2 (F16MCP2.LNK) /* /* Conversation MACRO Sample program LINK control file. /* –––––––––––––––––––––––––––––––––––––––––––––––––––––– /* /* executer file ’FS16MI for VGA’ /
Page 108G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.1 The boot system of first loads the CNC system software (flash RAM ! DRAM), then starts execution of the CNC software so that other software OUTLINE can be executed. (Some models run the CNC system software entirely i
Page 109G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) G.1.2 The boot system manages files in flash memory by dividing them into two System File and User main groups: system files and user files. These two groups have the following characteristics: File D System files CNC an
Page 110G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.2 When the boot system is started, the MAIN MENU screen appears. The contents of this screen are described below: OPERATION AND CORRESPONDING SCREENS SYSTEM MONITOR MAIN MENU 60M1 - 05 1. SYSTEM DATA LOADING 2. S
Page 111G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) G.2.1 System Data Loading Screen Description This screen is used to read a system or user file from a memory card and write it to flash memory. Screen configuration SYSTEM DATA LOADING 1/1 FILE DIRECTORY B0A1E01.ROM
Page 112G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 (4) When the function terminates normally, the system displays the following message. Press the [SELECT] soft key. If an error occurs, see Appendix (B). ∗∗∗ MESSAGE ∗∗∗ LOADING COMPELETE. HIT SELECT KEY. Others (a) Count
Page 113G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) D Series 21 File name Contents File type NC BASIC Basic (:1) System file DG SERVO Servo (:1) System file GRAPHIC Graphic (:1) System file NC OPTN Optional (:1) System file PMC ∗∗∗∗ PMC control software, etc. (:1) System
Page 114G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.2.2 System Data Check Screen Description This screen is used to list files in flash memory, together with the number of 128-KB management units constituting each file and the series and edition of the software. Screen
Page 115G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) Operation (1) Select the file for which details are required. For example, select ”1 NC BASIC.” (2) The numbers of management units in the selected file are listed, together with the series and edition of the software. A
Page 116G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.2.3 System Data Delete Screen Description This screen is used to delete a user file from flash memory. Screen configuration SYSTEM DATA DELETE FILE DIRECTORY 1 NC BASIC(10) 2 DG SERVO( 1) 3 PMC-RB ( 1) 4 PCD 0.5M(
Page 117G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) Others D System file and user file on SYSTEM DATA DELETE screen The SYSTEM DATA DELETE function provides a safeguard against accidental deletion of the system files. User files, however, are not protected. Protected syst
Page 118G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.2.4 System Data Save Screen Description This screen is used to write a user file from flash memory to a memory card. This function supports the writing of user files only. System files cannot be written from flash memo
Page 119G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) (4) When saving terminates normally, the system displays the following message. Press the [SELECT] key. The name of the file written to the memory card is displayed. Check the file name. ∗∗∗ MESSAGE ∗∗∗ FILE SAVE COMPLET
Page 120G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.2.5 SRAM Data Backup Screen Description This screen is used for the batch saving and restoring of parameters, programs, and other data to be retained after the CNC is turned off to/from a memory card. Screen configurat
Page 121G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) (3) Upon terminating normally, the system displays the following message. Press the [SELECT] soft key. SRAM BACKUP COMPLETE. HIT SELECT KEY. [Restoring data] (1) Select ”2. RESTORE SRAM.” The system displays the followin
Page 122G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.2.6 Memory Card File Delete Screen Description This screen is used to delete a file from a memory card. Screen configuration SYSTEM DATA LOADING 1/1 FILE DIRECTORY B0A1E01.ROM B0A1E02.ROM END ∗∗∗ MESSAGE ∗∗∗ SE
Page 123G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) G.2.7 Memory Card Format Function Description This function is used to format a memory card. A memory card must be formatted before it can be used for the first time or before it is to be re-used after its data has been
Page 124G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.2.8 End of Boot System Description This function is used to terminate the boot system and activate the CNC. Operation On the MAIN MENU screen, select ”9. END.” The system displays the ”ARE YOU SURE? HIT YES OR NO” mess
Page 125G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) G.3 The following table lists and explains error messages in alphabetical order. ERROR MESSAGES AND REQUIRED ACTIONS Message Description and required action D DELETE ERROR. Cause An attempt to delete a file from flash RO
Page 126G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 Message Description and required action M MAX EXTENSION OVER. Cause The extension number added to a file name exceeds 031. HIT SELECT KEY. Action Delete any unnecessary backup files from the memory card. MEMORY CARD BATT
Page 127G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) Message Description and required action S SRAM DATA BACKUP ERROR. Cause An attempt to write a backup file to a memory card failed. HIT SELECT KEY. Action Check that the memory card is normal. SRAMXXXX * NOT FOUND. Cause
Page 128G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.4 SETTING A MACRO PASSWORD (Series 20) G.4.1 Overview The Series 20 can easily read a file from flash memory and write it to a memory card. Security for the P-CODE file of a user-created macro executor is important. As
Page 129G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) G.4.3 Setting a Password Specify a password in the MLINK link control file (extension .LNK). The five digits immediately subsequent to PASS= constitute the password. In the example below, the password is 15243. (Example)
Page 130G. BOOT SYSTEM (FOR Series 16–B/C, 18–B/C, 20, 21–B, 0i–A) APPENDIX B–66102E/10 G.5 When the NO SPACE message is displayed, flash memory is in one of the following two states: FREE AREA IN FLASH MEMORY (1) Flash memory is fully occupied. (Series 20) (2) Flash memory contains files in non-contiguous
Page 131G. BOOT SYSTEM (FOR Series 16–B/C, B–66102E/10 APPENDIX 18–B/C, 20, 21–B, 0i–A) 1 NC BASIC(10) 2 DG SERVO( 1) 3 PMC-RA ( 1) 4 PCD 0.5M( 4) 5 OPT LANG( 4) The files are written into the 3MB flash memory module as shown below: Before deletion (continuous free area) After deletion (non-continuous free
Page 133H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) H.1 The boot system load the CNC system software (flash RAM→DRAM), then starts it so that software can be executed. OVERVIEW The boot system provides the following maintenance functions for the CNC: (1) Registering a file in flash ROM ⋅ Re
Page 134H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 2 When the flash memory 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 b
Page 135H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) H.2 When the boot system is first started, the MAIN MENU screen is displayed. This screen is described below : SCREEN CONFIGURATION AND OPERATING PROCEDURE D MAIN MENU screen (1) SYSTEM MONITOR MAIN MENU 60M1-01 (2) 1. SYSTEM DATA LOADING
Page 136H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 H.2.1 System Data Loading Screen D Description This screen is used to read a system or user file from a memory card into flash ROM. D Screen configuration (1) SYSTEM DATA LOADING 1/1 FILE DIRECTORY (2) B1F1A_B.MEM B1F1A_AI.MEM (3) END ∗∗∗
Page 137H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) 3 To start loading, press the [YES] soft key. To cancel, press the [NO] key. ∗∗∗ MESSAGE ∗∗∗ LOADING FROM MEMORY CARD. 4 When loading terminates normally, the system displays the following message. Press the [SELECT] soft key. If an error
Page 138H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 3 File name of the executor system software The Series 16i/18i/21i–A has separate executor system software for path 1, path 2, and the loader. All the software is stored in the flash ROM of the first path. Under two–path control with the S
Page 139H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) H.2.2 System Data Check Screen D Description This screen is used to list files in flash ROM, together with the corresponding numbers of 128–KB management units in each file and the series and edition of the software. D Screen configuration
Page 140H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 D Operating procedure 1 Select the file whose details are required. For example, select “1 NC BASIC (10).” 2 The numbers of management units in the selected file are listed, together with the series and edition of the software in each mana
Page 141H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) H.2.3 System Data Delete Screen D Description This screen is used to delete a user file from flash ROM. D Screen configuration (1) SYSTEM DATA CHECK 1/1 (2) [BOARD:MAIN] FILE DIRECTORY (FLASH ROM : 4MB) (3) 1 NC BASIC ( 10) 2 DG SERVO ( 1)
Page 142H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 D Others 1 System files and user files on SYSTEM DATA DELETE screen The system files are protected from accidental deletion. User files, however, are not protected. Protected system files can be overwritten from the SYSTEM DATA LOADING scr
Page 143H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) D Operating procedure 1 Position the cursor to the name of the file to be deleted. Press the [SELECT] soft key. 2 The system displays the following confirmation message : ∗∗∗ MESSAGE ∗∗∗ SAVE OK ? HIT YES OR NO. 3 To start saving, press th
Page 144H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 H.2.5 SRAM Data Backup Screen D Description This screen is used to collectively save and restore parameters, programs, and other data, retained after the CNC power in SRAM is turned off, to and from a memory card. D Screen configuration Se
Page 145H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) D Operating procedure [Backing up data] 1 Select “1. SRAM BACKUP.” The following confirmation message is displayed. The backup file name may be displayed according to the SRAM capacity. 2 Press [YES] to start backup. ∗∗∗ MESSAGE ∗∗∗ BACKUP
Page 146H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 D Others 1 Name of backup file The name of the backup file written to the memory card by the SRAM backup function depends on the size of the SRAM installed in the CNC. When the size of SRAM is 1MB or larger, backup files are created in uni
Page 147H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) H.2.6 Memory Card File Delete Screen D Description This screen is used to delete a file from a memory card. D Screen configuration (1) SRAM DATA LOADING 1/1 FILE DIRECTORY (2) B1F1A_B.MEM B1F1A_A1.MEM (3) END ∗∗∗ MESSAGE ∗∗∗ (4) SELECT FIL
Page 148H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 H.2.7 Memory Card Format Function D Description This function is used to format a memory card. Memory cards must be formatted before they can be used for the first time or before they can be re–used after their data has been destroyed or l
Page 149H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) H.2.8 Load Basic System Function D Description The function is used to terminate the boot system and activate the CNC. D Operating procedure From the MAIN MENU screen, select “9. END.” The system displays the “ARE YOU SURE? HIT YES OR NO”
Page 150H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 H.3 The following table lists and explains error messages in alphabetical order. ERROR MESSAGES AND REQUIRED ACTIONS Message Description and required action B BOOT ROM PARITY. Cause The contents of flash memory containing boot software was
Page 151H. BOOT SYSTEM B–66102E/10 APPENDIX (FOR Series 16i/18i/21i) Message Description and required action M MAX EXTENSION OVER. Cause The extension number added to a file name exceeds 031. HIT SELECT KEY. Action Delete any unnecessary backup files from the memory card. MEMORY CARD BATTERY ALARM. Cause Th
Page 152H. BOOT SYSTEM (FOR Series 16i/18i/21i) APPENDIX B–66102E/10 Message Description and required action R ROM PARITY ERROR: Cause The NC BASIC is parity error. NC BASIC. HIT SELECT. Action Check whether NC BASIC is in flash ROM, using SYSTEM DATA CHECK. S SRAM DATA BACKUP ERROR. Cause An attempt to wri
Page 153I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) P-CODE LOADER FUNCTION (FOR Series 16-B/C, I 18-B/C, 21-TA, Series 16i/18i/21i-A/B) 143
Page 154I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, 21–TA, Series 16i/18i/21i–A/B) APPENDIX B–66102E/10 I.1 OUTLINE The P-CODE loader function transfers ROM-format files created by a personal computer (PC) macro compiler into RAM of CNC. The function also supports writing to flash ROM (exclude of
Page 155I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) I.2 PROCESSING BY P–CODE LOADER (1) RAM initialization screen FUNCTION (2) Loading start screen (3) Loading screen (4) Loading end screen (5) Flash ROM transfer screen (exclude of 21–TA) (6) Fla
Page 156I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, 21–TA, Series 16i/18i/21i–A/B) APPENDIX B–66102E/10 I.2.2 RAM Initialization When a Series with two-path control is being used, the path selection Screen screen is displayed subsequent to the title screen, as shown below. By pressing the M or S a
Page 157I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) I.2.3 After the RAM is initialized, the screen for starting loading is displayed. Loading Start Screen MACRO COMPILER/EXECUTER P-CODE LOADER (I/O PARAMETERS) (DATA TRANSFER) I/O CHANNEL = 0 (MAP
Page 158I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, 21–TA, Series 16i/18i/21i–A/B) APPENDIX B–66102E/10 I.2.4 When the CNC receives data, the data reception state is indicated, as Loading Screen shown below. Under the DATA TRANSFER field, the data being transferred together with its address, are d
Page 159I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) I.2.5 Loading End Screen This screen indicates whether loading has terminated normally. (Normal termination) (1) Except Series 21–TA Once data has been loaded normally, the following screen appe
Page 160I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, 21–TA, Series 16i/18i/21i–A/B) APPENDIX B–66102E/10 MACRO COMPILER/EXECUTER P-CODE LOADER HEAD 1 (I/O PARAMETERS) (DATA TRANSFER) ADRxxxxxxH:xx I/O CHANNEL = 0 (MAPPING - 1MB) I/O UNIT = 0 ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗ BAUDRATE =11 ∗∗∗∗∗ STOP BIT = 1 INPUT COD
Page 161I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) (Abnormal termination) MACRO COMPILER/EXECUTER P-CODE LOADER (I/O PARAMETERS) (DATA TRANSFER) ADRxxxxxxH:xx I/O CHANNEL = 0 (MAPPING - 1MB) I/O UNIT = 0 ∗∗∗∗∗∗∗∗∗∗ BAUDRATE =11 STOP BIT = 1 INPU
Page 162I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, 21–TA, Series 16i/18i/21i–A/B) APPENDIX B–66102E/10 I.2.6 While data is being transferred from RAM to the flash ROM, the Flash ROM Transfer following screen is displayed: Screen (Except Series MACRO COMPILER/EXECUTER P-CODE LOADER 21) (I/O PARAME
Page 163I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) I.2.7 This screen indicates whether the data transfer to flash ROM terminated Flash ROM Transfer normally. End Screen (Except Series 21) (Normal termination) MACRO COMPILER/EXECUTER P-CODE LOADE
Page 164I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, 21–TA, Series 16i/18i/21i–A/B) APPENDIX B–66102E/10 (Abnormal termination) MACRO COMPILER/EXECUTER P-CODE LOADER (I/O PARAMETERS) (DATA TRANSFER) ADRxxxxxxH:xx I/O CHANNEL = 0 (MAPPING - 1MB) I/O UNIT = 0 ∗∗∗∗∗∗∗∗∗∗∗∗∗ BAUDRATE =11 ∗∗∗∗ STOP BIT
Page 165I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) I.2.8 Notes (1) The Series except 21–TA uses either channel 1 or 2 for input and output during loading. The Series except 21–TA cannot use another channel for loading. The Series 21-TA use chann
Page 166I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, 21–TA, Series 16i/18i/21i–A/B) APPENDIX B–66102E/10 I.3 Address PARAMETER 0020 I/O DEVICE SELECTION : I / O C H A N N E L Setting Entry [Data type] : Byte [Data range] : 0 to 3 Select an I/ O device used. 0 : Select a device connected to channel
Page 167I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) Address 0103 Baud rate (For I/O CHANNEL=0) [Data type] : Byte Set a baud rate of I/O device for I/O CHANNEL=0 according to Table 2. Table 2 Set Baud rate Set Baud rate Set Baud rate 1 50 5 20 9
Page 168I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, 21–TA, Series 16i/18i/21i–A/B) APPENDIX B–66102E/10 Address 0123 Baud rate (I/O CHANNEL=2 ) [Data type] : Byte Set baud rate of I/O device for I/O CHANNEL=2 according to Table 2. Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 8701 PLD [Data type] : Bit
Page 169I. P–CODE LOADER FUNCTION (FOR Series 16–B/C, 18–B/C, B–66102E/10 APPENDIX 21–TA, Series 16i/18i/21i–A/B) I.4 ALARMS Message Meaning EXECUTER OPTION NOTHING OR NO Possible causes are as follows: SPACE IN D-RAM 1) No macro executor option has been selected. 2) No macro capacity option has been select
Page 170J. P-CODE LOADER FUNCTION (FOR Series 20) APPENDIX B–66102E/10 J P-CODE LOADER FUNCTION (FOR Series 20) The P-CODE loader function transfers ROM-format files created by a personal computer (PC) macro compiler into RAM of CNC. The function also supports writing to flash ROM. The CNC is connected to t
Page 171J. P-CODE LOADER FUNCTION B–66102E/10 APPENDIX (FOR Series 20) J.1 IPL MENU FS20 IPL MENU 1 FILE CLEAR 2 P CODE LOADER END ∗∗∗ MESSAGE ∗∗∗ SELECT ITEM AND HIT [SELECT] KEY. [ UP ][ DOWN ][ ][ ][ SELECT ] (a) Select a mode by pressing the [UP] and [DOWN] soft keys, then press the [SELECT] soft key. 1
Page 172J. P-CODE LOADER FUNCTION (FOR Series 20) APPENDIX B–66102E/10 J.2 The P-CODE loader function performs processing as follows. At each step the appropriate menu is displayed. PROCESSING FLOW (a) RAM initializing menu FOR THE P–CODE # LOADER FUNCTION (b) Loading start menu # (c) Loading menu # (d) Loa
Page 173J. P-CODE LOADER FUNCTION B–66102E/10 APPENDIX (FOR Series 20) J.2.2 Upon completion of RAM area initialization, the loading start menu is Loading Start Menu displayed. MACRO COMPILER/EXECUTER P-CODE LOADER (I/O PARAMETERS) (DATA TRANSFER) I/O CHANNEL = 0 (MAPPING - 1MB) I/O UNIT = 1 –––––––––––––––
Page 174J. P-CODE LOADER FUNCTION (FOR Series 20) APPENDIX B–66102E/10 J.2.4 Loading End Menu When loading ends, either of the following screens appears to indicate whether loading terminated normally. (For normal termination) MACRO COMPILER/EXECUTER P-CODE LOADER (I/O PARAMETERS) (DATA TRANSFER) ADR xxxxxx
Page 175J. P-CODE LOADER FUNCTION B–66102E/10 APPENDIX (FOR Series 20) NOTE The IPL menu reappears after DRAM is initialized. Specify whether reloading data into DRAM is started by selecting the [YES] or [NO] soft key. 165
Page 176J. P-CODE LOADER FUNCTION (FOR Series 20) APPENDIX B–66102E/10 J.2.5 The following menu is displayed while data is being transferred from Menu for Transferring DRAM into flash ROM memory. Data into FLASH ROM MACRO COMPILER/EXECUTER P-CODE LOADER Memory (I/O PARAMETERS) (DATA TRANSFER) ADR xxxxxxH:xx
Page 177J. P-CODE LOADER FUNCTION B–66102E/10 APPENDIX (FOR Series 20) J.2.6 When transferring data into flash ROM memory is completed, either of Menu for end of the following screens appears to indicate whether the transfer terminated normally. Transfer of FLASH ROM Memory (For normal termination) MACRO CO
Page 178J. P-CODE LOADER FUNCTION (FOR Series 20) APPENDIX B–66102E/10 J.2.7 Notes (1) The Series 20 uses either channel 1 or 2 for input and output during loading. The Series 20 cannot use another channel for loading. (2) Either ASCII or ISO data can be transferred. EIA data is not supported. The ASI bit (
Page 179J. P-CODE LOADER FUNCTION B–66102E/10 APPENDIX (FOR Series 20) J.3 PARAMETER Address 0020 I/O DEVICE SELECTION : I/O CHANNEL Setting Entry Data type : Byte Data range : 0 to 3 Select an I/ O device used. 0 : Select a device connected to channel 1. (I/O device connected to JD5A on MAIN CPU BOARD) 1 :
Page 180J. P-CODE LOADER FUNCTION (FOR Series 20) APPENDIX B–66102E/10 Address 0103 Baud rate (For I/O CHANNEL=0) Data type : Byte Set a baud rate of I/O device for I/O CHANNEL=0 according to Table 2. Table 2 Set Baud rate Set Baud rate Set Baud rate 1 50 5 20 9 2400 2 100 6 300 10 4800 3 110 7 600 11 9600
Page 181J. P-CODE LOADER FUNCTION B–66102E/10 APPENDIX (FOR Series 20) Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 8701 PLD Data type : Bit PLD : P-CODE Loader of Macro Compiler/Executer 0 : Clears RAM of macro compiler and rewrites all contents. 1 : Do not clear RAM of macro compiler and overwrites it. 171
Page 182J. P-CODE LOADER FUNCTION (FOR Series 20) APPENDIX B–66102E/10 J.4 ALARMS Message Meaning EXECUTER OPTION NOTHING Macro executer option is not equipped. I/O OPTION NOTHING Reader/puncher control 1 option is not selected. I/O OPTION (CH2) NOTHING Reader/puncher control 2 option is not selected. ILLEG
Page 183B–66102E/10 APPENDIX K. BOOT SYSTEM (FOR Series 15-B/15i-A) K BOOT SYSTEM (FOR Series 15-B/15i-A) 173
Page 184K. BOOT SYSTEM (FOR Series 15-B/15i-A) APPENDIX B–66102E/10 K.1 OUTLINE The boot system of the Series 15-B/15i-A first loads the CNC system software (Flash Memory (F-ROM) → DRAM), then starts execution of the CNC software so that other software can be executed. The Series 15-B/15i-A boot system supp
Page 185B–66102E/10 APPENDIX K. BOOT SYSTEM (FOR Series 15-B/15i-A) K.2 MEMORY CARD (a) Specifications SPECIFICATIONS For the Series 15-B/15i-A boot system, commercially available memory cards conforming to the following specification can be used: AND RESTRICTIONS Format : JEIDA Ver. 4 or above Capacity : 5
Page 186K. BOOT SYSTEM (FOR Series 15-B/15i-A) APPENDIX B–66102E/10 K.3 STARTING THE The starting procedure depends on whether a MEM-format file is loaded from a memory card into F-ROM or whether a ROM-format file is loaded BOOT SYSTEM from a ROM cassette. Starting procedure Main menu item ”Page Up” key, ”P
Page 187B–66102E/10 APPENDIX K. BOOT SYSTEM (FOR Series 15-B/15i-A) After power-on, releasing the pressed keys causes the following boot system main menu to be displayed: SYSTEM MONITOR 1. SYSTEM DATA LOADING 2. SYSTEM DATA CHECK 3. SYSTEM DATA SAVE 4. FILE DATA BACKUP 5. END ∗∗∗ MESSAGE ∗∗∗ SELECT MODE AND
Page 188K. BOOT SYSTEM (FOR Series 15-B/15i-A) APPENDIX B–66102E/10 K.4 REGISTERING A (1) Insert the memory card in the memory card interface of the CNC unit. MEM–FORMAT FILE, STORED ON A PMC PSU MEMORY CARD, INTO F–ROM Series 15-B Memory card Fig. K.4 (a) Mounting of a Memory Card NOTE The PMC slot is used
Page 189B–66102E/10 APPENDIX K. BOOT SYSTEM (FOR Series 15-B/15i-A) (3) Select ”2. SYSTEM DATA CHECK” using the cursor keys and press the input key. The contents of F-ROM are retrieved, and the following information is displayed on the screen: SYSTEM DATA CHECK FILE DIRECTORY 1. OPTIONA3 ( 2) 2. HELP MSG (
Page 190K. BOOT SYSTEM (FOR Series 15-B/15i-A) APPENDIX B–66102E/10 CAUTION When an attempt is made to delete a system file, such as a CNC program or the macro compiler, the message ”PROTECT FILE” appears on the screen and the attempt is rejected. However, the system deletes user files, such as the PMC ladd
Page 191B–66102E/10 APPENDIX K. BOOT SYSTEM (FOR Series 15-B/15i-A) (10)The message ”OK? INPUT/CANCEL” appears. To register the selected program, press the input key. To not register the selected file cancel, press the ”cancel” key. The DATA LOADING DIRECTORY screen [see Fig. K.4 (c)] is then displayed agai
Page 192K. BOOT SYSTEM (FOR Series 15-B/15i-A) APPENDIX B–66102E/10 K.5 SAVING A (1) Insert the memory card in the memory card interface of the CNC unit to activate the boot system. See steps 1 and 2 of Sec.K.4, Procedure MEM–FORMAT FILE for registering a P-CODE file in a memory card to F-ROM. FROM F–ROM TO
Page 193B–66102E/10 APPENDIX K. BOOT SYSTEM (FOR Series 15-B/15i-A) (4) The message ”INPUT FILE NAME” appears. Input the file name using the MDI key. A file must be named according to MS-DOS file naming rules; that is, a file name consisting of up to eight characters followed by a three-character or shorter
Page 194K. BOOT SYSTEM (FOR Series 15-B/15i-A) APPENDIX B–66102E/10 K.6 REGISTERING A (1) Connect the ROM cassette into which the program has been written using System P or a personal computer to the ROM cassette adapter ROM–FORMAT FILE, (A20B-2000-0760). STORED ON A ROM CASSETTE, INTO F–ROM ROM ROM cassett
Page 195B–66102E/10 APPENDIX K. BOOT SYSTEM (FOR Series 15-B/15i-A) (3) Turn on the power of the CNC unit while holding down the cursor (← and →) keys, and the boot system is activated. Refer to ”K.3 STARTING THE BOOT SYSTEM”. (4) Check the contents of F-ROM. If a P-CODE file is already registered, delete i
Page 196K. BOOT SYSTEM (FOR Series 15-B/15i-A) APPENDIX B–66102E/10 (8) Select ”2. SYSTEM DATA CHECK” to retrieve the contents of F-ROM. After confirming that the P-CODE file has been registered in F-ROM. Press the input key to return the main menu [Fig. K.3 (b)]. (9) Turn off the power of the CNC unit, and
Page 197B–66102E/10 APPENDIX K. BOOT SYSTEM (FOR Series 15-B/15i-A) K.7 TYPES OF FILES IN The following table lists the macro compiler/executer file names displayed on the SYSTEM DATA CHECK screen: F–ROM D Series 15–B Displayed name Type Description MCR-CMPA S Macro compiler for systems without a sub-CPU MC
Page 198L. NAME OF MACRO LIBRARY APPENDIX B–66102E/10 L NAME OF MACRO LIBRARY Library file names of macro library are listed below: Table L.1 List of Macro Library File Names System name Specification Library file name Remarks MACRO LIBRARY (0) A08B–9001–J600#ZZ03 FOMC_xx.MEX Series 0–MC FOTC_xx.MEX Series
Page 199B–66102E/10 APPENDIX L. NAME OF MACRO LIBRARY System name Specification Library file name Remarks FANUC Series 18i–B A08B–9001–J831#ZZ07 F18IMB_xx.MEX Series 18i–MB MACRO LIBRARIES F18ITB_xx.MEX Series 18i–MB 18TMMB_xx.MEX Series 18i–TMB (Sub side/M series) 18TMTB_xx.MEX Series 18i–TMB (Main side/T
Page 200L. NAME OF MACRO LIBRARY APPENDIX B–66102E/10 System name Specification Library file name Remarks MACRO LIBRARY A08B–9001–J672#ZZ03 DZ72_xx.MEX Series 20–FA (1M byte) (20F GB) MACRO LIBRARY A08B–9001–J673#ZZ03 DZ73_xx.EX1 With Series 20–FA Guidance Program- (20F GPB) DZ73_xx.EX2 ming function (1.5M
Page 201B–66102E/10 APPENDIX M. PARAMETERS M PARAMETERS This section describes the compiler parameters and executor parameter for the CNC system excluding Series 15. For the parameters of Series 15, refer to the manuals listed below., 1) FANUC Series 15 Programming Manual (Macro compiler/Macro executor) (B–
Page 202M. PARAMETERS APPENDIX B–66102E/10 M.1 The compile parameters are initialized to the values set in the P–CODE file at power–up. The parameters cannot be changed from MDI or others. SERIES 15i COMPILE However, parameters 8547 and 8548, which are used for debugging, can PARAMETERS be set from MDI. Bit
Page 203B–66102E/10 APPENDIX M. PARAMETERS Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 8503 MV7 MV6 MV5 MV4 MV3 MV2 MV1 MV0 8504 MVA MV9 MV8 ECK = 0 : P–CODE macro common variables (#100 to #999) are also used as custom macro common variables. = 1 : P–CODE macro common variables (#100 to #999) are independent o
Page 204M. PARAMETERS APPENDIX B–66102E/10 PWS = 0 : The P–CODE work number search is disabled. = 1 : The P–CODE work number search is enabled. Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 8508 PGR CLG B5C SSC TEC AC2 AC1 AC1 =0: A subprogram call (O9004) by a special code is disabled. =1: A subprogram call (O90
Page 205B–66102E/10 APPENDIX M. PARAMETERS = 1 : The following calls are disabled: call by an M, S, T, secondary miscellaneous function, or special code or by an axis address during a G–code call, and a G–code call during a call by an M, S, T, secondary miscellaneous function, or special code or by an axis
Page 206M. PARAMETERS APPENDIX B–66102E/10 Address 8523 M code of subprogram call for calling program 9020 8524 M code of subprogram call for calling program 9021 8525 M code of subprogram call for calling program 9022 8526 M code of subprogram call for calling program 9023 8527 M code of subprogram call fo
Page 207B–66102E/10 APPENDIX M. PARAMETERS Address 8538 Call code of subprogram call by a range specification M code (lower limit) 8539 Call code of subprogram call by a range specification M code (upper limit) Valid data range : 1 to 9999 These parameters specify the range of call codes of subprogram calls
Page 208M. PARAMETERS APPENDIX B–66102E/10 Address 8546 Number of G–code macro calls (multiple) to be defined 8551 First G code for G–code macro calls (multiple) 8552 First program number of G–code macro calls (multiple) Valid data range : Parameter 8546: 1 to 255 Parameter 8551: –9999 to 9999 (excluding 0)
Page 209B–66102E/10 APPENDIX M. PARAMETERS Address 8548 Number of the conversational or auxiliary macro sequence in which a break occurs Valid data range : 0 to 99999999 This parameter specifies the number of the conversational or auxiliary macro sequence in which a break is caused by the debug function. NO
Page 210M. PARAMETERS APPENDIX B–66102E/10 The bits of the parameters select different axes. No.8555 X01 : First axis X02 : Second axis : No. 8504 : X24 : Twenty–fourth axis Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 8558 ACA P98 15I PWT XDL ACS ACS = 0 : A macro call by an axis address always calls O9009. = 1
Page 211B–66102E/10 APPENDIX M. PARAMETERS P98 = 0 : The execution macro for P–CODE work number search is called by a macro call. A local variable used by the execution macro cannot be used in the main program. = 1 : The execution macro for P–CODE work number search is called by a subprogram call. A local v
Page 212M. PARAMETERS APPENDIX B–66102E/10 Address 8576 P–CODE common variable (#200 to #499) protect range (top) 8577 P–CODE common variable (#200 to #499) protect range (bottom) Valid data range : 200 to 499 These parameters specify the range of battery–backed P–CODE common variables (#200 to #499) to be
Page 213B–66102E/10 APPENDIX M. PARAMETERS M.2 PARAMETERS OTHER THAN SERIES 15i M.2.1 Compile Parameters NOTE Usually, undefined parameters need to be set to 0. Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 Compile 9000 M3MB M2MB M1MB M512 M256 M128 parameter Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 Compile 9001 M
Page 214M. PARAMETERS APPENDIX B–66102E/10 = 1 : Extension P-CODE variable #20000 is the fixed decimal format XDIL = 0 : Axis interlock function invalid = 1 : Axis interlock function valid DAUX = 0 : Does not make the CUSTOM screen appear at power on = 1 : Makes CUSTOM screen appear at power on PWSR = 0 : P
Page 215B–66102E/10 APPENDIX M. PARAMETERS IMG = 0 : 16-T type (Special G code) = 1 : 16-G type (Special G code) HRGC = 0 : 9I high resolusion monochrome CRT, standard = 1 : 9I high resolution monochrome CRT, brightness modulation mode setting (paint) NOP_B = 0 : When no other address is specified in a bloc
Page 216M. PARAMETERS APPENDIX B–66102E/10 DAUXR : The conversational macro screen is displayed when power is turned on while the system is in the emergency stop state or external reset state. (Parameter DAUX (No. 9002, #5) must also be set to 1.) CNCHG : Execution of the conversational macro is continued w
Page 217B–66102E/10 APPENDIX M. PARAMETERS MDLP = 0 : A G code to cancel modal calling cannot be used to call a macro to be executed. = 1 : A G code to cancel modal calling can be used to call O9006. MCARG= 0 : In macro calling of G/M codes, P/L/N/G is not argument. = 1 : In macro calling of G/M codes, P/L/
Page 218M. PARAMETERS APPENDIX B–66102E/10 Address 9037 Used number of (1/100) of conversational macro exclusive variable 9038 Conversational macro execlusion program at the time of power supply input (CUSTOM screen 1) 9039 Auxility macro execution program number 9040 Conversational macro execution program
Page 219B–66102E/10 APPENDIX M. PARAMETERS MSFT = 0 : A soft key frame is not displayed on the CUSTOM screen. = 1 : A soft key frame is displayed on the CUSTOM screen. (Valid only when no background color is provided.) 209
Page 220M. PARAMETERS APPENDIX B–66102E/10 M.2.2 Executer Parameter Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 9000 L2R MKG RSC EXS STP NDP SQN SQN = 1 : Displays program number of recorded program and sequence number during execution of a recorded program. = 0 : Displays program number and sequence number of
Page 221B–66102E/10 APPENDIX M. PARAMETERS Bit No. Address #7 #6 #5 #4 #3 #2 #1 #0 9010 MA8 MA7 MA6 MA5 MA4 MA3 MA2 MA1 MA1 = 1 : Masks a first axis address macro call. =0: Does not mask a first axis address macro call. MA2 = 1 : Masks a second axis address macro call. =0: Does not mask a second axis addres
Page 222N. Super CAP T/Super CAP II T LOADING TO FLASH ROM APPENDIX B–66102E/10 N Super CAP T/Super CAP II T LOADING TO FLASH ROM The FANUC Super CAP T is produced by the custom macros and macro executor. The FANUC standard conversational automatic function is also realized by the custom macros. This specif
Page 223N. Super CAP T/Super CAP II T B–66102E/10 APPENDIX LOADING TO FLASH ROM N.1 Before the system installation, please install a memory card adapter in your personal computer. SYSTEM INSTALLATION (1) Installing the FAPT MACRO Compiler System Software Install the the FAPT MACRO compiler system software a
Page 224N. Super CAP T/Super CAP II T LOADING TO FLASH ROM APPENDIX B–66102E/10 N.2 COMPILING Command MCOMP0 file–spec (*1) (*1) file–spec : Specify a macro program source. (example) MCOMP0 BH0F_01 The following files are created once the compiling is complete normally. BH0F_01.REL Relocatable file BH0F_01.
Page 225N. Super CAP T/Super CAP II T B–66102E/10 APPENDIX LOADING TO FLASH ROM N.3 LINKING (1) Specifying the File to Link (example) BH0F.LNK CNC = \MCOMP\MEX\BH0F_01.EX1 CNC2 = \MCOMP\MEX\BH0F_01.EX2 Executor file CNC3 = \MCOMP\MEX\BH0F_01.EX3 /: P9000 = 10100000 P9001 = 10000001 P9002 = 11000000 P9003 =
Page 226N. Super CAP T/Super CAP II T LOADING TO FLASH ROM APPENDIX B–66102E/10 N.4 WRITE TO THE (1) Execution of MMCARD MEMORY CARD Convert the rom file to memory card file. Command MMCARD file–spec (*4) (*4) file–spec :Specify a rom file. (example) MMCARD BH0F The following files are created once the ”MMC
Page 227N. Super CAP T/Super CAP II T B–66102E/10 APPENDIX LOADING TO FLASH ROM N.5 According to as follows, load the Super CAP T system software into a flash rom module in NC system. LOADING TO FLASH 1. Insert the memory card into the main boad of NC system. ROM MODULE 2. Turn on the power with pushing the
Page 229B–66102E/10 Index [A] Alarms, 159, 172 [F] Features, 2 [B] Flash ROM Transfer End Screen (Except Series 21), 153 Boot Slot Configuration Screen, 124 Flash ROM Transfer Screen (Except Series 21), 152 Boot System (for Series 15–B/15i–A), 173 Free Area in Flash Memory (Series 20), 120 Boot System (for
Page 230Index B–66102E/10 Macro Converter (MCONV), 81 Registering a ROM–format File, Stored on a ROM Cassette, into F–ROM, 184 Macro Converter (MCONV) Operation Guide for the FANUC Series 16/18 Super Cap M/Super Cap II M, Restrictions and Notes on Developing the User Mod- 79 ule, 89 Macro Libraries for Deve
Page 231B–66102E/10 Index [U] User Modules, 88 [T] Table Conversion List File, 82 Table Data File, 82 Transferring the User Module to F–ROM, 89 [W] Types of Files in F–ROM, 187 Write to the Memory Card, 216 i–3
Page 233Revision Record FAPT MACRO COMPILER(For Personal Computer) PROGRAMMING MANUAL (B–66102E) • Addition of Series 21–MB. • Addition of APPENDIX 11 BOOT SYSTEM (For Series 05 Jul., 1995 10 Jul., 2001 Addition of Series 16i/18i/21i/160i/180i/210i–MODEL B 15–B). • Correction of errors. • Addition of Series
Page 235Printed at GE Fanuc Automation S.A. , Luxembourg October 200
Page 236TECHNICAL REPORT NO.TMN 01/155E Date General Manager of Software Development Center FAPT MACRO COMPILER Concerning “P-CODE LOADER FUNCTION” 1. Communicate this report to : Your information GE Fanuc-N, GE Fanuc-E FANUC Robotics CINCINATI MILACRON Machine tool builder Sales agency End user 2. Su
Page 237FAPT MACRO COMPILER For Personal Computer PROGRAMMING MANUAL Concerning “P-CODE LOADER FUNCTION” 1. Type of applied technical documents Name FAPT MACRO COMPILER For Personal Computer PROGRAMMING MANUAL Spec. No. / B-66102E/10 Version 2. Summary of change Group Name / Outline New, Add., Applicable Co
Page 2381 Manual This report is a supplement for a following manual. FAPT MACRO COMPILER For Personal Computer PROGRAMMING MANUAL (B-66102E/10) 2 Outline In the above-mentioned manuals, the description of “16i/18i/21i-B” is deleted from P-CODE LOADER FUNCTION. 3 Details (1) Changing the “Table of Contents”