FA System for PC Operators manual Page 226

Operators manual
C. ERROR CODE APPENDIX B-75044EN/02
-214-
C ERROR CODE
The following error codes are returned by the F_GetLastError function of FA
LIBRARY.
Error Codes about General of Communication Process (0x00010000 ~ 0x0001ffff)
0x00010000 The system cannot terminate the communication process because more than
one machine is communicating with the computer.
Try again after all the machine communications are stopped.
0x00010001 The system cannot open the communication for the specified machine because
it is already communicating with the computer.
The communication of a machine cannot be opened twice.
0x00010002 The system is initializing the DNC1 internal process.
Try again after a short time.
0x00010003 The communication is not opened for the specified machine yet.
Check that the machine was opened correctly.
0x00010006 The communication is not opened for the specified machine yet.
It is possible that the system is not set up correctly.
Error Codes about DNC1 of Communication Process (0x00020000 ~ 0x0002ffff)
0x00020102 The specified machine number is illegal.
Check the machine number is set to the Machine Configuration screen.
0x00020106 During the execution of the function, the system received the request to stop
the DNC1 communication process.
The function is canceled.
0x00020107 The system is replying the other request for the specified machine.
Try again after a short time.
0x0002010c NC program number is illegal.
The range must be from 1 to 9999.

Contents Summary of FA System for PC Operators manual

  • Page 1FA SYSTEM FOR PC OPERATORS MANUAL B–75044EN/02 © FANUC LTD, 1994
  • Page 2– No part of this manual may be reproduced in any form. – All specifications and designs are subject to change without notice. In this manual we have tried as much as possible to describe all the various matters. However, we cannot describe all the matters which must not be done, or which cannot be
  • Page 3SAFETY PRECAUTIONS 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 the Warnings, Cautions, and
  • Page 4SAFETY PRECAUTIONS B-75044EN/02 Precautions to Operate NC Machine When you control an actual NC machine with the NC programs transferred by this software, please observe the following precautions for safety. WARNING 1 Before attempting to use an NC program to control NC machines, ensure that those m
  • Page 5B-75044EN/02 SAFETY PRECAUTIONS Precautions to Operate FA SYSTEM for PC Precautions about FA SYSTEM for PC are described after the next chapter of this manual and near below. Before you use the software, please read the contents of WARNING, CAUTION, and NOTE carefully. - Precaution to DNC Operation
  • Page 6B-75044EN/02 PREFACE 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 p
  • Page 7PREFACE B-75044EN/02 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 on referred to as FA LIBRARY)
  • Page 8B-75044EN/02 PREFACE 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 NC PROGRAM MANAGEMENT or FA LIBRARY. Chapter 6. FILE LIST MANAGEMENT Describes how to manage List Files by the FA SYSTEM for
  • Page 9B-75044EN/02 CONTENTS SAFETY PRECAUTIONS PREFACE 1. ABOUT FA SYSTEM FOR PC ................................................................ 1 1.1 OVERVIEW ................................................................................................................ 2 1.2 RELATION BETWEEN FA SYSTEM
  • Page 10CONTENTS B-75044EN/02 3.2.3 Work with the Directory List ......................................................................................................... 54 3.2.4 Copying, Moving, Deleting and Renaming Files ........................................................................... 56 3.2.
  • Page 11B-75044EN/02 CONTENTS 4.3.17 Reading PMC Data < F_ReadPMCData >................................................................................... 144 4.3.18 Writing PMC Data< F_WritePMCData >.................................................................................... 146 4.3.19 Reading NC P
  • Page 12CONTENTS B-75044EN/02 APPENDIX A. SAMPLE OF NC PARAMETER SETTINGS........................................ 195 B. SAMPLE OPERATION FOR NC ......................................................... 199 B.1 DNC1, DNC2 ......................................................................................
  • Page 13
  • Page 14B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 1 ABOUT FA SYSTEM FOR PC -1-
  • Page 151. ABOUT FA SYSTEM FOR PC B-75044EN/02 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 F
  • Page 16B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 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 controls multiple NCs. A computer can be connected with a maximu
  • Page 171. ABOUT FA SYSTEM FOR PC B-75044EN/02 The adapter board is used for Reader/Puncher. RS232C Adapter Computer NC NC NC  Maximum of 8 NCs (NOTE) 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
  • Page 18B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 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 follo
  • Page 191. ABOUT FA SYSTEM FOR PC B-75044EN/02 Functions of NC PROGRAM MANAGEMENT (A08B-9510-J511) (1) For DNC1 or DNC2 NC PROGRAM MANAGEMENT can handle the following functions by operating 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
  • Page 20B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 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
  • Page 211. ABOUT FA SYSTEM FOR PC B-75044EN/02 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. Files that are stored in “default-directory The list of NC programs stored in
  • Page 22B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 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 pr
  • Page 231. ABOUT FA SYSTEM FOR PC B-75044EN/02 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 uploade
  • Page 24B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 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 File Number number DNC1, Downloading Program by Operating NC ´ ´ DNC2 Upl
  • Page 251. ABOUT FA SYSTEM FOR PC B-75044EN/02 Default-directory for Machine 1 in Computer 1. FILE_A.TXT When the file name “FILE_B.TXT” is entered by 2. FILE_B.TXT operating an NC, this file is downloaded. 3. O0001.DAT Machine 1 4. O0003.DAT When the NC program number “0003” is entered by 5. WORK1.DOC oper
  • Page 26B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 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 ;    Par
  • Page 271. ABOUT FA SYSTEM FOR PC B-75044EN/02 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. NOTE This functio
  • Page 28B-75044EN/02 1. ABOUT FA SYSTEM FOR PC Subprogram File Names Subprogram file names must be specified in the following format: “O” + 4-digit number + “.” + 3-letter extension Example: O0001.DAT Register the extension in the [Subprogram Extension] in the [General] panel in the Machine Setup menu. Subp
  • Page 291. ABOUT FA SYSTEM FOR PC B-75044EN/02 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
  • Page 30B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 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
  • Page 311. ABOUT FA SYSTEM FOR PC B-75044EN/02 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
  • Page 32B-75044EN/02 1. ABOUT FA SYSTEM FOR PC O0001.DAT % % O0001 O0001 (O0001 DATA) Create List File (O0001 DATA) M30 menu M30 % Separate transfer O0002 of list (O0002 DATA) O0002.DAT List File M30 O0001.LST % O0002 O0001.DAT O0003 O0002.DAT (O0003 DATA) (O0002 DATA)  M30 O0003.DAT M30 % % O0003.DAT Exte
  • Page 331. ABOUT FA SYSTEM FOR PC B-75044EN/02 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 List File Separate Transfer Mode Extende
  • Page 34B-75044EN/02 1. ABOUT FA SYSTEM FOR PC 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
  • Page 351. ABOUT FA SYSTEM FOR PC B-75044EN/02 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 comput
  • Page 36B-75044EN/02 2. SETUP 2 SETUP -23-
  • Page 372. SETUP B-75044EN/02 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 machine K CPU: Pentium (75MHz) or higher recommended K Memory: 32MB RAM or more recommended K Floppy Disk: one
  • Page 38B-75044EN/02 2. SETUP (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-C communication boards: K AccelePort 4r-ISA (for 4 ports, DTE/DB25 male) K AccelePort 8r-ISA (for 8 ports, DTE/DB25 male
  • Page 392. SETUP B-75044EN/02 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
  • Page 40B-75044EN/02 2. SETUP 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,
  • Page 412. SETUP B-75044EN/02 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 Don’t use the standard ports attached to your computer when you use the Reader/Puncher. 3 For details on how to m
  • Page 42B-75044EN/02 2. SETUP 2.4 SETTING FA SYSTEM FOR PC 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. 2.4.1 Setting up TCP/IP FA SYSTEM for PC utilizes the TCP/IP (
  • Page 432. SETUP B-75044EN/02 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.) 127.0.0.1 localhost Add this line if it is not described in the file. 2.4.2 Adding Internet Service When
  • Page 44B-75044EN/02 2. SETUP 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 “windir” after [System] in the [Control Panel] is started.)
  • Page 452. SETUP B-75044EN/02 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 int
  • Page 46B-75044EN/02 2. SETUP 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)
  • Page 472. SETUP B-75044EN/02 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 l
  • Page 48B-75044EN/02 2. SETUP 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
  • Page 492. SETUP B-75044EN/02 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 i
  • Page 50B-75044EN/02 2. SETUP Setting the Subprogram Extension and List File Extension 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. 1 Select the [General] panel in the [Machin
  • Page 512. SETUP B-75044EN/02 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
  • Page 52B-75044EN/02 2. SETUP K To transfer the tool offsets, select either of “Milling system” or “Turning 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 S
  • Page 532. SETUP B-75044EN/02 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 se
  • Page 54B-75044EN/02 2. SETUP 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 t
  • Page 552. SETUP B-75044EN/02 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 th
  • Page 56B-75044EN/02 2. SETUP 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
  • Page 572. SETUP B-75044EN/02  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 the same number is located in [1st Directory Searching Sub Program] and [2nd Directory Searching Sub
  • Page 58B-75044EN/02 2. SETUP 2.6.6 Saving and Restoring Settings The FA SYSTEM for PC settings that are set in the Machine Setup screen are written to a data file on your computer by pressing the button. The installation floppy disk holds the FA SYSTEM for PC communication program and various operat
  • Page 592. SETUP B-75044EN/02 Select the button to return to the Machine Setup screen. Saving Settings 1 Insert the floppy disk that you want to save the settings to into the floppy disk drive. Before you insert the floppy disk, make sure that it is not write-protected. 2 The “Insert the floppy dis
  • Page 60B-75044EN/02 3. NC PROGRAM MANAGEMENT 3 NC PROGRAM MANAGEMENT -47-
  • Page 613. NC PROGRAM MANAGEMENT B-75044EN/02 3.1 OUTLINE NC PROGRAM MANAGEMENT is the software package that allows a computer to function as an NC program file sever to connect multiple NCs. NC PROGRAM MANAGEMENT has the following functions according to the communicating capability. (1) For DNC1 or DNC2 Th
  • Page 62B-75044EN/02 3. NC PROGRAM MANAGEMENT 3.2 USING NC PROGRAM MANAGEMENT Double-click [NC Program Management] in the [FA System for PC] group dialog. The NC PROGRAM MANAGEMENT screen will appear. 3.2.1 About The NC PROGRAM MANAGEMENT Window The NC PROGRAM MANAGEMENT screen looks like this: Menu Bar Too
  • Page 633. NC PROGRAM MANAGEMENT B-75044EN/02 (2) Directory List The list indicates work directories. The work directory is the directory of WindowsNT. When a directory is registered as the work directory in the NC PROGRAM MANAGEMENT screen, a file can be transferred between the default- directory and the o
  • Page 64B-75044EN/02 3. NC PROGRAM MANAGEMENT Split Bar The split bar separates the Management Group List and File List. You can move to change the width of the lists by using the mouse to point to the bar and dragging it to its new position. 3.2.2 Work with the File List Changing the Current Management Gro
  • Page 653. NC PROGRAM MANAGEMENT B-75044EN/02 Changing the View Form of the File List - To display large icons of files, choose the [Large Icons] from the [View] menu, or click the [Large Icons] button on the tool bar. - To display only names of files, click the [List] command from the [View] menu, or click
  • Page 66B-75044EN/02 3. NC PROGRAM MANAGEMENT K When complete information of files are displayed, you can sort files by clicking one of the [Name], [Type], [Size], [Last modification date] column in the top of the File List. Refreshing the File List 1 Choose the [Refresh] command from the [View] menu. The F
  • Page 673. NC PROGRAM MANAGEMENT B-75044EN/02 3.2.3 Work with the Directory List Adding a Work Directory to the Directory List 1 Choose the [Add Directory] command from the [Directory] of [File] menu. The [Add Directory] dialog box will open. 2 Double-click the directory you want to add to the work director
  • Page 68B-75044EN/02 3. NC PROGRAM MANAGEMENT Freeing the Work Directory from the Directory List 1 Click the work directory you want to cancel in the Directory List of the Management Group List 2 Choose the [Free Directory] command from the [Directory] of [File] menu. Replacing a Work Directory with the New
  • Page 693. NC PROGRAM MANAGEMENT B-75044EN/02 3.2.4 Copying, Moving, Deleting and Renaming Files Copying Files 1 Choose the file you want to copy from the File List. You can select more than one file by clicking files while pushing the Ctrl key 2 Click the [Copy] command in the [File] menu. The [Copy File]
  • Page 70B-75044EN/02 3. NC PROGRAM MANAGEMENT Moving Files 1 Choose the file you want to move from the File List. You can select more than one file by clicking files while pushing the Ctrl key. 2 Click the [Move] command in the [File] menu. The [Move File] dialog box will open. 3 Choose the Management Group
  • Page 713. NC PROGRAM MANAGEMENT B-75044EN/02 3.2.5 Browsing, Editing and Creating New Files Browsing Files 1 Choose the file you want to browse in the File List. 2 Click the [Browse] command in the [File] menu to start the viewer for the file you selected.  When the file is selected in the File List, the
  • Page 72B-75044EN/02 3. NC PROGRAM MANAGEMENT NOTE 1 File Viewer allows you to view only one file at once. If you browse another file while you are browsing the current file, the File Viewer displays the contents of the newly selected file. 2 File Viewer is a text viewer. It does not allow you to view binar
  • Page 733. NC PROGRAM MANAGEMENT B-75044EN/02 Creating New Files NOTE 1 If you have selected the "Disable Editor" option in the Options menu, the [New File] menu is not displayed. 2 Files cannot be created in the work directory. 3 The File List display in NC PROGRAM MANAGEMENT is not automatically updated b
  • Page 74B-75044EN/02 3. NC PROGRAM MANAGEMENT  When the file is selected outside of the File List, the Edit File List screen is started. Use this screen for creating the File List. Refer to 6. FILE LIST MANAGEMENT for details of operations in the Edit File List screen. 3.2.6 Transmitting an NC Program NOTE
  • Page 753. NC PROGRAM MANAGEMENT B-75044EN/02 NC programs stored in the NC memory of “Machine02” are shown. K When the [File List] command of the [Communication] menu is clicked, the File List of the NC memory is updated. 4 Choose the [End of communication] command from the [Communication] menu, the followi
  • Page 76B-75044EN/02 3. NC PROGRAM MANAGEMENT Downloading an NC Program 1 Select the file you want to download from the File List in the Current Management Group. You can select more than one file by clicking files while pushing the Ctrl key. 2 Click the [Download] command of the [communication] menu. 3 The
  • Page 773. NC PROGRAM MANAGEMENT B-75044EN/02 4 The selected NC programs are downloaded to NC, and the File List of NC memory is updated automatically. Uploading a NC Program 1 Select the file you want to upload from the File List of the NC memory. You can select more than one file by clicking files while p
  • Page 78B-75044EN/02 3. NC PROGRAM MANAGEMENT Deleting the NC Program in the Memory of a NC 1 Select the file you want to delete from the File List of the NC memory. You can select more than one file by clicking files while pushing the Ctrl key. 2 Click the [Delete] command of the [communication] menu, the
  • Page 793. NC PROGRAM MANAGEMENT B-75044EN/02 Switching Path Control Systems You can communicate with multiple paths CNC systems by checking the [Connect to multiple paths CNC] check box in the [Options] dialog box. 1 Point at the [Change Path] command in the [Communication] menu. This displays a list of av
  • Page 80B-75044EN/02 3. NC PROGRAM MANAGEMENT Selecting the Transfer File 1 Select the file you want to download from the File List. 2 Choose the [Select Transfer File] command from the [File] menu. The [Select Transfer File] dialog box and [Change Transfer File] dialog box will open. 3 Confirm that the dir
  • Page 813. NC PROGRAM MANAGEMENT B-75044EN/02 4 Confirm that the directory specified by the above item 3 is shown in the [File] label of the [ The Current Selecting File] group list of the [Select Transfer File] dialog box. And click the button. 5 The above selected file is downloaded when you request
  • Page 82B-75044EN/02 3. NC PROGRAM MANAGEMENT This space is cleared by the Backspace key 4 Confirm that the contents of the [File] label of the [The Current Selecting File] group list in the [Select Transfer File] dialog box is clear. And click the button. 5 The [Selecting the Transfer File] function i
  • Page 833. NC PROGRAM MANAGEMENT B-75044EN/02 2 In the [File List] frame, make settings relating to File List display on your computer. K When the [Reflesh File List before sorting] check box is checked, the latest file list information is acquired before the File List display order is changed. If this chec
  • Page 84B-75044EN/02 4. FA LIBRARY 4 FA LIBRARY -71-
  • Page 854. FA LIBRARY B-75044EN/02 4.1 OUTLINE This chapter describes the user interface of the functions supported by FA LIBRARY of FA SYSTEM for PC. 4.1.1 Service Type FA LIBRARY is composed of “System service”, “Request service”, and “Diagnosis and other services”. “System service” is the function group
  • Page 86B-75044EN/02 4. FA LIBRARY 4.1.2 How to Read the Library Function The functions are classified according to the service group explained in “4.2 System service”, “4.3 Request service”, and “4.4 Diagnosis and other services” and “4.5 Log Service”. As for “System service”, the most application program
  • Page 874. FA LIBRARY B-75044EN/02 4.1.3 About the Development Language of the Application Program The functions can be called from both of Microsoft Visual Basic Ver4.0(VB) and Microsoft Visual C++ Ver4.0(VC++). (For details on VB and VC++ versions, refer to "2.1 Computer Operating Environment.") In case o
  • Page 88B-75044EN/02 4. FA LIBRARY K The DLL files which are referred while an application program is running BIN FComLib.dll (for release) BIN FComLibD.dll (for debug) BIN LogLib.dll (for release) BIN LogLibD.dll (for debug) The above relative directories are continued from the directory where FA LIBRARY i
  • Page 894. FA LIBRARY B-75044EN/02 4.1.5 About Sample Program Sample programs are appended in the package of FA LIBRARY. These sample programs are made up of the FA LIBRARY functions described in Section 4.2 to 4.5. Files and Directories There are two sample programs made by using VC++(version 4.0) and VB (
  • Page 90B-75044EN/02 4. FA LIBRARY Relationship between the functions of FA LIBRARY and the sample program files Function Communication Protocol Compatibility DNC1/ DNC1 DNC2 Ethernet VB VC++ 4.2.1. Start of Communication Process frmCreateComm.frm fCreateManager.cpp 4.2.2. End of Communication Process frmTe
  • Page 914. FA LIBRARY B-75044EN/02 Using Sample Program - Starting Sample Program 1 Confirm the next notes before starting the sample program. K A computer must be connected to NC correctly, and the settings of the Machine Configuration screen must correspond with the communication parameters in NC. The sam
  • Page 92B-75044EN/02 4. FA LIBRARY The points for staring the VC++ sample program In case of C++, the user interface is provided with “DLL”. The functions are not “Class” of C++. Therefore, each function is called directly. About the CFComTstDoc::CFComTstDoc() function in the “CFComTstDoc.cpp” file ::F_Invo
  • Page 934. FA LIBRARY B-75044EN/02 Point in the VB sample program for starting the communication process About the cmdDoit_Click () function in the ”frmCreateComm.frm” file Rtn = FALib.CreateCommunication() Point in the VC++ sample program for starting the communication process About the CfCreateManager::On
  • Page 94B-75044EN/02 4. FA LIBRARY NC Program Number: The file named “Oxxxx.yyy” in the default-directory is downloaded. Where, “xxxx” is the NC program number specified in the above screen. “yyy” is the file extension specified in [Default Extension] of [General] of the Machine Configuration screen. File N
  • Page 954. FA LIBRARY B-75044EN/02 ElseIf optFileName.Value = True Then If chkSynchro.Value = 1 Then Rtn = FALib.DownloadFileName( _ MachineNumber, ToolPostNumber, _ FileName _ ) Else ID = FALib.DownloadFileNameEx( _ MachineNumber, ToolPostNumber, _ FileName _ ) End If ElseIf optONumber.Value = True Then If
  • Page 96B-75044EN/02 4. FA LIBRARY The points for the download in the VC++ sample program About the OnOK() function in the “fDownload.cpp” file switch(m_iFileType){ case 0: // File Number if(TRUE == m_bSynchro){ bRtn = ::F_DownloadFileNumber( m_lMachineNumber, m_lToolPostNumber, lFileNumber ); }else{ lID =
  • Page 974. FA LIBRARY B-75044EN/02 case 2: // O Number if(TRUE == m_bSynchro){ bRtn = ::F_DownloadONumber( m_lMachineNumber, m_lToolPostNumber, lONumber ); }else{ lID = ::F_DownloadONumberEx( m_lMachineNumber, m_lToolPostNumber, lONumber ); } break; case 3: // File Path if(TRUE == m_bSynchro){ bRtn = ::F_Do
  • Page 98B-75044EN/02 4. FA LIBRARY An NC program is selected by the file name, and it is downloaded with a synchronous treatment. The arguments are the machine number, the tool post number, and the file name specified in the screen. An NC program is selected by the NC file name, and it is downloaded with an
  • Page 994. FA LIBRARY B-75044EN/02 The points for getting the result when an NC program is downloaded with an asynchronous treatment in the VB sample program. About the Response_Click() function in the “frmAsync.frm” file Rtn = FALib.Response(ID, Result, ErrorCode) If Rtn = True Then Select Case Result Case
  • Page 100B-75044EN/02 4. FA LIBRARY Gets the result of the asynchronous treatment. The m_IID argument is the descriptor ID entered in the screen. If the return value is TRUE, the function succeeded in getting the result. If the result is “0”, the download is in progress. If the result is “1”, the download is
  • Page 1014. FA LIBRARY B-75044EN/02 - Reading PMC data 8 Try to read the PMC data. Click the [Read PMC Data] command of the [Request Service 2] menu. 9 Enter the machine number and the tool post number. When you want to read the PMC address “R0003” to “R0007”, enter “R” in the [Address of PMC data] text box,
  • Page 102B-75044EN/02 4. FA LIBRARY Note that the value of [Order] is not a PMC number. In the above case, a “1” of [Order] corresponds with “R0003”. And a “5” does “R0007”. The points for reading the PMC data in the VB sample program About the cmdDoit_Click() function in the “frmReadPMC.frm” file If chkSync
  • Page 1034. FA LIBRARY B-75044EN/02 The points for reading the PMC data in the VC++ sample program About the OnBtnReadpmcRead() function in the “fReadPMC.cpp” file CfPMCDisplay PMCDisplay; if(TRUE == m_bSynchro){ lID = ::F_ReadPMCData( m_lMachineNumber, m_lToolPostNumber, (LPCTSTR)m_strPMCAddress, m_lPMCNumb
  • Page 104B-75044EN/02 4. FA LIBRARY Reads the PMC data with a synchronous treatment. The arguments are the machine number, the tool post number, the PMC address, the PMC number, and the count of the PMC data entered in the screen. Copies PMC data by using the descriptor ID. (The step to are executed.) The de
  • Page 1054. FA LIBRARY B-75044EN/02 - Exiting the Communication Process 11 Select the [Exit Communication Process] command from the [System Service] menu in the sample program's main menu. The dialog box below appears. 12 Press the button. Communication was started if [Success] is displayed at [Resu
  • Page 106B-75044EN/02 4. FA LIBRARY - Finishing the sample program 13 Click the [End] command of the [File] menu in the sample program. The sample program is finished. The points for finishing the VB sample program About the Form_Unload() function in the “frmMain.frm” file FALib.End Set FALib = Nothing LogLi
  • Page 1074. FA LIBRARY B-75044EN/02 14 The above describes how to operate the typical services in the sample program. In addition, the sample program includes the following services. For more information on each function in FA LIBRARY, refer to the explanation of each function described later. -94-
  • Page 108B-75044EN/02 4. FA LIBRARY 4.2 SYSTEM SERVICE System service functions are used for starting and terminating FA SYSTEM for PC, acquiring setting information, getting operating status and controlling notice messages. To start and terminate FA SYSTEM for PC, use the F_CreateCommunication, F_Open, F_Cl
  • Page 1094. FA LIBRARY B-75044EN/02 To start FA SYSTEM for PC manually, click the [FA System] icon as described in "2.5 Starting and Stopping FA SYSTEM for PC." Follow the procedure below to communicate with an NC by FA SYSTEM for PC. First start a level 1 program. Start the LogServer by F_InvokeLogServer. N
  • Page 110B-75044EN/02 4. FA LIBRARY RETURN VALUE TRUE is returned if F_CreateCommunication succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError. 4.2.2 End of Communication Process < F_TerminateCommunication > * SYNOPSIS VB Function TerminateCommunicatio
  • Page 1114. FA LIBRARY B-75044EN/02 4.2.3 Start of Communication < F_Open > SYNOPSIS VB Function Open(ByVal MachineNumber As Long) As Boolean C++ BOOL F_Open(LONG MachineNumber); DESCRIPTION F_Open starts communicating with the NC of the machine number specified by MachineNumber. NOTE 1 This function is used
  • Page 112B-75044EN/02 4. FA LIBRARY 4.2.4 Stop of Communication < F_Close > SYNOPSIS VB Function Close(ByVal MachineNumber As Long) As Boolean C++ BOOL F_Close(LONG MachineNumber); DESCRIPTION F_Close stops communicating with the NC of the machine number specified by MachineNumber. F_Close is applied to leve
  • Page 1134. FA LIBRARY B-75044EN/02 4.2.6 Getting List of Registered Machine Numbers SYNOPSIS VB Function GetAllMachineNumber (ByVal ComputerName As String) As Long C++ LONG F_GetAllMachineNumber (LPCTSTR ComputerName); VB Function CopyMachineNumber (ByVal ID As Long, MachineList As
  • Page 114B-75044EN/02 4. FA LIBRARY MachineList   Count  Four-byte integer CopiedCount points to the buffer of four-byte integer for placing the number of the actual copied machines F_CopyMachineNumber takes out the machine numbers from the internal information associated with the descriptor ID, and copi
  • Page 1154. FA LIBRARY B-75044EN/02 4.2.7 Getting List of Communicating Machines < F_GetOpenMachineNumber > SYNOPSIS VB Function GetOpenMachineNumber(ByVal ComputerName As String) As Long C++ LONG F_GetOpenMachineNumber(LPCTSTR ComputerName); DESCRIPTION The following describes the procedure for getting the
  • Page 116B-75044EN/02 4. FA LIBRARY 4.2.8 Start of Receiving Notice Message < F_StartNotice > SYNOPSIS VB Function StartNotice (ByVal ComputerName As String) As Boolean C++ BOOL F_StartNotice(LPCTSTR ComputerName); DESCRIPTION When an application program calls F_StartNotice, the communication process starts
  • Page 1174. FA LIBRARY B-75044EN/02 4.2.9 End of Receiving Notice Message < F_StopNotice > SYNOPSIS VB Function StopNotice(ByVal ComputerName As String) As Boolean C++ BOOL F_StopNotice(LPCTSTR ComputerName); DESCRIPTION When an application program calls F_StopNotice, the communication process stops sending
  • Page 118B-75044EN/02 4. FA LIBRARY 4.2.11 Getting the Notice Message of the File Transfer < F_CopyNoticeFileTransfer > SYNOPSIS VB Function CopyNoticeFileTransfer (ByVal ID As Long, Type As Long, ToolPostNumber As Long, Key As String) As Boolean C++ BOOL F_CopyNoticeFileTransfer (LONG ID, LONG* Type, LONG*
  • Page 1194. FA LIBRARY B-75044EN/02 4.2.12 Getting Information about Machine < F_GetMachineInfo > SYNOPSIS VB Function GetMachineInfo (ByVal MachineNumber As Long, ByVal Name As String, ByVal Protocol As String) As Boolean C++ BOOL F_GetMachineInfo (LONG MachineNumber, LPCTSTR Name, LPCTSTR Protocol); DESCRI
  • Page 120B-75044EN/02 4. FA LIBRARY 4.3 REQUEST SERVICE 4.3.1 Downloading NC Program requested by Computer < F_Download... > FA LIBRARY provides the four functions which can download an NC program by using one of “file number”, “NC program number”, “file name”, and “full path”, explained in Section 1.3. The
  • Page 1214. FA LIBRARY B-75044EN/02 C++ LONG F_DownloadFileNumberEx (LONG MachineNumber, LONG ToolPostNumber, LONG FileNumber); In case of the synchronous treatment VB Function DownloadFileName (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long,
  • Page 122B-75044EN/02 4. FA LIBRARY In case of the synchronous treatment VB Function DownloadFilePath (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal FilePath As String) As Boolean C++ BOOL F_DownloadFileName (LONG MachineNumber, LONG
  • Page 1234. FA LIBRARY B-75044EN/02 The four functions have the common arguments of MachineNumber and ToolPostNumber. MachineNumber specifies a machine number. ToolPostNumber specifies a tool post number. If DNC2 is used, “0” must be set. A file number is specified by FileNumber of F_DownloadFileNumber(Ex).
  • Page 124B-75044EN/02 4. FA LIBRARY 4.3.2 Uploading NC Program Requested by Computer < F_Upload... > FA LIBRARY provides the two functions which can upload an NC program by using either of “NC program number” and “full path” explained in Section 1.3. The two functions can be called with a synchronous and an
  • Page 1254. FA LIBRARY B-75044EN/02 In case of the synchronous treatment VB Function UploadFilePath (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ONumber As Long, ByVal FilePath As String) As Boolean
  • Page 126B-75044EN/02 4. FA LIBRARY ONumber specifies NC program number you want to upload from the NC. F_UploadONumber(Ex) uploads the NC program specified by ONumber , and stores it in the file specified by the same ONumber argument. Section 1.3 explains the way to store the file created from “NC program n
  • Page 1274. FA LIBRARY B-75044EN/02 4.3.3 External Reset < F_Reset > SYNOPSIS In case of the synchronous treatment VB Function Reset (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long) As Boolean C++ BOOL F_Reset (LONG MachineNumber, LONG ToolPostNumber); In case of the asynchronous treatment VB Func
  • Page 128B-75044EN/02 4. FA LIBRARY NOTE This function cannot be used on DNC1/Ethernet. (It is scheduled to be supported in the future.) Use the PMC data write function to execute a reset via the ladder program. 4.3.4 Cycle Start < F_Start > SYNOPSIS In case of the synchronous treatment VB Function Start (By
  • Page 1294. FA LIBRARY B-75044EN/02 RETURN VALUE TRUE is returned if F_Start succeeds, FALSE is returned if it fails. F_StartEx returns the positive integer of the descriptor ID for pointing the result, if it succeeds. The value of 0 is returned if it fails. In failure, an error code can be acquired by using
  • Page 130B-75044EN/02 4. FA LIBRARY DESCRIPTION Proceed to the following procedure 1,2 in case of the synchronous treatment. Proceed to the following procedure 1,3,4 in case of the asynchronous treatment. 1 F_Select(Ex) selects the NC program in the NC specified by MachineNumber and ToolPostNumber. ONumber s
  • Page 1314. FA LIBRARY B-75044EN/02 In case of the asynchronous treatment VB Function DeleteEx (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ONumber As Long) As Long C++ LONG F_DeleteEx (LONG MachineNumber, LONG ToolPostNumber, LONG ONumber); F_Delete(Ex) indicates both of the synchronous
  • Page 132B-75044EN/02 4. FA LIBRARY 4.3.7 Reading NC Identification < F_Identify > SYNOPSIS In case of the synchronous treatment VB Function Identify (ByVal MachineNumber As Long, ByVal Identify As String) As Boolean C++ BOOL F_Identify (LONG MachineNumber, LPCTSTR Identify); In case of the asynchronous trea
  • Page 1334. FA LIBRARY B-75044EN/02 3 F_IdentifyEx requests the system to read the NC identification, and returns at once. The return value is the descriptor ID for pointing the result. You must check whether the request is finished or not, and whether its result is success or not by calling F_Response. When
  • Page 134B-75044EN/02 4. FA LIBRARY DESCRIPTION Proceed to the following procedure 1,2,4,5,6,7, and 8 in case of the synchronous treatment. Proceed to the following procedure 1,3,4,5,6,7, and 8 in case of the asynchronous treatment. 1 F_AllFileDirectory(Ex) reads the list of NC programs in the NC specified b
  • Page 1354. FA LIBRARY B-75044EN/02 CopiedCount points to the four-byte integral buffer for placing the actual copied number. F_CopyFileDirectory takes out the NC programs from the descriptor ID, and copies them to the array specified by ONumber. Count specifies the number of NC programs you want to copy. Th
  • Page 136B-75044EN/02 4. FA LIBRARY 4.3.9 Establishing DNC1 Connection < F_EstablishDnc1 > SYNOPSIS In case of the synchronous treatment VB Function EstablishDnc1 (ByVal MachineNumber As Long) As Boolean C++ BOOL F_EstablishDnc1(LONG MachineNumber); In case of the asynchronous treatment VB Function Establish
  • Page 1374. FA LIBRARY B-75044EN/02 4.3.10 Confirmation of DNC1 Connection < F_ConfirmDnc1 > SYNOPSIS In case of the synchronous treatment VB Function ConfirmDnc1 (ByVal ComputerName As String, Linked As Long, CopiedCount As Long) As Boolean C++ BOOL F_ConfirmDnc1 (LPCTSTR ComputerName, LONG* Linked, LONG* C
  • Page 138B-75044EN/02 4. FA LIBRARY List 0 1 2    29 30 31 Four-bye integer CoiedCount points to the four-byte integral buffer for placing the actual copied number. F_ConfirmDnc1 doesn’t return until the treatment is finished. You can know whether the function has succeeded or not by the return value. 3
  • Page 1394. FA LIBRARY B-75044EN/02 4.3.11 Reading Alarm Information < F_ReadAlarm > SYNOPSIS In case of the synchronous treatment VB Funciton ReadAlarm (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, Alarm As Long) As Boolean C++ BOOL F_ReadAlarm (LONG MachineNumber, LONG ToolPostNumber, LONG* A
  • Page 140B-75044EN/02 4. FA LIBRARY The following table shows the alarm information in Alarm. List of Alarms Description Bit FS15 FS0 FS16/FS18 0 Background PS alarm P/S100 P/S100 1 Foreground PS alarm P/S000 P/S000 2 Overheat alarm P/S101 P/S101 3 Sub CPU error Other PS Other PS 4 Excessive synchronize erro
  • Page 1414. FA LIBRARY B-75044EN/02 4.3.12 Reading Tool Offset < F_ReadToolOffset > SYNOPSIS VB Function ReadToolOffset (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal OffsetType As Long, ByVal OffsetNumber As Long, ByVal Count As Long) As Long C++ LONG F_ReadToolOffset (LONG MachineNumber,
  • Page 142B-75044EN/02 4. FA LIBRARY OffsetType values are constructed by OR-ing flags from the following table. Bit Type of Tool Offset Type of NC 0 Wear Offset D(Cutter Offset M 1 Geometric Offset K(Cutter Offset  M 2 Wear Offset X(X-axis Tool Offset Value T 3 Wear Offset Z(Z-axis Tool Offset Value T 4
  • Page 1434. FA LIBRARY B-75044EN/02 5 F_CopyToolOffset copies the tool offset to the specified arrays. ID specifies the descriptor ID returned by F_ReadToolOffset(Ex). ToolOffsetValue points to the array for placing the tool offset value. ToolOffsetExponent points to the array for placing the exponent of the
  • Page 144B-75044EN/02 4. FA LIBRARY Where, “ N” is 0 to 15, and “^ “ indicates the power operation. OffsetNumber ToolOffset ToolOffset Value 0 Exponent 0 Wear Offset D 1 1 Geometric Offset 2 2 Geometric Offset       13 13 Geometric Offset 14 14 Geometric Offset 15 15 Not used Four-byte integer
  • Page 1454. FA LIBRARY B-75044EN/02 4.3.13 Writing Tool Offset < F_WriteToolOffset > SYNOPSIS VB Function CreateToolOffsetID (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal OffsetType As Long, ByVal OffsetNumber As Long, ByVal Count As Long) As Long C++ LONG F_CreateToolOffsetID (LONG Machi
  • Page 146B-75044EN/02 4. FA LIBRARY 1 F_CreateToolOffsetID creates the area for setting the tool offset data , and returns the descriptor ID. MachineNumber specifies a machine number. ToolPostNumber specifies a tool post number. OffsetType specifies the type of the tool offset you want to write. Refer to “4.
  • Page 1474. FA LIBRARY B-75044EN/02 5 F_WriteToolOffset doesn’t return until the treatment is finished. You can know whether the function has succeeded or not by the return value. You don’t need to free the descriptor ID returned by F_CreateToolOffset. 6 F_WriteToolOffsetEx requests the system to write the t
  • Page 148B-75044EN/02 4. FA LIBRARY 4.3.14 Reading Custom Macro Variable < F_ReadCustomMacroVariable > SYNOPSIS VB Function F_ReadCustomMacroVariable (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal VariableNumber As Long, ByVal Count As Long) As Long C++ LONG F_ReadCustomMacroVariable (LONG
  • Page 1494. FA LIBRARY B-75044EN/02 2 F_ReadCustomMacroVariable doesn’t return until the request is finished. You can know whether the function has succeeded or not by the return value. On success, the return value indicates the descriptor ID for pointing the custom macro variable. 3 F_ReadCustomMacroVariabl
  • Page 150B-75044EN/02 4. FA LIBRARY F_CopyCustomMacroVariable takes out the custom macro variables from the descriptor ID, and places them in the array pointed to by VariableValue and VariableExponent. Count specifies the number of the custom macro variables you want to copy at a time. The actual copied numb
  • Page 1514. FA LIBRARY B-75044EN/02 4.3.15 Writing Custom Macro Variable < F_WriteCustomMacroVariable > SYNOPSIS In case of the synchronous treatment VB Function F_WriteCustomMacroVariable (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal VariableNumber As Long, ByVal Count As Long, VariableV
  • Page 152B-75044EN/02 4. FA LIBRARY each array must be composed of the four-byte integral elements of the same number as Count specifies. You set the custom macro variable to the arrays. Refer to the “4.3.14 Reading Custom Macro Variable” for the way to write data to VariableValue and VariableExponent. 2 F_W
  • Page 1534. FA LIBRARY B-75044EN/02 4.3.16 Reading Tool Life Management Information < F_ReadToolLife > SYNOPSIS VB Function F_ReadToolLife (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ToolGroupNumber As Long, ByVal Count As Long) As Long C++ LONG F_ReadToolLife (LONG MachineNumber, LONG
  • Page 154B-75044EN/02 4. FA LIBRARY DESCRIPTION Proceed to the following procedure 1,2,4,5,6,7,8 and 9 in case of the synchronous treatment. Proceed to the following procedure 1,3,4,5,6,7,8 and 9 in case of the asynchronous treatment. 1 F_ReadToolLife(Ex) reads the tool life data from the NC specified by Mac
  • Page 1554. FA LIBRARY B-75044EN/02 6 F_CopyToolLifeParameter takes out the information of the tool group number specified by F_Seek. ID specifies the descriptor ID returned by F_ReadToolLife(Ex). ToolGroupNumber points to the buffer for placing the tool group number. ToolUsed points to the buffer for placin
  • Page 156B-75044EN/02 4. FA LIBRARY ToolGroupNumber ToolGroup Number ToolLife ToolUsed ToolCount Four-byte integer Four-byte integer ToolLength Cutter Tool Compensation Compensation Information       Tool    Count    Four-byte integer Four-byte integer Four-byte integer ToolGroupNumber +1  
  • Page 1574. FA LIBRARY B-75044EN/02 NOTE This function cannot be used on DNC1/Ethernet. (It is scheduled to be supported in the future.) 4.3.17 Reading PMC Data < F_ReadPMCData > SYNOPSIS VB Function F_ReadPMCData (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal PMCAddress As String, ByVal P
  • Page 158B-75044EN/02 4. FA LIBRARY 2 F_ReadPMC doesn’t return until the request is finished. You can know whether the function has succeeded or not by the return value. On success, the return value indicates the descriptor ID for pointing the PMC data. 3 F_ReadPMCEx requests the system to read the PMC data,
  • Page 1594. FA LIBRARY B-75044EN/02 7 F_Seek can move the copy offset to the PMC data you want to copy by using F_CopyPMCData. 8 Call F_FreeID to free the descriptor ID returned by F_ReadPMCData (Ex) when you finish taking out PMC data. RETURN VALUE F_ReadPMCData(Ex) returns a descriptor ID for pointing the
  • Page 160B-75044EN/02 4. FA LIBRARY DESCRIPTION Proceed to the following procedure 1 and 2 in case of the synchronous treatment. Proceed to the following procedure 1,3 and 4 in case of the asynchronous treatment. 1 F_WritePMCData(Ex) writes the PMC data to the NC specified by MachineNumber and ToolPostNumber
  • Page 1614. FA LIBRARY B-75044EN/02 4.3.19 Reading NC Parameters < F_ReadParameter > SYNOPSIS VB Function ReadParameter (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ParameterNumber As Long, ByVal DataFormat As Long, ByVal ParameterAxis As Long) As Long VC++ LONG F_ReadParameter (LONG Mac
  • Page 162B-75044EN/02 4. FA LIBRARY If the parameter to be read is not an axis type, specify ParameterAxis as "0". If the parameter to be read is an axis type, set an OR-ed value of the following bit flags to ParameterAxis. Bit Axis Whose Parameter Is To be Read 0 1st axis 1 2nd axis 2 3rd axis 3 4th axis 4
  • Page 1634. FA LIBRARY B-75044EN/02 F-CopyParameter extracts the parameter from the information specified by the descriptor ID and copies it to Parameter. Parameter  Always 16 elements   4-byte integer 6 If the parameter is not an axis type, the value is copied to element 0 of the parameter. If the param
  • Page 164B-75044EN/02 4. FA LIBRARY 4.3.20 Writing NC Parameters < F_WriteParameter > SYNOPSIS In the case of synchronous processing VB Function WriteParameter (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ParameterNumber As Long, ByVal DataFormat As Long, ByVal ParameterAxis As Long, Par
  • Page 1654. FA LIBRARY B-75044EN/02 2 F_WriteParameter is a synchronous process. So, there is no return value from the function until processing ends. The return value is used for judging whether processing succeeded or failed. 3 F_WriteParameteEx is an asynchronous process. So, there is a return value from
  • Page 166B-75044EN/02 4. FA LIBRARY 4.3.21 Computer Start DNC Operation < F_Dnc... > This function is valid only for machines connected by DNC1/Ethernet. There are four ways of specifying the file for DNC operation as described in section 1.3: by "file number," "file name," "NC program number" and "full path
  • Page 1674. FA LIBRARY B-75044EN/02 In the case of synchronous processing VB Function DncFileName (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal FileName As String) As Boolean VC++ BOOL F_DncFileName (LONG MachineNumber, LONG ToolPos
  • Page 168B-75044EN/02 4. FA LIBRARY In the case of synchronous processing VB Function DncFilePath (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal FilePath As String) As Boolean VC++ BOOL F_DncFileName (LONG MachineNumber, LONG ToolPos
  • Page 1694. FA LIBRARY B-75044EN/02 At F_DncFileNumber(Ex), specify the file number by FileNumber. Any value from 1 to 9999 can be specified. At F_DncFileName(Ex), specify the file name by FileName. At F_DncONumber(Ex), specify the NC program by ONumber. At D_DncFilePath(Ex), specify the full path of the fil
  • Page 170B-75044EN/02 4. FA LIBRARY 4.3.22 Canceling Computer Start Download < F_DownloadCancel > This function is valid only for machines connected by DNC1/Ethernet. This function cancels the download that is started by starting up your computer. NOTE 1 To use this function, you must execute the download of
  • Page 1714. FA LIBRARY B-75044EN/02 4.3.23 Canceling Computer Start Upload < F_UploadCancel > This function is valid only for machines connected by DNC1/Ethernet. This function cancels the upload that is started by starting up your computer. NOTE 1 To use this function, you must execute the upload of the NC
  • Page 172B-75044EN/02 4. FA LIBRARY 4.4 DIAGNOSIS AND OTHER SERVICES 4.4.1 Initialization Processing < F_Begin > SYNOPSIS VB Function Begin() As Boolean VC++ BOOL F_Begin(void); DESCRIPTION F_ Begin executes initialization processing of this library. Execute this function before you use this library. RETURN
  • Page 1734. FA LIBRARY B-75044EN/02 4.4.3 Moving Offset Location of Data < F_Seek > SYNOPSIS VB Function Seek (ByVal ID As Long, ByVal Offset As Long) As Boolean C++ BOOL F_Seek(LONG ID, LONG Offset); DESCRIPTION F_Seek movies the offset location of the data to Offset. The data is different according to the
  • Page 174B-75044EN/02 4. FA LIBRARY 4.4.5 Getting Result of Asynchronous Treatment < F_Response > SYNOPSIS VB Function Response (ByVal ID As Long, Result As Long, ErrorCode As Long) As Boolean C++ BOOL F_Response(LONG ID, LONG* Result, LONG* ErrorCode); DESCRIPTION F_Response places the result of a treatment
  • Page 1754. FA LIBRARY B-75044EN/02 4.4.7 End of FA LIBRARY < F_End > SYNOPSIS VB Sub End() C++ void F_End(void); DESCRIPTION F_End terminates FA LIBRARY. Call this function when an application program is finished. After this function is carried out, an application program can’t call the functions of FA LIBR
  • Page 176B-75044EN/02 4. FA LIBRARY 4.5 LOG LIBRARY This section describes the interface specifications relating to the functions provided by the log library of FA SYSTEM for PC. FA SYSTEM for PC creates various logs for monitoring operation. (Details of these logs are described in “5. Monitoring FA SYSTEM f
  • Page 1774. FA LIBRARY B-75044EN/02 Starting the LogServer by the log library Set LogLib = CreateObject("LogClient.Library") Rtn = LogLib.InvokeLogServer("") 'FA library start processing Set FALib = CreateObject("FanucCom.Library") Rtn = FALib.Begin() 'Initialization Rtn = FALib.CreateCommunication() 'Start
  • Page 178B-75044EN/02 4. FA LIBRARY 4.5.1 Starting LogServer < F_InvokeLogServer > SYNOPSIS VB Function InvokeLogServer(ByVal LogServerDir As String) As Long VC++ LONG F_InvokeLogServer(LPCTSTR LogServerDir); DESCRIPTION F_InvokeLogServer starts the LogServer (LogSvr.exe). Set "" to LogServeDir when FA SYSTE
  • Page 1795. OBSERVATION OF FA SYSTEM FOR PC B-75044EN/02 5 OBSERVATION OF FA SYSTEM FOR PC FA SYSTEM for PC reports the status of itself. When an event is occurred and an operator needs to handle it immediately, the message appears in the computer display. When the operator doesn’t need to handle the event a
  • Page 180B-75044EN/02 5. OBSERVATION OF FA SYSTEM FOR PC 5.1 LOG VIEWER 5.1.1 About Log Message The log messages are classified according to the source and the type of messages as follows. (1) Source of Messages K FA LIBRARY Messages related to FA LIBRARY. The information of NC PROGRAM MANAGE-MENT is include
  • Page 1815. OBSERVATION OF FA SYSTEM FOR PC B-75044EN/02 Therefore, there are the ten log files. (File names are put in parentheses.) K Transmission log (TransLog) K Error log of FA LIBRARY (FComLibErrLog) K Internal log of FA LIBRARY (FComLibDetailLog) K Error log of DNC1 (DNC1ErrLog) K Internal log of DNC1
  • Page 182B-75044EN/02 5. OBSERVATION OF FA SYSTEM FOR PC 5.1.2 The Contents of Transmission Log File The following shows the display of the transmission log. K START The time when the transfer of NC program is started. K END The time when the transfer of NC program is finished. K FUNCTION Indicates the type
  • Page 1835. OBSERVATION OF FA SYSTEM FOR PC B-75044EN/02 5.1.3 The Contents of Log File All log files are shown as the same display format by using the Log Viewer screen. The following example shows the display of the “DNC2ErrLog” file. K NO The machine number which the event is occurred in. K LEVEL ”00” ind
  • Page 184B-75044EN/02 5. OBSERVATION OF FA SYSTEM FOR PC 5.1.4 About Log Viewer By giving the example of the transmission log, this section describes how to use Log Viewer. Menu Bar Tool Bar Title Bar Form Status Bar Title Bar The title of log file is displayed in Title Bar. When the search function is used,
  • Page 1855. OBSERVATION OF FA SYSTEM FOR PC B-75044EN/02 Status Bar Status Bar usually displays the latest updated time and the number of displayed messages. While the Log Viewer is updating the display, the progress bar is displayed. The latest updated time and monitoring message is displayed while the moni
  • Page 186B-75044EN/02 5. OBSERVATION OF FA SYSTEM FOR PC Cleaning up the Log File - Click the [Clear] command of the menu. The contents of the log file are cleaned up. NOTE The cleared contents cannot be undone. Printing the Log Messages The way that the messages are selected by using a record number 1 Click
  • Page 1875. OBSERVATION OF FA SYSTEM FOR PC B-75044EN/02 Selecting a Font 1 Click the [Print] command in the [File] menu. The [Print] dialog will appear. 2 Click the button. The [Font setting] dialog will appear. 3 Select the font you want to use. Please select a small font size if possible. 4
  • Page 188B-75044EN/02 5. OBSERVATION OF FA SYSTEM FOR PC NOTE 1 When the monitor is executed, you can not use the function except for the [End], [ Stop the monitor], and [Change the monitor interval] command. The horizontal scroll bar can be used in monitoring, but the vertical scroll bar can not be used. 2
  • Page 1895. OBSERVATION OF FA SYSTEM FOR PC B-75044EN/02 NOTE The search command can search the log information displayed in the Log Viewer. Note that all contents of the log file are not searched. Updating the Log Message The way that the message is updated by using the menu 1 Click the [Renewal Log] comman
  • Page 190B-75044EN/02 5. OBSERVATION OF FA SYSTEM FOR PC 5.2 LogServer The LogServer receives the various log writing requests on the FA SYSTEM for PC and creates a log file. 5.2.1 Setting log creation ON/OFF LogServer allows you to set whether or not to create log files for each log. If you execute FA LIBRA
  • Page 1915. OBSERVATION OF FA SYSTEM FOR PC B-75044EN/02 The following example disables creation of the following detailed logs to read data at a short cycle using DNCI/Ethernet:  Communication manager (MngDetailLog)  FA LIBRARY (FComlibDetailLog)  DNC1/Ethernet (D1EDetailLog) For details on the log displ
  • Page 192B-75044EN/02 6. LIST FILE MANAGEMENT 6 LIST FILE MANAGEMENT NOTE Transfer by List File can be used only when the Reader/Puncher interface protocol is in use. Two or more NC programs can be registered to a List File and transferred. (For details on the List File transfer function, refer to “1.6 List
  • Page 1936. LIST FILE MANAGEMENT B-75044EN/02 6.1 EDIT LIST FILE SCREEN OPERATIONS The Edit List File screen is where you create and edit List Files. To display the Edit List File screen, start [Edit List Files] in the [FANUC FA System for PC] group dialog box. You can also start [Edit List Files] from the N
  • Page 194B-75044EN/02 6. LIST FILE MANAGEMENT Directory O number used for Registration file directory Directory name Menu bar extended transfer selection combo box List File name Contents of List File Registration file name List Box List Box Number of records Buttons for changing Buttons for File type to be
  • Page 1956. LIST FILE MANAGEMENT B-75044EN/02 Registration File Directory Selection Combo Box This combo box is for selecting the directory to be displayed in the [Register File Name] list box. When you select “Same directory as List File”, a list of files in the directory currently displayed at [Directory N
  • Page 196B-75044EN/02 6. LIST FILE MANAGEMENT O Number Used for Extended Transfer In the extended transfer mode, the O number in the registered NC programs is not transferred. If you check the [Specify O Number at Extended Transfer] check box, the [O Number] text box is enabled, and the O number entered here
  • Page 1976. LIST FILE MANAGEMENT B-75044EN/02 2 Enter the name of the new List File in the [List File] text box, and press the button. The file name does not need a file extension. The List File extension set in the Machine Setup screen is added to the file name according to the machine selected in t
  • Page 198B-75044EN/02 6. LIST FILE MANAGEMENT Registering NC Programs to Transfer to List Files Use the or buttons. 1 Select the file to register in the [Register File Name] list box. 2 The button is enabled when you select the file currently displayed in the [Register File Name] list bo
  • Page 1996. LIST FILE MANAGEMENT B-75044EN/02 Deleting Records in List Files Use the or buttons. 1 Select the record you want to delete in the [List File Details] list box. 2 The button deletes the selected records. The button deletes all records. Setting the Trans
  • Page 200B-75044EN/02 6. LIST FILE MANAGEMENT NOTE The meanings [Cancel] in Edit List File screen and [Cancel] in List File Monitor screen are different. K [Cancel] in Edit List File screen [Skip] and [Pause] are canceled by all transmission using specified List Files. K [Cancel] in List File Monitor screen
  • Page 2016. LIST FILE MANAGEMENT B-75044EN/02 In the List Files registered by only a file name, only the file name is displayed even in the [List File Details] list box. Overwriting List Files To save the file currently being edited under the same name, click the [Overwrite] command in the [File] menu. Savin
  • Page 202B-75044EN/02 6. LIST FILE MANAGEMENT 6.2 LIST FILE MONITOR SCREEN OPERATIONS The List File Monitor screen automatically displays the transfer status according to the List File at each monitor cycle. 6.2.1 Structure of List File Monitor Screen The List File Monitor screen is as follows: Monitor machi
  • Page 2036. LIST FILE MANAGEMENT B-75044EN/02 Original List File Name The List File name created in the Edit List File screen is displayed. Nothing is displayed if a List File is not being transferred. Details of List Files Currently Being Transferred This screen monitors and displays the status of List File
  • Page 204B-75044EN/02 6. LIST FILE MANAGEMENT Pausing Monitor Display To pause monitor display without exiting the screen, press the button. Each press of this button toggles between and . Whether or not monitor is in progress is displayed on the screen's title
  • Page 2056. LIST FILE MANAGEMENT B-75044EN/02 Changing the Order, Adding and Deleting NC Programs to be Transferred For all records following a paused record, you can change the order of NC programs to be transferred, add and register new NC programs or delete NC programs. When you execute the [Edit List] co
  • Page 206APPENDI
  • Page 207B-75044EN/02 APPENDIX A. SAMPLE OF NC PARAMETER SETTINGS A SAMPLE OF NC PARAMETER SETTINGS The following tables show the sample NC parameters. When you set these parameters to the NC unit actually, refer to the NC Operator’s manual. Sample Parameters (DNC1) Parameter Series 16/18 Series 15 Series 0
  • Page 208A. SAMPLE OF NC PARAMETER SETTINGS APPENDIX B-75044EN/02 Sample Parameters (DNC2) Parameters Series 16/18 Series 15 Series 0-MC Series0-TC Default Value  Input/output device 0020=10 0020=4 I/O=10 I/O=10 0021=4 0022=4 0023=4 RS232C stop bit 00131.0=1 5082=2 0051.0=1 0051.0=1 (2) The ISO code conta
  • Page 209B-75044EN/02 APPENDIX A. SAMPLE OF NC PARAMETER SETTINGS Sample Parameters (Reader/Puncher) Parameters Series 16/18 Series Series 0 Default Value  10/11/12/15 Input/output device 0020=0 0020=1 I/O=0 (1) 0021=1 Stop bit 0101.0=1 5111=2 0002.0=1 (2) ISO code contains a parity bit or not 0101.3=0 00
  • Page 210A. SAMPLE OF NC PARAMETER SETTINGS APPENDIX B-75044EN/02 Sample parameters When DNC1/Ethernet Is Used As Communication Protocol Parameters Series 16i/18i (Default Value) Input/output device number 0020=6 Required only during DNC operation IP address Set the IP address assigned to the NC to be connec
  • Page 211B-75044EN/02 APPENDIX B. SAMPLE OPERATION FOR NC B SAMPLE OPERATION FOR NC The following shows the sample operations of NC. When you operate an NC unit, refer to the NC Operator’s manual. -199-
  • Page 212B. SAMPLE OPERATION FOR NC APPENDIX B-75044EN/02 B.1 DNC1, DNC2 Sample operations for FS16/18 Procedure for Downloading an NC Program (NC Program Number) The NC program to be downloaded is selected by “NC Program Number”. 1 Change the NC mode to “Edit”. 2 Push the function key. 3 Push the [OP
  • Page 213B-75044EN/02 APPENDIX B. SAMPLE OPERATION FOR NC Procedure for DNC Operation (NC Program Number) The NC program is selected by “NC Program Number”. 1 Change the NC mode to “MDI”. 2 Push the function key. 3 Push the [+] soft key twice. 4 Push the [C-OPER] soft key. The following display will
  • Page 214B. SAMPLE OPERATION FOR NC APPENDIX B-75044EN/02 Sample Operations for FS15 Procedure for Downloading an NC Program (NC Program Number) The NC program to be downloaded is selected by “NC Program Number”. 1 Change the NC mode to “Edit”. 2 To select the PROGRAM(MEMORY) display, push the [PROGRAM] soft
  • Page 215B-75044EN/02 APPENDIX B. SAMPLE OPERATION FOR NC Procedure for DNC Operation (NC Program Number) The NC program is selected by “NC Program Number”. 1 Change the NC mode to “TAPE”. 2 Push the [SETTING] soft key. 3 Push the [CHAPTER] soft key twice. 4 Push the [COMMU.OPERAT] soft key. The following di
  • Page 216B. SAMPLE OPERATION FOR NC APPENDIX B-75044EN/02 Procedure for Uploading an NC Program (NC Program Number) The uploaded NC program is saved by using “NC Program Number”. 1 Change the NC mode to “Edit”. 2 Push the function key. 3 Push the [I/O] soft key. 4 Input “O????”. Where, the “????” ind
  • Page 217B-75044EN/02 APPENDIX B. SAMPLE OPERATION FOR NC B.2 READER/PUNCHER Sample Operation for FS16/18 Procedure for Downloading an NC Program (File Number) The NC program to be downloaded is selected by “File Number”. 1 Change the NC mode to “Edit”. 2 Push the function key. 3 Push the [READ] soft
  • Page 218B. SAMPLE OPERATION FOR NC APPENDIX B-75044EN/02 Procedure for Uploading an NC Program (NC Program Number) The uploaded NC program is saved by using “NC Program Number”. 1 Change the NC mode to “Edit”. 2 Push the function key. 3 Push the [PUNCH] soft key. 4 Input “????”. Where, the “????” ind
  • Page 219B-75044EN/02 APPENDIX B. SAMPLE OPERATION FOR NC Procedure for DNC Operation (File Number) The NC program is selected by “File Number”. 1 Change the NC mode to “RMT”. 2 Push the function key. 3 Push the [FL.SDL] soft key. 4 Push the [OPRT] soft key. 5 Push the [SELECT] soft key. 6 Input “??”.
  • Page 220B. SAMPLE OPERATION FOR NC APPENDIX B-75044EN/02 Procedure for Uploading an NC Program (File Name) The uploaded NC program is saved by using “File Name”. 1 Change the NC mode to “Edit”. 2 To select the PROGRAM(MEMORY) display, push the [PROGRAM] soft key. 3 Push the [PUNCH] soft key. 4 Push the [PRO
  • Page 221B-75044EN/02 APPENDIX B. SAMPLE OPERATION FOR NC Procedure for Deleting an NC Program 1 Change the NC mode to “Edit”. 2 Push the [PROG] soft key. 4 Push the [DELETE] soft key. 5 Push the [FILE#] soft key. 6 Input “??”. Where, the “??” indicates the NC program number you want to delete. 7 Push the [E
  • Page 222B. SAMPLE OPERATION FOR NC APPENDIX B-75044EN/02 Sample Operation for FS0-C Procedure for Downloading an NC Program (File Number) The NC program to be downloaded is selected by “File Number”. 1 Change the NC mode to “Edit”. 2 Push the function key. 3 Push the [READ]soft key. 4 Input “??”. Wh
  • Page 223B-75044EN/02 APPENDIX B. SAMPLE OPERATION FOR NC Procedure for displaying the List 1 Change the NC mode to “Edit”. 2 Push the function key. 3 Push the [FLOPPY] soft key. 4 Push the and key. The pages are turned. Procedure for Deleting an NC Program 1 Change the NC mode to “Ed
  • Page 224B. SAMPLE OPERATION FOR NC APPENDIX B-75044EN/02 Sample Operation for FS0-A/0-B Procedure for Downloading an NC Program (File Number) The downloading NC program is selected by “File Number”. 1 Change the NC mode to “Edit”. 2 Push the function key. 3 Input “N??”. Where, the “??” indicates the
  • Page 225B-75044EN/02 APPENDIX B. SAMPLE OPERATION FOR NC B.3 DNC1/ETHERNET NOTE 1 NC start cannot be downloaded, uploaded or deleted on DNC1/Ethernet. (These scheduled to be supported in the future.) 2 When DNC operation is carried out on DNC1/Ethernet, download from your computer after executing a cycle st
  • Page 226C. ERROR CODE APPENDIX B-75044EN/02 C ERROR CODE The following error codes are returned by the F_GetLastError function of FA LIBRARY. Error Codes about General of Communication Process (0x00010000 ~ 0x0001ffff) 0x00010000 The system cannot terminate the communication process because more than one ma
  • Page 227B-75044EN/02 APPENDIX C. ERROR CODE Error Codes about DNC2 of Communication Process (0x00030000 ~ 0x0003ffff) 0x00030103 The system cannot read the initial data stored in the registry of the computer. It is possible that the system is not set up correctly. 0x00030201 The system cannot open the seria
  • Page 228C. ERROR CODE APPENDIX B-75044EN/02 0x00030601 During the execution of a DNC2 command, the error was occurred. Though the error is occurred in the NC side, the NC parameter “Error code for negative response” is inactive. Set up the “Error code for negative response” parameter in the NC side. 0x00030
  • Page 229B-75044EN/02 APPENDIX C. ERROR CODE 0x00030f03 The application program attempts to press the unsupported request to the system. Check the argument of the function. 0x00030f04 The invalid argument is specified in the function which requests the system to read the NC data. Check the argument of the fu
  • Page 230C. ERROR CODE APPENDIX B-75044EN/02 0x00041010 The system received the invalid command which is composed of 32 or more characters from the NC. Check that the NC supports the Reader/Puncher protocol. 0x00041018 While receiving the NC program, the system got a DC4 code before a ER code. It is possible
  • Page 231B-75044EN/02 APPENDIX C. ERROR CODE Communication Process Errors Relating to FA SYSTEM for PC DNC1/Ethernet (0x00060000 ~ 0x0006ffff) 0x00060102 The specified machine number is illegal. Check the machine number currently registered to the Machine Setup screen. 0x00060103 An invalid service was reque
  • Page 232C. ERROR CODE APPENDIX B-75044EN/02 0x00060121 An error occurred during reading and writing of NC parameters. Make sure that the correct NC name is set to on the [Machine Information] tab in the Machine Setup menu, and check on the [Communication Tab]. 0x00060123
  • Page 233B-75044EN/02 APPENDIX C. ERROR CODE 0x000604fe (1) A reset or emergency stop was executed on the NC during DNC operation by start up from the computer. Check the NC status and execute DNC operation again. 0x000604fe (2) A non-executable program was executed by DNC operation. Check the program detail
  • Page 234C. ERROR CODE APPENDIX B-75044EN/02 0x00060507 The NC program cannot be deleted as the memory protect key is ON. Turn the memory protect key OFF. 0x00060508 When the 70 BP/S alarm occurred on the NC: The “insufficient memory” error occurred on the NC during downloading. Delete unwanted programs, and
  • Page 235B-75044EN/02 APPENDIX C. ERROR CODE 0x10011107 Illegal file number Make sure that a number 1 or larger is set to the file number. A file having a number smaller than the specified file is registered to the default directory. Check the file number. 0x10011108 Illegal file name 0x10011130 The default
  • Page 236C. ERROR CODE APPENDIX B-75044EN/02 0x10020115 An error occurred during writing of the file to upload. 0x10020118 An error occurred during closing of the file to upload. Make sure that the network is normal when the network directory is used. 0x10022011 Data whose MSB (8th bit) is 1 has been found.
  • Page 237B-75044EN/02 APPENDIX C. ERROR CODE 0x10022062 The M99 code was found in the main program for extended transfer of subprogram files. Main programs for extended transfer of subprogram files cannot contain an M99 code. 0x10022091 Failed to open the transfer file. Check the access rights of the transfe
  • Page 238C. ERROR CODE APPENDIX B-75044EN/02 0x1002210a Failed to write to the upload file. 0x1002210b Failed to close to the upload file. 0x1002210d An attempt was made to overwrite and upload a read-only file. Make sure that the file has been correctly specified. 0x1003000b Failed to open the FA SYSTEM for
  • Page 239B-75044EN/02 APPENDIX C. ERROR CODE 0x10040111 Cannot find the execution format file for the communication process. 0x10040114 A machining center tool offset type is specified together with a lathe tool offset type during reading and writing of the tool offset. 0x10040118 (1) “0” (zero) was specifie
  • Page 240C. ERROR CODE APPENDIX B-75044EN/02 0x10060004 Failed to close the List file. 0x10060005 The specified List File is already opened. 0x10060006 The application attempted to execute the function for auxiliary transfer functions. Make sure that the transfer function is correct. 0x1006000a The record fl
  • Page 241B-75044EN/02 APPENDIX C. ERROR CODE 0x10060018 Failed to open the registry. Make sure that the registry is correctly set. The directory (HELPER_MACHINE_LIST_DIR) in which the List File is created for each machine is not set to the registry. Correctly set the registry. 0x10060019 Failed to read the k
  • Page 242C. ERROR CODE APPENDIX B-75044EN/02 Error Codes returned from the NC (0x20010000 ~ 0x2002ffff) 0x2001fffe The DNC1 service failed in the DNC1 board on the computer. 0x2001fffd The DNC1 connection is closed in the DNC1 board on the computer. 0x2001fffc The error was occurred in the DNC1 board on the
  • Page 243B-75044EN/02 APPENDIX C. ERROR CODE 0x2001ffc9 Invalid axis command 0x2002ffc9 0x2001ffc6 The request is executing. 0x2002ffc6 0x2001ffc5 The request is canceling. 0x2002ffc5 0x2001ff00 The NC executes the cancel command. 0x2002ff00 0x2001fdff Timeout 0x2002fdff 0x2001fdfe Channel is busy 0x2002fdfe
  • Page 244C. ERROR CODE APPENDIX B-75044EN/02 0x2001fc09 Not in auto mode 0x2002fc09 If the error is occurred when the application program attempts to start an NC, the NC is not in the auto mode. If the error is occurred when the application program attempts to select an NC program, an NC is not the incorrect
  • Page 245B-75044EN/02 APPENDIX C. ERROR CODE 0x2001fba3 Invalid small data classification 0x2002fba3 If the error is occurred when the application program attempts to read/write the NC data, the NC data address is illegal. 0x2001fba2 Invalid data length 0x2002fba2 0x2001fba1 Invalid data type 0x2002fba1 0x20
  • Page 246C. ERROR CODE APPENDIX B-75044EN/02 0x2001fb97 Write failed 0x2002fb97 0x2001fb96 Read failed 0x2002fb96 0x2001fb95 Device inoperable 0x2002fb95 0x2001fb94 System not ready 0x2002fb94 0x2001fb93 Invalid status 0x2002fb93 If the error is occurred when an application program attempts to delete an NC p
  • Page 247B-75044EN/02 APPENDIX D. DNC1 D DNC1 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 controls multiple NCs. FA SYSTEM for PC allows connection of up to
  • Page 248D. DNC1 APPENDIX B-75044EN/02 Optical Computer adapter C Metal cable COP1 NC Optical fiber cable DNC1 board (for NC) DNC1 board Example of Connection of 3 NCs to a Computer by Optical Adapter C For details on how to connect the optical adapter, refer to the “DNC1 Optical Tap Hardware Specifications”
  • Page 249B-75044EN/02 APPENDIX D. DNC1 D.1 SYSTEM REQUIREMENTS FOR DNC1 BOARD 1 The DNC1 board conforms to the ISA(Industrial Standard Architecture), and it can be used in the PC/AT compatible machine. But both of the DNC1 board and the XT extend board can’t be used in one computer. K “XT” means the eight-bi
  • Page 250D. DNC1 APPENDIX B-75044EN/02 4 Memory Address can be selected from the list below. C0000h~C7FFFh, C8000h~CFFFFh, D0000h~D7FFFh, D8000h~DFFFFh, E0000h~E7FFFh, E8000h~EFFFFh 5 IRQ can be selected from the list below. 3, 5, 7, 9, 10, 11, 15 6 The DNC1 board spends the power supply like this. +5V, 1.4A
  • Page 251B-75044EN/02 APPENDIX D. DNC1 D.2 CONDITIONS FOR USING THE DNC1 DRIVER The WinRT software is used in the DNC1 driver. If WinRT is also used in other software packages of your computer, the DNC1 driver can not be installed.  WinRT is the trademark of Blue Water Systems Co. -239-
  • Page 252D. DNC1 APPENDIX B-75044EN/02 D.3 SETTING UP THE DNC1 BOARD 1 Select the I/O Port Address by setting the SW1 switch on the DNC1 board before plugging the board into an ISA slot of the computer. The DNC1 board must have a unique I/O Port Address, and it is not allowed that the I/O Port Address is dup
  • Page 253B-75044EN/02 APPENDIX D. DNC1 D.4 SETTING UP DNC1 DRIVER Please install the DNC1 driver (A08B-9510-J560#ZZ07) with the following procedure. 1 Insert the “DNC1 Driver Disk Setup” disk into the floppy drive on your computer. 2 From the Program Manager of WindowsNT, start the “SETUP.EXE” program stored
  • Page 254D. DNC1 APPENDIX B-75044EN/02 6 When the message “Setup was succeeded” is displayed and the following [DNC1 Tools] group dialog is created, the installation is complete. Entry of DNC1 Driver ( Add or Change) When the DNC1 driver is only installed, it is not enough to run the DNC1 driver in WindowsNT
  • Page 255B-75044EN/02 APPENDIX D. DNC1 2 Choose theDNC1 Board No.1panel. 3 Set up the same I/O Port Address as the SW1 switch on DNC1 board. And set the Memory Address and the IRQ, avoiding the duplication of other boards. 4 Click the button. 5 When the message “DNC1 driver was started” is displayed,
  • Page 256D. DNC1 APPENDIX B-75044EN/02 Removing the DNC1Driver (Remove) Please remove the DNC1 driver from WindowsNT like this. 1 Double-click the [DNC1 SetUp] program in the [DNC1 Tools] group. 2 Click the option button, and then click the button. 3 When the message “DNC1 driver was removed” i
  • Page 257B-75044EN/02 APPENDIX D. DNC1 1 Double-click the [DNC1 SetUp] program in the [DNC1 Tools] group dialog. 2 Choose the [DNC1 Board No.1] panel. 3 Check the contents of [Current Settings]. If “None” is displayed in [Current Settings], the DNC1 driver is not registered into WindowsNT yet. 4 Click the
  • Page 258D. DNC1 APPENDIX B-75044EN/02 D.5 Dnc1HardTest By using the Dnc1HardTest program, you can check whether the DNC1 board works correctly and DNC1 driver is registered into WindowsNT or not. When the DNC1 board is used at the beginning, you must execute the Dnc1HardTest program to confirm that the DNC1
  • Page 259B-75044EN/02 APPENDIX D. DNC1 Starting Dnc1HardTest 1 Double-click the [Dnc1HardTest] program in the [DNC1 Tools] group dialog. 2 The following main screen of the Dnc1Hard Test program will appear. Finishing Dnc1HardTest 1 Click the [Exit] command of the [SetUp] menu in the Dnc1HardTest program. -24
  • Page 260D. DNC1 APPENDIX B-75044EN/02 Initial Settings of Dnc1HardTest The initial settings must be executed before “Memory Test” and “Interrupt Test”. “Diagnostic Test” doesn’t need the initial settings. Using Dnc1HardTest 1 Click the [Initialize...] command in the [SetUp] menu. 2 If the above message box
  • Page 261B-75044EN/02 APPENDIX D. DNC1 3 If the value of 0 is displayed in [RESULT], the test is successful. Otherwise, the test is failed. 4 In case of failure, check the green LEDs on DNC1 board while the test program is running. For details, refer to “(5) LED state when the diagnosis is running” and “(6)
  • Page 262D. DNC1 APPENDIX B-75044EN/02 Memory Test Using Dnc1HardTest 1 Click the button in the Dnc1HardTest main screen. 2 Click the button. 3 If the value of 0 is displayed in [RESULT], the test is successful. Otherwise, the test is failed. In case of failure, there may be something wro
  • Page 263B-75044EN/02 APPENDIX D. DNC1 D.6 Dnc1Test The “Dnc1Test” is the software that enables to test the DNC1 communication services. When the DNC1 network is laid newly, or it is re-constructed, you must check that the DNC1 communication is working correctly. Starting Dnc1Test 1 Double-click the [Dnc1Tes
  • Page 264D. DNC1 APPENDIX B-75044EN/02 Initializing Dnc1Test Using Dnc1Test 1 Click the [Initialize...] of the [SetUp] menu in the main screen. 2 The [SetUp DNC1] dialog appears like this. 3 Choose the baud rate. It must correspond with the SW1 switch of the DNC1 optical adapter. For more information about t
  • Page 265B-75044EN/02 APPENDIX D. DNC1 Establishing DNC1 Connection Using Dnc1Test 1 Click the button in the main screen. 2 From the combo box, select the DNC1 station address of the NC. 3 Click the button. 4 If the value of 0 is displayed in [RESULT], the establishment is succ
  • Page 266D. DNC1 APPENDIX B-75044EN/02 Downloading NC Program Requested by Computer Using Dnc1Test 1 Click the button in the main screen. 2 From the [Station Address] combo box, choose the station address of the NC. 3 If the specified NC unit is the multi-path system, enter the tool post num
  • Page 267B-75044EN/02 APPENDIX D. DNC1 Uploading NC Program Requested by Computer Using Dnc1Test 1 Click the button in the main screen. 2 From the [Station Address] combo box, choose the station address of the NC. 3 If the specified NC unit is the multi-path system, enter the tool post number.
  • Page 268D. DNC1 APPENDIX B-75044EN/02 Downloading NC Program Requested by NC Using Dnc1Test 1 Click the button in the main screen. 2 From the [Station Address] combo box, choose the station address of the NC. 3 If the specified NC unit is the multi-path system, enter the tool post number. I
  • Page 269B-75044EN/02 APPENDIX D. DNC1 Uploading NC Program Requested by NC Using Dnc1Test 1 Click the button in the main screen. 2 From the [Station Address] combo box, choose the station address of the NC. 3 If the selected NC unit is the multi-path system, enter the tool post number. If not
  • Page 270D. DNC1 APPENDIX B-75044EN/02 DNC Operation Requested by Computer Operating NC 1 Change the NC mode to “TAPE”. Using Dnc1Test 2 Click the button in the main screen. 3 The DNC1 operation will be executed directly without checking the PMC ladder. If the NC unit is ready for the D
  • Page 271B-75044EN/02 APPENDIX D. DNC1 DNC Operation Requested by NC Operating NC 1 Refer to item 1 to 9 of “Procedure for DNC Operation” of “Sample Operations for FS16/18”, or item 1 to 6 of “Procedure for DNC Operation” of “Sample Operations for FS15”, or item 1 to 6 of “Procedure for DNC Operation” of “Sa
  • Page 272D. DNC1 APPENDIX B-75044EN/02 Selecting NC Program Operating NC 1 Change the NC mode to “MEMORY”. Using Dnc1Test 2 Click the