fanuc fa system for pc operator

Upload: sunhuynh

Post on 03-Apr-2018

449 views

Category:

Documents


19 download

TRANSCRIPT

  • 7/28/2019 Fanuc FA System for PC Operator

    1/380

    SYSTEM FOR PCFA

    OPERATORS MANUAL

    B75044EN/02

    FANUC LTD, 1994

  • 7/28/2019 Fanuc FA System for PC Operator

    2/380

    No part of this manual may be reproduced in any form.

    All specifications and designs are subject to change withoutnotice.

    In this manual we have tried as much as possible to describe allthe various matters.However, we cannot describe all the matters which must not bedone, or which cannot be done, because there are so manypossibilities.Therefore, matters which are not especially described as possiblein this manual should be regarded as impossible

  • 7/28/2019 Fanuc FA System for PC Operator

    3/380

    s-1

    This manual includes safety precautions for protecting the user and preventing damage to

    the machine. Precautions are classified into Warnings and Cautions according to their

    bearing on safety. Also, supplementary information is described as Notes. Read theWarnings, Cautions, and Notes thoroughly before attempting to use the machine.

    Read this manual carefully, and store it in a safe place.

    SAFETY PRECAUTIONS

    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

    Notes is used to indicate supplementary information other than

    Warnings and Cautions.

  • 7/28/2019 Fanuc FA System for PC Operator

    4/380

    SAFETY PRECAUTIONS B-75044EN/02

    s-2

    Precautions to Operate NC Machine

    When you control an actual NC machine with the NC programs transferred bythis software, please observe the following precautions for safety.

    WARNING

    1 Before attempting to use an NC program to control NC machines,

    ensure that those machines and tools that will be under the control of

    the NC program will operate safely.

    If an invalid NC program is used, or if NC program (confirmed as

    being satisfactory) is applied incorrectly, the machine and tool may

    behave unexpectedly, possibly damaging the tool, machine, and/or

    work-piece, and presenting the risk of injury to the operator and/or

    bystanders.

    2 The software described herein does not check whether a transferring

    NC program is fully compatible with the target machine. When using

    the NC program to control an actual NC machine, Precaution 1 must

    be observed.

    3 Due to deterioration of the storage medium, or as a result of errors

    introduced during communication, the NC program actually loaded

    into a machine might vary slightly from that originally created.

    Therefore, even when using an NC program that has already been

    used successfully with an actual machine, Precaution 1 must be

    observed.

    Note) In this document, the term NC program refers to programs that

    specify NC machine operations. Note that in NC machine manuals,

    machining program, part program, orprogram may be used in

    place ofNC program. The above precautions are applied for these

    terms that have the same meaning ofNC program.

  • 7/28/2019 Fanuc FA System for PC Operator

    5/380

    B-75044EN/02 SAFETY PRECAUTIONS

    s-3

    Precautions to Operate FA SYSTEM for PC

    Precautions about FA SYSTEM for PC are described after the next chapter ofthis manual and near below.

    Before you use the software, please read the contents of WARNING,

    CAUTION, and NOTE carefully.

    - Precaution to DNC Operation

    - About Exclusive Control of Files

    WARNING

    1 Before attempting to do DNC operation, confirm that the NC program

    is correct.

    If an invalid NC program is used, the machine and tool may behave

    unexpectedly, possibly damaging the tool, machine, and/or work-

    piece, and presenting the risk of injury to the operator and/or

    bystanders.

    2 When doing DNC operation, avoid cutting a work-piece without a test

    cutting.

    Ensure that NC machines and tool under the control of DNC operation

    will operate safely by using the functions such as single block,

    feed-rate override, and machine lock.

    If an invalid NC program is used, the machine and tool may behave

    unexpectedly, possibly damaging the tool, machine, and/or work-

    piece, and presenting the risk of injury to the operator and/or

    bystanders.

    CAUTION

    DNC operation might pause for a second according to the

    performance of a computer, the number of NCs connecting to the

    computer, or the communication buffer size attached to NC side.

    When you use a software such as a word processing operation, DNC

    operation might pause.

    In this case, reduce the number of NCs that are doing DNC operation

    at the same time.

    CAUTION

    One NC program cant be handled by the following operations at the

    same time; Download, Upload, Edit, Copy, Move, Delete.

  • 7/28/2019 Fanuc FA System for PC Operator

    6/380

    B-75044EN/02 PREFACE

    p-1

    Preface

    This manual describes FANUC FA SYSTEM for PC (from here on referred to

    as FA SYSTEM for PC) that runs on a personal computer.The software of FA SYSTEM for PC supports three communications

    produced by FANUC; DNC1, DNC2 and Reader/Puncher interface. And data,

    such as NC programs, can be transferred from a computer to NCs.

    This manual also describes the information about the NCs produced by

    FANUC and its communication protocols, DNC1, DNC2 and

    Reader/Puncher interface.

    But, all related information is not mentioned in this manual.

    For more information about these communication protocols, please refer to

    the following manuals.

    (1) In case of connecting a computer to NCs by DNC1

    K FANUC DNC1 DESCRIPTIONS (B-61782E)K CONNECTING/MAINTENANCE/OPERATORS MANUAL for

    the NC connected by DNC1

    (2) In case of connecting a computer to NCs by DNC2

    K FANUC DNC2 DESCRIPTIONS (B-61992E)K CONNECTING/MAINTENANCE/OPERATORS MANUAL for

    the NC connected by DNC2

    (3) In case of connecting a computer to NCs by Reader/ Puncher

    K RS-232-C/RS-422 INTERFACE CONNECTING MANUAL(B-60043E)

    K CONNECTING/MAINTENANCE/OPERATORS MANUAL forthe NC connected by Reader/ Puncher

    (4) In case of connecting a computer to NCs by the DNC1/Ethernet interface

    K FANUC ETHERNET BOARD OPERATOR'S MANUAL (B-63354EN)

    K CONNECTING/MAINTENANCE/OPERATOR'S MANUAL ofthe NCs connected by the DNC1/Ethernet interface

    To use this software (FA SYSTEM for PC), you must accept the following

    agreement.

    Software Agreement

    (1) By purchasing the software( FA SYSTEM for PC, and this manual), you

    can only use it. but you cant hold copyright on the software.

    (2) You can use the software at only one computer per one package.

  • 7/28/2019 Fanuc FA System for PC Operator

    7/380

    PREFACE B-75044EN/02

    p-2

    Content of This Manual

    FA SYSTEM for PC is the software package to connect a computer to NCs,

    and controls them from a computer. FA SYSTEM for PC has the two software

    series numbers as follows:

    K FA LIBRARY for Windows NT / A08B-9510-J510 (from here onreferred to as FA LIBRARY)

    K NC PROGRAM MANAGEMENT for Windows NT / A08B-9510-J511(from here on referred to as NC PROGRAM MANAGEMENT)

    In this manual, the FA SYSTEM for PC term is used the explanations

    related with both of FA LIBRARY and NC PROGRAM

    MANAGEMENT.

    This manual explains FA SYSTEM for PC described below.

    PREFACE

    PREFACE is this.

    Chapter 1. About FA SYSTEM for PC

    Describes the basic features of FA SYSTEM for PC.

    This Chapter must be read by the customer who uses either NC

    PROGRAM MANAGEMENT or FA LIBRARY.

    Chapter 2. Setup

    Describes the installation and setup of FA SYSTEM for PC.

    This Chapter must be read by the customer who uses either NC

    PROGRAM MANAGEMENT or FA LIBRARY.

    Chapter 3. NC PROGRAM MANAGEMENT

    Describes how to use NC PROGRAM MANAGEMENT.

    This Chapter must be read by the customer who uses NC

    PROGRAM MANAGEMENT.

    Chapter 4. FA LIBRARY

    Describes how to make a application program by using FA

    LIBRARY.

    This Chapter must be read by the customer who uses FA

    LIBRARY.

    NC PROGRAM MANAGEMENT includes FA LIBRARY. So, the

    customer of NC PROGRAM MANAGEMENT can make

    application programs too. In that case, they must read this chapter.

  • 7/28/2019 Fanuc FA System for PC Operator

    8/380

    B-75044EN/02 PREFACE

    p-3

    Chapter 5. Observation of FA SYSTEM for PC

    Describes a logging information of FA SYSTEM for PC.

    This Chapter must be read by the customer who uses either NCPROGRAM MANAGEMENT or FA LIBRARY.

    Chapter 6. FILE LIST MANAGEMENT

    Describes how to manage List Files by the FA SYSTEM for PC.

    Also read this chapter if you are using either of NC PROGRAM

    MANAGEMENT or FA LIBRARY.

    APPENDIX

    Contains additional information related to FA SYSTEM for PC.

    Microsoft, WindowsNT, and Visual Basic are registered trademarks and

    Visual C++ is a trademark of Microsoft Corporation.

    Digi Board is a registered trademark and PC/4e and PC/8e are trademarks of

    Digi International Inc.

  • 7/28/2019 Fanuc FA System for PC Operator

    9/380

    B-75044EN/02

    c-1

    CONTENTS

    SAFETY PRECAUTIONS

    PREFACE

    1. ABOUT FA SYSTEM FOR PC ................................................................ 1

    1.1 OVERVIEW ................................................................................................................2

    1.2 RELATION BETWEEN FA SYSTEM FOR PC AND PROTOCOLS ............................5

    1.3 TRANSMITTING NC PROGRAM................................................................................7

    1.3.1 Transmitting by Operating NC PROGRAM MANAGEMENT....................................................... 7

    1.3.2 Transmitting by Using FA LIBRARY.............................................................................................. 8

    1.3.3 Transmitting by Operating NC Side............................................................................................... 101.4 ABOUT NC PROGRAM FORMAT ............................................................................13

    1.5 SUBPROGRAM TRANSFER FUNCTION.................................................................14

    1.5.1 Details of Subprogram Separate Transfer Function ...................................................................... 16

    1.5.2 Details of Subprogram Extended Transfer Function...................................................................... 17

    1.6 LIST FILE TRANSFER FUNCTION .......................................................................... 18

    1.6.1 Details of List File Separate Transfer Function..............................................................................20

    1.6.2 Details of List File Extended Transfer Function ............................................................................ 21

    1.6.3 List File Transfer Monitor and Control Functions ......................................................................... 21

    2. SETUP................................................................................................... 232.1 SYSTEM REQUIREMENTS......................................................................................24

    2.2 DNC1........................................................................................................................26

    2.3 DNC2, READER/PUNCHER.....................................................................................27

    2.4 SETTING FA SYSTEM FOR PC...............................................................................29

    2.4.1 Setting up TCP/IP .......................................................................................................................... 29

    2.4.2 Adding Internet Service ................................................................................................................. 30

    2.4.3 For Setting FA SYSTEM for PC.................................................................................................... 31

    2.5 STARTING AND STOPPING THE COMMUNICATION PROCESS..........................34

    2.6 SYSTEM CONFIGURATION ....................................................................................35

    2.6.1 Machine Information Settings ........................................................................................................ 35

    2.6.2 General Settings for Machine.........................................................................................................36

    2.6.3 Communication Settings for Machine............................................................................................ 38

    2.6.4 Download Settings for Machine..................................................................................................... 43

    2.6.5 Upload Settings for Machine.......................................................................................................... 44

    2.6.6 Saving and Restoring Settings........................................................................................................ 45

    3. NC PROGRAM MANAGEMENT ........................................................... 47

    3.1 OUTLINE ..................................................................................................................48

    3.2 USING NC PROGRAM MANAGEMENT...................................................................493.2.1 About The NC PROGRAM MANAGEMENT Window ............................................................... 49

    3.2.2 Work with the File List .................................................................................................................. 51

  • 7/28/2019 Fanuc FA System for PC Operator

    10/380

    CONTENTS B-75044EN/02

    c-2

    3.2.3 Work with the Directory List ......................................................................................................... 54

    3.2.4 Copying, Moving, Deleting and Renaming Files ........................................................................... 56

    3.2.5 Browsing, Editing and Creating New Files .................................................................................... 583.2.6 Transmitting an NC Program ......................................................................................................... 61

    3.2.7 Selecting the NC Program on the PC ............................................................................................. 66

    3.2.8 Setting Options............................................................................................................................... 69

    4. FA LIBRARY......................................................................................... 71

    4.1 OUTLINE ..................................................................................................................72

    4.1.1 Service Type .................................................................................................................................. 72

    4.1.2 How to Read the Library Function................................................................................................. 73

    4.1.3 About the Development Language of the Application Program..................................................... 74

    4.1.4 About Starting Applications You Have Developed........................................................................ 75

    4.1.5 About Sample Program.................................................................................................................. 76

    4.2 SYSTEM SERVICE...................................................................................................95

    4.2.1 Start of Communication Process < F_CreateCommunication > * .................................................. 96

    4.2.2 End of Communication Process < F_TerminateCommunication > * ............................................. 97

    4.2.3 Start of Communication < F_Open > ............................................................................................. 98

    4.2.4 Stop of Communication < F_Close >............................................................................................. 99

    4.2.5 Confirmation of Communication < F_IsOpen >............................................................................ 99

    4.2.6 Getting List of Registered Machine Numbers .............................. 100

    4.2.7 Getting List of Communicating Machines < F_GetOpenMachineNumber > ............................... 102

    4.2.8 Start of Receiving Notice Message < F_StartNotice >................................................................. 103

    4.2.9 End of Receiving Notice Message < F_StopNotice >..................................................................104

    4.2.10 Getting Descriptor ID of Notice Message < F_GetNoticeID >.................................................... 104

    4.2.11 Getting the Notice Message of the File Transfer < F_CopyNoticeFileTransfer > .......................105

    4.2.12 Getting Information about Machine < F_GetMachineInfo > .......................................................106

    4.3 REQUEST SERVICE.............................................................................................. 107

    4.3.1 Downloading NC Program requested by Computer < F_Download... > ...................................... 107

    4.3.2 Uploading NC Program Requested by Computer < F_Upload... > .............................................. 111

    4.3.3 External Reset < F_Reset >.......................................................................................................... 114

    4.3.4 Cycle Start < F_Start >................................................................................................................. 115

    4.3.5 Selecting NC Program in NC < F_Select >.................................................................................. 116

    4.3.6 Deleting NC Program in NC < F_Delete > .................................................................................. 117

    4.3.7 Reading NC Identification < F_Identify > ................................................................................... 119

    4.3.8 Reading List of NC Program in NC < F_AllFileDirectory > ....................................................... 120

    4.3.9 Establishing DNC1 Connection < F_EstablishDnc1 >................................................................. 123

    4.3.10 Confirmation of DNC1 Connection < F_ConfirmDnc1 >............................................................ 124

    4.3.11 Reading Alarm Information < F_ReadAlarm >............................................................................ 126

    4.3.12 Reading Tool Offset < F_ReadToolOffset >................................................................................128

    4.3.13 Writing Tool Offset < F_WriteToolOffset >................................................................................132

    4.3.14 Reading Custom Macro Variable < F_ReadCustomMacroVariable > ......................................... 135

    4.3.15 Writing Custom Macro Variable < F_WriteCustomMacroVariable >......................................... 138

    4.3.16 Reading Tool Life Management Information < F_ReadToolLife >............................................. 140

  • 7/28/2019 Fanuc FA System for PC Operator

    11/380

    B-75044EN/02 CONTENTS

    c-3

    4.3.17 Reading PMC Data < F_ReadPMCData >................................................................................... 144

    4.3.18 Writing PMC Data< F_WritePMCData >.................................................................................... 146

    4.3.19 Reading NC Parameters < F_ReadParameter > ........................................................................... 1484.3.20 Writing NC Parameters < F_WriteParameter > ........................................................................... 151

    4.3.21 Computer Start DNC Operation < F_Dnc... >.............................................................................. 153

    4.3.22 Canceling Computer Start Download < F_DownloadCancel >....................................................157

    4.3.23 Canceling Computer Start Upload < F_UploadCancel > .............................................................158

    4.4 DIAGNOSIS AND OTHER SERVICES ...................................................................159

    4.4.1 Initialization Processing < F_Begin > .......................................................................................... 159

    4.4.2 Getting Number of Data < F_GetCount >.................................................................................... 159

    4.4.3 Moving Offset Location of Data < F_Seek >............................................................................... 160

    4.4.4 Freeing Descriptor ID < F_FreeID >............................................................................................ 160

    4.4.5 Getting Result of Asynchronous Treatment < F_Response >.......................................................1614.4.6 Getting Error Code < F_GetLastError > ...................................................................................... 161

    4.4.7 End of FA LIBRARY < F_End > ................................................................................................ 162

    4.5 LOG LIBRARY........................................................................................................163

    4.5.1 Starting LogServer < F_InvokeLogServer > ................................................................................ 165

    4.5.2 Terminating LogServer < F_TerminateLogServer >.................................................................... 165

    5. OBSERVATION OF FA SYSTEM FOR PC........................................... 166

    5.1 LOG VIEWER.........................................................................................................167

    5.1.1 About Log Message ..................................................................................................................... 167

    5.1.2 The Contents of Transmission Log File ....................................................................................... 169

    5.1.3 The Contents of Log File ............................................................................................................. 170

    5.1.4 About Log Viewer........................................................................................................................ 171

    5.1.5 Using Log Viewer ........................................................................................................................172

    5.2 LogServer ............................................................................................................... 177

    5.2.1 Setting log creation ON/OFF ....................................................................................................... 177

    6. LIST FILE MANAGEMENT ................................................................. 179

    6.1 EDIT LIST FILE SCREEN OPERATIONS...............................................................180

    6.1.1 Structure of Edit List File Screen................................................................................................. 180

    6.1.2 Editing List Files ..........................................................................................................................183

    6.2 LIST FILE MONITOR SCREEN OPERATIONS...................................................... 189

    6.2.1 Structure of List File Monitor Screen........................................................................................... 189

    6.2.2 List File Monitor Operations........................................................................................................190

  • 7/28/2019 Fanuc FA System for PC Operator

    12/380

    CONTENTS B-75044EN/02

    c-4

    APPENDIX

    A. SAMPLE OF NC PARAMETER SETTINGS........................................ 195

    B. SAMPLE OPERATION FOR NC ......................................................... 199

    B.1 DNC1, DNC2 ..........................................................................................................200

    B.2 READER/PUNCHER...............................................................................................205

    B.3 DNC1/ETHERNET..................................................................................................213

    C. ERROR CODE .................................................................................... 214

    D. DNC1................................................................................................... 235D.1 SYSTEM REQUIREMENTS FOR DNC1 BOARD ...................................................237

    D.2 CONDITIONS FOR USING THE DNC1 DRIVER.................................................... 239

    D.3 SETTING UP THE DNC1 BOARD.......................................................................... 240

    D.4 SETTING UP DNC1 DRIVER .................................................................................241

    D.5 Dnc1HardTest.........................................................................................................246

    D.6 Dnc1Test ................................................................................................................ 251

    D.7 Dnc1LogViewer....................................................................................................... 268

    D.8 MAINTENANCE INFORMATION OF DNC1BOARD ...............................................273

    D.9 DNC1 BOARD, OPTICAL FIBER CABLE AND

    OPTICAL CONNECTOR SPECIFICATIONS .......................................................... 276

    D.10 PRECAUTIONS WHEN HANDLING RELATED PARTS......................................... 277

    D.11 MAINTENANCE INFORMATION............................................................................ 280

  • 7/28/2019 Fanuc FA System for PC Operator

    13/380

  • 7/28/2019 Fanuc FA System for PC Operator

    14/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -1-

    1 ABOUT FA SYSTEM FOR PC

  • 7/28/2019 Fanuc FA System for PC Operator

    15/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -2-

    1.1 OVERVIEW

    FA LIBRARY provides library functions and machine settings. The library

    functions can be used for developing a user-application.

    NC PROGRAM MANAGEMENT is the software package that combines FA

    LIBRARY with the management of NC programs supplied by FANUC. NC

    PROGRAM MANAGEMENT can transmit an NC program without

    developing a user-application. And then you can grow your own system by

    using FA LIBRARY included in NC PROGRAM MANAGEMENT.

    FA SYSTEM for PC has the communication process, which supports thecommunication protocol of DNC1, DNC2 and Reader/Puncher Interface.

    DNC1 is the private network developed by FANUC. FA SYSTEM for PC is

    compatible with Mode1 of DNC1 protocol. Mode1 enables a computer to

    act as Primary Station, and the computer can be connected with the several

    NCs of Secondary Station.

    Software Configuration

    COMMUNICATION

    PROCESS

    The Offer of NC PROGRAMMANAGEMENT(A08B-9510-J511)

    NC PROGRAM MANAGEMENT

    User-Application developed by a customer

    The Offer of

    FA LIBRARY(A08B-9510-J510)

    FA LIBRARY

    DNC1 DNC2 Reader/Puncher

    NC NC NC

    DNC1 RS232C RS232C

    Computer

    Machine Settings

    DNC1/Ethernet

    NC

    Ethernet

  • 7/28/2019 Fanuc FA System for PC Operator

    16/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -3-

    DNC1 is a private network developed by FANUC. FA SYSTEM for PC is

    compatible with "Mode1" of DNC1 protocol. Mode1 enables multi-point

    communication where a computer acts as the primary station and controlsmultiple NCs. A computer can be connected with a maximum of 16 NCs by

    DNC1. Refer to FANUC DNC1 DESCRIPTIONS (B-61782E) for details

    of DNC1.

    DNC2 is the communication protocol that enables the computer to transmit

    various data to the NC. A computer is connected to an NC by RS232C.

    Refer to FANUC DNC2 DESCRIPTIONS (B-61992E) for details of

    DNC2.

    Reader/Puncher interface is the input/output function of an NC which can

    connect input/output devices such as FANUC HANDY FILE. By operating an

    NC side, an NC program can be transmitted between the NC and the

    computer.

    Refer to Section Input/Output of Data in each NC operators manual and

    RS-232-C/RS-422 INTERFACE CONNECT-ING MANUAL (B-60043E)

    for details of Reader /Puncher.

    RS232C

    Adapter

    The standard RS232C port or the adapter board is usedfor DNC2.

    ComputerNCNC

    VVVNC

    Maximum of 8 NCs (NOTE)

    Computer

    DNC1

    Board

    NCNC VVV

    Maximum of 16 NCs

    NC

    DNC1 Board is supplied by FANUC

  • 7/28/2019 Fanuc FA System for PC Operator

    17/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -4-

    DNC1/Ethernet is a communication protocol for connecting the NC to the

    computer by Ethernet to enable data transactions between the NC and the

    computer.

    RS232C

    Adapter

    The adapter board is used for Reader/Puncher.

    ComputerNCNC

    VVVNC

    Maximum of 8 NCs NOTE

    Computer

    Ethernet

    board

    NCNC VVV

    Maximum of 64 NCs

    NC

    Use a third-party computer Ethernet board.

    NOTE

    In the above figures, the maximum numbers are the number of NCs

    connected to one computer by using the RS-232-C adapter board. It is

    the sum of NCs communicated with DNC2 and Reader/Puncher.

  • 7/28/2019 Fanuc FA System for PC Operator

    18/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -5-

    1.2 RELATION BETWEEN FA SYSTEM FOR PC AND PROTOCOLS

    FA SYSTEM for PC supports the protocols of DNC1, DNC2,

    Reader/Puncher and DNC1/Ethernet. And the available functions of NC

    PROGRAM MANAGEMENT and FA LIBRARY depend upon the capability

    of each protocol as follows.

    Functions of FA LIBRARY (A08B-9510-J510)

    A user-application developed by using FA LIBRARY can take the functions

    like these:

    (1) For DNC1 or DNC2

    K Downloading an NC program to an NC.K Uploading an NC program from an NCK External resetK Selecting and deleting an NC program saved in an NCK Listing NC programs saved in an NCK Reading the alarm information in an NCK Reading and writing the tool offset dataK Reading and writing the custom macro variablesK Reading the tool life dataK Reading and writing PMC dataK Reading the system identify of an NCK Informs the start and completion of download required by NCK Informs the start and completion of upload required by NC

    (2) For Reader/Puncher protocol:

    K Informs the start and completion of download required by NCK Informs the start and completion of upload required by NC

    (3) For DNC1/Ethernet

    K Downloading an NC program to an NCK Uploading an NC program from an NCK DNC operationK Selecting and deleting an NC program saved in an NCK Reading the NC directory informationK Reading the alarm information in an NCK Reading and writing the custom macro variablesK Reading and writing the tool life data (scheduled to be supported)K Reading and writing PMC dataK Reading the system identify of an NCK Reading and writing NC parameters

  • 7/28/2019 Fanuc FA System for PC Operator

    19/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -6-

    Functions of NC PROGRAM MANAGEMENT (A08B-9510-J511)

    (1) For DNC1 or DNC2

    NC PROGRAM MANAGEMENT can handle the following functions byoperating a computer.

    K A computer can download an NC program to an NC memory.K A computer can upload an NC program from an NC memory.K NC PROGRAM MANAGEMENT can display the list of NC

    programs saved in the NC memory.

    K NC PROGRAM MANAGEMENT can delete the NC programsaved in the NC memory.

    The following functions can be handled by operating the CRT/MDI on

    an NC.

    K An NC can read an NC program from a computer.K An NC can punch an NC program to a computer.K An NC can call an NC program saved in a computer for DNC

    operation.

    (2) For Reader/Puncher

    The following functions can be handled by operating the CRT/MDI on

    an NC.

    K An NC can read an NC program from a computer.K An NC can punch an NC program to a computer.K An NC can display the list of NC programs saved in a computer.K An NC can delete an NC program saved in a computer.K An NC can call an NC program saved in a computer for DNC

    operation.

    (3) For DNC1/EthernetNC PROGRAM MANAGEMENT can handle the following functions by

    operating a computer:

    K A computer can download an NC program to NC memory.K A computer can upload an NC program from NC memory.K NC PROGRAM MANAGEMENT can display the list of NC

    programs saved in the NC memory.

    K NC PROGRAM MANAGEMENT can delete the NC programsaved in NC memory.

    NOTE

    When you uses the Reader/Puncher for some old types of NCs, it is

    impossible to use several above functions, or it is necessary to add NC

    optional parameters.

    NOTE

    DNC1/Ethernet communication does not allow download or upload by

    CRT/MDI operations on the NC. (scheduled to be supported)

  • 7/28/2019 Fanuc FA System for PC Operator

    20/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -7-

    1.3 TRANSMITTING NC PROGRAM

    A main feature of FA SYSTEM for PC is its ability to transmit an NC

    program. This section describes the way to transmit an NC program of NC

    PROGRAM MANAGEMENT and FA LIBRARY.

    1.3.1 Transmitting by Operating NC PROGRAM MANAGEMENT

    When a computer is connected to an NC by DNC1 or DNC2 or

    DNC1/Ethernet, an NC program can be transmitted by operating NC

    PROGRAM MANAGEMENT screen. The NC programs to be downloaded

    are placed under the specific directory for every NC. This directory is called

    default-directory.

    The uploaded NC programs are saved in this default-directory too.

    Machine 1

    Machine 2

    File System in Computer

    ' File

    ' Directory, Drive

    Associates with the default

    directory for Machine 2

    Files are transmitted between Machine 2 and directory D

    Associates with the default

    directory for Machine 1

    Files are transmittedbetween Machine 1 and

    directory C

    Directory B

    Drive A

    Directory C

    Directory D

  • 7/28/2019 Fanuc FA System for PC Operator

    21/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -8-

    Both of default-directory and the list of NC programs saved in the NC

    memory are displayed on NC PROGRAM MANAGEMENT screen. A NC

    program can be transmitted by operating this screen.

    A NC program can be transmitted by the menu of the screen.

    Files that are stored in default-directory

    The list of NC programs stored in the NC

    memory

    Refer to Chapter 2 Setup for modifying the default-directory.

    Refer to Chapter 3 NC PROGRAM MANAGEMENT for operating the

    screen.

    1.3.2 Transmitting by Using FA LIBRARY

    When FA LIBRARY transmits an NC program, it uses the key. The key

    means the information about Which file should be transmitted ? when an

    NC program attempt to be transmitted. The four kinds of keys are classified

    according to a file name, a file number, an NC program number, and the file

    specified by full-path.

    FA LIBRARY selects the NC program by using the key, and attempts to

    decide the program according to the next table.

  • 7/28/2019 Fanuc FA System for PC Operator

    22/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -9-

    The Way to Decide the Downloading Program

    Used Key Selected Program

    File Name The file of the same name is selected in the default-directory.

    NC program number The file named OXXXX.DAT is selected from the default-directory.

    Where, XXXX is equal to an NC program number, and DAT indicates the file extension

    called default-extension.

    This default-extension can be modified. Refer to Chapter 2 Setup for modifying the

    default-extension.

    File Number The files in the default-directory are stored in order of ASCII code, and the file is selected

    according to that order.

    Full-Path The file specified by the full-path is selected.

    FA LIBRARY uploads an NC program from the NC memory by specifying an

    NC program number, and attempts to save it by using either of two keysshown as the next table.

    1. FILE_A.TXT2. FILE_B.TXT3. O0001.DAT4. O0003.DAT5. WORK1.DOC6. WORK2.DOC

    V

    V

    V

    When the file name FILE_B.TXT is set to the key, this

    file is downloaded.

    When the NC program number 0003 is set to the key,

    this file is downloaded.

    When the file number 6 is set to the key, this file is

    downloaded.

    Default-directory for Machine 1 in

    Computer

    Machine 1

    FILE.DOC

    The C: PATH directory in

    Computer

    When the full-path C: PATH FILE.DOC is set to the

    key, the specified file is downloaded independently of

    the default-directory.

  • 7/28/2019 Fanuc FA System for PC Operator

    23/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -10-

    The Way to Store the Uploaded Program

    Used Key The Way to Store the Program

    NC program number The uploaded NC Program is named OXXXX.DAT which is composed of the key and the

    default-extension DAT, and is saved in the default-directory.

    Full-Path The uploaded NC program is saved according to the specified path.

    These keys are specified by arguments of the FA LIBRARY functions. Refer

    to Chapter 4 FA LIBRARY for details.

    1.3.3 Transmitting by Operating NC Side

    When attempting to transmit the NC program by operating the CRT/MDI of

    an NC, the file directory in a computer cant be specified.

    Only a file name, a file number, and an NC program number can be specified

    by operating an NC.

    FA SYSTEM for PC relates a file name, a file number, and an NC program

    number with the files stored in the directory of a computer.

    Where, the key is equal to either of a file name, a file number, or an NC

    program number.

    FA SYSTEM for PC selects the NC program stored in the default-directory.

    However, the NC type and its communicating protocol limit the effective key

    and the way to specify the file name, file number, and NC program number on

    an NC.

    Refer to Appendix 2 Sample Operation for NC about the way to select the

    NC program by operating an NC.

    O0001.DAT

    When the O0001 in the NC memory is uploaded

    and the NC program number 0001 key is used,

    the file is named O0001.DAT.

    Default-directory for Machine 1 in

    Computer

    Machine 1

    When the O0001 in the NC memory is uploaded

    and the C: PATH FILE.DOC key is used, the

    file is named FILE.DOC.FILE.DOC

    The C: PATH directory in

    Computer

  • 7/28/2019 Fanuc FA System for PC Operator

    24/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -11-

    The following table shows the effective keys according to the protocol.

    Relation between Key and Protocol

    Protocol The Requirement for Usable Key

    Transmitting Program File Name NC program

    number

    File Number

    DNC1, Downloading Program by Operating NC

    DNC2 Uploading Program by Operating NC

    Reader/ Downloading Program by Operating NC

    Puncher Uploading Program by Operating NC

    DNC1/Ethernet Downloading and Uploading Program Are Not Possible

    by Operating NC : can be used

    : can not be used

    : The NC types cause whether the key is used or not.

    The next table shows the way to select the NC program which attempt to be

    downloaded by operating an NC .

    The Way to Decide the Downloading Program

    Used Key Selected Program

    File Name The file of the same name is selected in the default-directory.

    NC program number the file named OXXXX.DAT is selected in the default-directory.

    Where, XXXX is equal to an NC program number, and DAT indicates the file

    extension called default-extension.

    This default-extension can be modified.

    File Number The files in the default-directory are arranged in order of ASCII code, and the file is

    selected according to that order.

  • 7/28/2019 Fanuc FA System for PC Operator

    25/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -12-

    The NC program uploaded by operating an NC attempts to be saved shown as

    the next table.

    The Way to Store the Uploaded Program

    Used Key The Way to Store the Program

    File Name The uploaded NC program is named for the file name which is entered by operating an

    NC, and it is saved in the default-directory.

    NC program number The uploaded NC program is named OXXXX. DAT which is composed of the NC

    program number (which is entered by operatiing an NC) and the default-extension

    DAT, and it is saved in the default-directory.

    Refer to Appendix 2 Sample Operation for NC about the relation between

    the file name interpreted by FA SYSTEM for PC and the operation of an

    NC side.

    O0001

    O0001.DAT

    When a file name O0001 is entered by operating an

    NC and the O0001 is uploaded, the file is named

    O0001.

    When the file name FILE_B.TXT is entered by

    operating an NC, this file is downloaded.

    Default-directory for Machine1 in

    Computer

    When the NC program number 0003 is entered by

    operating an NC, this file is downloaded.

    Machine 1

    When the file number 6 is entered by operating an

    NC, the sixth file is downloaded.

    When an NC program number 0001 is entered by

    operating an NC and the O0001 is uploaded, the file

    is named O0001.DAT.

    Machine 1

    1. FILE_A.TXT2. FILE_B.TXT3. O0001.DAT4. O0003.DAT5. WORK1.DOC6. WORK2.DOC

    V

    V

    V

    Default-directory for Machine 1 in

    Computer

  • 7/28/2019 Fanuc FA System for PC Operator

    26/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -13-

    1.4 ABOUT NC PROGRAM FORMAT

    FA SYSTEM for PC manages NC programs in a computer as follows.

    Sample 1 : Main program terminated by the M30 code

    % ; OXXXX ; Part Program ; M30 ; %

    Sample 2 : Main program terminated by the M02 code

    % ; OXXXX ; Part Program ; M02 ; %

    Sample 3 : Sub program terminated by the M99 code

    % ; OXXXX ;

    Part Program

    ; M99 ; %

    These programs should be formed such as one main program format or one

    sub program format, including one NC program number in head of the part-

    program.

    Where, ; means the end of a block, and corresponds to the EOB code

    specified by NC such as the LF code.

    XXXX indicates an NC program number.

  • 7/28/2019 Fanuc FA System for PC Operator

    27/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -14-

    1.5 SUBPROGRAM TRANSFER FUNCTION

    What Is The Subprogram Transfer Function?

    The subprogram transfer function downloads the subprogram together with

    the NC program if the NC program contains a subprogram call when the NC

    program is downloaded.

    Subprogram transfer has two modes: separate transfer and extended transfer.

    (1) Separate transfer mode

    This mode parses the main program, and sends the required subprogram

    appended to the main program if a subprogram call is specified in the

    main program.

    (2) Extended transfer mode

    This mode parses the main program, and sends the subprogram

    imbedded in the main program if a subprogram call is specified in the

    main program.

    You can select one of Not Transferred/Separate Transfer/Extended Transfer

    for the subprogram on each machine in the Machine Setup menu.

    NOTE

    This function can be used only when the Reader/Puncher interface is

    used.

    %

    O0001(MAIN START)

    M98P5001

    (MAIN END)

    M30

    %

    %

    O5001(SUB START)

    (SUB END)

    M99

    %

    '

    %

    O0001

    (MAIN START)

    (SUB START)

    (SUB END)

    (MAIN END)

    M30

    %

    %

    O0001

    (MAIN START)

    M98P5001

    (MAIN END)

    M30

    O5001

    (SUB START)(SUB END)

    M99

    %

    Subprogram

    separate transfer

    Subprogram

    extended transfer

    Main program Subprogram

  • 7/28/2019 Fanuc FA System for PC Operator

    28/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -15-

    Subprogram File Names

    Subprogram file names must be specified in the following format:

    O + 4-digit number + . + 3-letter extensionExample: O0001.DAT

    Register the extension in the [Subprogram Extension] in the [General] panel

    in the Machine Setup menu.

    Subprogram File Format

    Only one O number and M99 code each are both required in the subprogram

    file. See Example 3 in 1.4 About NC Program Format.

    Subprogram files containing repeated O numbers and M99 codes cannot be

    sent. Calling a subprogram containing an M02 or M30 code instead of an

    M99 code will result in an error.

    Subprogram File Directory

    Up to three directories for storing subprogram files can be set in the

    [Subprogram Search Directory 1 to 3] in the [Download] panel in the

    Machine Setup menu. The subprogram search order of priority is set to the

    three directories. For example, if the No.1 directory and No.2 directory hold a

    program having the same name, the subprogram in the No.1 directory is sent.

    Subprogram Non-call Setting

    You can disable subprogram transfer even if a subprogram is called by the

    main program. For example, you can set Not to send subprograms in lines

    8000 to 9000 as they are stored in NC memory. You can set this in 1000-line

    units in the [Subprograms Not To Send] in the [Download] panel in the

    Machine Setup menu.

    Subprogram Call Code Setting

    You can set the call code by which the subprogram is sent. Call types M98,

    G65 and G66 are supported, and subprogram transfer is carried out only for

    the call type you have set.

    Set the call code in the [Call Type] in the [Download] panel in the Machine

    Setup menu.

    NOTE

    Subprograms are searched only from the directories set in the

    [Subprogram Search Directory 1 to 3]. To store a subprogram in the

    default directory, specify the same directory as the default directory

    somewhere in the [Subprogram Search Directory 1 to 3].

  • 7/28/2019 Fanuc FA System for PC Operator

    29/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -16-

    1.5.1 Details of Subprogram Separate Transfer Function

    Subprogram Call Formats

    The following four subprogram call formats can be used in the main program:

    (1) M98PxxxxLyy

    (2) M98Pyyxxxx

    (3) G65PxxxxLyy

    (4) G66PxxxxLyy

    where,

    xxxx: program number

    yy: call repeat count (This can be omitted.)

    In the case of format (2), a 4-digit number is needed for the program number.

    Note, however, that in the separate transfer mode subprograms that are called

    more than once due to the relationship between the main and subprograms are

    transferred only once. So, the call repeat count is ignored.

    The subprogram call nesting level is 8.

    If the control discovers that the currently called subprogram does not exist in

    the main program, an error occurs when an attempt is made to send the non-

    existent subprogram after the main program is sent.

    NOTE

    1 Program numbers xxxx are limited to numbers that can be directly

    specified. Program numbers that are specified by macro variables

    cannot be transferred.

    2 "M99Pnnnn" (return function to sequence number) cannot be used. At

    the point that the subprogram up to the line containing the M99

    instruction is read, the system judges that the subprogram has ended

    and returns to the main program. The Pnnnn section is ignored.

    3 Branch instructions (GOTO, IF, WHILE) are transferred to the NC

    without being processed.

  • 7/28/2019 Fanuc FA System for PC Operator

    30/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -17-

    1.5.2 Details of Subprogram Extended Transfer Function

    Subprogram Call Formats

    The following four subprogram call formats can be used in the main program:

    (1) M98PxxxxLyy

    (2) M98Pyyxxxx

    (3) G65PxxxxLyy

    (4) G66PxxxxLyy

    where,

    xxxx: program number

    yy: call repeat count (This can be omitted.)

    In the case of format (2), a 4-digit number is needed for the program number.

    In extended transfer, subprograms that are called more than once due to the

    relationship between the main and subprograms are sent imbedded in the main

    program for the repeated call count.

    The subprogram call nesting level is 8.

    If the control discovers that the preset directory does not contain the

    subprogram currently being called by the main program, an error occurs

    immediately. So, transfer of the main program is canceled midway, and the

    subprogram is not sent.

    NOTE

    1 Program numbers xxxx are limited to numbers that can be directly

    specified. Program numbers that are specified by macro variables

    cannot be transferred.

    2 "M99Pnnnn" (return function to sequence number) cannot be used. At

    the point that the subprogram up to the line containing the M99

    instruction is read, the system judges that the subprogram has ended

    and returns to the main program. The Pnnnn section is ignored.

    3 Branch instructions (GOTO, IF, WHILE) are transferred to the NC

    without being processed.

    4 When transferring in the extended transfer mode, only subprograms

    cannot be transferred. If only a subprogram is transferred, the "Main

    program contains M99." error is generated.

    5 Other addresses cannot be specified for the blocks that call the

    subprogram:

    Example: When the block "M98P9000G00X00Y00" is sent in the

    extended transfer mode, the contents of subprogram O9000.DAT can

    be sent. However, the G00X00Y00 part cannot be sent.

  • 7/28/2019 Fanuc FA System for PC Operator

    31/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -18-

    1.6 LIST FILE TRANSFER FUNCTION

    What Is The "List File Transfer Function?"

    The List File transfer function sends two or more NC programs described in

    the List File to the NC.

    Create the List File in the Edit List File screen in FA SYSTEM for PC.

    Up to 9999 NC programs can be registered to the List File.

    The List File transfer has two modes: separate transfer and extended transfer.

    List separate transfer mode

    This mode sends NC programs currently registered to List File in order

    as they are. This mode assumes that you are registering two or more main

    programs to the NC memory.

    List extended transfer mode

    This mode deletes the O number and M30 code from the NC programs

    currently registered to List File and sends the NC programs as a single

    NC program. This mode assumes that two or more NC programs arelinked into a single program for DNC operation.

    You can select either of separate transfer or extended transfer for transferring

    the List File on each machine in the Machine Setup menu.

    NOTE

    This function can be used only when the Reader/Puncher interface is

    used.

  • 7/28/2019 Fanuc FA System for PC Operator

    32/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -19-

    List File Name

    Register the List File 3-character extension in the [List File Extension] in the

    [General] panel in the Machine Setup menu.

    List files can be created and edited only in the Edit List File screen in FA

    SYSTEM for PC. When they are saved, the List File extension isautomatically set. So, the user need not create a List File while taking its

    format into consideration.

    When you register [List File Extension] in the Machine Setup menu, only

    extensions different from the [Default Extension] and [Subprogram

    Extension] can be set. So, the main program O0001.DAT and List File

    O0001.LST can be created.

    The List File transfer function is enabled when the NC requests transfer of

    files appended with the List File extension.

    List File FormatList Files are created and edited only in the Edit List File screen in FA

    SYSTEM for PC. So, the user need not create a List File using an editor while

    taking its format into consideration.

    List File Directory

    Save the List File to the directory set in the [Default Directory] in the

    Machine Setup menu. After displaying a list of files from the NC in FA

    SYSTEM for PC, the List File must be stored to [Default Directory] so that it

    can be specified by its file number or file name.

    %

    O0001(O0001 DATA)

    M30

    %

    '

    %

    O0001

    (O0001 DATA)(O0002 DATA)

    (O0003 DATA)

    M30

    %

    %

    O0001

    (O0001 DATA)

    M30

    O0002

    (O0002 DATA)

    M30

    O0003

    (O0003 DATA)

    M30

    %

    Separate transfer

    of list

    Extended transfer

    of list

    O0001.DAT

    List File

    O0001.LST%

    O0002

    (O0002 DATA)

    M30

    %

    %O0003

    (O0003 DATA)

    M30

    %

    O0001.DAT

    O0002.DAT

    O0003.DAT

    O0002.DAT

    O0003.DAT

    Create List File

    menu

  • 7/28/2019 Fanuc FA System for PC Operator

    33/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -20-

    Combinations of List File Transfer and Subprogram Transfer Functions

    The following table shows the possible combinations of List File transfer and

    subprogram transfer functions:

    Subprogram Transfer Mode

    Separate Extended

    Separate List File

    Transfer Mode Extended

    1.6.1 Details of List File Separate Transfer Function

    NC program files registered to the List File are sent in the order in which they

    were registered.

    The details of registered NC program files are sent as they are without the O

    number and M02, M30 or M99 codes deleted.

    When both the main program and subprograms are specified in the List File

    and List File separate transfer is requested, both the main program and

    subprograms are sent.

    NOTE

    1 Separate transfer of NC programs without the O number is not

    possible. Transfer of such NC programs results in an error.

    2 Separate transfer of NC programs having the same O number is not

    possible. Transfer of such NC programs results in an error.

  • 7/28/2019 Fanuc FA System for PC Operator

    34/380

    B-75044EN/02 1. ABOUT FA SYSTEM FOR PC

    -21-

    1.6.2 Details of List File Extended Transfer Function

    Two or more main programs registered to the List File are sent linked as they

    were a single NC program.

    The O number and M30 or M02 codes in the registered NC program files are

    not sent.

    The O number that is sent at the start of extended transfer can be specified by

    the following two ways in the Edit File List screen:

    (1) The O number of the first NC program registered to the List File is sent.

    (2) The O number specified in the [Specify O Number at Extended Transfer]

    in the Edit List File screen is sent.

    Though extended transfer of NC programs without the O number is possible,

    the O number must be specified according to (2) above.

    Send the M30 code at the end of extended transfer.

    1.6.3 List File Transfer Monitor and Control Functions

    When the List File Monitor screen is used, the transfer monitor is displayed.

    This allows to control such as pause, skipping transfer and swapping of the

    transfer order for NC programs that are in the List File and that have not yet

    been sent.

    List File Transfer Monitor Display

    During List File transfer, you can display which NC programs have not yet

    been sent.

    This assumes that you know how far transfer has progressed when you are

    sending two or more main programs by extended transfer for DNC operation.

    NOTE

    1 Extended transfer of the main program and subprograms specified in

    the List File is not possible. When this is attempted, the M02 or M30

    codes in the main program will be deleted. However, the M99 code in

    the subprogram will be sent without being deleted.2 Extended transfer of NC programs having the same O number is not

    possible. Transfer of such NC programs results in an error.

  • 7/28/2019 Fanuc FA System for PC Operator

    35/380

    1. ABOUT FA SYSTEM FOR PC B-75044EN/02

    -22-

    List File Transfer Control Function

    During List File transfer, you can carry out the following controls on NC

    programs that have not yet been sent:

    (1) Pause

    Pauses transfer before the specified NC program is sent. The transfer

    order of NC programs registered after the paused NC program can be

    changed, programs deleted and new programs added.

    (2) Skip

    Sends the next currently registered NC program without sending the

    specified NC program.

    (3) Change order

    You can change the transfer order.

    (4) Delete and add NC programs.

    You can delete NC programs registered after the paused NC program or

    add new NC programs.

    NOTE

    1 To use this function, check the [Wait for send buffer to reach 0 before

    proceeding to next record in extended transfer mode] check box in the

    [Download] panel in the Machine Setup menu.

    2 When you actually send data, transfer is influenced by your computer's

    send buffer and your NC's receive buffer; so the details displayed on

    the monitor screen may not match the details displayed on the NC

    screen. For example, the NC program displayed as currently being

    sent on the monitor screen may not yet be received on the NC.

    NC programs among those registered to the List File that have not yet

    started to be sent can be displayed correctly.

    NOTE

    The List File created in the Edit List File screen is copied to each NC

    as the List File to be is browsed when the List File is sent to the NC.

    The List File is copied to each NC before transfer is started. The

    details currently displayed and edited in the List File Monitor screen is

    the List File copied to each NC.

    For this reason, details that are paused, order-changed, deleted or

    added in the List File Monitor screen are partial changes that are valid

    only during List File transfer.

    Changes that are always reflected at each transfer must be made in

    the Edit List File screen before you transmit the List File.

  • 7/28/2019 Fanuc FA System for PC Operator

    36/380

    B-75044EN/02 2. SETUP

    -23-

    2 SETUP

  • 7/28/2019 Fanuc FA System for PC Operator

    37/380

    2. SETUP B-75044EN/02

    -24-

    2.1 SYSTEM REQUIREMENTS

    Your system must suit the following minimum requirements in order to run

    FA SYSTEM for PC.

    (1) Body of Computer

    K Type of PC: PC/AT compatible machineK CPU: Pentium (75MHz) or higher recommendedK Memory: 32MB RAM or more recommendedK Floppy Disk: one 3.5 inch 1.44MB DriveK Hard Disk: 85MB Hard Disk or larger recommended

    (2) Display

    K Resolution: 1024b768 dot or higher recommendedK Color: 16 colors or more

    (3) Operating System

    K Microsoft Windows NT4.0+ Windows NT4.0 Service Pack 3

    (4) Developing Environment

    (You needs the following software tools when you program a user-application by using FA LIBRARY.)

    K Microsoft Visual Basic 5.0 (from here on referred to as VB)+ Visual Studio97 Service Pack 3 (from here on reffered to as

    VB++) or

    K Microsoft C++ 5.0+Visual Studio97 Service pack 3 (from here on referred to as

    VC++)

    (5) Keyboard

    (6) Mouse

    (7) DNC1 Board and Software Driver

    (In the case that your system uses DNC1 communication)

    K Supplied by FANUC: A20B-8100-0070

  • 7/28/2019 Fanuc FA System for PC Operator

    38/380

    B-75044EN/02 2. SETUP

    -25-

    (8) RS-232-C Communication Board

    (In the case that your system uses DNC2 or Reader/Puncher)

    Use the following boards made by Digi International as the RS-232-Ccommunication boards:

    K AccelePort 4r-ISA (for 4 ports, DTE/DB25 male)K AccelePort 8r-ISA (for 8 ports, DTE/DB25 male)When DNC2 is used, the DNC2 board and option are needed on the NC.

    The option is needed on the NC when the Reader/Puncher is to be used.

    (9) Purchase a third-party Ethernet board (when DNC1/Ethernet is used).

    The Ethernet board and option are needed on the NC. (The Ethernet

    board for the NC is the 10BASE-T interface.)

    NOTE

    WindowsNT 4.0 does not have a PnP (plug-and-play) function. When

    the DNC1 board is to be used, set the PnP function OFF in the BIOS

    settings. The method for setting BIOS varies according to the

    computer. Refer to the Operator's Manual for your computer.

  • 7/28/2019 Fanuc FA System for PC Operator

    39/380

    2. SETUP B-75044EN/02

    -26-

    2.2 DNC1

    The DNC1 board must be installed according to the next procedure.

    DNC1 Board Installation

    Please insert the DNC1 board into your computer.

    For more information about installing the DNC1 board, refer to D.1 System

    Requirements for Installing DNC1 Board, D.2 Condition of using DNC1

    Driver and D.3 Setting DNC1 Board.

    DNC1 Driver Installation

    Please install the DNC1 software to your computer with the floppy disklabeled DNC1 Driver Disk Setup.

    Refer to D.4 DNC1 Driver Settings for details of the software installation.

    Testing DNC1 Board

    After the completion of the DNC1 board and DNC1 driver installation, please

    join the loop-back test connector (A13B-0156-C201) to the terminating

    resister unit, start the Dnc1HardTest software, and check whether the DNC1

    board and software driver are installed correctly or not.

    Refer to D.5 Dnc1HardTest for details of test.

  • 7/28/2019 Fanuc FA System for PC Operator

    40/380

    B-75044EN/02 2. SETUP

    -27-

    2.3 DNC2, READER/PUNCHER

    When a computer communicates to NCs with DNC2 or Reader/Puncher, RS-

    232-C ports are used.

    Setting a RS232C Adapter Board

    The RS-232-C adapter boards described in item(8) of 2.1. System

    Requirements can be used.

    When using the RS-232-C adapter board, you must install the adapter

    according to its manual.

    Connecting RS232C CablesPlease prepare the following cables for connecting a computer and an NC

    unit.

    IIn the case of RS-232-C Adapter Board In the case of standard ports attached to a computer

    (Acceleport 4r/8r-ISA DTE DB25 Male)

    Side of PC Side of NC Side of PC Side of NC

    DSUB 9pin

    ''''Female

    Signals Pins

    SD 3

    RD 2

    RS 7

    CS 8

    ER 4

    DR 6

    CD 1

    SG 5

    GND

    DSUB 25pin

    ''''Male

    Signals Pins

    SD 2

    RD 3

    RS 4

    CS 5

    ER 20

    DR 6

    CD 8

    SG 7

    FG 1

    DSUB 25pin

    ''''Female

    Signals Pins

    SD 2

    RD 3

    RS 4

    CS 5

    ER 20

    DR 6

    CD 8

    SG 7

    GND

    DSUB 25pin

    ''''Male

    Signals Pins

    SD 2

    RD 3

    RS 4

    CS 5

    ER 20

    DR 6

    CD 8

    SG 7

    FG 1

  • 7/28/2019 Fanuc FA System for PC Operator

    41/380

    2. SETUP B-75044EN/02

    -28-

    NOTE

    1 The shape of the connector in the figure may be different from ones in

    your system. Please prepare the RS-232-C cable after checking it with

    your own eyes.

    2 Dont use the standard ports attached to your computer when you use

    the Reader/Puncher.

    3 For details on how to make a connection cable, refer to the FANUC

    "RS-232-C/RS-422 Interface Connection Manual (B-60043E)."

    4 When an NC machine is controlled with the DNC operation, the DNC

    operation may come to a pause for a short time by reason of the

    performance of a computer, the less communication buffer of NC, the

    heavy work with operating the screen of the computer and so on.

    In such a case, please drop the communication speed, or reduce the

    number of machines that are controlled with the DNC operation at the

    same time.

  • 7/28/2019 Fanuc FA System for PC Operator

    42/380

    B-75044EN/02 2. SETUP

    -29-

    2.4 SETTING FA SYSTEM FOR PC

    2.4.1 Setting up TCP/IP

    FA SYSTEM for PC utilizes the TCP/IP (Transmission Control

    Protocol/Internet Protocol) network protocol even if the computer is not

    connected with a network. Therefore, the TCP/IP protocol service must be

    added to WindowsNT before FA SYSTEM for PC installation.

    To know whether TCP/IP is installed in WindowsNT or not, please double-

    click the Network program in the Control Panel group box. The TCP/IP

    Protocol item can be found in the Installed Network Software list box

    when WindowsNT contains the TCP/IP protocol.

    If TCP/IP protocol isnt installed, it must be installed by using the Network

    software of the Control Panel group box. Refer to the setup guide of

    WindowsNT for the installation.

    Normally, the Ethernet board is needed when you install TCP/IP protocol

    services. When you install FA SYSTEM for PC on a computer that does not

    have an Ethernet board, select MS Loopback Adapter provided by

    Microsoft as the network adapter, and then install TCP/IP protocol services.

    Confirming localhost

    localhost is a special host name that indicates the self node in TCP/IP

    protocol. When WindowsNT is installed, localhost is automatically registered.

    However, FA SYSTEM for PC cannot be started normally if this setting is

    deleted.

    Before you install FA SYSTEM for PC, make sure that localhost is registered

    to the hosts file.

    The host file will be at the following directory assuming that c: winnt is the

    directory in which WindowsNT is set up. (The directory in which the

    WindowsNT is set up is registered to system setup variable windir after

    [System] in the [Control Panel] is started.)

    c: winn system32 drivers etc hosts

    NOTE

    Setting up TCP/IP in "2.4.1 Setting Up TCP/IP" and installing FA

    SYSTEM for PC in "2.4.3 For Setting FA SYSTEM for PC" must be

    carried out by a user having administrator privileges.

  • 7/28/2019 Fanuc FA System for PC Operator

    43/380

    2. SETUP B-75044EN/02

    -30-

    Open this file using the Note Pad or other editor, and make cure that the

    following line is described in the file. (Normally, this line is located near the

    top of the file.)

    Add this line if it is not described in the file.

    2.4.2 Adding Internet Service

    When FA SYSTEM for PC is installed, the FA SYSTEM for PC is

    automatically registered to the WindowsNT services file to use its TCP/IP

    protocol.

    The following table shows the names of services that are automatically

    registered.

    Table Names of Automatically Registered Services

    Name of Service Port No. Protocol

    FANUC_PCFA_APP 4096 tcp

    FANUC_PCFA_CDA 4097 tcp

    FANUC_PCFA_COMM 4098 tcp

    FANUC_C4_SERVER 8192 (NOTE) udp

    FANUC_C4_API 8193 tcp

    If the port No. in the above table is already registered when FA SYSTEM for

    PC is registered, check the largest No. in the services file and assign a No.

    larger than this No. Conventional services will not be disabled.

    As described in note 1 above, you must match the port No. automatically

    registered to the services file with the NC parameters. If the port No. in this

    table is already in use, an unused port No. is assigned during automatic

    registration. So, be sure to check the contents of the services file after you

    have installed FA SYSTEM for PC.

    127.0.0.1 localhost

    NOTE

    When DNC1/Ethernet is used, this is the value to enter to UDP port

    No. in the ETHPRM parameter on the NC.

  • 7/28/2019 Fanuc FA System for PC Operator

    44/380

    B-75044EN/02 2. SETUP

    -31-

    The services file will be at the following directory assuming that c: winnt is

    the directory in which directory WindowsNT is set up. (The directory in

    which WindowsNT is set up is registered to system setup variable windirafter [System] in the [Control Panel] is started.)

    c: winn system32 drivers etc hosts

    When FA SYSTEM for PC is automatically registered to the services file,back up the file that was active before FA SYSTEM for PC is registered and

    save it to the same directory as the services file.

    Set the backup file name in the following format based on the time when FA

    SYSTEM for PC was automatically registered:

    services.YYYMMDDhhmm

    where,

    YYYY: year according to Western calendar

    MM: month

    DD: day

    hh: hours

    mm: minutes

    2.4.3 For Setting FA SYSTEM for PC

    Both FA LIBRARY(A08B-9510-J510) and NC PROGRAM

    MANAGEMENT (A08B-9510-J511) can be installed by the same way.

    Please install them by following the next procedure.

    1 Log in using a user name having administrator privileges.

    2 Insert either FA LIBRARY Setup Disk (WindowsNT) or NC

    PROGRAM MANAGEMENT Setup Disk (WindowsNT) into the

    floppy disk drive on your computer.

    3 Select [Run] from the Start menu, enter A: Setup in the [Name] text

    box and press the button.

    4 When the setup program is started, the following screen appears. If

    necessary, modify the installation directory of FA SYSTEM for PC, andclick the button.

    NOTE

    You must restart your computer if you have changed the port No. in the

    service file after FA SYSTEM for PC has been installed.

  • 7/28/2019 Fanuc FA System for PC Operator

    45/380

    2. SETUP B-75044EN/02

    -32-

    5 The following disk information screen will appear. Confirm that the disk

    space of [Space Available] is lager than one of [Space Required], and

    click the button.

    If [Space Available] is not enough, click the button and stop

    the installation. Try to install into the other disk with enough space.

    6 When the button is clicked, the installation is progressing

    automatically. Change the next floppy disk according to the message.

    7 When the installation is complete, the message Setup was succeeded

    will appear in the computer display and the [FANUC FA System for PC]

    group dialog is created as follows.

    8 The ReadMe.txt file is displayed

    The ReadMe.txt file is copied to the directory in which FA SYSTEM for

    PC is installed.

    NOTE

    Be sure to read the ReadMe.txt file. This file contains new functions

    and precautions added after this Operator's Manual was issued.

  • 7/28/2019 Fanuc FA System for PC Operator

    46/380

    B-75044EN/02 2. SETUP

    -33-

    When NC PROGRAM MANAGEMENT is installed, the FANUC FA System

    for PC group dialog and its programs are created as follows.

    (1) (2) (3) (4) (5) (6) (7) (8) (9)

    When FA LIBRARY is installed, the [FANUC FA System for PC] group

    dialog and its programs are created as follows.

    (1) (2) (5) (6) (7) (8) (9)

    (1) This is the startup icon for FA SYSTEM for PC. FA SYSTEM for PC

    communicates with the NC by starting the communication process from

    this icon.

    Refer to 2.5. Starting and Stopping the Communication Process for the

    way of operation.

    (2) This is the Machine Configuration program. Refer to 2.6. System

    Configuration for the way of operation.

    (3) This is the NC PROGRAM MANAGEMENT program.

    Refer to Chapter 3 NC PROGRAM MANAGEMENT for the way of

    operation.

    (4) This is the Select Transfer File program.

    Refer to Chapter 3 NC PROGRAM MANAGEMENT for the way of

    operation.

    (5) This is the Edit List File screen. Refer to 6.1 Edit List File Screen

    Operations for the way of operation.

    (6) This is the List File Monitor screen. Refer to 6.2 List File Monitor

    Screen Operations for the way of operation.

    (7) This is the Log Viewer program.

    Refer to Chapter 5 Observation of FA SYSTEM for PC for the way of

    operation.

    (8) This is the FA LIBRARY sample program for developing applications in

    Visual C++.

    Refer to Chapter 4 FA LIBRARY for an explanation.

    (9) This is the FA LIBRARY sample program for developing applications in

    Visual Basic.

    Refer to Chapter 4 FA LIBRARY for an explanation.

  • 7/28/2019 Fanuc FA System for PC Operator

    47/380

    2. SETUP B-75044EN/02

    -34-

    2.5 STARTING AND STOPPING THE COMMUNICATION PROCESS

    Starting the Communication Process

    1 Double-click [FA System] in the [FANUC FA System for PC] group

    dialog.

    2 The communication process is started in the state of an icon, and the

    [FANUC FA System for PC] icon appears at the lower-left corner on the

    computer display.

    Stopping the Communication Process

    1 Double-click the running [FANUC FA System for PC] icon which is

    started by the above operation. The following screen will appear.

    2 Click the[Exit] of the menu. The communication process will be stopped.

    NOTE

    If you execute "Start Communication Process" when no machines

    have been set in the Machine Setup screen, the error (0x1004011d)

    will occur.

    Before you start the communication process, execute the system

    configuration described in "2.6 System Configuration" and set the

    currently connected machine.

  • 7/28/2019 Fanuc FA System for PC Operator

    48/380

    B-75044EN/02 2. SETUP

    -35-

    2.6 SYSTEM CONFIGURATION

    To use FA SYSTEM for PC, you must give a distinctive information to each

    machine.

    By using the Machine Configuration screen, please set up the information

    such as a machine number, a machine name, a device port and communication

    protocol for connecting to the computer, and the way to manage NC

    programs.

    Make sure that stop the communication process before the Machine

    Configuration screen is started.

    Double-click [Machine Configuration] in the [FA System for PC] group

    dialog. The Machine Configuration screen is shown.

    When you have set the system configuration for the first time or when you

    have changed the system configuration settings, save the new settings to

    floppy disk according to the description in 2.6.6 Saving and RestoringSettings.

    2.6.1 Machine Information Settings

    1 Select the [Machine Information] panel in the [Machine Configuration]

    dialog box.

    2 Select the machine number you want to setup from the [Machine] list

    box.

    3 Enter the name you want to give into the [Machine Name ] text box.

  • 7/28/2019 Fanuc FA System for PC Operator

    49/380

    2. SETUP B-75044EN/02

    -36-

    4 Select the NC type from the [ Kind of Machine] list box according to the

    NC machine.

    If the type of NC you are using is not displayed, select OTHERS.5 Click the button.

    2.6.2 General Settings for Machine

    Selecting the Default directory

    1 Select the [General] panel inMachine Configurationdialog box.

    2 Select the machine number you want to setup from the [ Machine] list

    box.

    3 Setup the following parameters in the [General] panel.

    K Switch on Normal Mode from the [NC PROGRAMMANAGEMENT Style] group box.

    K Click the button in the right side of the [Default Directory]directory box. The file list will appear. Select the directory you

    want to use from this file list.

    K Enter the extension you want to give in the [Default Extension] textbox.

    4 Click the button.

  • 7/28/2019 Fanuc FA System for PC Operator

    50/380

    B-75044EN/02 2. SETUP

    -37-

    Setting the Subprogram Extension and List File Extension

    1 Select the [General] panel in the [Machine Configuration] dialog box.

    2 Select the machine number you want to set up from the [Machine] list

    box.

    3 Set up the following parameters in the [General] panel.

    K Enter the extension used for the subprogram in the [SubprogramExtension] text box. Normally, set the same extension as the default

    extension.

    K Enter the extension used for the List File in the [List File Extension]text box. Enter a extension different to that used for the default

    extension and subprogram extension. If the List File extension

    matches either the default extension or subprogram extension, an

    error will occur when you try to save the File List.

    4 Click the button.

    NOTE

    The subprogram extension and List File extension can be set only

    when the Reader/Puncher interface protocol is used.

    Do not change this value when other protocols are used.

  • 7/28/2019 Fanuc FA System for PC Operator

    51/380

    2. SETUP B-75044EN/02

    -38-

    2.6.3 Communication Settings for Machine

    DNC1 Settings

    1 Select the [Communication] panel in the [Machine Configuration] dialog

    box.

    2 Select the machine number you want to setup from the [Machine] list

    box..

    3 Select DNC1 from the [Protocol] list box.

    4 Press the button and set the default.

    When you communicate with the NC using this default, first check that

    the NC parameters are at the value described in A.1 Sample of NC

    Parameter Settings. If communication is carried out using a value

    different from the settings in this Appendix, the set values in this screen

    must be made to match the values currently set in the NC parameters.

    KBaud Rate: 460.8K

    5 Using the button set the value that is not set. Set the

    [Settings] group box as follows:

    K Select 1 from the [DNC1 Board Number] list box.K Select the node number form the [Node Number] list box. The

    selected number must be correspond to the DNC1 address

    parameter specified in the NC machine.

    6 The [Transfer Tool Offset] group box is automatically set according to

    the NC type set in the [Machine Type] list box in the [Machine

    Information] panel.

    Set as follows when OTHERS is selected in the [Machine Type] listbox when a new machine type is used:

  • 7/28/2019 Fanuc FA System for PC Operator

    52/380

    B-75044EN/02 2. SETUP

    -39-

    K To transfer the tool offsets, select either of Milling system orTurning system matched to the machine from the [Tool Offset

    Type] list box.K To transfer PMC data, select one of Type FS15B/16/18, Type

    FS15A or Type FS0 matched to the machine from the [PMC

    Address Specification Form] list box.

    With DNC1, the PMC address specification format varies according

    to the type of NC. This setting, however, allows you to specify the

    PCM address by the same format regardless of the type of NC when

    you are accessing PMC data from FA LIBRARY.

    K To transfer the NC parameters, select either of 2 or 3 matchedto the machine from the [Bit Type Data Type] list box.

    7 Click the button.

    DNC2 Settings

    1 Select the [Communication] panel in the [Machine Configuration] dialog

    box.

    2 Select the machine number you want to setup from the [Machine] list

    box.

    3 Select DNC2 from the [Protocol] list box.

  • 7/28/2019 Fanuc FA System for PC Operator

    53/380

    2. SETUP B-75044EN/02

    -40-

    4 Press the button and set the default.

    When you communicate with the NC using this default, first check that

    the NC parameters are at the value described in A.1 Sample of NCParameter Settings. If communication is carried out using a value

    different from the settings in this Appendix, the set values in this screen

    must be made to match the values currently set in the NC parameters.

    K Baud Rate : 9600 (bps)K Data Length : 7 (bits)K Data Code : ASCIIK Parity : EVENK Stop Bit : 2 (bits)K Retry : 5 (times)K NAK Retry : 3 (times)K Datagram Length : 256 (characters)K Time Out : 5 (seconds)K EOT Time Out : 5 (seconds)

    5 In the [Settings] group box, set the value that is not set using the button.

    K [For Details] does not need to be specified.K Select the RS-232-C port number from the [Port] list box.

    6 The [Transfer Tool Offset] group box is automatically set according to

    the NC type set in the [Machine Type] list box in the [Machine

    Information] panel.

    Set as follows when OTHERS is selected in the [Machine Type] list

    box when a new machine type is used:

    K To transfer the tool offsets, select either of Milling system orTurning system matched to the machine from the [Tool Offset

    Type] list box.

    K To transfer PMC data, select one of Type FS15B/16/18, TypeFS15A or Type FS0 matched to the machine from the [PMC

    Address Specification Form] list box.

    With DNC1, the PMC address specification format varies according

    to the type of NC. This setting, however, allows you to specify the

    PCM address by the same format regardless of the type of NC when

    you are accessing PMC data from FA LIBRARY.

    K To transfer the NC parameters, select either of 2 or 3 matchedto the machine from the [Bit Type Data Type] list box.

    7 Click the button.

  • 7/28/2019 Fanuc FA System for PC Operator

    54/380

    B-75044EN/02 2. SETUP

    -41-

    Settings of Reader/Puncher

    1 Select the [Communication] panel in the [Machine Configuration] dialog

    box.2 Select the machine number you want to setup from the [Machine] list

    box.

    3 Select Reader/Puncher from the [Protocol] list box.

    4 Press the button and set the default.

    When you communicate with the NC using this default, first check that

    the NC parameters are at the value described in A. Sample of NC

    Parameter Settings. If communication is carried out using a value

    different from the settings in this Appendix, the set values in this screen

    must be made to match the values currently set in the NC parameters.

    K Baud Rate : 9600 (bps)K Data Length : 8 (bits)K Data Code : ISOK Parity : NONEK Stop Bit : 2 (bits)K TV Check : Checked XK Send DC2 and DC4 : Checked XK Send ER(%) at the head and the end : Checked X

    5 In the [Settings] group box, set the value that is not set using the button.

    K [For Details] does not need to be specified.K Select the RS-232C port number from the [Port] list box.

    6 Select the button.

  • 7/28/2019 Fanuc FA System for PC Operator

    55/380

    2. SETUP B-75044EN/02

    -42-

    Settings of DNC1/Ethernet

    1 Select the [Communication] panel in the [Machine Configuration] dialog

    box.2 Select the machine number you want to set up from the [Machine] list

    box.

    3 Select "DNC1/Ethernet" from the [Protocol] list box.

    4 Press the button and set the default.

    The following value is set:

    K C4 server IP address : 127.0.0.1

    5 In the [Settings] group box, set the value that is not set using the button.

    K [For Details] does not need to be specified.K Enter the IP address set to the NC to be connected in the [NC IP

    Address] text box.

    K Enter the TCP Port No. set in the NC to be connected in the [NCTCP Port No.] text box.

    6 Click the button.

    NOTE

    Do not change this value.

  • 7/28/2019 Fanuc FA System for PC Operator

    56/380

    B-75044EN/02 2. SETUP

    -43-

    2.6.4 Download Settings for Machine

    You can set the subprogram transfer method and List File transfer method.

    For details on the subprogram transfer function, see 1.5 Subprogram

    Transfer Function, and for details on the List File transfer function, see 1.6

    List File Transfer Function.

    2 If you select either of Separate Transfer or Extended Transfer in the

    [Transfer Styles for Sub Programs] frame, you can set the following:

    Calling Type

    You can set the code used for calling the subprogram.

    You can set a combination of the M98, G65 and G66 codes.

    Masks of Sub Programs

    You can set the subprograms not to transfer even if a subprogram is

    called by the main program. You can set this in 1000-line units. So,for example, you can set Not to send subprograms in lines 8000 to

    9000 as they are stored in NC memory.

    NOTE

    You can set the subprogram transfer method and List File transfer

    method only when the Reader/Puncher interface protocol is used. Do

    not change this value when other protocols are used.

  • 7/28/2019 Fanuc FA System for PC Operator

    57/380

    2. SETUP B-75044EN/02

    -44-

    1st to 3rd Directory Searching Sub Program

    You can set up to three directories for storing the subprograms. 1 to

    3 indicate the search order. That is, when a subprogram having thesame number is located in [1st Directory Searching Sub Program]

    and [2nd Directory Searching Sub Program], the subprogram in [1st

    Directory Searching Sub Program] is transferred.

    Setting the List File Transfer Method

    1 Select the [Download] panel in the [Machine Configuration] dialog box.

    2 Select either of Separate Transfer or Extended Transfer in the

    [Transfer Styles for NC Programs Registered in List File] frame.

    3 If you have selected Extended Transfer, also set [Wait for send buffer

    to reach 0 before proceeding to next record in extended transfer mode].

    2.6.5 Upload Settings for Machine

    1 Select the [Upload] panel in the [Machine Configuration] dialog box.

    These settings are not used now but are provided for the future.

    Setup as the following figure.

    NOTE

    The subprogram is searched for only from the directories set at [1st to

    3rd Directory Searching Sub Program]. Subprograms will not be

    searched for even if [Default Directory] is set unless you set [1st to 3rd

    Directory Searching Sub Program].

    WARNING

    If invalid settings are specified, the FA SYSTEM for PC might behave

    unexpectedly.

  • 7/28/2019 Fanuc FA System for PC Operator

    58/380

    B-75044EN/02 2. SETUP

    -