Fanuc FA System For PC Operator
Fanuc FA System For PC Operator
Fanuc FA System For PC Operator
OPERATORS MANUAL
B75044EN/02
FANUC LTD, 1994
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 done, because there are so many possibilities. Therefore, matters which are not especially described as possible in this manual should be regarded as impossible
SAFETY 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 Notes thoroughly before attempting to use the machine.
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.
s-1
SAFETY PRECAUTIONS
B-75044EN/02
s-2
B-75044EN/02
SAFETY PRECAUTIONS
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.
s-3
B-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 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(B60043E) K CONNECTING/MAINTENANCE/OPERATORS MANUAL for the 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 (B63354EN) K CONNECTING/MAINTENANCE/OPERATOR'S MANUAL of the 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.
p-1
B-75044EN/02
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) 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.
p-2
B-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 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.
p-3
B-75044EN/02
CONTENTS
1.4 ABOUT NC PROGRAM FORMAT ............................................................................ 13 1.5 SUBPROGRAM TRANSFER FUNCTION ................................................................. 14
1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 Details of Subprogram Separate Transfer Function ...................................................................... 16 Details of Subprogram Extended Transfer Function ...................................................................... 17 Details of List File Separate Transfer Function.............................................................................. 20 Details of List File Extended Transfer Function ............................................................................ 21 List File Transfer Monitor and Control Functions ......................................................................... 21
2. SETUP................................................................................................... 23
2.1 2.2 2.3 2.4 SYSTEM REQUIREMENTS...................................................................................... 24 DNC1 ........................................................................................................................26 DNC2, READER/PUNCHER ..................................................................................... 27 SETTING FA SYSTEM FOR PC ............................................................................... 29
2.4.1 2.4.2 2.4.3 Setting up TCP/IP .......................................................................................................................... 29 Adding Internet Service ................................................................................................................. 30 For Setting FA SYSTEM for PC.................................................................................................... 31
2.5 STARTING AND STOPPING THE COMMUNICATION PROCESS .......................... 34 2.6 SYSTEM CONFIGURATION .................................................................................... 35
2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 Machine Information Settings ........................................................................................................ 35 General Settings for Machine......................................................................................................... 36 Communication Settings for Machine ............................................................................................ 38 Download Settings for Machine..................................................................................................... 43 Upload Settings for Machine.......................................................................................................... 44 Saving and Restoring Settings........................................................................................................ 45
c-1
B-75044EN/02
Work with the Directory List ......................................................................................................... 54 Copying, Moving, Deleting and Renaming Files ........................................................................... 56 Browsing, Editing and Creating New Files .................................................................................... 58 Transmitting an NC Program ......................................................................................................... 61 Selecting the NC Program on the PC ............................................................................................. 66 Setting Options............................................................................................................................... 69
4. FA LIBRARY ......................................................................................... 71
4.1 OUTLINE .................................................................................................................. 72
4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 Service Type .................................................................................................................................. 72 How to Read the Library Function ................................................................................................. 73 About the Development Language of the Application Program..................................................... 74 About Starting Applications You Have Developed........................................................................ 75 About Sample Program .................................................................................................................. 76 Start of Communication Process < F_CreateCommunication > * .................................................. 96 End of Communication Process < F_TerminateCommunication > * ............................................. 97 Start of Communication < F_Open > ............................................................................................. 98 Stop of Communication < F_Close >............................................................................................. 99 Confirmation of Communication < F_IsOpen >............................................................................ 99 Getting List of Registered Machine Numbers <F_GetAllMachineNumber > .............................. 100 Getting List of Communicating Machines < F_GetOpenMachineNumber > ............................... 102 Start of Receiving Notice Message < F_StartNotice >................................................................. 103 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.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
c-2
B-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 Parameters < F_ReadParameter > ........................................................................... 148 4.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
c-3
CONTENTS
B-75044EN/02
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-4
B-75044EN/02
-1-
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 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 the communication 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
Computer
User-Application developed by a customer
COMMUNICATION PROCESS
DNC1
DNC2
Reader/Puncher
DNC1/Ethernet
DNC1 NC NC
RS232C
RS232C NC
Ethernet NC
-2-
B-75044EN/02
VVV
NC
Maximum of 16 NCs 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.
The standard RS232C port or the adapter board is used for DNC2.
RS232C Adapter
Computer
NC
NC
VVV
NC
Maximum of 8 NCs (NOTE) 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.
-3-
B-75044EN/02
RS232C Adapter
Computer
NC
NC
VVV
NC
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. Use a third-party computer Ethernet board.
VVV
NC
Maximum of 64 NCs
-4-
B-75044EN/02
1.2
-5-
B-75044EN/02
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 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 program saved 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.
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.
(3) For DNC1/Ethernet NC 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 program saved in NC memory.
NOTE DNC1/Ethernet communication does not allow download or upload by CRT/MDI operations on the NC. (scheduled to be supported)
-6-
B-75044EN/02
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
File System in Computer Drive A Associates with the default directory for Machine 1 Directory C Files are transmitted
Directory B
Machine 1
Directory D
Associates with the default directory for Machine 2 Files are transmitted between Machine 2 and directory D
Machine 2
-7-
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.
Refer to Chapter 2 Setup for modifying the default-directory. Refer to Chapter 3 NC PROGRAM MANAGEMENT for operating the screen.
1.3.2
-8-
B-75044EN/02
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
1. 2. 3. 4. 5. 6.
When the file name FILE_B.TXT is set to the key, this file is downloaded. Machine 1 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.
The
C: PATH
directory
in
Computer
FILE.DOC
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 keys shown as the next table.
-9-
B-75044EN/02
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
Default-directory for Machine 1 in Computer When the O0001 in the NC memory is uploaded O0001.DAT and the NC program number 0001 key is used, the file is named O0001.DAT.
The C: PATH directory in Computer When the O0001 in the NC memory is uploaded and the C: PATH FILE.DOC key is used, the FILE.DOC file is named FILE.DOC.
Machine 1
These keys are specified by arguments of the FA LIBRARY functions. Refer to Chapter 4 FA LIBRARY for details.
1.3.3
B-75044EN/02
Protocol
Downloading Program by Operating NC Uploading Program by Operating NC Downloading Program by Operating NC Uploading Program 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 File Name NC program number Selected Program The file of the same name is selected in the default-directory. 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.
-11-
B-75044EN/02
1. 2. 3. 4. 5. 6.
When the file name FILE_B.TXT is entered by operating an NC, this file is downloaded. Machine 1 When the NC program number 0003 is entered by operating an NC, this file is downloaded. When the file number 6 is entered by operating an NC, the sixth file is downloaded.
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 File Name The Way to Store the Program 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.
Default-directory for Machine1 in Computer When a file name O0001 is entered by operating an NC and the O0001 is uploaded, the file is named O0001. O0001 O0001.DAT 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
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.
-12-
B-75044EN/02
1.4
OXXXX ;
Part Program
; M30 ;
OXXXX ;
Part Program
; M02 ;
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 partprogram. 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.
-13-
B-75044EN/02
1.5
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.
% O0001 (MAIN START) M98P5001 (MAIN END) M30 O5001 (SUB START) (SUB END) M99 % % O0001 (MAIN START) (SUB START) (SUB END) (MAIN END) M30 %
-14-
B-75044EN/02
-15-
B-75044EN/02
1.5.1
-16-
B-75044EN/02
1.5.2
-17-
B-75044EN/02
1.6
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 are linked 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.
-18-
B-75044EN/02
% O0001 (O0001 DATA) M30 % O0002.DAT % O0002 (O0002 DATA) M30 % O0003.DAT % O0003 (O0003 DATA) M30 %
% O0001 (O0001 DATA) M30 O0002 (O0002 DATA) M30 O0003 (O0003 DATA) M30 % Extended transfer of list % O0001 (O0001 DATA) (O0002 DATA) (O0003 DATA) M30 %
-19-
1. ABOUT FA SYSTEM FOR PC Combinations of List File Transfer and Subprogram Transfer Functions
B-75044EN/02
The following table shows the possible combinations of List File transfer and subprogram transfer functions:
Subprogram Transfer Mode Separate List File Transfer Mode Separate Extended Extended
1.6.1
-20-
B-75044EN/02
1.6.2
1.6.3
-21-
B-75044EN/02
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.
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.
-22-
B-75044EN/02
2. SETUP
SETUP
-23-
2. 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: K CPU: K Memory: K Hard Disk: (2) Display K Resolution: K Color: (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 userapplication 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 PC/AT compatible machine Pentium (75MHz) or higher recommended 32MB RAM or more recommended 85MB Hard Disk or larger recommended
-24-
B-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) 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.
-25-
2. SETUP
B-75044EN/02
2.2
DNC1
The DNC1 board must be installed according to the next procedure.
-26-
B-75044EN/02
2. SETUP
2.3
DNC2, READER/PUNCHER
When a computer communicates to NCs with DNC2 or Reader/Puncher, RS232-C ports are used.
IIn the case of RS-232-C Adapter Board (Acceleport 4r/8r-ISA DTE DB25 Male) Side of PC DSUB 25pin 'Female' Signals Pins SD RD RS CS ER DR CD SG GND 2 3 4 5 20 6 8 7 Side of NC DSUB 25pin 'Male' Signals Pins SD RD RS CS ER DR CD SG FG 2 3 4 5 20 6 8 7 1
-27-
2. SETUP
NOTE 1
B-75044EN/02
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 3 4
Dont use the standard ports attached to your computer when you use the Reader/Puncher. For details on how to make a connection cable, refer to the FANUC "RS-232-C/RS-422 Interface Connection Manual (B-60043E)." 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.
-28-
B-75044EN/02
2. SETUP
2.4
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 (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 doubleclick 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
-29-
2. 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
2.4.2
NOTE When DNC1/Ethernet is used, this is the value to enter to UDP port No. in the ETHPRM parameter on the NC.
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.
-30-
B-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.) c: winn system32 drivers etc hosts
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.
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
MANAGEMENT (A08B-9510-J511) can be installed by the same way. Please install them by following the next procedure. 1 2 Log in using a user name having administrator privileges. Insert either FA LIBRARY Setup Disk (WindowsNT) or NC PROGRAM MANAGEMENT Setup Disk (WindowsNT) into the floppy disk drive on your computer. 3 4 Select [Run] from the Start menu, enter A: Setup in the [Name] text box and press the <OK> button. When the setup program is started, the following screen appears. If necessary, modify the installation directory of FA SYSTEM for PC, and click the <Continue> button.
-31-
2. SETUP
B-75044EN/02
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 <Setup> button. If [Space Available] is not enough, click the <Cancel> button and stop the installation. Try to install into the other disk with enough space.
6 7
When the <Setup> button is clicked, the installation is progressing automatically. Change the next floppy disk according to the message. 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.
The ReadMe.txt file is copied to the directory in which FA SYSTEM for PC is installed.
-32-
B-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)
(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.
-33-
2. SETUP
B-75044EN/02
2.5
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.
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.
-34-
B-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 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 Restoring Settings.
2.6.1
Enter the name you want to give into the [Machine Name ] text box.
-35-
2. SETUP
4
B-75044EN/02
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.
2.6.2
2 3
Select the machine number you want to setup from the [ Machine] list box. Setup the following parameters in the [General] panel. K K Switch on Normal Mode from the [NC PROGRAM MANAGEMENT Style] group box. 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] text box.
-36-
B-75044EN/02
2. SETUP
1 2 3
Select the [General] panel in the [Machine Configuration] dialog box. Select the machine number you want to set up from the [Machine] list box. Set up the following parameters in the [General] panel. K Enter the extension used for the subprogram in the [Subprogram Extension] 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.
-37-
2. SETUP
B-75044EN/02
2.6.3
DNC1 Settings
1 2 3 Select the [Communication] panel in the [Machine Configuration] dialog box. Select the machine number you want to setup from the [Machine] list box.. Select DNC1 from the [Protocol] list box.
Press the <Set Default> 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. K Baud Rate: 460.8K
Using the <Set Default> 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.
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:
-38-
B-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 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 matched to the machine from the [Bit Type Data Type] list box. 7 Click the <Save> button.
DNC2 Settings
1 2 3 Select the [Communication] panel in the [Machine Configuration] dialog box. Select the machine number you want to setup from the [Machine] list box. Select DNC2 from the [Protocol] list box.
-39-
2. SETUP
4 Press the <Set Default> button and set the default.
B-75044EN/02
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. K Baud Rate K Data Length K Data Code K Parity K Stop Bit K Retry K NAK Retry K Datagram Length K Time Out K EOT Time Out 5 Default> 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 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 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 matched to the machine from the [Bit Type Data Type] list box. 7 Click the <Save> button. : EVEN : 2 (bits) : 5 (times) : 3 (times) : 256 (characters) : 5 (seconds) : 5 (seconds) : 7 (bits) : ASCII : 9600 (bps)
In the [Settings] group box, set the value that is not set using the <Set
-40-
B-75044EN/02
2. SETUP
Settings of Reader/Puncher
1 2 3 Select the [Communication] panel in the [Machine Configuration] dialog box. Select the machine number you want to setup from the [Machine] list box. Select Reader/Puncher from the [Protocol] list box.
Press the <Set Default> 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 K Data Length K Data Code K Parity K Stop Bit K TV Check K Send DC2 and DC4 K Send ER(%) at the head and the end : NONE : 2 (bits) : Checked X : Checked X : Checked X : 8 (bits) : ISO : 9600 (bps)
In the [Settings] group box, set the value that is not set using the <Set Default> button. K [For Details] does not need to be specified. K Select the RS-232C port number from the [Port] list box.
-41-
B-75044EN/02
Select the [Communication] panel in the [Machine Configuration] dialog box. Select the machine number you want to set up from the [Machine] list box. Select "DNC1/Ethernet" from the [Protocol] list box.
Press the <Set Default> button and set the default. The following value is set: K C4 server IP address
NOTE Do not change this value.
: 127.0.0.1
In the [Settings] group box, set the value that is not set using the <Set Default> 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 [NC TCP Port No.] text box.
-42-
B-75044EN/02
2. SETUP
2.6.4
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.
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. -43-
2. SETUP
1st to 3rd Directory Searching Sub Program
B-75044EN/02
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 Program], the subprogram in [1st Directory Searching Sub Program] is transferred.
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].
2.6.5
-44-
B-75044EN/02
2. SETUP
2.6.6
-45-
2. SETUP
B-75044EN/02
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 3 The Insert the floppy disk into the A: drive. message box appears. Select the <OK> button. The save status is displayed at the bottom of the screen.
Saving and restoring of settings are carried out not for each machine that is set but for all machine settings.
NOTE Before you save the settings to 3.5" floppy disk, do not forget to press the <Save> button in the Machine Setup screen to write the settings to
Restoring Settings
1 2 3 Insert the floppy disk that you made by saving data into the floppy disk drive. The Insert the floppy disk into the A: drive. message box appears. Select the <OK> button. The restore status is displayed at the bottom of the screen.
-46-
B-75044EN/02
3. NC PROGRAM MANAGEMENT
NC PROGRAM MANAGEMENT
-47-
3. 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 The following functions can be executed from the menu of NC PROGRAM MANAGEMENT. K A computer can download an NC program to NC. K A computer can upload an NC program from NC. K NC PROGRAM MANAGEMENT can show the list of NC programs stored in the NC memory. K NC PROGRAM MANAGEMENT can delete an NC program stored in NC. The following functions can be executed by operating CRT/MDI of NC. K An NC machine can read an NC program from a computer. K An NC machine can punch a NC program to a computer. K NC can call an NC program for DNC operation. (2) For DNC1/Ethernet The following functions can be executed from the menu of NC PROGRAM MANAGEMENT. K A computer can download an NC program to the NC memory. K A computer can upload an NC program from the NC memory. K NC PROGRAM MANAGEMENT can show the list of NC programs stored in the NC memory. K NC PROGRAM MANAGEMENT can delete an NC program stored in an NC. (3) For Reader/Puncher The following functions can be executed by operating on CRT/MDI of NC K An NC machine can read an NC program from a computer. K An NC machine can punch a NC program to a computer. K An NC machine can show the list of NC programs stored in a computer. K An NC machine can delete a NC program stored in a computer. K An NC machine can call an NC program for DNC operation.
-48-
B-75044EN/02
3. NC PROGRAM MANAGEMENT
3.2
3.2.1
File List
-49-
3. NC PROGRAM MANAGEMENT
(2) Directory List The list indicates work directories.
B-75044EN/02
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 defaultdirectory and the other directory without handling the File Manager of WindowsNT.
File List
The File List looks on right side of the screen. The list displays the list of files in the Current Management Group.
Status Bar
The Status Bar indicates the total number of the files in the Current Management Group. The bar shows the message that the job is in progress when it takes a short time to deal with the job, such as the Current Management screen is refreshed.
Scroll Bar
You can scroll through the hidden part of the Management Group List and File List by clicking the Scroll Bar.
Slider
The slider is used to turn pages in the File List. When the total number of files in Current Management Group exceeds the maximum number of files that can be displayed in one page of the File List, the remaining files appear in the following pages. Any value within the range 100 to 5000 can be set in the Options screen as the maximum number of files that can be displayed in one page of the File List.
Menu Bar
The Menu Bar contains the commands for handling NC PROGRAM MANAGEMENT.
Tool Bar
The Tool Bar contains the shortcut buttons providing quick access to the often utilized commands .
-50-
B-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
Click the sign(+) on the left side of the lists. The list is expanded and the name of the sub-directories are displayed like the structure of a tree. 2 Double-click the expanded sub-directory you want to select. The Current Management Group is refreshed, and the contents of the File List is shown.
K You can choose the Current Management Group from the list box on the left side of the tool bar. -51-
B-75044EN/02
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 the [List] button on the tool bar. To display complete information about each file, click the [Details] command from the [View] menu, or click the [Details] button on the tool bar.
To sort files by type, choose the [Sort by Type] command from the [Arrange Icons] of [View] menu. To sort files by size, choose the [Sort by Size] command from the [Arrange Icons] of [View] menu. To sort files by date, choose the [Sort by Date] command from the [Arrange Icons] of [View] menu. -52-
B-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.
NOTE 1 When you operate CRT/MDI of NC and the NC program is uploaded to the directory which is now shown in the File List of NC PROGRAM MANAGEMENT, the File List isnt updated. In this case, refresh the list by using this command. 2 When an NC program is uploaded by using the menu explained later in 3.2.5. Transmitting an NC Program, the list is updated automatically, and you dont need to do this command.
-53-
3. NC PROGRAM MANAGEMENT
B-75044EN/02
3.2.3
Double-click the directory you want to add to the work directory, and click the <OK> button. Up to ten directories can be added to the Directory List.
-54-
B-75044EN/02
3. NC PROGRAM MANAGEMENT
Choose the [Free Directory] command from the [Directory] of [File] menu.
-55-
3. NC PROGRAM MANAGEMENT
B-75044EN/02
3.2.4
Copying Files
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
Click the [Copy] command in the [File] menu. The [Copy File] dialog box will open.
Copying
Choose the Management Group of destination, and click the <Copy> button. -56-
B-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 3 Click the [Move] command in the [File] menu. The [Move File] dialog box will open. Choose the Management Group of destination, and click the <Move> button.
Deleting Files
1 Choose the file you want to delete from the File List. You can select more than one file by clicking files while pushing the Ctrl key. 2 Click the [Delete] command in the [File] menu.
-57-
3. NC PROGRAM MANAGEMENT
B-75044EN/02
3.2.5
Browsing Files
1 2 Choose the file you want to browse in the File List. 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 Edit File List screen is started. Refer to 6. FILE LIST MANAGEMENT for details of operations in the Edit File List screen. When the file is selected outside of the File List, the File Viewer integrated in NC PROGRAM MANAGEMENT is started. To exit the File Viewer, click [Exit] in the menu.
-58-
B-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 3 File Viewer is a text viewer. It does not allow you to view binary files. The largest file size that File Viewer allows you to view is 32 Kbytes. When you browse files exceeding this size limit, only the first 32 Kbytes of the file are displayed. 4 You can also specify third-party viewer software in the [Options] dialog box. Refer to "3.2.8 Setting Options" for details.
Editing Files
NOTE 1 2 3 If you have selected the "Disable Editor" option in the [Options] dialog box, the [Edit] menu is not displayed. Files in work directory cannot be edited. The File List display in NC PROGRAM MANAGEMENT is not automatically updated by saving changes made to files using the editor. Refresh the File List by the method described in "3.2.2 File List Operations."
1 2
Choose the file you want to edit in the File List. Click the [Edit] command in the [File] menu to start the editor for the file you selected.
When the file is selected in the File List, the Edit File List screen is started. Refer to 6. FILE LIST MANAGEMENT for details of operations in the Edit File List screen. When the file is selected outside of the File List, the editor set in the [Options] dialog box is started. The editor provided with WindowsNT is set as the default. -59-
3. NC PROGRAM MANAGEMENT
B-75044EN/02
1 2
Double-click the directory in which you want to create the file to display the File List. Point at the [New] command in the [File] menu. File types that can be created are displayed. Click the desired file type.
When the file is selected in the File List, the editor that you specified in the Options menu is displayed. Use this editor for creating NC programs or subprogram.
-60-
B-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 1 2 To transmit an NC program, the communication process must be run. To transmit an NC program by operating the NC PROGRAM MANAGEMENT screen, the computer must be connected to NC by either of DNC1, DNC2 or DNC1/Ethernet.
The File List is split in upper and lower area. The File List of the NC memory is displayed in the bottom half, and the File List of the Current Management Group is displayed in the top half.
-61-
3. 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
If the <Yes> button is clicked, the communication of the machine is closed, and the File List of the NC memory disappears. If the <No> button is clicked, the communication of the machine is left open, and only the File List of the NC memory disappears. If the <Cancel> button is clicked, the [End of communication] command is canceled and the screen is returned to the state of the above item 3.
-62-
B-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.
The [Downloading NC Program] dialog box appears. Click the [Download] button.
-63-
3. NC PROGRAM MANAGEMENT
4
B-75044EN/02
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 pushing the Ctrl key.
2 3 4
Click the [Upload] command of the [communication] menu. The [Uploading NC Program] dialog box appears. Click the [Upload] button. The selected NC programs are uploaded from the NC to the computer, and the File List in the Current Management Group is updated automatically.
-64-
B-75044EN/02
3. NC PROGRAM MANAGEMENT
If the <Delete> button is clicked, the selected NC program is deleted from the NC memory. If the <Cancel> button is clicked, the deletion is canceled.
-65-
B-75044EN/02
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 available systems. Choose the desired system you want to switch to.
Currently selected Path 2 The screen displays a list of files in the NC memory of the system you switched over to. All [Communication] commands from here on are executed on all selected NC systems.
NOTE Up to two path control systems are supported.
3.2.7
-66-
B-75044EN/02
3. NC PROGRAM MANAGEMENT
Choose the [Select Transfer File] command from the [File] menu. The [Select Transfer File] dialog box and [Change Transfer File] dialog box will open.
Confirm that the directory specified by the above item 1 is shown in the [File Name] text box of the [Change Transfer File] dialog box, and click the [Setting] button. Please keep 1 in the [Line No.] text box and 0 in the [Sequence No.] text box. -67-
3. NC PROGRAM MANAGEMENT
4
B-75044EN/02
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 <OK> button.
The above selected file is downloaded when you request to download an NC program without specifying the NC program number in the NC side.
Click the <Change> button in the [Select Transfer File] dialog box. The [Change Transfer File] dialog box will open.
Clean up the contents of the [File Name] text box by using the Backspace key, and click the < Setting> button.
-68-
B-75044EN/02
3. NC PROGRAM MANAGEMENT
3.2.8
Setting Options
1 Click the [Options] command in the [Tools] menu. The [Options] dialog box will open.
-69-
3. NC PROGRAM MANAGEMENT
2
B-75044EN/02
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 check box is not checked, the File List display order is changed based on the details currently displayed in the File List. NOTE, however, that if the File List has several pages of data, the latest file list information is acquired before the File List display order is changed regardless of the setting of this check box. K If the [Do not display confirmation message when switching pages] check box is checked, the confirmation dialog box will not be displayed when you switch pages in the File List. K If you change the value of the [Maximum number of displayable files in File List] check box, you can change the number of files that can be displayed in one page of the File List.
In the [Browse File] frame, make settings relating to file browsing. K If you select the [Disable External Viewer] option, the File Viewer integrated in NC PROGRAM MANAGEMENT is used. K If you select the [Enable External Viewer] option, you can specify third-party viewer software. Enter the command for starting the editor in the [Editor start command] box.
In the [Edit File] fame, make settings relating to file editing. K If you select the [Disable Editor] option, you can no longer edit files or create new files. K If you select the [Enable Editor] option, you can edit files or create new files using the specified editor. Enter the command for starting the editor in the [Editor start command] box. NOTE, however, that the [Edit File List] screen is used for editing the File List.
In the [Communication] frame, make setting relating to communication with the NC. K If the [Connect to multiple paths CNC] check box is checked, you can specify the NC system with which you are to communicate. If this check box is not checked, communication is carried out with only the 1st of the multiple connected NC systems. Communication with other NC systems is not possible.
Click the <OK> button to enable the new settings. To cancel setting midway and restore the original values, click the <Cancel> button.
-70-
B-75044EN/02
4. FA LIBRARY
FA LIBRARY
-71-
4. 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 for handling the system such as the start and end of the communication process. Request service is the function group for handling NC such as the download of an NC program. All functions for System service are processed synchronously. But for Request service, two types of functions are provided; synchronous functions and asynchronous functions. An asynchronous and a synchronous functions are different in the timing when the called function returns the control to an application program. A synchronous function waits until FA SYSTEM for PC finishes the request, and returns its result. Though, an asynchronous function sends a request and returns the control to an application program at once without waiting for the result. The result can be checked by the other function. For example, the F_DownloadFileNumber function, which downloads an NC program, doesnt return until the download is finished (synchronous treatment). The F_DownloadFileNumberEx function requests the system descriptor ID which can be used to get the result. When an application program calls the F_Response function with the descriptor ID as an argument, it can be confirmed whether the download is finished. And if so, the result indicates that the download was successful or not. If an asynchronous function is used, one application program can handle more than one service at the same time because each asynchronous function doesnt wait for the result. When you use System service or Request service, you must judge the result. In such case, there are some useful functions like F_Response in the function group of Diagnosis and other services. For details on the log library, refer to "4.5 Log Library." -72to download an NC program, and returns at once. The return value is the
B-75044EN/02
4. FA LIBRARY
4.1.2
-73-
4. FA LIBRARY
B-75044EN/02
4.1.3
In case of VC++
In case of C++, the user interface is provided with DLL. Class of C++ is not used for user interface. Therefore, each function is called directly. BOOL Rtn; Rtn = F_Begin(); Rtn = F_CreateCommunication(); In case of the library for C++, F_ is stuck to the top of a function name. This character indicates that the function is provided by FANUC. When you make an application program, the following files are used. K The file which must be included while an application program is compiled. INCLUDE FComLib.h K The library modules which must be combined while an application program is linked LIB FComLib.lib (for release) LIB FComLibD.lib (for debug) LIB LogLib.lib (for release) LIB LogLibD.lib (for debug) -74-
B-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 is installed. When an application program is compiled by using VC++, both of a debug and a release version module are created. The debug version module includes the debug information; the memory utilization, the records of tracing the control and so on. The release version module doesnt include these information. To develop an application program, debug the program in a debug version at first, and then check it with a release version. Though the program must be checked for both of a debug and a release version, these two processes make the quality program, and these efforts should be resulted in efficiency. By reason of VC++ descriptions, if a program is consisted of a debug and a release version modules, it doesnt work correctly. FA LIBRARY provides two modules; the debug and the release versions. When you develop the application with a debug version, please use the debug version library . And use the release version library when you make up an application program of a release version.
4.1.4
-75-
4. FA LIBRARY
B-75044EN/02
4.1.5
The above relative directories are continued from the directory where FA LIBRARY is installed. The following table shows the compatibility between FA LIBRARY functions and each communication protocol, and a list of sample files used by these functions.
-76-
B-75044EN/02
4. FA LIBRARY
Relationship between the functions of FA LIBRARY and the sample program files
Function Communication Protocol Compatibility DNC1 DNC2 Ethernet
DNC1/
VB frmCreateComm.frm
VC++ fCreateManager.cpp
4.2.1. Start of Communication Process 4.2.2. End of Communication Process 4.2.3. Start of Communication 4.2.4.Stop of Communication 4.2.5. Confirmation of Communication 4.2.6. Getting List of Registered Machine Numbers 4.2.7. Getting of List of Communicating Machines 4.2.12. Getting Information about Machine 4.3.1. Downloading NC Program requested by Computer 4.3.2. Uploading NC Program requested by Computer 4.3.3. External Reset 4.3.4. Cycle Start 4.3.5. Selecting NC Program in NC 4.3.6. Deleting NC Program in NC 4.3.7. Reading NC Identification 4.3.8. Reading List of NC Programs in NC 4.3.9. Establishing DNC1 Connection 4.3.10. Confirmation of DNC1 Connection 4.3.11. Reading Alarm Information 4.3.12. Reading Tool Offset 4.3.13. Writing Tool Offset 4.3.14. Reading Custom Macro Variable 4.3.15. Writing Custom Macro Variable 4.3.16. Reading Tool Life Management Information 4.3.17. Reading PMC Data 4.3.18. Writing PMC Data 4.3.19 Reading NC Parameters 4.3.20 Writing NC Parameters 4.3.21 Computer Start DNC Operation 4.3.22 Canceling Computer Start Download 4.3.23 Canceling Computer Start Upload 4.4.3. Freeing Descriptor ID 4.4.4. Getting Result of Asynchronous Treatment 4.4.5. Getting Error Code 4.4.6. End of FA LIBRARY
frmTerminateComm.frm fTerminateManager.cpp frmOpen.frm frmClose.frm frmIsOpen.frm frmMachineList.frm frmMachineList.frm frmMachineInfo.frm frmDownload.frm fOpen.cpp fClose.cpp fIsOpen.cpp fMachineNumber.cpp fMachineNumber.cpp fMachineInfo.cpp fDownload.cpp
frmUpload.frm
fUpload.cpp
frmReadToolOffset.frm fReadToolOffset.cpp frmWriteToolOffset.frm fWriteToolOffset.cpp frmReadMacro.frm frmWriteMacro.frm frmToolLife.frm fReadMacro.cpp fWriteMacro.cpp fToolLife.cpp
frmReadPMC.frm frmWritePMC.frm frmReadParam.frm frmWriteParam.frm frmDownload.frm frmDownload.frm frmUpload.frm frmAsync.frm frmAsync.frm frmMain.frm frmMain.frm
fReadPMC.cpp fWritePMC.cpp fReadParam.cpp fWriteParam.cpp fDownload.cpp fDownload.cpp fUpload.cpp fAsync.cpp fAsync.cpp FComTstView.cpp FComTstDoc.cpp
: Supported
: To be supported
-: Not required
B-75044EN/02
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 sample program can be started by clicking [ Sample (VB40)] or [Sample (VC++)] in the [FANUC System for PC] group.
The points for starting the VB sample program In case of VB, the user interface is provided with OLE Automation. So, Object is created by the CreateObject() function, and the services can be requested by calling Method of Object. About the Form_Load() function in the frmMain.frm file Set LogLib = CreateObject("LogClient.Library") Rtn = LogLib.InvokeLogServer("") Set FALib = CreateObject("FanucCom.Library") Rtn = FALib.Begin
The Object of OLE Automation can be created by the CreateObject() function of VB. The name of Object is FanucCom.Library. The FALib global variable is defined in the Common.bas module.
-78-
B-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_InvokeLogServer(""); ::F_Begin(); This is not necessary when FA LIBRARY is used with the LogServer already started. See "4.5 Log Library." This is absolutely necessary for initializing FA LIBRARY.
Select the [Start Communication Process] command from the [System Service] menu in the sample program's main menu.
Press the <Action> button. Communication was started if [Success] is displayed at [Result:]. If [Fail] is displayed, exit the [Start Communication Process] dialog and press the <Get Last Error> button under the menu. This allows you to find out the cause of the error.
-79-
4. 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::OnOK() function in the fCreateManager.cpp file bRtn = ::F_CreateCommunication(); This starts the communication process. The return value is used for judging whether processing succeeded or failed.
- Downloading NC program
5 To download an NC program, place the NC program in the defaultdirectory in the computer. The default-directory is defined in the Machine Configuration screen. Click the [Download] command of the [Request Service 1] menu.
Enter the machine number in the [Machine Number] text box. Enter 0 in [Tool Post Number]. There are the four ways to download an NC program. An NC program can be downloaded by using any of the four ways. File Number: The files of the default-directory are arranged in order of ASCII code, and the file is selected according to that order. -80-
B-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 Name: The file is selected from the default-directory, and it is downloaded. File-Path: The file specified by the path in the screen is downloaded. When you want to download the O0003.DAT program in the defaultdirectory, click the [File Name] and enter O0003.DAT. Or click the [NC Program Number] and enter 3. 6 After the NC program to be downloaded is selected, check the [Synchronous] check box, and click the <Action> button. If [Success] appears in [Result], the download is successful. If [Failed] appears, click the <Get Last Error> button in the menu. The cause of the failure can be found out.
The points for the download in the VB sample program About the cmdDoit_Click() function in the frmDownload.frm file If optFileNumber.Value = True Then If chkSynchro.Value = 1 Then Rtn = FALib.DownloadFileNumber( _ MachineNumber, ToolPostNumber, _ FileNumber _ ) Else ID = FALib.DownloadFileNumberEx( _ MachineNumber, ToolPostNumber, _ FileNumber _ ) End If
-81-
4. FA LIBRARY
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 chkSynchro.Value = 1 Then Rtn = FALib.DownloadONumber( _ MachineNumber, ToolPostNumber, _ ONumber _ ) Else ID = FALib.DownloadONumberEx( _ MachineNumber, ToolPostNumber, _ ONumber_ ) End If ElseIf optFilePath.Value = True Then If chkSynchro.Value = 1 Then Rtn = FALib.DownloadFilePath( _ MachineNumber, ToolPostNumber, _ FilePath _ ) Else ID = FALib.DownloadFilePathEx( _ MachineNumber, ToolPostNumber, _ FilePath _ ) End If End If
B-75044EN/02
-82-
B-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 = ::F_DownloadFileNumberEx( m_lMachineNumber, m_lToolPostNumber, lFileNumber ); } break; case 1: // File Name if(TRUE == m_bSynchro){ bRtn = ::F_DownloadFileName( m_lMachineNumber, m_lToolPostNumber, (LPCTSTR)strFileName ); } else{ lID = ::F_DownloadFileNameEx( m_lMachineNumber, m_lToolPostNumber, (LPCTSTR)strFileName ); } break;
-83-
4. FA LIBRARY
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_DownloadFilePath( m_lMachineNumber, m_lToolPostNumber, (LPCTSTR)strFilePath ); }else{ lID = ::F_DownloadFilePathEx( m_lMachineNumber, m_lToolPostNumber, (LPCTSTR)strFilePath ); } break; }
B-75044EN/02
An NC program is selected by the file number, and it is downloaded with a synchronous treatment. The arguments are the machine number, the tool post number, and the file number specified in the screen. An NC program is selected by the file number, and it is downloaded with an asynchronous treatment. This function has the same arguments as the synchronous function. An NC program is selected by the NC program number, and it is downloaded with a synchronous treatment. The arguments are the machine number, the tool post number, and the NC program number specified in the screen. An NC program is selected by the NC program number, and it is downloaded with an asynchronous treatment. This function has the same arguments as the synchronous function.
-84-
B-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 asynchronous treatment. This function has the same arguments as the synchronous function. An NC program is selected by the file path, and it is downloaded with a synchronous treatment. The arguments are the machine number, the tool post number, and the file path specified in the screen. An NC program is selected by the file path, and it is downloaded with an asynchronous treatment. This function has the same arguments as the synchronous function. In any case of synchronous functions, its return value indicates whether the download is successful or not. In case of asynchronous, the download is failed if the return value is zero. The non-zero return value indicates the descriptor ID for getting the download result.
Try to download an NC program with an asynchronous treatment. Clear the [Synchronous] check box, and then click the <Action> button. The descriptor ID is displayed in [ Return Value]. Click the [Asynchronous] command of the menu. The following dialog box will appear.
Enter the descriptor ID in [ID] of this dialog, and then click the <Response> button. When the download is in progress, In Progress is displayed in [Result]. When it is complete, Success or Failed is displayed. In case that In Progress is displayed, Click the <Response> button after a short time. If Failed is displayed, the error code is displayed in [Error Code] at the same time. When Success or Failed is displayed in [Result], click the <Free ID> button. -85-
4. 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 0 lblResult.Caption = Msg_InProgress Case 1 lblResult.Caption = Msg_Success Case 2 lblResult.Caption = Msg_Failed lblError.Caption = "0x" + Hex(ErrorCode) End Select End If
The points for getting the result when an NC program is downloaded with an asynchronous treatment in the VC++ sample program. About the OnBtnAsyncResponse() function in the fAsync.cpp file bRtn = ::F_Response(m_lID, &lResult, &lError); if(TRUE == bRtn){ switch(lResult){ case 0: m_strResult.LoadString(IDS_INPROCESS); break; case 1: m_strResult.LoadString(IDS_SUCCESS); break; case 2: m_strResult.LoadString(IDS_FAILED); m_strErrorCode.Format("0x%8.8x", lError); break; } }
-86-
B-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 complete successfully. If the result is 2, the download is ended in failure. In failure, the cause can be found out by checking the error code.
The points for freeing the descriptor ID in the VB sample program About the cmdFreeID_Click() function in the frmAsync.cpp file Call FALib.FreeID(ID)
The points for freeing the descriptor ID in the VB sample program About the OnBtnAsyncFreeid() function in the Async.cpp file ::F_FreeID(m_lID); Frees the descriptor ID. The m_IID argument is the descriptor ID entered in the screen.
-87-
4. FA LIBRARY
- Reading PMC data
8
B-75044EN/02
Try to read the PMC data. Click the [Read PMC Data] command of the [Request Service 2] menu.
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, 3 in the [ Number of PMC Data], and 5 in the [Count of PMC Data]. Next, check the [Synchronous] check box, and then click the <Action> button. If the PMC data is read successfully, the PMC data is displayed. The [ Address of PMC Data] and [Number of PMC Data] can be entered with the same format regardless of the kind of NCs. But, the limit of PMC address varies according to the kind of PMC units. Refer to the PMC manual for details.
-88-
B-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 chkSynchro.Value = 1 Then ID = FALib.ReadPMCData( _ MachineNumber, ToolPostNumber, _ PMCAddress, PMCNumber, Count _ ) Rtn = CopyData(lblResult) Call FALib.FreeID(ID) If Rtn = True Then frmPMCDisplay.Show 1 End If Else ID = FALib.ReadPMCDataEx( _ MachineNumber, ToolPostNumber, _ PMCAddress, PMCNumber, Count _ ) End If About the CopyData() function in the frmReadPMC.frm file Rtn = FALib.GetCount(PMC_ID, PMCCount) ReDim PMC_Data(PMCCount) As Long Rtn = FALib.CopyPMCData( _ PMC_ID, PMC_Data(1), PMCCount, CopiedCount _ ) About the Form_Load() function in the frmPMCDisplay.frm file For Count = 1 To PMC_Count Item = DataToList(Count, PMC_Data(Count)) lstPMC.AddItem Item Next Count
-89-
4. 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_lPMCNumber, m_lCount ); bRtn = PMCDisplay.Setup(lID, &m_strReadResult); ::F_FreeID(lID); if(TRUE == bRtn){ PMCDisplay.DoModal(); } }else{ lID = ::F_ReadPMCDataEx( m_lMachineNumber, m_lToolPostNumber, (LPCTSTR)m_strPMCAddress, m_lPMCNumber, m_lCount ); }
About the Setup() function in the fPMCDisplay.cpp file bRtn = ::F_GetCount(lID, &lTotal); Create((DWORD)lTotal); bRtn = ::F_CopyPMCData( lID, m_lplPMCData, lTotal, &lCopiedCount ); About the OnInitDialog() function in the fPMCDisplay.cpp file for(lLoopCount = 0; lLoopCount < m_lCount; lLoopCount++){ DataToList lLoopCount+1, m_lplPMCData[lLoopCount], &strBuf ); iRtn = m_CListPMCData.AddString((LPCTSTR)strBuf); }
-90-
B-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 descriptor ID is freed. Displays the PMC data. (The step is executed.) Reads the PMC data with an asynchronous treatment. The arguments are the same as the synchronous function. Gets the count of PMC data. (If the application program already knew the value of the count, it doesnt need to call the function.) Creates the array for copying PMC data. Copies the PMC data to the array. To display PMC data, the PMC data copied in the array is translated into a character string, and writes it to the list box. This sequence is repeated according to the number of PMC data.
10 This step is explained about reading PMC data with an asynchronous treatment. The asynchronous and the synchronous treatment can be operated by the same settings, but clear the [Synchronous] check box and click the <Action> button. The descriptor ID is displayed in [ Return Value]. Click the [Asynchronous] command of the menu. The [Asynchronous Procedure] dialog will appear. Enter the descriptor ID in [ID] of the [ Asynchronous Procedure] dialog, and then click the <Response> button. If Success is displayed in [Result] of the [Asynchronous Procedure] dialog, Click the <Display Data> button in the [Read PMC Data] dialog. The PMC data is displayed. Lastly click the <Free ID> button in the [Asynchronous Procedure] dialog.
-91-
4. FA LIBRARY
- Exiting the Communication Process
B-75044EN/02
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 <Action> button. Communication was started if [Success] is displayed at [Result:]. If [Fail] is displayed, exit the [Start Communication Process] dialog and press the <Get Last Error> button under the menu. This allows you to find out the cause of the error.
Point in the VB sample program for exiting the communication process About the cmdDoit_Click () function in the frmCreateComm.frm file ComputerName = txtComputerName.Text Rtn = FALib.TerminateCommunication(ComputerName)
Point in the VC++ sample program for exiting the communication process About the CfCreateManager::OnOK() function in the fCreateManager.cpp file lpszHostName = (LPCTSTR)m_strHostName; bRtn = ::F_TerminateCommunication(lpszHostName); Set the name of the computer on which the communication process is to be exited. Set "". This starts the communication process. The return value is used for judging whether processing succeeded or failed.
-92-
B-75044EN/02
4. FA LIBRARY
The points for finishing the VC++ sample program About the OnCloseDocument() function in the FcomTstDoc.cpp file ::F_End(); ::F_TerminateLogServer(); Calls the function which terminates FA LIBRARY. In case of VB, Object is cleared by substituting Nothing. Execute this to terminate the LogServer. To start the LogServer, clear the object when the following is executed: Set LogLib = CreateObject("LogClient.Library")
-93-
4. 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-
B-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_Close and F_TerminateCommunication functions. The following figure shows the relationship between programs that run on FA SYSTEM for PC and these four functions.
This
icon
starts
all
programs in levels 1 to 3.
Levels 1 to 3 Start Procedure Programs must be started in order level 1 through to 3. Levels 1 to 3 Start and Exit Functions Level 1 Start by 4.5.1 F_InvokeLogServer and terminate by 4.5.2 F_TerminateLogServer. Level 2 Start by 4.2.1 F_CreateCommunication. This function also starts at the same time as level 3. Terminate by 4.2.2 F_TerminateCommunication. This function also terminates at the same time as level 3. Level 3 Start by 4.2.2 F_Open for each machine. This function is not required when F_CreateCommunication has been executed. Terminate by 4.2.3 F_Close for each machine. F_Open is used to restart communication. This function is not required when F_CreateCommunication has been executed.
-95-
4. 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. Next, start levels 2 and 3 simultaneously using F_CreateCommunication. Communication with each machine cannot be initiated without starting F_CreateCommunication. If a level 2 program has been started by F_CreateCommunication, then you can terminate the communication program for each machine by F_Close or start the communication program for each machine by F_Open. When level 1 to 3 programs are started, download, upload and read/write of variables are possible using the functions described in "4.3 Request Service."
4.2.1
SYNOPSIS
VB C++
DESCRIPTION
F_CreateCommunication starts the communication process in the computer where the application program is running. It is necessary that the communication process and the calling application are in the same directory. When the communication process is already started according to 2.5 Starting and Stopping the Communication Process, it isnt necessary to start it. This function doesnt have any effect if the communication process is already started.
NOTE 1 2 To execute this function, a level 1 program must already be executed. When this function is executed, the "4.2.3 Start of Communication<F_Open>" function is automatically executed on all machines set in the Machine Setup screen. So, the F_Open function need not be executed for each machine. If you execute the F_Open function after this function is executed, the error "Communication is already started (error code: 0x00010001)" occurs. You may ignore this error.
-96-
B-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
SYNOPSIS
VB C++
Function TerminateCommunication (ByVal ComputerName As String) As Boolean BOOL F_TerminateCommunication (LPCTSTR ComputerName);
DESCRIPTION
F_TerminateCommunication terminates the communication process which is running in the computer specified by ComputerName. When the value of ComputerName is NULL, or when the character length of ComputerName is zero, F_TerminateCommunication can terminate the communication process in the computer where the application program is running .
NOTE 1 To exit FA SYSTEM for PC, be sure to execute this function to exit level 2 programs. Level 2 programs are not exited even if you execute F_Close for all machines. 2 When this function is executed, the "4.2.4 Stop of Communication<F_Close>" function is automatically executed on all machines set in the Machine Setup screen. So, the F_Close function need not be executed for each machine. If you execute the F_Close function after this function is executed, the error "Communication Manager is not started (error code: 0x1004020f)" occurs. You may ignore this error.
RETURN VALUE
TRUE is returned if F_TerminateCommunication succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-97-
4. FA LIBRARY
B-75044EN/02
4.2.3
SYNOPSIS
VB C++
DESCRIPTION
F_Open starts communicating with the NC of the machine number specified by MachineNumber.
NOTE 1 This function is used to start communication for each machine. To use this function, you must execute F_InvokeLogServer and F_CreateCommunication to start level 1 and level 2 programs. If you execute this function when level 1 and level 2 functions are not started, the error "Communication Manager is not started (error code: 0x1004020f)" occurs. 2 When you execute F_CreateCommunication, communication with all registered machines is started.
RETURN VALUE
TRUE is returned if F_Open succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-98-
B-75044EN/02
4. FA LIBRARY
4.2.4
SYNOPSIS
VB C++
DESCRIPTION
F_Close stops communicating with the NC of the machine number specified by MachineNumber. F_Close is applied to level 3 programs.
NOTE 1 This function is used for terminating communication with each machine. Level 2 programs are not terminated even if you execute this function on all machines. To exit FA SYSTEM for PC, be sure to execute F_TerminateCommunication. 2 When you execute F_TerminateCommunication, communication with all registered machines is terminated.
RETURN VALUE
TRUE is returned if F_Close succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
4.2.5
SYNOPSIS
Confirmation of Communication
VB C++
DESCRIPTION
F_IsOpen checks whether the computer communicates with the NC of the machine number specified by MachineNumber.
RETURN VALUE
F_IsOpen returns TRUE if the computer is communicating with the specified machine. Otherwise, FALSE is returned.
-99-
4. FA LIBRARY
B-75044EN/02
4.2.6
SYNOPSIS
VB C++ VB
Function GetAllMachineNumber (ByVal ComputerName As String) As Long LONG F_GetAllMachineNumber (LPCTSTR ComputerName); Function CopyMachineNumber (ByVal ID As Long, MachineList As Long, ByVal Count As Long, CopiedCount As Long) As Boolean
C++
BOOL F_CopyMachineNumber (LONG ID, LONG* MachineList, LONG Count, LONG* CopiedCount);
DESCRIPTION
The following describes the procedure for getting the list of the registered machines which are defined in the Machine Configuration screen. 1 F_GetAllMachineNumber gets the list of the machines registered in the computer specified by ComputerName. When the function succeeds, the return value indicates the descriptor ID for pointing the list of the registered machine numbers. 2 F_GetCount gets the number of the registered machines associated with the descriptor ID. ID specifies the descriptor ID returned by F_GetAllMachineNumber. Refer to Clause 4.4.1 for details 3 F_CopyMachineNumber takes out the list of the registered machine numbers. ID specifies the descriptor ID returned by F_GetAll MachineNumber. Count specifies the number of the registered machines you want to read at a time. MachineList points to the array for placing machine numbers. The array must be composed of the four-byte integral elements of the same number as Count specifies.
-100-
B-75044EN/02
4. FA LIBRARY
MachineList
V V V
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 copies them to the array specified by MachineList. The number of the machines you want to copy is specified by Count. The number of the actual copied machines is placed in CopiedCount. The machine numbers acquired by F_CopyMachineNumber are copied in order of the number. F_CopyMachineNumber can copy machine numbers with dividing into several times. When F_CopyMachine Number returns, the copy offset is advanced to the next location of the actual copied machine number. 4 F_Seek can move the copy offset to the machine number you want to copy by using F_CopyMachineNumber. 5 Call F_FreeID to free the descriptor ID when the copy is finished.
RETURN VALUE
F_GetAllMachineNumber returns the descriptor ID of the positive integer for pointing the list of the registered machine number if it succeeds, and a value of 0 is returned if it fails. TRUE is returned if F_CopyMachineNumber succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-101-
4. FA LIBRARY
B-75044EN/02
4.2.7
SYNOPSIS
VB C++
DESCRIPTION
The following describes the procedure for getting the list of the communicating machine numbers. 1 F_GetOpenMachineNumber can get the list of the machines which are communicating with the computer specified by ComputerName. When the function succeeds, the return value indicates the descriptor ID for pointing the list of the communicating machines. 2 F_CopyMachineNumber takes out the machines associated with the descriptor ID. Refer to Clause 4.2.6 Getting List of Registered Machine Numbers for the details
RETURN VALUE
F_GetOpenMachineNumber returns the descriptor ID of a positive integer for placing the list of the communicating machines if it succeeds, and a value of 0 is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-102-
B-75044EN/02
4. FA LIBRARY
4.2.8
SYNOPSIS
VB C++
DESCRIPTION
When an application program calls F_StartNotice, the communication process starts sending notice messages to it. A notice message is the information for notifying an application program of the status of the communication process. The communication process reports the start and end of downloading/uploading by operating NC side to an application program. The communication process is running in the computer specified by ComputerName. When the value of ComputerName is NULL, a notice message will be sent from the communication process in the computer where the calling application program is running. Only one application can receive notice messages from the communication process. When one application has already called the function and has been receiving a notice message from the computer specified by ComputerName, other applications fail in the call of this function.
RETURN VALUE
TRUE is returned if F_StartNotice succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-103-
4. FA LIBRARY
B-75044EN/02
4.2.9
SYNOPSIS
VB C++
DESCRIPTION
When an application program calls F_StopNotice, the communication process stops sending the notice messages. The communication process is running in the computer specified by ComputerName. When the value of ComputerName is NULL, the function selects the communication process in the computer where the application program is running. F_StopNotice can be called by the application program that F_StartNotice before. called
RETURN VALUE
TRUE is returned if F_StopNotice succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
4.2.10
SYNOPSIS
VB
C++
DESCRIPTION
F_GetNoticeID reads the notice message sent by the communication process. When a message is sent, the descriptor ID of the positive integer is placed in ID, the request code is placed in RequestCode, and the machine number is placed in MachineNumber. When there is no message, the value of 0 is set to ID. And no value is set to RequestCode and MachineNumber.
RETURN VALUE
TRUE is returned if F_GetNoticeID succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-104-
B-75044EN/02
4. FA LIBRARY
4.2.11
SYNOPSIS
Getting the Notice Message of the File Transfer < F_CopyNoticeFileTransfer >
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* ToolPostNumber, LPCTSTR Key);
DESCRIPTION
When F_GetNoticeID returns the following request code, F_CopyNoticeFileTransfer can take out the notice message. Request Code 0x00100001 0x00100002 Explanation The Start and End of Downloading NC Program Requested by NC The Start and End of Uploading NC Program Requested by NC ID specifies descriptor ID returned by F_GetNoticeID. The notice message is placed in the following arguments. Type points to the four-byte integral flag for placing either of the start or end flag. The value of 0x0 is the start flag, and 0xFFFFFFFF is the end flag. ToolPostNumber points to the four-byte integral value for placing the tool post number. Key points to the four-byte integral value for placing the key used to transfer. Call F_FreeID to free the descriptor ID when F_CopyNotice FileTransfer is finished.
RETURN VALUE
TRUE is returned if F_CopyNoticeFileTransfer succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-105-
4. FA LIBRARY
B-75044EN/02
4.2.12
SYNOPSIS
VB
Function GetMachineInfo (ByVal MachineNumber As Long, ByVal Name As String, ByVal Protocol As String) As Boolean
C++
DESCRIPTION
F_GetMachineInfo reads the information of the machine MachineNumber The machine information is placed in the following arguments. Name points to the buffer for placing the machine name. Protocol points to the buffer for placing the protocol type. Each buffer must be a sequence of 33 characters or more length and each character string is terminated by a NULL character. The following is the character string written in Protocol . The String of Protocol DNC1 DNC2 RP DNC1ETHER Explanation DNC1 DNC2 Reader/Puncher DNC1/Ethernet specified by
RETURN VALUE
TRUE is returned if F_GetMachineInfo succeeds, FALSE is returned if it fails. F_GetMachineInfo fails if the protocol type of a machine is registered with NONE in the Machine Configuration Screen. In failure, an error code can be acquired by calling F_GetLastError.
-106-
B-75044EN/02
4. FA LIBRARY
4.3
4.3.1
REQUEST SERVICE
NOTE When DNC1/Ethernet is used for communicating with an NC, the download is not reset even if you press the RESET key on the NC during a download of the NC program requested by the computer. (Until either the download ends successfully, or the download does not end until an NC memory overflow or other error causes an NC alarm.) To cancel the download of the NC program requested by the computer, use the "cancel download of the NC program requested by the computer " function described later. To use this function, you must execute the download of the NC program requested by the computer asynchronously. If the download is executed synchronously, the application will not be returned to until the download function ends. For this reason, the cancel function cannot be used.
SYNOPSIS
<The file to be downloaded is specified by file number> In case of the synchronous treatment
VB Function DownloadFileNumber (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal FileNumber As Long) As Boolean C++ BOOL F_DownloadFileNumber (LONG MachineNumber, LONG ToolPostNumber, LONG FileNumber);
-107-
4. FA LIBRARY
C++ LONG F_DownloadFileNumberEx (LONG MachineNumber, LONG ToolPostNumber, LONG FileNumber);
B-75044EN/02
<The file to be downloaded is specified by file name> In case of the synchronous treatment
VB Function DownloadFileName (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal FileName As String) As Boolean C++ BOOL F_DownloadFileName (LONG MachineNumber, LONG ToolPostNumber, LPCTSTR FileName);
<The file to be downloaded is specified by NC program number > In case of the synchronous treatment
VB Function DownloadONumber (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ONumber As Long) As Boolean C++ BOOL F_DownloadONumber (LONG MachineNumber, LONG ToolPostNumber, LONG ONumber);
-108-
B-75044EN/02
4. FA LIBRARY
<The file to be downloaded is specified by full path > 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 ToolPostNumber, LPCTSTR FilePath);
F_Download... indicates the synchronous functions in the four kinds of functions shown in the above. F_Download...Ex indicates the asynchronous functions in the four kinds of functions shown in the above. F_Download...(Ex) indicates both of the synchronous and asynchronous functions. the
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_Download...(Ex) downloads an NC program to the NC memory. There are the four ways to specify the file to be downloaded like these. How to Specify File Number File Name NC Program Number Full Path of File Name of Function F_DownloadFileNumber(Ex) F_DownloadFileName(Ex) F_DownloadONumber(Ex) F_DownloadFilePath(Ex)
-109-
4. 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 A A file file NC number name is is specified number specified by is by FileNumber of by of
F_DownloadFileNumber(Ex). The range is from 1 to 9999. FileName specified F_Download Onumber of FileName(Ex). program F_DownloadONumber(Ex). The full path is specified by FilePath of F_Download FilePath (Ex). Section 1.3 explains the rule for downloading the NC program specified by a file number, a file name, a NC program number, and a full path. When the file to be downloaded is specified by file number, it is chosen according to the files sorted in order of the ASCII code. When the file is specified by file name, the specified file is selected from the default-directory. When the file is specified by NC program number, the file, whose name is composed of Oxxxx(where, xxxx indicates a NC program number) and the registered file extension, is downloaded. When the file is specified by full path, the specified file is downloaded without using the above rule. 2 F_Download... doesnt return until the download is finished. You can know whether the function has succeeded or not by the return value. 3 F_Download...Ex requests the system to download an NC program, and returns at once. The return value is 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 substituting the descriptor ID to F_Response. 4 Call F_FreeID to free the descriptor ID after getting the result of F_Download...Ex by using F_Response.
RETURN VALUE
TRUE is returned if F_Download... succeeds, FALSE is returned if it fails. F_Download...Ex 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 calling F_GetLastError. -110-
B-75044EN/02
4. FA LIBRARY
4.3.2
NOTE When DNC1/Ethernet is used for communicating with an NC, the upload is not reset even if you press the RESET key on the NC during the upload of the NC program requested by the computer. (Until either the upload ends successfully, or the upload does not end until an NC memory overflow or other error causes an NC alarm.) To cancel the upload of the NC program requested by the computer, use the "cancel upload of the NC program requested by the computer" function described later. To use this function, you must execute the upload of the NC program requested by the computer asynchronously. If the upload is executed synchronously, the application will not be returned to until the upload function ends. For this reason, the cancel function cannot be used.
SYNOPSIS
<In case that NC program number specifies the file which the uploaded NC program is stored in > In case of the synchronous treatment
VB Function UploadONumber (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ONumber As Long) As Boolean C++ BOOL F_UploadONumber (LONG MachineNumber, LONG ToolPostNumber, LONG ONumber);
-111-
4. FA LIBRARY
B-75044EN/02
<In case that full path specifies the file which the uploaded NC program is stored in > 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 C++ BOOL F_UploadFilePath (LONG MachineNumber, LONG ToolPostNumber, LONG ONumber, LPCTSTR FilePath);
F_Upload... indicates the synchronous functions in the two kinds of functions shown in the above. F_Upload...Ex indicates the asynchronous functions in the two kinds of functions shown in the above. F_Upload...(Ex) indicates both of the synchronous and the asynchronous functions.
DESPRICTION
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_Upload...(Ex) uploads an NC program from the specified NC. There are the two ways to store the upload file like these. How to Store NC Program Number Full Path Name of Function F_UploadONumber(Ex) F_UploadFilePath(Ex)
The two functions have the common arguments of MachineNumber, ToolPostNumber and Onumber. MachineNumber specifies a machine number. ToolPostNumber specifies a tool post number.
-112-
B-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 number. The uploaded NC program is stored in the file whose name is composed of Oxxxx(where, xxxx is the NC program number) and the registered file extension. The file is stored in the directory registered for each machine. F_UploadFilePath(Ex) uploads the NC program specified by ONumber, and stores it in the file specified by FilePath. 2 F_Upload... doesnt return until the request is finished. You can know whether the function has succeeded or not by the return value. 3 F_Upload...Ex requests the system to upload an NC program, and returns at once. The return value is the descriptor ID for pointing the result. You must check whether request is finished or not, and whether its result is success or not by calling F_Response. 4 Call F_FreeID to free the descriptor ID after getting the result of F_Upload...Ex from F_Response.
RETURN VALUE
TRUE is returned if F_Upload... succeeds, FALSE is returned if it fails. F_Upload...Ex 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 calling F_GetLastError.
-113-
4. FA LIBRARY
B-75044EN/02
4.3.3
SYNOPSIS
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_Reset(Ex) resets the NC specified by Machine Number and ToolPostNumber. 2 F_Reset doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. 3 F_ResetEx requests the system to reset the NC, 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. 4 Call F_FreeID to free the descriptor ID after getting the result of F_ResetEx by calling F_Response.
RETURN VALUE
TRUE is returned if F_Reset succeeds, FALSE is returned if it fails. F_ResetEx 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 F_GetLastError. -114-
B-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
SYNOPSIS
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_Start(Ex) starts the NC specified by MachineNumber and ToolPostNumber. 2 F_Start doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. 3 F_StartEx requests the system to start the NC, 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. 4 Call F_FreeID to free the descriptor ID after getting the result of F_StartEx by calling F_Response. -115-
B-75044EN/02
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 F_GetLastError.
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 cycle start via the ladder program.
4.3.5
SYNOPSIS
-116-
B-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 specifies the NC program number you want to select. The range is from 1 to 9999. 2 F_Select doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. 3 F_SelectEx requests the system to select the NC program in the NC memory, 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. 4 Call F_FreeID to free the descriptor ID after getting the result of F_SelectEx by calling F_Response.
RETURN VALUE
TRUE is returned if F_Select succeeds, FALSE is returned if it fails. F_SelectEx 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 F_GetLastError.
4.3.6
SYNOPSIS
-117-
4. FA LIBRARY
In case of the asynchronous treatment
VB Function DeleteEx
B-75044EN/02
(ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ONumber As Long) As Long C++ LONG F_DeleteEx (LONG MachineNumber, LONG ToolPostNumber, LONG ONumber);
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_Delete(Ex) deletes the NC program in the NC specified by MachineNumber and ToolPostNumber. ONumber specifies the NC program number you want to delete. The range is from 1 to 9999. 2 F_Delete doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. 3 F_DeleteEx requests the system to delete the NC program, 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. 4 Call F_FreeID to free the descriptor ID after getting the result of F_DeleteEx by calling F_Response.
RETURN VALUE
TRUE is returned if F_Delete succeeds, FALSE is returned if it fails. F_DeleteEx 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 calling F_GetLastError.
-118-
B-75044EN/02
4. FA LIBRARY
4.3.7
SYNOPSIS
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_Identify(Ex) gets the identification of the NC specified by MachineNumber. In case of DNC1, the information is the sequence of the character string in order of model name, version, and vender name. Each data is separated by a comma , and the information is terminated by a NULL character. In case of DNC2, the information is the sequence of the character string in order of model name and version. Each data is separated by a comma , and the information is terminated by a NULL character. 2 F_Identify reads the identification and takes out it. Identify points to the buffer for placing the NC identification with terminated by a NULL character. The buffer must be a sequence of 129 characters or more length. F_Identify doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. -119-
4. FA LIBRARY
3
B-75044EN/02
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 the request is finished successfully, F_Copy IdentifyEx can take out the NC identification. ID specifies the descriptor ID returned by F_IdentifyEx. Identify points to the buffer for placing the NC identification with terminated by a NULL character. The buffer must be a sequence of 129 characters or more length.
Call F_FreeID to free the descriptor ID returned by IdentifyEx after taking out the NC identification.
RETURN VALUE
TRUE is returned if F_Identify succeeds, FALSE is returned if it fails. F_IdentifyEx returns the positive integral value of the descriptor ID for pointing the result if it succeeds, the value of 0 is returned if it fails. TRUE is returned if F_CopyIdentify succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
4.3.8
SYNOPSIS
VB
C++
The above functions run as the synchronous treatment. If you want to call them as the asynchronous treatment, carry out AllFileDirectoryEx or F_AllFileDirectoryEx. (F_)AllFileDirectory and (F_)AllFileDirectoryEx have the same argument and the same type of the return value.
VB Function CopyFileDirectory (ByVal ID As Long, ONumber As Long, ByVal Count As Long, CopiedCount As Long) As Boolean C++ BOOL F_CopyFileDirectory (LONG ID, LONG* ONumber,LONG Count, LONG* CopiedCount);
-120-
B-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 by MachineNumber and ToolPostNumber. 2 F_AllFileDirectory doesnt return until the treatment 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 list of NC program. 3 F_AllFileDirectoryEx requests the system to read the directory list, 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. 4 When F_AllFileDirectory(Ex) is finished successfully, you can take out the list as follows. 5 F_GetCount gets the number of the NC programs associated with the descriptor ID. ID specifies the descriptor ID returned by F_AllFileDirectory(Ex). Refer to Clause 4.4.1 for details. 6 F_CopyFileDirectory takes out the list of the NC programs associated with the descriptor ID. ID specifies the descriptor ID returned by F_AllFileDirectory(Ex). Count specifies the number of the NC programs you want to copy at a time. Onumber points to the array for placing the NC programs. The array must be composed of the four-byte integral elements of the same number as Count specifies.
ONumber
V V V
Count
Four-byte integer
-121-
4. 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. The number of the actual copied NC program number is set to CopiedCount. F_CopyFileDirectory can copy an NC program number with dividing into several times. When F_CopyFileDirectory returns, the copy offset is advanced to the next location of the actual copied NC program. 7 F_Seek can move the copy offset to the NC program you want to copy by using F_CopyFileDirectory. 8 Call F_FreeID to free the descriptor ID when you finish the copy of NC programs.
RETURN VALUE
F_AllFileDirectory(Ex) returns the descriptor ID of the positive integer for pointing the list of the NC program if it succeeds. And a value of 0 is returned if it fails. TRUE is returned if F_CopyFileDirectory succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by using F_GetLastError.
-122-
B-75044EN/02
4. FA LIBRARY
4.3.9
SYNOPSIS
the
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_EstablishDnc1(Ex) establishes the DNC1 connection of the NC specified by MachineNumber. The function is effective to the machine registered to DNC1 in the Machine Configuration screen. 2 F_EstablishDnc1 doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. 3 F_EstablishDnc1Ex requests the system to make connection with the NC, 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. 4 Call F_FreeID to free the descriptor ID after getting the result of F_EstablishDnc1Ex by calling F_Response.
RETURN VALUE
TRUE is returned if F_EstablishDnc1 succeeds, FALSE is returned if it fails. F_EstablishDnc1Ex 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 when F_GetLastError is carried out.
-123-
4. FA LIBRARY
B-75044EN/02
4.3.10
SYNOPSIS
the
DESCRIPTION
Proceed to the following procedure 1 and 2 in case of the synchronous treatment. Proceed to the following procedure 1,3,4, and 5 in case of the asynchronous treatment. 1 F_ConfirmDnc1(Ex) gets the list of the machines which are connected to the computer by DNC1 and which has been established. ComputerName specifies a computer name. When the value of ComputerName is NULL, the function can get the machines connected to the computer where the application program is running. 2 F_ConfirmDnc1 reads the established machines and takes out them. Linked points to the array for placing the machine number. The array must be composed of the 32 four-byte integral elements.
-124-
B-75044EN/02
4. FA LIBRARY
List
0 1 2
V V V
29 30 31
Four-bye integer
CoiedCount points to the four-byte integral buffer for placing the actual copied number. F_ConfirmDnc1 doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. 3 F_ConfirmDnc1Ex requests the system to read the data, and returns at once. The return value is the descriptor ID for pointing the list of the established machines. You must check whether the request is finished or not, and whether its result is success or not by calling F_Response. 4 When the request is finished successfully, F_CopyDnc1Linked can take out the list of the established machines. ID specifies the descriptor ID returned by F_ConfirmDnc1. Linked points to the array for placing the machine number. The array must be composed of the 32 four-byte integral elements. CoiedCount points to the four-byte integral buffer for placing the actual copied number. F_CopyDnc1Linked reads the list of the established machines from the descriptor ID, and copies them to the array pointed to by Linked. The actual copied number is set to CopiedCount. 5 Call F_FreeID to free the descriptor ID returned by
RETURN VALUE
TRUE is returned if F_ConfirmDnc1 succeeds, FALSE is returned if it fails. F_ConfirmDnc1Ex returns the positive integer of the descriptor ID for pointing the list of the machines if it succeeds. The value of 0 is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-125-
4. FA LIBRARY
B-75044EN/02
4.3.11
SYNOPSIS
In asynchronous treatment
VB Funciton ReadAlarmEx (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long) As Long C++ LONG F_ReadAlarmEx (LONG MachineNumber, LONG ToolPostNumber);
DESCRIPTION
Proceed to the following procedure 1 and 2 in case of the synchronous treatment. Proceed to the following procedure 1,3,4, and 5 in case of the asynchronous treatment. 1 F_ReadAlarm(Ex) reads the alarm information of the NC specified by MachineNumber and ToolPostNumber. 2 F_ReadAlarm reads the alarm information from NC, and sets to the four-byte integral buffer pointed to by Alarm.
-126-
B-75044EN/02
4. FA LIBRARY
The following table shows the alarm information in Alarm. List of Alarms
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16-31
Description FS15 Background PS alarm Foreground PS alarm Overheat alarm Sub CPU error Excessive synchronize error alarm Parameter write switch ON Overtravel alarm PMC error External error message (not used) Serious PS alarm (not used) Servo alarm I/O error Parameter entry requiring power OFF System error alarm (not used) FS0 P/S100 P/S000 P/S101 Other PS Overtravel Overheat Servo alarm (not used) (not used) (not used) (not used) (not used) (not used) (not used) (not used) (not used) (not used) FS16/FS18 P/S100 P/S000 P/S101 Other PS Overtravel Overheat Servo alarm (not used) APC alarm Spindle alarm Punch press alarm in PS5000 range Laser alarm (not used) Rigid tap alarm (not used) External error message (not used)
F_ReadAlarm doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. 3 F_ReadAlarmEx requests the system to read the alarm information, and returns at once. The return value is the descriptor ID for pointing the alarm information. You must check whether the request is finished or not, and whether its result is success or not by calling F_Response. 4 When request is finished successfully, F_CopyAlarm can take out the alarm information. ID specifies the descriptor ID returned by F_ReadAlarmEx. Alarm points to the four-byte integral buffer for placing the alarm information. 5 Call F_FreeID to free the descriptor ID returned by F_ReadAlarm after taking out the alarm information.
RETURN VALUE
TRUE is returned if F_ReadAlarm succeeds, FALSE is returned if it fails. F_ReadAlarmEx returns the positive integer of the descriptor ID for pointing the alarm information if it succeeds. The value of 0 is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError . -127-
4. FA LIBRARY
B-75044EN/02
4.3.12
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, LONG ToolPostNumber, LONG OffsetType, LONG OffsetNumber, LONG Count);
The above functions run as the synchronous treatment. If you want to call them as the asynchronous treatment, carry out ReadToolOffsetEx or F_ReadToolOffsetEx. (F_)ReadToolOffset and (F_)ReadToolOffsetEx have the same arguments and the same type of the return value.
VB Function CopyToolOffset (ByVal ID As Long, ToolOffsetValue As Long, ToolOffsetExponent As Long) As Boolean C++ BOOL F_CopyToolOffset (LONG ID, LONG* ToolOffsetValue, LONG* ToolOffsetExponent);
DESCRIPTION
Proceed to the following procedure 1,2,4,5,6,7,8,9 and 10 in case of the synchronous treatment. Proceed to the following procedure 1,3,4,5,6,7,8,9 and 10 in case of the asynchronous treatment. 1 F_ReadToolOffset(Ex) reads the tool offset from the NC specified by MachineNumber and ToolPostNumber. OffsetType specifies the type of the tool offset. OffsetNumber specifies the start number of the tool offset you want to read. Count specifies the number of tool offsets you want to read at a time.
-128-
B-75044EN/02
4. FA LIBRARY
OffsetType values are constructed by OR-ing flags from the following table. Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Type of Tool Offset Wear Offset Geometric Offset Wear Offset Wear Offset Wear Offset Wear Offset Not Used Wear Offset Geometric Offset Geometric Offset Geometric Offset Geometric Offset Geometric Offset Not Used Not Used Where, M of Type of NC indicates the milling machine, and T indicates the turning machine. OffsetType values must not be constructed by both of the milling and the turning type offset flag. In case of DNC2, Geometric Offset Q must not be used. Dont set this flag to OffsetType in case of DNC2. 2 F_ReadToolOffset doesnt return until the treatment 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 tool offset. 3 F_ReadToolOffsetEx requests the system to read the tool offset data, and returns at once. The return value is the descriptor ID for pointing the tool offset. You must check whether the request is finished or not, and whether its result is success or not by calling F_Response. 4 When request is finished successfully, you can take out the tool offset as follows. D(Cutter Offset' K(Cutter Offset ' X(X-axis Tool Offset Value' Z(Z-axis Tool Offset Value' R(Tool-tip Radius Offset Value' Y(Y-axis Tool Offset Value ' Type of NC M M T T T T T M M T T T T
Virtual Tool-tip direction Q H(Tool Length Offset' L(Tool Length Offset' U(X-axis Tool Offset Value ' W(Z-axis Tool Offset Value ' P(Tool-tip Radius Offset Value ) V(Y-axis Tool Offset Value '
-129-
4. FA LIBRARY
5
B-75044EN/02
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 tool offset. Each array must be composed of 16 four-byte elements. F_CopyToolOffset takes out one tool offset from the descriptor ID, and F_CopyToolOffset places it in the array pointed to by ToolOffsetValue and ToolOffsetExponent .
OffsetType specifies the type of tool offset with the bit flag. The position of the bit flag(0~15) indicates the type of the tool offset as shown at the former table. And the bit position(0~15bit) corresponds to the element number(0~15) of array pointed to by ToolOffsetValue and ToolOffsetExponent . For Example, when the bit 0 of OffsetType is ON, the Wear Offset D is placed in the first element of the arrays pointed to by ToolOffsetValue and ToolOffsetExponent. No value is placed in the other elements corresponding to the positions of inactive bits on OffsetType.
The tool offset value can be calculated by substituting the contents of the arrays pointed to by ToolOffsetValue and ToolOffsetExponent for the following equation. Tool offset value corresponding to the bit N = ToolOffsetValue[N] b10^('ToolOffsetExponent[N]'
-130-
B-75044EN/02
4. FA LIBRARY
Where, N is 0 to 15, and ^ indicates the power operation.
OffsetNumber ToolOffset Value ToolOffset Exponent
1 2 V V V 13 14 15 Four-byte integer V V V
Four-byte integer
OffsetNumber +1
V V V
OffsetNumber + Count -1
F_CopyToolOffset copies one tool offset data at a time. To get all the tool offset data, repeat F_CopyToolOffset the same times as the number specified by the Count argument of F_ReadToolOffset(Ex).
F_Seek can move the point to the tool offset you want to copy by using F_CopyToolOffset.
10 Call
F_FreeID
to
free
the
descriptor
ID
returned
by
RETURN VALUE
F_ReadToolOffset(Ex) returns a descriptor ID of the positive integer for pointing the tool offset if it succeeds. If it fails, a value of 0 is returned. TRUE is returned if F_CopyToolOffset succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-131-
4. FA LIBRARY
B-75044EN/02
4.3.13
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 MachineNumber, LONG ToolPostNumber, LONG OffsetType, LONG OffsetNumber, LONG Count);
VB
C++
DESCRIPTION
To write a tool offset data, you must go through the three procedures as follows; - Creating the descriptor ID for pointing the tool offset - Setting a tool offset data on the area pointed to by the descriptor ID - Writing it to NC Proceed to the following procedure 1,2,4 and 5 in case of the synchronous treatment. Proceed to the following procedure 1,3,5,6 and 7 in case of the asynchronous treatment.
-132-
B-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.3.12 Read Tool Offset for meaning of OffsetType. OffsetNumber specifies the start address of tool offset number you want to write. Count specifies the number of the tool offset you want to write. 2 F_SetToolOffset sets the tool offset data to the area pointed to by the descriptor ID. ID specifies the descriptor ID returned by F_CreateToolOffsetID. ToolOffsetValue points to the array where the tool offset data is written by the application program. ToolOffsetExponent points to the array where the exponent of the tool offset is written by the application program. Each array must be composed of the 16 four-byte integral elements. You set the tool offset to the arrays. Refer to 4.3.12 Reading Tool Offset for the way to write it to ToolOffsetValue and ToolOffsetExponent . In case of DNC2, OffsetType values must be constructed by the following flags. 0 bit only 0, 1 bits 0, 1, 8, 9 bits 2, 3, 4, 5, 6 bits 2, 3, 4, 5, 6, 10, 11, 12, 13 bits 3 F_SetToolOffset copies one tool offset data to the area pointed to by the descriptor ID at a time. To write all the tool offset data to the area, repeat F_SetToolOffset the same times as the number specified by the Count argument of F_CreateTool OffsetID. 4 F_WriteToolOffset(Ex) writes the tool offset data associated with the descriptor ID. For Example, the N-th tool offset number copied by F_SetToolOffset is set to the N-th element of the area created by F_CreateToolOffsetID. And the N-th data is written as the (OffsetNumber+N-1)-th address of tool offset to the NC. Where, the range of N is from 1 to Count.
-133-
4. FA LIBRARY
5
B-75044EN/02
F_WriteToolOffset doesnt return until the treatment is finished. You can know whether the function has succeeded or not by the return value. You dont need to free the descriptor ID returned by F_CreateToolOffset.
F_WriteToolOffsetEx requests the system to write the tool offset data, and returns at once. If F_WriteToolOffsetEx succeeds, it returns the same descriptor ID as F_CreateToolOffset returns. Otherwise, the value of 0 is returned. In failure, you dont need to free the descriptor ID returned by F_CreateToolOffset. On success, you check whether the request is finished or not, and whether its result is success or not by calling F_Response.
Call
F_FreeID
to
free
the
descriptor
ID
returned
by
RETURN VALUE
F_CreateToolOffsetID returns the descriptor ID for pointing the tool offset if it succeeds. If it fails, a value of 0 is returned. TRUE is returned if F_SetToolOffset succeeds, FALSE is returned if it fails. TRUE is returned if F_WriteToolOffset succeeds, FALSE is returned if it fails. F_WriteToolOffsetEx returns the descriptor ID for pointing the result if it succeeds. If it fails, a value of 0 is returned. In failure, an error code can be acquired by calling F_GetLastError.
-134-
B-75044EN/02
4. FA LIBRARY
4.3.14
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 MachineNumber, LONG ToolPostNumber, LONG VariableNumber, LONG Count);
The above functions run as the synchronous treatment. If you want to call them as the asynchronous or and treatment, carry out ReadCustomMacroVariableEx VariableEx. (F_)ReadCustomMacroVariable value . F_ReadCustomMacroVariable(Ex) indicates both of the synchronous and the asynchronous functions.
VB Function F_CopyCustomMacroVariable (ByVal ID As Long, VariableValue As Long, VariableExponent As Long, ByVal Count As Long, CopiedCount As Long) As Boolean C++ LONG F_CopyCustomMacroVariable (LONG ID, LONG* VariableValue, LONG* VariableExponent, LONG Count, LONG* CopiedCount);
F_ReadCustomMacro (F_)ReadCustomMacro
VariableToolEx have the same arguments and the same type of the return
DESCRIPTION
Proceed to the following procedure 1,2,4,5,6,7,8 and 9 in synchronous treatment. Proceed to the following procedure 1,3,5,6,7,8 and 9 in case of the asynchronous treatment. 1 F_ReadCustomMacroVariable(Ex) reads the custom macro variable from the NC specified by MachineNumber and ToolPostNumber. VariableNumber specifies the start number of the custom macro variable you want to read. Count specifies the number of the custom macro variables you want to read. case of the
-135-
4. FA LIBRARY
2
B-75044EN/02
F_ReadCustomMacroVariable doesnt 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.
F_ReadCustomMacroVariableEx requests the system to read the custom macro variable, and returns at once. The return value is the descriptor ID for pointing the custom macro variable. You must check whether the request is finished or not, and whether its result is success or not by calling F_Response.
When request is finished successfully, you can take out the custom macro variables as follows.
F_CopyCustomMacroVariable copies the custom macro variable to the specified arrays. ID specifies the descriptor ID returned by F_ReadCustomMacroVariable(Ex). Count specifies the number of the custom macro variables you want to copy at a time. VariableValue points to the array for placing the custom macro variable. VariableExponent points to the array for placing the exponents of the custom macro variables. Each array must be composed of the four-byte integral elements of the same number as Count specifies.
Variable Value Variable Exponent
V V V
V V V
Count
Four-byte integer
Four-byte integer
CopiedCount points to the four-byte integer for placing the actual copied number.
-136-
B-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 number is placed in the buffer pointed to by CopiedCount. The custom macro variable can be calculated by substituting the contents of the arrays pointed to by VariableValue and VariableExponent for the following equation. The N-th Custom Macro Variable = VariableValue[N] b10^( ' VariableExponent[N] ) Where, N is from 0 to (Count ' 1). And, ^ indicates the power operation. 6 F_CopyCustomMacroVariable can copy several variables with dividing into several times. When F_CopyCustomMacroVariable returns, the copy offset is advanced to the next location of the actual copied data. 7 F_Seek can move the copy offset to the custom macro variable you want to copy by using F_CopyCustom MacroVariable. 8 Call F_FreeID to free the descriptor ID returned by
F_ReadCustomMacroVariable(Ex) when you finish taking out the custom macro variables .
RETURN VALUE
F_ReadCustomMacroVariable(Ex) returns a descriptor ID for pointing the custom macro variable if it succeeds. If it fails, a value of 0 is returned. TRUE is returned if F_CopyCustomMacroVariable succeeds, FALSE is returned if it fails. In failure, an error code can be acquired when F_GetLastError is carried out.
-137-
4. FA LIBRARY
B-75044EN/02
4.3.15
SYNOPSIS
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_WriteCustomMacroVariable(Ex) variable to the NC specified ToolPostNumber. VariableNumber specifies the start address of the custom macro variable you want to write. Count specifies the number of the custom macro variables you want to write. ToolOffsetValue and ToolOffsetExponent point to the arrays where the custom macro variables are written. writes by the custom macro and
MachineNumber
-138-
B-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_WriteCustomMacroVariable doesnt return until the request is finished. You can know whether the function has succeeded or not by the return value. 3 F_WriteCustomMacroVariableEx requests the system to write the custom macro variable, 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. 4 Call F_FreeID to free the descriptor ID returned by
RETURN VALUE
TRUE is returned if F_WriteCustomMacroVariable succeeds, FALSE is returned if it fails. F_WriteCustomMacroVariableEx returns a descriptor ID for pointing the custom macro variable if it succeeds. If it is fails, a value of 0 is returned. In failure, an error code can be acquired by calling F_GetLastError .
-139-
4. FA LIBRARY
B-75044EN/02
4.3.16
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 ToolPostNumber, LONG ToolGroupNumber, LONG Count);
The above functions run as the synchronous treatment. If you want to call them as the asynchronous treatment, carry out ReadToolLifeEx or F_ReadToolLifeEx. (F_)ReadToolLife and (F_)ReadToolLifeEx have the same arguments and the same type of the return value. F_ReadToolLife(Ex) indicates both of the synchronous and the asynchronous functions.
VB Function F_CopyToolLifeParameter (ByVal ID As Long, ToolGroupNumber As Long, ToolUsed As Long, ToolLife As Long, ToolCount As Long) As Boolean C++ BOOL F_CopyToolLifeParameter (LONG ID, LONG* ToolGroupNumber, LONG* ToolUsed, LONG* ToolLife, LONG* ToolCount); VB Function F_CopyToolLife (ByVal ID As Long, ToolNumber As Long, ToolLengthCompensation As Long, CutterCompensation As Long, ToolInformation As Long, ByVal Count As Long, CopiedCount as Long) As Boolean C++ BOOL F_CopyToolLife (LONG ID, LONG* ToolNumber, LONG* ToolLengthCompensation, LONG* CutterCompensation, LONG* ToolInformation, LONG Count, LONG* CopiedCount); VB C++ Function F_SeekToolLife (ByVal ID As Long, ByVal Offset As Long) As Boolean BOOL F_SeekToolLife(LONG ID, LONG Offset);
-140-
B-75044EN/02
4. FA LIBRARY
DESCRIPTION
Proceed to the following procedure 1,2,4,5,6,7,8 and 9 in 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 MachineNumber and ToolPostNumber. ToolGroupNumber specifies the start address of the tool group you want to read. Count specifies the number of the tool group data you want to read. 2 F_ReadToolLife doesnt 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 the tool life data 3 F_ReadToolLifeEx requests the system to read the tool life data, and returns at once. The return value is the descriptor ID for placing the tool life data. You must check whether the request is finished or not, and whether its result is success or not by calling F_Response. 4 When request is finished successfully, you can take out the tool life data as follows. 5 F_Seek moves the copy offset to the tool group you want to take out. F_CopyToolLifeParameter, F_Seek. Offset of F_Seek is from the value of 0 to (Count of F_ReadTool Offset(Ex) '1). For example, ToolGroupNumber is set to 5, Count is set to 3, and then you read the tool life data by using F_ReadToolOffset. In this case, the following table shows the relations between Offset of F_Seek and the tool group number of F_CopyToolLifeParameter, F_CopyToolLife, and F_SeekToolLife. Offset of F_Seek 0 1 2 Tool Group Number ' ' ' F_CopyToolLife and F_SeekToolLife takes out the tool life data of the tool group moved by case of the
4. FA LIBRARY
6
B-75044EN/02
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 placing the tool life counter. ToolLife points to the buffer for placing the tool life. ToolCount points to the buffer for placing the number of tools. Each buffer must be the four-byte integer. If the specified tool group is not registered in the NC, the value of 0 is placed in ToolUsed, ToolLife, and ToolCount . F_CopyToolLife takes out the information of the tool which belongs to the tool group number specified by F_Seek. ID specifies the descriptor ID returned by F_ReadToolLife(Ex). Count specifies the number of you want to read. ToolLengthCompensation points to the array for placing the tool length offset. CutterCompensation points to the array for placing the cutter offset. ToolInformation points to the array for placing the tool information. Each array pointed to by ToolLengthCompensation, CutterCompensation, and ToolInformation must be composed of the four-byte integral elements of the same number as Count specifies. CopiedCount points to the four-byte integral buffer for placing the actual copied number. F_CopyToolLife takes out the tool life information from the descriptor ID, and places them in the Cutter arrays pointed to by and ToolLengthCompensation, ToolInformation. Count specifies the number of tool life data you want to read at a time. The actual copied number is placed in the buffer pointed to by CopiedCount. The following value is placed in ToolInformation . 0: 1: 2: 3: The current using tool The registered tool The tool life is run out. The tool is skipped Compensation
-142-
B-75044EN/02
4. FA LIBRARY
ToolGroupNumber
V V V
V V V
V V V
Tool Count
Four-byte integer
Four-byte integer
V V V
ToolGroupNumber +Count - 1
F_CopyToolLife can copy information with dividing into several times. When F_CopyToolLife returns, the pointer is advanced to the next location of the actual copied data.
F_SeekToolLife can move the copy offset to the tool life information you want to copy by using F_CopyToolLife. ID specifies the descriptor ID returned by F_ReadToolLife(Ex). Offset specifies the number of the tool life information you want to read. The range of Offset is from the value of 0 to (ToolCount '1).
Call
F_FreeID
to
free
the
descriptor
ID
returned
by
RETURN VALUE
F_ReadToolLife(Ex) returns a descriptor ID for pointing the tool life information if it succeeds. If it fails, a value of 0 is returned. TRUE is returned if F_CopyToolLifeParameter succeeds, FALSE is returned if it fails. TRUE is returned if F_CopyToolLife succeeds, FALSE is returned if it fails. TRUE is returned if F_SeekToolLife succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError. -143-
4. FA LIBRARY
NOTE
B-75044EN/02
This function cannot be used on DNC1/Ethernet. (It is scheduled to be supported in the future.)
4.3.17
SYNOPSIS
VB
Function F_ReadPMCData (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal PMCAddress As String, ByVal PMCNumber As Long, ByVal Count As Long) As Long
C++
LONG F_ReadPMCData (LONG MachineNumber, LONG ToolPostNumber, LPCTSTR PMCAddress, LONG PMCNumber, LONG Count);
The above functions run as the synchronous treatment. If you want to call them as the asynchronous treatment, carry out ReadPMCDataEx or F_ReadPMCDataEx. (F_)ReadPMCData and (F_)ReadPMCDataEx have the same arguments and the same type of the return value. F_ReadPMCData(Ex) indicates both of the synchronous and asynchronous function.
VB Function F_CopyPMCData (ByVal ID As Long, PMCData As Byte, ByVal Count As Long, CopiedCount As Long) As Boolean C++ BOOL F_CopyPMCData (LONG ID, BYTE* PMCData, LONG Count, LONG* CopiedCount);
DESCRIPTION
Proceed to the following procedure 1,2,4,5 and 6 in case of the synchronous treatment. Proceed to the following procedure 1,3,4,5 and 6 in case of the asynchronous treatment. 1 F_ReadPMCData(Ex) reads the PMC data from the NC specified by MachineNumber and ToolPostNumber . PMCAddress specifies the PMC address such as the one character of X or R. And must be terminated by the NULL character. PMCNumber specifies the start address of the PMC number. Count specifies the number of the PMC data you want to read.
-144-
B-75044EN/02
4. FA LIBRARY
2 F_ReadPMC doesnt 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, and returns at once. The return value is the descriptor ID for pointing the PMC data. You must check whether the request is finished or not, and whether its result is success or not by using F_Response. 4 When F_ReadPMC(Ex) finished successfully, please proceed to the next step. 5 F_CopyPMCData can take out the PMC data. ID specifies the descriptor ID returned by F_ReadPMCData(Ex). Count specifies the number of the PMC data you want to read. PMCData points to the array for placing the PMC data. The array must be composed of the four-byte integral elements of the same number as Count specifies. The PMC data is placed in only the least significant byte of the four-byte integer. CopiedCount points to the four-byte integral buffer for placing the number of the actual copied data.
PMCData
V V V Count 'Up to 32 elements'
Least Significant byte of four-byte integer
F_CopyPMCData takes out the PMC data from the descriptor ID, and places them in the array pointed to by PMCData. The actual copied number is placed in the array pointed to by CopiedCount. 6 F_CopyPMCData can copy PMC data with dividing into several times. When F_CopyPMCData returns, the offset is advanced to the next location of the actual copied data.
-145-
4. FA LIBRARY
7
B-75044EN/02
F_Seek can move the copy offset to the PMC data you want to copy by using F_CopyPMCData.
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 PMC data if it succeeds. If it fails, a value of 0 is returned . TRUE is returned if F_CopyPMCData succeeds, FALSE is returned if it fails. In failure, an error code can be acquired when F_GetLastError is carried out.
4.3.18
SYNOPSIS
-146-
B-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. PMCAddress specifies the PMC address such as the one character of R or D. And must be terminated by NULL. PMCNumber specifies the start address of the PMC number. Count specifies the number of the PMC data you want to write. But the maximum is 32. PMCData points to the array where the PMC data is written. The array must be composed of the four-byte integral elements of the same number as Count specifies. You set the PMC data to PMCData. The PMC data must be set in only the least significant byte of the four-byte integer. Three higher order bytes must be set to the value of 0. Refer to Reading PMC Data for the way to write the PMC data to PMCData. 2 F_WritePMCData doesnt return until the request is finished. You can know whether the function has succeeded or not by the return value. 3 F_WritePMCEx requests the system to write the PMC data, 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 using F_Response. 4 Call F_FreeID to free the descriptor ID return by F_WritePMCEx after the request is finished.
RETURN VALUE
TRUE is returned if F_WritePMCData succeeds, FALSE is returned if it fails. F_WritePMCDataEx returns a descriptor ID of the positive integer for pointing the result if it succeeds. If it fails, a value of 0 is returned. In failure, an error code can be acquired by calling F_GetLastError.
-147-
4. FA LIBRARY
B-75044EN/02
4.3.19
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 MachineNumber, LONG ToolPostNumber, LONG ParameterNumber, LONG DataFormat, LONG ParameterAxis);
The function names in the above example are for a case where processing is carried out synchronously. The function names for when processing is carried out asynchronously become F_ReadParameterEx. The type of argument and return value is the same in both synchronous and asynchronous processing. The description F_ReadParameter(Ex) indicates both synchronous and asynchronous processing.
VB VC++ Function CopyParameter (ByVal ID As Long, Parameter As Long) As Boolean BOOL F_CopyParameter (LONG ID, Long* Parameter);
DESCRIPTION
Proceed to 1, 2 and 4 to 7 in the case of synchronous processing. Proceed to 1 and 3 to 7 in the case of synchronous processing. 1 F_ReadParameter(Ex) reads parameters from the NC having the machine number specified by MachineNumber and tool post number specified by ToolPostNumber. For ParameterNumber, specify the number of the parameter to be read; for DataFormat, the data format of the parameter to be read; and for ParamaterAxis, the data of which axis to be read when the parameter to be read is an axis type. Set the following values according to the data format of the parameter to be read in DataFormat.
Data Format 1 2 3 4 Data Format of Parameter to be Read Bit type Byte type Word type 2-word type
For details on the data format of the parameter to be read, refer to the NC Instruction Manual. -148-
B-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 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Axis Whose Parameter Is To be Read 1st axis 2nd axis 3rd axis 4th axis 5th axis 6th axis 7th axis 8th axis 9th axis 10th axis 11th axis 12th axis 13th axis 14th axis 15th axis (not used)
F_ReadParameter 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. If processing is successful, the return value becomes the descriptor ID to the parameter.
F_ReadParameteEx is an asynchronous process. So, there is a return value from the function immediately after processing is requested. The return value becomes the descriptor ID to the parameter. When F_Response is executed, whether or not processing ends lets you know where processing succeeded or failed.
When the parameter is read successfully, the following process can be carried out.
When F_CopyParameter is executed, the value of the read parameter can be obtained. Set the value of the descriptor ID, the return value of F_ReadParameter(Ex), to ID. The value of the read parameter is copied to Parameter. Even if the parameter is an axis type or not, set the pointer to the 16-element x 4byte integer array. -149-
4. FA LIBRARY
B-75044EN/02
F-CopyParameter extracts the parameter from the information specified by the descriptor ID and copies it to Parameter.
Parameter
V V V
Always 16 elements
4-byte integer
If the parameter is not an axis type, the value is copied to element 0 of the parameter. If the parameter is an axis type, specify the axis to be read according to the bit flag position in the ParameterAxis argument of F_ReadParameter(Ex). The position (0 to 15) of this bit flag corresponds to the element number (0 to 15) of the array parameter. For example if bit 0 is raised in ParameterAxis, the value of the 1st axis is copied to element 0 of the array parameter. Nothing is written to elements in the array that correspond to bit positions whose ParameterAxis bit flag is not raised.
When copying of the parameter value ends, execute F_FreeID to release the descriptor ID.
NOTE Reading of bit type data is carried out in byte units; reading of only specified bits is not possible. Judge which bit is required from the data that is read in byte units.
RETURN VALUE
F_ReadParameter returns a descriptor ID to the parameter if it succeeds. If it fails, a value of 0 is returned. F_ReadParameterEx returns a descriptor ID to the parameter if it succeeds. If it fails, a value of 0 is returned. TRUE is returned if F_CopyParameter succeeds, FALSE is returned if it fails. If processing fails, an error code can be acquired by calling F_GetLastError.
NOTE This function cannot be used on DNC2. (It is scheduled to be supported in the future.)
-150-
B-75044EN/02
4. FA LIBRARY
4.3.20
SYNOPSIS
DESCRIPTION
Read 1 and 2 in the case of synchronous processing. Read 1, 3 and 4 in the case of synchronous processing. 1 F_WriteParameter(Ex) writes parameters to the NC having the machine number specified by MachineNumber and tool post number specified by ToolPostNumber. For ParameterNumber, specify the number of the parameter to be written; for DataFormat, the data format of the parameter to be written; and for ParamaterAxis, the data of which axis to be written when the parameter to be written is an axis type. Specify the values of the parameters to be written to the NC in Parameter. In parameter, set the pointer to the 16-element x 4-byte integer array. For details on how to set values to DataFormat, ParameterAxis and Parameter, see 4.3.19 Reading Parameters.
-151-
4. FA LIBRARY
2
B-75044EN/02
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.
F_WriteParameteEx is an asynchronous process. So, there is a return value from the function immediately after processing is requested. The return value becomes the descriptor ID to the processing results. When F_Response is executed, whether or not processing ends lets you know where processing succeeded or failed.
NOTE Writing of bit type data is carried out in byte units; writing of only specified bits is not possible. During writing of bit type data, read the parameter area in which the bit to write belongs as a bit type specification, and write that parameter as a bit type specification after changing the bits that require changing.
RETURN VALUE
TRUE is returned if F_WriteParameter succeeds, FALSE is returned if it fails. F_WriteParameterEX returns a descriptor ID to the parameter if it succeeds. If it fails, a value of 0 is returned. If processing fails, an error code can be acquired by calling F_GetLastError.
NOTE This function cannot be used on DNC2. (It is scheduled to be supported in the future.)
-152-
B-75044EN/02
4. FA LIBRARY
4.3.21
NOTE When DNC1/Ethernet is used, DNC operation is canceled by pressing the RESET key during DNC operation started on your computer. Transfer is not canceled even if the RESET key is pressed on the NC during download or upload processing for startup on your computer. Transfer, however, can be canceled using the cancel functions "F_DownloadCancel" and "F_UploadCancel" on your computer.
SYNOPSIS
<Specifying the file for DNC operation by its file number> In the case of synchronous processing
VB Function DncFileNumber (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal FileNumber As Long) As Boolean VC++ BOOL F_DncFileNumber (LONG MachineNumber, LONG ToolPostNumber, LONG FileNumber);
-153-
4. FA LIBRARY
<Specifying the file for DNC operation by its file name> In the case of synchronous processing
VB Function DncFileName
B-75044EN/02
(ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal FileName As String) As Boolean VC++ BOOL F_DncFileName (LONG MachineNumber, LONG ToolPostNumber, LPCTSTR FileName);
<Specifying the file for DNC operation by NC program number> In the case of synchronous processing
VB Function DncONumber (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long, ByVal ONumber As Long) As Boolean VC++ BOOL F_DncONumber (LONG MachineNumber, LONG ToolPostNumber, LONG ONumber);
-154-
B-75044EN/02
4. FA LIBRARY
<Specifying the file for DNC operation by its full path> 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 ToolPostNumber, LPCTSTR FilePath);
The description F_Dnc... indicates synchronous processing of the above four types of functions. The description F_Dnc...Ex indicates asynchronous processing of the above four types of functions. The description F_Dnc...(Ex) indicates both synchronous and asynchronous processing.
DESCRIPTION
Read 1 and 2 in the case of synchronous processing. Read 1, 3 and 4 in the case of synchronous processing. 1 F_Dnc...(Ex) transfers NC program files from your computer to the NC for DNC operation. The following table shows the four ways of specifying the file for DNC operation.
Method of Specification File number File name NC program number Full path of file Name of Function F_DncFileNumber(Ex) F_DncFileName(Ex) F_DncONumber(Ex) F_DncFilePath(Ex)
There are MachineNumber and ToolPostNumber for the common argument. For MachineNumber, specify the machine number. For ToolPostNumber, specify the tool post number. -155-
4. 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 file by FilePath. Section 1.3 describes the rules for transferring NC programs specified by file number, file name and NC program number. When files to be transferred are specified by file order, specified files in ASCII sorted order are subject to DNC operation. When files are specified by file name, files having the same name are subject to DNC operation. When files are specified by NC program number, files having a name in the format Oxxxx (xxxx: specified NC program number) followed by an extension are subject to DNC operation. When files are specified by full path of file, files having the full specified path are transferred regardless of the above rules. 2 F_Dnc... is a synchronous process. So, there is no return value from the function until DNC operation ends. The return value is used for judging whether processing succeeded or failed. 3 F_Dnc... is an synchronous process. So, there is a return value from the function immediately after DNC operation is requested. The return value becomes the descriptor ID to the processing results. When F_Response is executed, whether or not processing ends lets you know where processing succeeded or failed. 4 When processing ends, execute F_FreeID to release the descriptor ID.
RETURN VALUE
TRUE is returned if F_Dnc... succeeds, FALSE is returned if it fails. F_Dnc...Ex returns a descriptor ID to the parameter if it succeeds. If it fails, a value of 0 is returned. If processing fails, an error code can be acquired by calling F_GetLastError.
-156-
B-75044EN/02
4. FA LIBRARY
4.3.22
NOTE 1 To use this function, you must execute the download of the NC program requested by the computer asynchronously. If the download is executed synchronously, the application will not be returned to until the download function ends. For this reason, the cancel function cannot be used. 2 Processing at normal completion of this function differs from cancellation of an actual download. Make sure that the asynchronous download function ended by a cancel by the F_Response function (error code 0x6000012c).
SYNOPSIS
VB Function DownloadCancel (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long) As Boolean VC++ BOOL F_ DownloadCancel (LONG MachineNumber, LONG ToolPostNumber);
DESCRIPTION
1 F_DownloadCancel ends the process that was downloaded by computer startup to the NC having the machine number specified by MachineNumber and tool post number specified by ToolPostNumber. 2 The cancel request is reset before the download is started even if it is started after F_DownloadCancel is executed. So, the download is not canceled.
RETURN VALUE
TRUE is returned if F_DownloadCancel succeeds, FALSE is returned if it fails. If processing fails, an error code can be acquired by calling F_GetLastError. If the specified machine is not in the process, FALSE is returned.
-157-
4. FA LIBRARY
B-75044EN/02
4.3.23
NOTE 1 To use this function, you must execute the upload of the NC program requested by the computer asynchronously. If the upload is executed synchronously, the application will not be returned to until the upload function ends. For this reason, the cancel function cannot be used. 2 Processing at normal completion of this function differs from cancellation of an actual upload. Make sure that the asynchronous upload function ended by a cancel by the F_Response function (error code 0x6000012c).
SYNOPSIS
VB Function UploadCancel (ByVal MachineNumber As Long, ByVal ToolPostNumber As Long) As Boolean VC++ BOOL F_ UploadCancel (LONG MachineNumber, LONG ToolPostNumber);
DESCRIPTION
1 F_UploadCancel ends the process that was uploaded by computer startup to the NC having the machine number specified by MachineNumber and tool post number specified by ToolPostNumber. 2 The cancel request is reset before the upload is started even if it is started after F_UploadCancel is executed. So, the upload is not canceled.
RETURN VALUE
TRUE is returned if F_UploadCancel succeeds, FALSE is returned if it fails. If processing fails, an error code can be acquired by calling F_GetLastError. If the specified machine is not in the process, FALSE is returned.
-158-
B-75044EN/02
4. FA LIBRARY
4.4
4.4.1
SYNOPSIS
VB VC++
DESCRIPTION
F_ Begin executes initialization processing of this library. Execute this function before you use this library.
RETURN VALUE
TRUE is returned if F_Begin succeeds, FALSE is returned if it fails. If processing fails, an error code can be acquired by calling F_GetLastError.
4.4.2
SYNOPSIS
VB C++
Function GetCount(ByVal ID As Long, Count As Long) As Boolean BOOL F_GetCount(LONG ID, LONG* Count);
DESCRIPTION
F_GetCount counts the data associated with the descriptor ID, and places the count number in the buffer pointed to by Count. The contents of count data are different according to the specified descriptor ID. Refer to the explanation of each function returning the descriptor ID.
RETURN VALUE
TRUE is returned if F_GetCount succeeds, FALSE is returned if it fails. In failure, an error code can be acquired by calling F_GetLastError.
-159-
4. FA LIBRARY
B-75044EN/02
4.4.3
SYNOPSIS
VB C++
Function Seek (ByVal ID As Long, ByVal Offset As Long) As Boolean 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 specified descriptor ID. Refer to the explanation of each function returning the descriptor ID. When the value of 0 is set to Offset, the offset location is moved to the first data. When the (Count of F_GetCount '1) is set, it is moved to the last data.
RETURN VALUE
TRUE is returned if F_Seek succeeds, FALSE is returned if it fails. In failure, an error code can be acquired when F_GetLastError is carried out.
4.4.4
SYNOPSIS
VB C++
DESCRIPTION
F_FreeID frees the Descriptor ID specified by ID. The descriptor ID must be freed after using it. After carrying out the function, you cant access the data associated with the freed descriptor ID.
RETURN VALUE
This function doesnt have the return value.
-160-
B-75044EN/02
4. FA LIBRARY
4.4.5
SYNOPSIS
VB C++
Function Response (ByVal ID As Long, Result As Long, ErrorCode As Long) As Boolean BOOL F_Response(LONG ID, LONG* Result, LONG* ErrorCode);
DESCRIPTION
F_Response places the result of a treatment associated with the descriptor ID in the buffer specified by Result. If the result is 0, the treatment isnt finished. If the result is 1, the treatment is finished successfully. If the result is 2, the treatment is finished in failure. When the result is 2, the error code is set to the buffer specified by ErrorCode. Make sure to check ErrorCode of this function when an asynchronous function is finished in failure. In that case, you cant check the error code by using F_GetLastError.
RETURN VALUE
TRUE is returned if F_Response succeeds, FALSE is returned if it fails. If F_Response is finished in failure, an error code can be acquired by using F_GetLastError.
4.4.6
SYNOPSIS
VB C++
DESCRIPTION
F_GetLastError returns the error code. The error code indicates the cause of the latest failed function in one application program. When an application program consists of more than one thread, the last failed function in all the threads causes the error code returned by F_GetLastError. Note the design for the application program, including several threads. If a function is finished in failure, the error code indicates the cause of the failure.
RETURN VALUE
The error code is returned.
-161-
4. FA LIBRARY
B-75044EN/02
4.4.7
SYNOPSIS
End of FA LIBRARY
VB C++
DESCRIPTION
F_End terminates FA LIBRARY. Call this function when an application program is finished. After this function is carried out, an application program cant call the functions of FA LIBRARY.
RETURN VALUE
This function doesnt have the return value.
-162-
B-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 for PC.) All of these logs are managed and created by the LogServer program. For this reason, the LogServer must be started before you start FA SYSTEM for PC. The log library starts and terminates this LogServer.
-163-
4. FA LIBRARY
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 process 'Execute FA library services. 'FA library termination processing FALib.TerminateCommunication("") FALib.End Set FALib = Nothing Terminating the LogServer by the log library LogLib.TerminateLogServer Set LogLib = Nothing ''Termination of
B-75044EN/02
-164-
B-75044EN/02
4. FA LIBRARY
4.5.1
SYNOPSIS
VB VC++
DESCRIPTION
F_InvokeLogServer starts the LogServer (LogSvr.exe). Set "" to LogServeDir when FA SYSTEM for PC is installed and the LogServer location has not been moved. When "" is set, the LogServer in the installation directory of FA SYSTEM for PC is started. (The LogServer is installed to "C: Fpfasys Bin" assuming that "C: Fpfasys" is the directory in which FA SYSTEM for PC is installed.) When the LogServer has been moved, set its drive name and directory name. For example, let's assume that the LogServer has been moved to "D:YourApp". In this case, set either of the following depending on whether you programmed in VC++ or VB: F_InvokeLogServer("D: YourApp"); (VC++) LogLib.InvokeLogServer("D: YourApp"); (VB)
RETURN VALUE
TRUE is returned if F_InvokeLogServer succeeds, FALSE is returned if it fails. If processing fails, an error code can be acquired by calling F_GetLastError.
4.5.2
SYNOPSIS
VB VC++
DESCRIPTION
F_TerminateLogServer terminates the LogServer.
RETURN VALUE
TRUE is returned if F_TerminateLogServer succeeds, FALSE is returned if it fails. If processing fails, an error code can be acquired by calling F_GetLastError.
-165-
B-75044EN/02
The Log Viewer can be started by double-clicking the [Log Viewer] program in the [FA System for PC] group.
-166-
B-75044EN/02
5.1
5.1.1
LOG VIEWER
B-75044EN/02
Therefore, there are the ten log files. (File names are put in parentheses.) K Transmission log K Error log of FA LIBRARY K Internal log of FA LIBRARY K Error log of DNC1 K Internal log of DNC1 K Error log of DNC2 K Internal log of DNC2 K Error log of Reader/Puncher K Internal log of Reader/Puncher (TransLog) (FComLibErrLog) (FComLibDetailLog) (DNC1ErrLog) (DNC1DetailLog) (DNC2ErrLog) (DNC2DetailLog) (RPErrLog) (RPDetailLog) (D1EErrLog) (D1EDetailLog)
K Error log of DNC1/Ethernet communication K Internal log of DNC1/Ethernet communication K Error log of communication process K Internal log of communication process
(MNGErrLog) (MNGDetailLog)
The latest 2000 messages are saved in each log file. These files are placed in the LOG sub-directory under the directory which FA SYSTEM for PC is installed in.
-168-
B-75044EN/02
5.1.2
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 of the transfer. K Machine Indicates the machine which an NC program is transferred to. K RESULT Indicates the result. If the transfer is succeeded, a OK is displayed. If it is failed, the error code of FA SYSTEM for PC is displayed. As for error codes , refer to C. Error Code. K COMMENTS Indicates the comment such as the file name of the transferred NC program.
-169-
B-75044EN/02
5.1.3
K NO The machine number which the event is occurred in. K LEVEL 00 indicates an error. Other values indicate the normal processing status. The larger the value is, the more the information is described in detail. K DATE The date when the event was occurred. K COMMENTS Indicates the comments of the event. In case of error, the head of message is; ERROR: (XXXXXXXXh/YYYY) Where, XXXXXXXX indicates an eight character hexadecimal number, and means the error code of FA SYSTEM for PC. For more information of error codes, refer to C. Error Code. YYYY indicates a four character decimal number, and means the error code of Windows API(Application Programming Interface) function which is the cause of the failure of FA SYSTEM for PC.
-170-
B-75044EN/02
5.1.4
Form
Status Bar
Title Bar
The title of log file is displayed in Title Bar. When the search function is used, the search condition appears at the same time. The title bar in case that the machine number 7 is searched
Menu Bar
Menu Bar contains File, Display, Option, and Help menus.
Tool Bar
By using the list box, you can select the log file you want to display. And by clicking the buttons, you can execute such commands as the print, update, monitor, and search.
Form
The contents of the log file are displayed. The latest 2000 messages can be saved in the log files. And the Log Viewer can display messages as many as you set the value to [View Record Number] command of the [Option] menu. The default value is 200.
-171-
B-75044EN/02
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 monitor. The ordinary displayed status bar
5.1.5
-172-
B-75044EN/02
2 3
Enter the beginning and ending records you want to print. Click the <OK> button. The selected messages are printed.
The way that the messages are selected by using a mouse 1 2 By using a mouse, drag the messages you want to print. Click the [Print] command of the [File] menu. The [Print] dialog will appear. Click the [Print] button instead, the [Print] dialog box will appear. The beginning and ending records have been entered automatically in the [Print] dialog box. 3 Click the <OK> button. The dragged messages are printed.
-173-
B-75044EN/02
Click the [Print] command in the [File] menu. The [Print] dialog will appear. Click the <Font setting> button. The [Font setting] dialog will appear. Select the font you want to use. Please select a small font size if possible. Click the <OK> button. The selected font is registered.
Setting a Printer
1 2 3 Click the [Printer setting] command of the [File] menu. The [Printer setting] dialog will appear. Set up printer settings if you want. Please select a broad size paper if possible. Click the <OK> button. The printer settings are registered.
NOTE If the printer can not support the registered parameter, it is ignored.
-174-
B-75044EN/02
Click the item you want to search from the sub menu. The [Search] dialog box will appear.
Enter the item you want to search, and click the <OK> button. The selected log information is displayed.
The way that the message is searched by using the button You can search the log information by using the button instead.
-175-
B-75044EN/02
The search command can search the log information displayed in the Log Viewer. Note that all contents of the log file are not searched.
-176-
B-75044EN/02
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
If you disable the creation of detailed logs, the settings will be reflected immediately without the need to restart FA SYSTEM for PC. The settings are saved, so the settings are valid even when FA SYSTEM for PC is started next. The procedure for setting log creation ON/OFF by Log Server is as follows: 1 2 3 The LogServer that was started as an icon is displayed as a window. Expand the tree view to display the log name. A log having a log name prefixed by (*) will be created. Each click turns the display of the * ON and OFF, and switches creation of the log ON and OFF. When you have finished setting log creation, return the LogServer to its original icon.
-177-
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 displayed on the left, see 5.1.1 Log information.
-178-
B-75044EN/02
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 File Transfer Function.) Two screens are provided for managing List Files: 1 2 Edit List File screen Screen for creating and editing List Files List File Monitor screen Screen for monitoring transfers made using List Files. The chapter describes how to operate from these screens.
-179-
B-75044EN/02
6.1
You can also start [Edit List Files] from the NC PROGRAM MANAGEMENT screen.
6.1.1
-180-
B-75044EN/02
Menu bar
Number of records
File type to be displayed Buttons for adding/inserting from in registration file name registration file to List list box File
Directory
Displays the machine name to which the List File currently being edited belongs. The machine name is displayed in the following format: <3-digit machine number>.<machine name>
Directory Name
Displays the directory in which the List File currently being edited is saved.
-181-
B-75044EN/02
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 Name] is displayed in the [Register File Name] list box. When you select Different directory from List File, a dialog box for selecting the drive and directory appears.
B-75044EN/02
Number of Records
Displays the currently registered number of records.
6.1.2
Select the directory for saving the List File from the [Directory] combo box. If you select a machine name in the [Directory] combo box, the default directory of the machine selected in the [Directory Name] text box is displayed. If you select <Any Directory> in the [Directory] combo box, select the directory by the button to the right of the [Directory Name] text box.
NOTE Select the machine name at [Directory], and display the default directory of the machine to communicate with at [Directory Name]. If you select <Any Directory> at [Directory], specify a directory other than the default directory at the [Directory Name] button and create a List File, you will no longer be able to call the List File from the NC.
-183-
B-75044EN/02
Enter the name of the new List File in the [List File] text box, and press the <Start> 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 the [Directory] combo box. To edit an existing file, enter the file name in the [List File] text box, and press the <Start> button. When you specify an existing file, a confirmation dialog box for checking if it is OK to delete the file and create a new file appears.
Select the directory containing the List File in the [File Directory] combo box. The directory name is displayed in the [Directory Name] text box.
When you select the List File name from the list box, the List File name selected in the [List File Name] text box is displayed. You can also enter the List File name to edit directly in the [List File Name] text box.
-184-
B-75044EN/02
-185-
B-75044EN/02
Select the record you want to delete in the [List File Details] list box. The <Delete> button deletes the selected records. The <Delete All> button deletes all records.
Example: Paused
-186-
B-75044EN/02
Transfer by the [Edit] menu is specified as follows: 1 2 Select the record whose transfer order you want to change in the [List File Details] list box. Set the [Skip], [Pause] or [Cancel] commands in the [Edit] menu.
In addition to transfer by the [Edit] menu, you can also instruct transfer in the context menu of the right mouse button. 1 Bring the mouse cursor to the record whose transfer order you want to change in the [List File Details] list box, and press the right mouse button. 2 The same menu as the [Edit] menu appears.
Registering Files in the Same Directory as List Files Using Only the File Name
Normally, the files to transfer to the List File are registered using their full path. The Option screen allows you to select whether to register only a file name or register the file by its full path. Specify registration by only a file name when you do not want to register a file using its full path to copy a List File to another machine having a different default directory. To set this, click the [Option] command in the [Tool] menu.
-187-
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.
1 2 3
Select the directory for saving the List File from the [Directory] combo box. The directory name is displayed in the [Directory Name] text box. Enter the List File name that you want to save to from the [List File Name] text box. Click the <Save> button.
-188-
B-75044EN/02
6.2
6.2.1
-189-
B-75044EN/02
The List File name created in the Edit List File screen is displayed. Nothing is displayed if a List File is not being transferred.
6.2.2
-190-
B-75044EN/02
In addition to transfer by the [Edit] menu, you can also instruct transfer in the context menu of the right mouse button. 1 Bring the mouse cursor to the record whose transfer order you want to change in the [List File Details] list box, and press the right mouse button. 2 The same menu as the [Edit] menu appears.
-191-
6. LIST FILE MANAGEMENT Changing the Order, Adding and Deleting NC Programs to be Transferred
B-75044EN/02
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] command in the [Edit] menu, the Edit screen appears. Operations in this screen are the same as in the Edit List File screen.
NOTE The Edit screen displays records that were registered after the paused record.
-192-
APPENDIX
B-75044EN/02
APPENDIX
Whether the ISO code contains a parity bit (With parity bit) Punch code (ISO) TV check (Not checked) MAP Parameter screen (Displayed)
0000.1=1
0000.2=0
ISO=1
0131.3=1
0000.4=0
0051.3=1
TV=0
0000.0=0
TV=0
389.0=1
-195-
APPENDIX
B-75044EN/02
NOTE:
When the PMC-NA unit (except for PMC-NA2) is used in Series 15, this parameter must be set. -196-
B-75044EN/02
APPENDIX
-197-
APPENDIX
B-75044EN/02
-198-
B-75044EN/02
APPENDIX
-199-
APPENDIX
B-75044EN/02
B.1
DNC1, DNC2
Procedure for Uploading an NC Program (NC Program Number) The uploaded NC program is saved by using NC Program Number. 1 2 3 4 5 6 7 Change the NC mode to Edit. Push the <PROG> function key. Push the [OPRT] soft key. Push the [+] soft key. Push the [PUNCH] soft key. Input O????. Where, the ???? indicates the NC program number you want to punch. It is also used for saving the uploaded program. Push the [EXEC] soft key.
-200-
B-75044EN/02
APPENDIX
Procedure for DNC Operation (NC Program Number) The NC program is selected by NC Program Number. 1 2 3 4 Change the NC mode to MDI. Push the <SYSTEM> function key. Push the [+] soft key twice. Push the [C-OPER] soft key. The following display will appear.
[COMMUNICATION OPERATION] [DNC FILE SELECTION] -
5 6 7 8 9
Push the [OPRT] soft key. Push the [STRING] soft key. Input O????.PRG. Where, the ???? indicates the NC program number. Push the [INPUT] soft key. Push the [STRING] soft key.
10 Change the NC mode to Memory. 11 Change the NC mode to RMT by raising the DNCI signal in the PMC unit. 12 When the cycle start signal is raised, the DNC operation is started.
-201-
APPENDIX
B-75044EN/02
Procedure for Downloading an NC Program (NC Program Number) The NC program to be downloaded is selected by NC Program Number. 1 2 3 4 5 Change the NC mode to Edit. To select the PROGRAM(MEMORY) display, push the [PROGRAM] soft key. Push the ' soft key twice.
Push the [READ] soft key. Input ,O????. Where, the ???? indicates the NC program number you want to read. A , character can be inputted by pushing both the # key and the shift key.
Procedure for Uploading an NC Program (NC Program Number) The uploaded NC program is saved by using NC Program Number. 1 2 3 4 5 Change the NC mode to Edit. To select the PROGRAM(MEMORY) display, push the [PROGRAM] soft key. Push the [ '] soft key twice. Push the [PUNCH] soft key. Input ,O????. Where, the ???? indicates the NC program number you want to punch. It is also used for saving the uploaded program. A , character can be inputted by pushing both the # key and the shift key. 6 Push the [EXEC] soft key.
-202-
B-75044EN/02
APPENDIX
Procedure for DNC Operation (NC Program Number) The NC program is selected by NC Program Number. 1 2 3 4 Change the NC mode to TAPE. Push the [SETTING] soft key. Push the [CHAPTER] soft key twice. Push the [COMMU.OPERAT] soft key. The following display will appear.
COMMUNICATION OPERATION DNC FILE SELECTION O0001 N0001
5 6 7
Input O????.PRG. Where, the ???? indicates the NC program number. Push the [INPUT] soft key. When the cycle start signal is raised, the DNC operation is started.
-203-
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 2 3 4 5 Change the NC mode to Edit. Push the <PRGRM> function key. Push the [I/O] soft key. Input O????. Where, the ???? indicates the NC program number you want to punch. It is also used for saving the uploaded program. Push the [PUNCH] soft key.
Procedure for DNC Operation (NC Program Number) The NC program is selected by NC Program Number. 1 2 3 Change the NC mode to MDI. Push the <DGNOS PARAM> function key. Push the [MAP] soft key. The following display will appear.
[MAP PARAMETER] (SETTING) DNC FILE SELECTION O0001 N0001
NUM. ( )( )(
MDI )(
)(
4 5 6 7 8 9
Push the [STRING] soft key. Input O????.PRG. Where, the ???? indicates the NC program number. Push the <INPUT> function key. Change the NC mode to AUTO. Raise the DNCI signal in the PMC unit. When the cycle start signal is raised, the DNC operation is started.
To execute the DNC operation, raise the bit 0 of the NC parameter address 389. The MAP PARAMETER display becomes active, and the SERVO SETTING display becomes inactive.
-204-
B-75044EN/02
APPENDIX
B.2
READER/PUNCHER
Procedure for Uploading an NC Program (File Name) The uploaded NC program is saved by using File Name. 1 2 3 4 5 6 Change the NC mode to Edit. Push the <PROG> function key. Push the [PUNCH] soft key. Input ????. Where, the ???? indicates the file name you want to punch. Push the [O-SET] soft key. Push the [EXEC] soft key.
-205-
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 2 3 4 5 6 7 8 Change the NC mode to Edit. Push the <PROG> function key. Push the [PUNCH] soft key. Input ????. Where, the ???? indicates the file name. Push the [O-SET] soft key. Input ??. Where, the ?? indicates the file number. Push the [F-SET] soft key. Push the [EXEC] soft key.
The system cant name the uploaded NC program by using the file number which is inputted in the above step 6. But the system finds the NC program number from the contents of the uploaded NC program and uses it as a file name.
Procedure for displaying the List 1 2 3 4 5 Change the NC mode to Edit. Push the <PROG> function key. Push the [FLOPPY] soft key. Push the [OPRT] soft key. Push the <PAGE > and <PAGE > key. The pages are turned .
Procedure for Deleting an NC Program 1 2 3 4 5 6 Change the NC mode to Edit. Push the <PROG> function key. Push the [F-DEL] soft key. Input ??. Where, the ?? indicates the file number you want to delete. Push the [F-SET] soft key. Push the [EXEC] soft key.
-206-
B-75044EN/02
APPENDIX
Procedure for DNC Operation (File Number)
The NC program is selected by File Number. 1 2 3 4 5 6 7 8 9 Change the NC mode to RMT. Push the <PROG> function key. Push the [FL.SDL] soft key. Push the [OPRT] soft key. Push the [SELECT] soft key. Input ??. Where, the ?? indicates the file number. Push the [F-SET] soft key. Push the [EXEC] soft key. When the cycle start signal is raised, the DNC operation is started.
Procedure for Downloading an NC Program (File Name) The NC program to be downloaded is selected by File Name. 1 2 3 4 5 6 Change the NC mode to Edit. To select the PROGRAM(MEMORY) display, push the [PROGRAM] soft key. Push the [READ] soft key. Push the [FILE NAME] soft key. Input ABC. Where, the ABC indicates the file name you want to read. Push the [ALL] soft key.
-207-
APPENDIX
B-75044EN/02
Procedure for Uploading an NC Program (File Name) The uploaded NC program is saved by using File Name. 1 2 3 4 5 6 Change the NC mode to Edit. To select the PROGRAM(MEMORY) display, push the [PROGRAM] soft key. Push the [PUNCH] soft key. Push the [PROGRAM#] soft key. Input ????. Where, the ???? indicates the file name you want to punch. Push the [EXEC] soft key.
Procedure for Uploading an NC Program (NC Program Number) The uploaded NC program is saved by using NC Program Number. 1 2 3 4 5 6 Change the NC mode to Edit. To select the PROGRAM(MEMORY) display, push the [PROGRAM] soft key. Push the [PUNCH] soft key. Push the [FILE#] soft key. Input ??. Push the [THIS PROGRAM] soft key.
The system cant name the uploaded NC program by using the file number which is inputted in the above step 6. but the system finds the NC program number from the contents of the uploaded NC program and uses it as a file name.
Procedure for displaying the List 1 2 3 4 Change the NC mode to Edit. Push the [PROG] soft key. Push the [DRCTRY FLOPPY] soft key. Push the <PAGE > and <PAGE > key. The pages are turned.
-208-
B-75044EN/02
APPENDIX
Procedure for Deleting an NC Program 1 2 4 5 6 7
Change the NC mode to Edit. Push the [PROG] soft key. Push the [DELETE] soft key. Push the [FILE#] soft key. Input ??. Where, the ?? indicates the NC program number you want to delete. Push the [EXEC] soft key.
Procedure for DNC Operation (File Number) The NC program is selected by File Number. 1 2 3 4 5 6 7 Change the NC mode to Tape. Push the [PROG] soft key. Push the [SEARCH] soft key. Push the [FILE#] soft key. Input ??. Where, the ?? indicates the file number. Push the [EXEC] soft key. When the cycle start signal is raised, the DNC operation is started.
-209-
APPENDIX
B-75044EN/02
Procedure for Downloading an NC Program (File Number) The NC program to be downloaded is selected by File Number. 1 2 3 4 5 6 Change the NC mode to Edit. Push the <PRGRM> function key. Push the [READ]soft key. Input ??. Where, the ?? indicates the file number you want to read. Push the <INPUT> function key. Push the [EXEC] soft key.
Procedure for Uploading an NC Program (File Name) The uploaded NC program is saved by using File Name. 1 2 3 4 5 6 Change the NC mode to Edit. Push the <PRGRM> function key. Push the [PUNCH]soft key. Input ????. Where, the ???? indicates the file name you want to punch. Push the <INPUT> function key. Push the [EXEC] soft key.
Procedure for Uploading an NC Program (NC Program Number) The uploaded NC program is saved by using NC Program Number. 1 2 3 4 5 6 7 8 Change the NC mode to Edit. Push the <PRGRM> function key. Push the [PUNCH]soft key. Input ????. Push the <INPUT> function key. Input ??. Push the <INPUT> function key. Push the [EXEC] soft key.
The system cant name the uploaded NC program by using the file number which is inputted in the above step 6. but the system finds the NC program number from the contents of the uploaded NC program and uses it as a file name. -210-
B-75044EN/02
APPENDIX
Procedure for displaying the List 1 2 3 4
Change the NC mode to Edit. Push the <PRGRM> function key. Push the [FLOPPY] soft key. Push the <PAGE > and <PAGE > key. The pages are turned.
Procedure for Deleting an NC Program 1 2 3 4 5 6 Change the NC mode to Edit. Push the <PRGRM> function key. Push the [DELETE] soft key. Input ??. Where, the ?? indicates the file number you want to delete. Push the <INPUT> function key. Push the [EXEC] soft key.
Procedure for DNC Operation (File Number) The NC program is selected by File Number. 1 2 3 4 5 6 7 8 9 Change the NC mode to AUTO. Enter the DNC1 signal from the PMC, and set to the RMT mode. Push the <PRGRM> function key. Push the [FL.SDL] soft key. Push the [SELECT] soft key. Input ??. Where, the ?? indicates the file number. Push the <INPUT> function key. Push the [EXEC] soft key. When the cycle start signal is raised, the DNC operation is started.
-211-
APPENDIX
B-75044EN/02
Procedure for Downloading an NC Program (File Number) The downloading NC program is selected by File Number. 1 2 3 4 Change the NC mode to Edit. Push the <PRGRM> function key. Input N??. Where, the ?? indicates the file number you want to read. Push the <INPUT> function key twice.
Procedure for Uploading an NC Program (File Name) The uploaded NC program is saved by using File Name. 1 2 3 4 Change the NC mode to Edit. Push the <PRGRM> function key. Input O????. Where, the O???? indicates the file name you want to punch. Push the <START> function key.
Procedure for Deleting an NC Program 1 2 3 4 Change the NC mode to Edit. Push the <PRGRM> function key. Input N??. Where, the ?? indicates the file number you want to delete. Push the <START> function key.
Procedure for DNC Operation (File Number) The NC program is selected by File Number. 1 2 3 4 5 Change the NC mode to AUTO. Push the <PRGRM> function key. Input N??. Where, the ?? indicates the file number. Push the <INPUT> function key. When the cycle start signal is raised, the DNC operation is started.
-212-
B-75044EN/02
APPENDIX
B.3
DNC1/ETHERNET
NOTE 1 2 NC start cannot be downloaded, uploaded or deleted on DNC1/Ethernet. (These scheduled to be supported in the future.) When DNC operation is carried out on DNC1/Ethernet, download from your computer after executing a cycle start on the NC.
-213-
C. ERROR CODE
APPENDIX
B-75044EN/02
ERROR CODE
The following error codes are returned by the F_GetLastError function of FA LIBRARY.
B-75044EN/02
APPENDIX
C. ERROR CODE
-215-
C. ERROR CODE
0x00030601
APPENDIX
B-75044EN/02
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.
0x00030602
The negative response of T_NP was sent from the NC side. 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. Where, T_NP and the following T_BD, M_NR, N_NP, N_IL indicate the error types of DNC2 negative responses. For more information, refer to Volume II Protocol in FANUC DNC2 DESCRIPTIONS (B61992E).
0x00030603
The negative response of T_BD was sent from the NC side. 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.
0x00030604
The negative response of T_MR was sent from the NC side. 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.
0x00030605
The negative response of N_NP was sent from the NC side. 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.
0x00030606
The negative response of N_IL was sent from the NC side. Though the error is occurred in the NC side, the NC parameter Error code for negative response is inactive. Set up Error code for negative response in the NC side.
0x00030607
The NC program number is not specified, or the number is beyond the range. Check that the NC program number is specified correctly.
0x00030609
The other DNC2 command is executing. Try again after finishing it.
0x00030f02
The value except 0 is specified in the tool post number. In case of DNC2, the value of 0 must be specified in the tool post number.
-216-
B-75044EN/02
APPENDIX
0x00030f03
C. ERROR CODE
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 function.
0x00030f05
The invalid argument is specified in the function which requests the system to write the NC data. Check the argument of the function.
0x00030f06
The value of 0 is specified in the count argument of the function which requests the system to read the NC data. The count value must be greater than or equal to 1.
0x00030f09
The combination of arguments about the tool offset function is illegal. The value of the arguments must adjust to either of the milling or the turning type.
0x00030f0c
The specified PMC address is illegal. Check the PMC address and the PMC number argument.
0x00030f0d
When the application program reads data from NC, the specified number of data is too large. Check the range of data supported by the NC.
-217-
C. ERROR CODE
0x00041010
APPENDIX
B-75044EN/02
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 that the NC is reset. If not, check the contents of the NC program in the NC memory.
0x0004101c
The error of TV check was occurred in the computer. Check that the TV check parameter of the NC is active.
0x00041021
The file to be downloaded is not found. Check that the specified file exists in the computer.
0x00041024
The system cannot distinguish an ISO code from an EIA code of the uploaded NC program. The system read a 100 characters from the top of the file, and automatically distinguished ISO/EIA codes by searching for the LF character from among these 1000 characters. However, the LF code was not found. (0x0a: ISO, 0x80: EIA) Check the contents of the NC program in the NC side.
0x00041025
There is not an NC program number in the contents of the uploaded NC program. The NC program number must be included in the contents of an NC program. Check the contents of the NC program in the NC side.
0x00041026
There are not the numerical characters continued from the O or : character (which indicates an NC program number) in the contents of the uploaded NC program. Check the contents of the NC program in the NC side.
0x00041028
While the system distinguishes an ISO code from an EIA code of the uploaded program, the illegal character was found. Check the contents of the NC program in the NC side.
0x0004102c
While downloading or uploading an NC program, the illegal character was found. Check the contents of the NC program in the NC side.
-218-
B-75044EN/02
APPENDIX
C. ERROR CODE
-219-
C. ERROR CODE
0x00060121
APPENDIX
An error occurred during reading and writing of NC parameters.
B-75044EN/02
Make sure that the correct NC name is set to <Machine Type> on the [Machine Information] tab in the Machine Setup menu, and check <Bit Type Data Type> on the [Communication Tab]. 0x00060123 Cannot connect to the NC by Ethernet. Check the DNC1/Ethernet setting in 2.6.3 Setups Relating to Machine Communication and the Ethernet cable connection. 0x00060125 An M198 call was received during DNC operation. M198 calls are not accepted. Make sure that the program name is not specified in Select DNC File in the NC's Communication OP screen. 0x00060126 An non-existent axis was specified during reading or writing of NC parameters. Check the maximum number of axes usable on the NC and the details of the axis specification. 0x00060128 Cannot connect to the C4 server. Check the DNC1/Ethernet setting in 2.6.3 Setups Relating to Machine Communication and the Ethernet cable connection. 0x0006012a The survival signal from the NC is interrupted. Probable causes are that the NC was turned OFF, or that the Ethernet cable is not connected. So, processing cannot be executed. Check the NC power supply and Ethernet cable. 0x0006012c 0x0006012d Download or upload started by the host was canceled by the cancel function. Though canceling of download or upload started by the host was requested by the host, the requested service is not currently being executed. Check the machine number to be canceled and the cancel details. 0x0006012e The NC program that is requested for downloading and DNC program does not contain an O number. Check the contents of the NC program. 0x0006012f The parameter number specified during reading and writing of parameters does not exist. Check the parameter number. 0x000604f0 The NC was turned OFF during Ethernet communications. Or, the Ethernet cable was cut. Check the NC power supply and Ethernet cable. -220-
B-75044EN/02
APPENDIX
0x000604fe (1)
C. ERROR CODE
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 details.
Programs cannot be deleted in the MDI mode. Set to any mode other than the MDI mode. The currently selected program cannot be deleted in a mode other than the EDT mode. A currently executing program cannot be selected. 0 was specified as the offset number during reading and writing of the tool offset number. Or, a non-existent offset number on the NC was specified. Check the offset number.
0x00060503 (2)
A local variable or system variable, or non-existent macro number was specified during writing to the custom macro variable. Writing to local variables or system variables is not possible. Check the macro number.
0x00060503 (3)
A non-existent PMC data number was specified during reading and writing of PMC data. Check the PMC data Number.
0x00060503 (4)
A value outside of the parameter range was specified during reading and writing of NC parameters. Check the write data.
An illegal address was specified during reading and writing of PMC data. Check the address. Writing to all areas of addresses F and X and writing to R9000 onwards was specified. Writing to these areas is not possible.
When the 140 BP/S alarm occurred on the NC: Downloading to the program currently selected on the NC is not possible. When the 73 BP/S alarm occurred on the NC: Overwriting and downloading to an existing program is not possible. Check NC parameter 3201#1.
0x00060505 (3)
When the 72 BP/S alarm occurred on the NC: The number of programs that can be registered to the NC has been exceeded. Delete unwanted programs.
Programs not existing in the NC cannot be uploaded. Programs not existing in the NC cannot be selected. Programs not existing in the NC cannot be deleted. -221-
C. ERROR CODE
0x00060507
APPENDIX
B-75044EN/02
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 try downloading again.
0x0006050b
The system number is wrongly specified. Specify the correct system number.
0x0006050c
Downloading in the MDI mode is not possible. Change the mode to the EDT or MEM mode.
0x0006050d
Though DNC operation started by the host was executed, the data transfer request has not arrived from the NC. Set the NC to the MEM mode, set the DNC1 signal to ON to set the NC to the RMT mode, execute a cycle start and execute DNC operation started by the host.
-222-
B-75044EN/02
APPENDIX
0x10011107 Illegal file number
C. ERROR CODE
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 0x10011130 Illegal file name The default directory is not set in the Machine Setup screen. Set the default directory. 0x10011131 Though downloading of the top file was carried out by Reader/Puncher communication, the top file is not set. Set the top file in the Select Transfer File screen. 0x10011132 Failed to delete a file. Make sure that the file is not write-protected, or that it is not opened exclusively by another process. 0x10013001 Failed to get the port number from the services file. Make sure that the FANUC_PCFA_CDA entry is registered to the services file. 0x10013101 Failed to get the port number from the services file. Make sure that the FANUC_PFCA_CDA entry is registered to the services file. 0x1002010a The file to download does not exist. Make sure that the file to download exists. 0x1002010b The file to download cannot be opened. Check the attributes of the file to download. 0x1002010c The file to download does not contain an O number. Make sure that the file contains an O number. 0x1002010e 0x10020111 0x10020112 An error occurred during reading of the file to download. An error occurred during closing of the file to download. An error occurred during moving of the file to overwrite by upload. Check the attributes of the file to overwrite by upload. 0x10020113 An error occurred during creation of the file to upload. Make sure that the directory settings are correct. -223-
C. ERROR CODE
0x10020115 0x10020118
APPENDIX
An error occurred during writing of the file to upload. An error occurred during closing of the file to upload.
B-75044EN/02
Make sure that the network is normal when the network directory is used. 0x10022011 Data whose MSB (8th bit) is 1 has been found. Make sure that the NC program you are attempting to transfer does not contain any illegal characters (Kanji characters, half-size kana characters, etc.). 0x10022022 The O number of the file to download is more than 5 digits. Keep the number of O number digits to 4 or less. 0x10022023 The O number of the file to download is 0 (zero). Set the O number to a value other than 0. 0x10022035 The buffer overflowed in a flush stop state. Keep the capacity from the NC program end code up to the EOF or next O number to within several tens of bytes. 0x10022052 The subprogram call nesting level has exceeded 8. Limit the subprogram call nesting level to 8. 0x10022053 Failed to open the subprogram file. Check the access rights of the subprogram file. Make sure that the subprogram file is not in use by other processes. 0x10022054 The corresponding file for the subprogram call does not exist. Make sure that the subprogram file call exists. 0x10022055 The next O number was found in the subprogram file. Multi-volume files are not supported in subprogram files. 0x10022056 The subprogram file does not contain an M99 code. Subprogram files need an M99 code. 0x10022058 The O number in the file does not match the subprogram file name. The O number in the file must be the same as the subprogram file name. 0x10022059 An M02 or M30 codes was found in the subprogram file. The M02 or M30 codes cannot be used in subprogram files.
-224-
B-75044EN/02
APPENDIX
0x10022062
C. ERROR CODE
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 transfer file. Make sure that the transfer file is not in use by other processes.
0x10022092
The transfer file does not exist. Make sure that the transfer file exists.
0x10022093
The transfer files in the separate transfer mode does not contain an O number. The files specified in the list need an O number in the separate transfer mode. (The O number in List Files is used only in extended transfer.)
0x100220a1
Line 1 of the NC program has exceeded 320 characters. Limit lines including subprogram calls to 320 characters per line.
0x100220a2
0x100220a3
The P code is above 9999. Specify an O number (1 to 9999) valid for a P code.
0x100220a4
Two P codes are set. Do not specify two or more P codes in lines containing subprogram calls.
0x100220a5
Two L codes are set. Do not specify two or more L codes in lines containing subprogram calls.
0x10022104
An attempt was made to re-transfer an O number that has already been transfer. Make sure that two or files having the same O number are not specified in the list.
0x10022105 0x10022107
An MFC file exception occurred. Failed to move the original file by overwrite upload. Make sure that the original file is not in use by another process.
0x10022108
Failed to create the upload file. Make sure that the directory in which the upload file is created exists. Check the access rights of the directory in which the upload file is created. -225-
C. ERROR CODE
0x1002210a 0x1002210b 0x1002210d
APPENDIX
Failed to write to the upload file. Failed to close to the upload file. An attempt was made to overwrite and upload a read-only file. Make sure that the file has been correctly specified.
B-75044EN/02
0x1003000b
Failed to open the FA SYSTEM for PC setup data in the computer's registry. Make sure that FA SYSTEM for PC is set up correctly. Make sure that the Windows NT registry is not damaged.
0x1003000c
Failed to read the FA SYSTEM for PC setup data in the computer's registry. Make sure that FA SYSTEM for PC is set up correctly. Make sure that the Windows NT registry is not damaged.
0x10040102 0x10040105
The value of the specified machine number is illegal. The value of the specified descriptor is illegal. Make sure that the value of the descriptor returned from FA LIBRARY is used correctly, and that F_FreeID is not being executed on that descriptor.
0x10040106 0x1004010a
The name of the specified computer is illegal. The specified descriptor cannot be processed by this function. The correspondence between the details indicated by the descriptor and the function to be processed is in error such that the descriptor, that was handed over when the tool offset was read, was handed over to the function for copying the custom macro variable.
0x1004010b
An attempt was made to copy the results data even though the data read request failed.
0x1004010d
The read start position specified by F_Seek() is a value larger than the number of data items. Make sure that the value of the read start position is within the range 0 to a value smaller than the number of data items -1.
0x1004010f
The file name and full path of the file is not set in a download or upload in which the file name and full path of the file is specified.
0x10040110
The O number in an upload or download in which an O number is specified or the O number specified by a selection or deletion is illegal. Make sure that the O number is within the range 1 to 9999.
-226-
B-75044EN/02
APPENDIX
0x10040111 0x10040114
C. ERROR CODE
Cannot find the execution format file for the communication process. 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 specified as the number of data items during reading and writing. Set within the range 1 to 32.
0x10040118 (2)
The tool offset type was not specified during reading and writing of the tool offset. Specify the tool offset type.
0x10040119 0x1004011c
No valid notification message The CDA Manager is not functioning. When CDA Manager cannot function properly, check that FANUC_PCFA_CDA is set to the services file. A line feed is needed at the end of each line of data registered to the services file.
0x1004011d 0x1004020f
No machines are set in the Machine Setup screen. The Communication Manager is not functioning. A probable cause is that F_Open was executed without executing F_CreateCommunication, or that F_Close was executed after F_TerminateCommunication was executed.
0x10040210 0x10060001
FANUC_PCFA_APP is not specified in the service file. An attempt was made to open an already opened List File. Close the file and try opening it again.
0x10060002
Failed to open the List File. When an attempt is being made to manipulate the List File by machine, make sure that the transfer is being carried out, and that the machine number is correct. When an attempt is being made to manipulate an existing original List File, make sure that another process is not manipulating the same file, and that the specified file name is correct. When an attempt is being made to manipulate a new original List File, make sure that the specified file is correct.
0x10060003
The specified List File does not exist. Make sure that the specified List File does not contain any errors. -227-
C. ERROR CODE
0x10060004 0x10060005 0x10060006
APPENDIX
Failed to close the List file. The specified List File is already opened.
B-75044EN/02
The application attempted to execute the function for auxiliary transfer functions. Make sure that the transfer function is correct.
0x1006000a
The record flag of the specified record is incorrect. The function that you attempted to manipulate is in a non-executable flag state. Check the record flag.
Failed to exclusively process (lock) the header. Failed to exclusively process (lock) the specified record section. The function for the original List File was executed on List Files by machine. The function for the List Files by machine was executed on the original List File.
Failed to seek the specified record. Failed to read from the List File. Could not read the data of anticipated size from the List File. Check the contents of the List File.
0x10060013 0x10060014
Failed to write to the List File. Failed to write to the data of size to which an attempt was made to write to the List File. Check the contents of the List File.
0x10060015
The O number flag of the specified record is incorrect. Check the specified O flag again.
0x10060016 0x10060017
Failed to exclusively process (unlock) the header. Failed to exclusively process (unlock) the specified record section.
-228-
B-75044EN/02
APPENDIX
0x10060018 Failed to open the registry. Make sure that the registry is correctly set.
C. ERROR CODE
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 key from the registry. Make sure that the registry is correctly set. 0x1006001a Failed to read the value from the registry. Make sure that the registry is correctly set. 0x1006001b The header flag of the List File by machine does not indicate Transferring. Make sure that the header flag indicates Transferring. 0x1006001c 0x1006001d An attempt was made to correct an already transferred record. The record having the record number specified in the List File does not exist. Check the number of records. 0x1009F001 The computer ran out of memory during execution of FA SYSTEM for PC. Either terminate unwanted applications, or increase the virtual memory to secure more memory. 0x1009F004 The machine to communicate with by DNC1/Ethernet is not correctly connected to the network. Check the Ethernet cable connection and network setup. Also make sure that the value of FANUC_C4_SERVER in the services files matches the value of UDP port No. in the ETHPRM parameter on the NC. 0x1009F005 Cannot connect to the FANUC C4 Server. Make sure that the FANUC C4 Server has started correctly by [Control Panel] - [Service]. Also, make sure that 127.0.0.1 is set as the [C4 Server Host Name] in the Machine Setup screen.
-229-
C. ERROR CODE
APPENDIX
B-75044EN/02
B-75044EN/02
APPENDIX
0x2001ffc9 0x2002ffc9 0x2001ffc6 0x2002ffc6 0x2001ffc5 0x2002ffc5 0x2001ff00 0x2002ff00 0x2001fdff 0x2002fdff 0x2001fdfe 0x2002fdfe 0x2001fdfd 0x2002fdfd 0x2001fdfc 0x2002fdfc 0x2001fdfb 0x2002fdfb Invalid axis command
C. ERROR CODE
Timeout
Channel is busy
Data remaining
Open request rejected If the error is occurred when the application program attempts to download/upload an NC program in the FS0 unit, the NC falls into the alarm status. Edit request rejected
NC busy
A specified file was not found. If the error is occurred when the application program attempts to select an NC program, the NC program is not found. A warning was occurred during selection of a file
Start request rejected If the error is occurred when the application program attempts to start an NC, the NC is already executing a program.
-231-
C. ERROR CODE
0x2001fc09 0x2002fc09
APPENDIX
B-75044EN/02
Not in auto mode 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 mode. File selection request rejected An NC program is being edited or executed in the NC. In case of FS0, the NC falls in the alarm. File deletion request rejected
0x2001fc08 0x2002fc08
0x2001fc07 0x2002fc07 0x2001fc06 0x2002fc06 0x2001fc05 0x2002fc05 0x2001fc04 0x2002fc04 0x2001fc03 0x2002fc03 0x2001fc02 0x2002fc02 0x2001fc01 0x2002fc01 0x2001fba8 0x2002fba8 0x2002fba7 0x2001fba7
File protected
File deletion request rejected, or warning occurred during file deletion. editing request rejected
Command not executable If the error is occurred when the application program attempts to delete an NC program in FS16/18, the specified NC program is being edited. Invalid function code
Invalid big data classification If the error is occurred when the application program attempts to read/write the NC data, the data address is illegal. Invalid medium data classification
0x2001fba4 0x2002fba4
-232-
B-75044EN/02
APPENDIX
0x2001fba3 0x2002fba3 Invalid small data classification
C. ERROR CODE
If the error is occurred when the application program attempts to read/write the NC data, the NC data address is illegal.
0x2001fba2 0x2002fba2 0x2001fba1 0x2002fba1 0x2001fba0 0x2002fba0 0x2001fb9f 0x2002fb9f 0x2001fb9e 0x2002fb9e
Invalid data
No option If the error is occurred when the application program attempts to write the custom macro variable, the NC doesnt support the specified custom macro variable number. If the error is occurred when the application program attempts to write the tool offset data, the NC doesnt support the specified tool offset number.
0x2001fb9d 0x2002fb9d
File not found If the error is occurred when an application program attempts to delete an NC program, the specified NC program doesnt exist in the NC memory.
0x2001fb9c 0x2002fb9c 0x2001fb9b 0x2002fb9b 0x2001fb9a 0x2002fb9a 0x2001fb99 0x2002fb99 0x2001fb98 0x2002fb98
File protected
No directory space
Read disable
Write disable If the error is occurred when an application program attempts to delete an NC program, the specified NC program is protected.
-233-
C. ERROR CODE
0x2001fb97 0x2002fb97 0x2001fb96 0x2002fb96 0x2001fb95 0x2002fb95 0x2001fb94 0x2002fb94 0x2001fb93 0x2002fb93
APPENDIX
Write failed
B-75044EN/02
Read failed
Device inoperable
Invalid status If the error is occurred when an application program attempts to delete an NC program, the specified NC program is being edited. Data mismatch
Miscellaneous errors
Write protected If the error is occurred when an application program attempts to download an NC program, the NC program numbers of the 8000s and 9000s are protected. Data not found If the error is occurred when an application program attempts to upload an NC program, the specified NC program doesnt exist in the NC memory. Program already exists. If the error is occurred when an application program attempts to download an NC program, the NC prohibits the system from writing over an NC program. Insufficient program space If the error is occurred when an application program attempts to download an NC program, there is no free space left on the NC memory . Too many programs
0x2001f625 0x2002f625
0x2001f61f 0x2002f61f
0x2001f61e 0x2002f61e
0x2001f61b 0x2002f61b
-234-
B-75044EN/02
APPENDIX
D. DNC1
D
Computer
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 16 NCs on a single computer.
Connection Example
Optical adapter B Tap Teminator unit
Metal cable
COP1
(for NC) DNC1 board Example of Connection of 3 NCs to a Computer by Optical Adapter B
-235-
D. DNC1
APPENDIX
B-75044EN/02
Computer
Optical adapter C
Metal cable
COP1
For details on how to connect the optical adapter, refer to the DNC1 Optical Tap Hardware Specifications at the end of this manual.
-236-
B-75044EN/02
APPENDIX
D. DNC1
D.1
The following resources 'I/O Port Address, Memory Address, IRQ) are used in the DNC1 board.
I/O Port Address can be selected from the list below. 100h~10Fh, 110h~11Fh, 120h~12Fh, 130h~13Fh, 150h~15Fh, 280h~28Fh, 330h~33Fh The default I/O Port Address is 280~28Fh. 160h~16Fh, 290h~29Fh, 170h~17Fh, 300h~30Fh, 220h~22Fh, 310h~31Fh,
-237-
D. DNC1
4
APPENDIX
B-75044EN/02
Memory Address can be selected from the list below. C0000h~C7FFFh, C8000h~CFFFFh, D0000h~D7FFFh, D8000h~DFFFFh, E0000h~E7FFFh, E8000h~EFFFFh
IRQ can be selected from the list below. 3, 5, 7, 9, 10, 11, 15 The DNC1 board spends the power supply like this. +5V, 1.4A(maximum)
-238-
B-75044EN/02
APPENDIX
D. DNC1
D.2
-239-
D. DNC1
APPENDIX
B-75044EN/02
D.3
C
0
Relationship between the SW1 switch and the I/O Port Address
SW1 0'default' 1 2 3 4 5 6 7 I/O Port Address 280h ~ 28Fh 290h ~ 29Fh 220h ~ 22Fh 230h ~ 23Fh 300h ~ 30Fh 310h ~ 31Fh 320h ~ 32Fh 330h ~ 33Fh SW1 8 9 A B C D E F I/O Port Address 100h ~ 10Fh 110h ~ 11Fh 120h ~ 12Fh 130h ~ 13Fh 140h ~ 14Fh 150h ~ 15Fh 160h ~ 16Fh 170h ~ 17Fh
2 3 4
Remove the slot plate from the computer. Carefully plug the DNC1 board into the ISA slot. Screw the endplate of DNC1 board to the computer chassis.
-240-
B-75044EN/02
APPENDIX
D. DNC1
D.4
The following disk information screen will appear. Confirm that the disk space of [Space Available] is larger than that of [Space Required], and click the <Setup> button. If [Space Available] is not enough, click the <Cancel> button, and then stop the installation. Try to install into the other disk with enough space.
-241-
D. DNC1
6
APPENDIX
B-75044EN/02
When the message Setup was succeeded is displayed and the following [DNC1 Tools] group dialog is created, the installation is complete.
-242-
B-75044EN/02
APPENDIX
2 Choose the DNC1 Board No.1 panel.
D. DNC1
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 5
Click the <OK> button. When the message DNC1 driver was started is displayed, the DNC1 board entry to WindowsNT is complete.
-243-
APPENDIX
B-75044EN/02
(Remove)
Please remove the DNC1 driver from WindowsNT like this.
2 3
Click the <Remove> option button, and then click the <OK> button. When the message DNC1 driver was removed is displayed, the deletion of the DNC1 driver from WindowsNT is complete.
-244-
B-75044EN/02
APPENDIX
1
D. DNC1
Double-click the [DNC1 SetUp] program in the [DNC1 Tools] group dialog.
Check the contents of [Current Settings]. If None is displayed in [Current Settings], the DNC1 driver is not registered into WindowsNT yet.
-245-
D. 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 board works correctly and DNC1 driver is registered into WindowsNT. The loop-back test connector must be connected to the DNC1 optical adapter unit when the Dnc1HardTest program is executed. The Dnc1HardTest program sets the DNC1 baud rate to 460Kbaud. So, the optical adapter unit must be set to the same baud rate. For more information about the way for setting the optical adapter, refer to DNC1 OPTICAL TAP SPECIFICATION A-71430E. A Sample connection of Loop-Back connector
Adapter
B(A13B-0156-
DNC1Board(A20B-8100-0070)
-246-
B-75044EN/02
APPENDIX
D. DNC1
Starting Dnc1HardTest
1 Double-click the [Dnc1HardTest] program in the [DNC1 Tools] group dialog.
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.
-247-
APPENDIX
B-75044EN/02
The initial settings must be executed before Memory Test and Interrupt Test. Diagnostic Test doesnt need the initial settings. Using Dnc1HardTest 1
If the above message box Dnc1HardTest finished to initialize is not displayed, the Dnc1HardTest initialization is failed. The cause of failure is that the DNC1 driver is not registered into WindowsNT. Confirm that DNC1 driver is registered into WindowsNT. For more information about the way for the confirmation, refer to Confirming the DNC1 driver settings of D.4 Setting up DNC1 Driver.
Diagnostic Test
Using Dnc1HardTest 1 Click the <Diagnostic Test> button in the Dnc1Hard Test main screen.
B-75044EN/02
APPENDIX
3 4
D. DNC1
If the value of 0 is displayed in [RESULT], the test is successful. Otherwise, the test is failed. 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) LED state when an error is occurred during diagnosis in D.8 Maintenance Information of DNC1 Board.
Error codes for [RESULT] of Diagnostic Test 2: The DNC1 driver is not registered correctly into WindowsNT. FFFFFDF1: FFFFFDF2: FFFFFDF3: The IRQ is illegal. The Memory Address is illegal. The Other error is occurred.
Error codes for [Contents] of Diagnostic Test FF10: The DMAC of the DNC1 board doesnt work correctly. FF20: FF30: FF40: FF50: FF60: FF70: FF80: FF81: FF90: FF91: FFB0: FFC0: The EPROM of the DNC1 board doesnt work correctly. The IRC of the DNC1 board doesnt work correctly. The MPSC of the DNC1 board doesnt work correctly. The register of the DNC1 board doesnt work correctly. The SRAM of the DNC1 board doesnt work correctly. The timer of the DNC1 board doesnt work correctly. The internal loop back test of the DNC1 board is failed. The internal loop back test of the DNC1 board is failed. The external loop back test of the DNC1 board is failed. The external loop back test of the DNC1 board is failed. The IRC of the DNC1 board doesnt work correctly. The LED of the DNC1 board doesnt work correctly.
Troubleshooting of Diagnostic Test A If the value of 2 is displayed in [RESULT] of Diagnostic Test, try to register the DNC1 driver into WindowsNT again. A If FFFFFDF2 is displayed in [RESULT] of Diagnostic Test, make sure that the Memory Address doesnt match the address on other boards. Try reconfiguring the DNC1 driver for a different Memory Address . A If FFFFFDF3 is displayed in [RESULT] of Diagnostic Test, make sure that the IRQ setting doesnt match the IRQ on other boards. Try reconfiguring the DNC1 driver for a different IRQ. A If FF90 or FF91 is displayed in [CONTENTS] of Diagnostic Test, make sure that the loop-back connector is connected to the optical adapter. Make sure that the optical adapter is switched on. A If you have an error code except for the above, there may be something wrong with the hardware of your DNC1 board. -249-
APPENDIX
B-75044EN/02
2 3
Click the <RUN> button. 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 wrong with the hardware of your DNC1 board.
Interrupt Test
Using Dnc1HardTest 1 Click the <Interrupt Test> button in the Dnc1HardTest main screen.
2 3
Click the <RUN> button. 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 wrong with your DNC1 board.
-250-
B-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 2
Double-click the [Dnc1Test] program in the [DNC1 Tools] group dialog. The following main screen of the Dnc1Test appears.
Finishing Dnc1Test
1 Click the [Exit] of the [SetUp] menu in the main screen.
-251-
APPENDIX
B-75044EN/02
Choose the baud rate. It must correspond with the SW1 switch of the DNC1 optical adapter. For more information about the DNC1 optical adapter, refer to DNC1 OPTICAL TAP SPECIFICATION and FANUC DNC1 DESCRIPTIONS B-61782E.
4 5
Click the <Run> button. If the value of 0 is displayed in [RESULT], the setup is successful. Otherwise, it is failed.
-252-
B-75044EN/02
APPENDIX
D. DNC1
2 3 4
From the combo box, select the DNC1 station address of the NC. Click the <Run> button. If the value of 0 is displayed in [RESULT], the establishment is successful. Otherwise, it is failed.
The check b is displayed when the corresponding machine is connected to the computer.
-253-
D. DNC1
APPENDIX
B-75044EN/02
2 3 4
From the [Station Address] combo box, choose the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Enter the NC program number you want to download. For example, if you want to download the NC program number O0017, enter 0017 or 17.
5 6 7
Enter the file to be downloaded. Enter the file name C: NCDATA Click the <Run> button.
-254-
B-75044EN/02
APPENDIX
D. DNC1
2 3 4
From the [Station Address] combo box, choose the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Enter the NC program number you want to upload. For example, if you want to upload the NC program number O0017, enter 0017 or 17.
5 6 7
Enter the file name for storing the uploaded NC program. Enter the file name C: NCDATA O0017.PRG, for example. Click the <Run> button. If the value of 0 is displayed in [RESULT], the upload is successful. Otherwise, it is failed.
-255-
D. DNC1
APPENDIX
B-75044EN/02
2 3 4 5
From the [Station Address] combo box, choose the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Enter the NC program number you want to download. Enter the file name for storing the uploaded NC program. Enter the file name C: NCDATA O0017.PRG, for example. Check that NC program number specified by NC side is described in the file you want to call with the DNC operation.
Click the <Run> button. Refer to Procedure for Downloading an NC Program of Sample Operations for FS16/18/15/0 in B.1 DNC1, DNC2. If the value of 0 is displayed in [RESULT], the download is successful. Otherwise, it is failed
-256-
B-75044EN/02
APPENDIX
D. DNC1
2 3 4
From the [Station Address] combo box, choose the station address of the NC. If the selected NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Enter the file name for storing the uploaded NC program. Enter the file name C: NCDATA O0017.PRG, for example. Check that NC program number specified by NC side is described in the file you want to call with the DNC operation.
Click the <Run> button. Refer to Procedure for Uploading an NC Program of Sample Operations for FS16/18/15/0 in B.1 DNC1, DNC2. If the value of 0 is displayed in [ RESULT], the upload is successful. Otherwise, it is failed
-257-
D. DNC1
APPENDIX
B-75044EN/02
The DNC1 operation will be executed directly without checking the PMC ladder. If the NC unit is ready for the DNC operation, click the <Yes> button.
4 5
From the [Station Address], choose the station address of the NC. If the selected NC is not any of FS15-MA/TA, and FS15-MB/TB, the DNC operation cant be executed by using the Dnc1Test. In this case, click the <Close> button.
6 7
executed, the tool post number cant be specified. Enter the NC program number you want to call with the DNC operation. For example, if you want to call the NC program number O0017, enter 0017 or 17. 8 9 Enter the name of the file to be transferred. Enter the file name C: NCDATA O0017.PRG, for example. Click the <Run> button. successful. Otherwise, it is failed. -25810 If the value of 0 is displayed in [RESULT], the DNC operation is
B-75044EN/02
APPENDIX
D. DNC1
3 4 5 6 Operating NC 7
From the [Station Address], select the station address of the NC. Enter 0 for the tool post number. Enter the file to be transferred. Enter the file name C: NCDATA O0017.PRG, for example. Click the <Run> button. Refer to item 10 to 12 of Procedure for DNC Operation of Sample Operations for FS16/18, or item 7 of Procedure for DNC Operation of Sample Operations for FS15, or item 7 to 9 of Procedure for DNC Operation of Sample Operations for FS0 in B.1 DNC1, DNC2. If the DNC operation can be executed, the tool post number cant be specified.
Using Dnc1Test 8 The value of 0 is displayed in [RESULT] if the DNC operation is successful. Otherwise, it is failed.
-259-
APPENDIX
B-75044EN/02
Change the NC mode to MEMORY. Click the <Select> button in the main screen.
3 4 5
From the [Station Address] combo box, choose the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Enter the NC program number you want to select. For example, if you want to select the NC program number O0017, enter 0017 or 17.
6 7
Click the <Run> button. If the value of 0 is displayed in [RESULT], the selection is successful. Otherwise, it is failed.
Deleting NC Program
Using Dnc1Test 1 Click the <Delete> button in the main screen.
-260-
B-75044EN/02
APPENDIX
2 3 4
D. DNC1
From the [Station Address] combo box, choose the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Enter the NC program number you want to delete. For example, if you want to delete the NC program number O0017, enter 0017 or 17.
5 6
Click the <Run> button. If the value of 0 is displayed in [RESULT], the deletion is successful. Otherwise, it is failed.
External Reset
Using Dnc1Test 1 Click the <External Reset> button in the main screen.
2 3 4 5
From the [Station Address] combo box, click the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Click the <Run> button. If the value of 0 is displayed in [RESULT], the reset is successful. Otherwise, it is failed.
Cycle Start
Operating NC 1 Using Dnc1Test 2 Click the <Cycle Start> button in the main screen. Change the NC mode to MEMORY.
-261-
D. DNC1
3
APPENDIX
B-75044EN/02
The cycle start operation will be executed directly without checking the PMC ladder. If the NC unit is ready for the cycle start, click the <Yes> button.
4 5 6 7
From the [Station Address] combo box, click the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Click the <Run> button. If the value of 0 is displayed in [RESULT], the start is successful. Otherwise, it is failed.
List of NC Programs
Using Dnc1Test 1 Click the <Directory> button in the main screen.
2 3 4 5
From the [Station Address] combo box, click the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Enter the name of file which the list is saved in. Enter the file name C: NCDATA NC01.DIR, for example. Click the <Run> button. -262-
B-75044EN/02
APPENDIX
6 7
D. DNC1
If the value of 0 is displayed in [RESULT], the reading of the list is successful. Otherwise, it is failed. On successful, the list of NC programs was written in the file. The following is the contents of the file.
2 3 4
From the [Station Address] combo box, select the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. Enter the NC program number of information you want to read. For example, if you want to read the information of the NC program number O0017, enter 0017 or 17.
5 6
Click the <Run> button. If the value of 0 is displayed in [RESULT], the reading of the information is successful. Otherwise, it is failed.
-263-
APPENDIX
B-75044EN/02
2 3 4
From the [Station Address] combo box, select the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. To read the variable data, enter the parameters in [Function Code], [Big Class], [Middle Class], [Small Class], [Data Type], [Data Length], and [Data Amount]. If you want to express the parameter in hexadecimal, the parameter value must be preceded &H. For example, the hexadecimal value of 33 must be specified by &H33.
For more information about the function code, the big class, the middle class, the small class, the data type, the data length, and the data, refer to Appendix 1 DNC1 DATA Function Details of FANUC SYSTEM FMODEL D Mate PROGRAMMING MANUAL B-75013E-2 (from here on referred to as Programming manual).
6 7
Click the <Run> button. If the value of 0 is displayed in [RESULT], the reading of the variable data is successful. Otherwise, it is failed.
-264-
B-75044EN/02
APPENDIX
D. DNC1
2 3 4
From the [Station Address] combo box, select the station address of the NC. If the specified NC unit is the multi-path system, enter the tool post number. If not so, you dont need to enter it. To write the variable data, enter the parameters in [Function Code], [Big Class], [Middle Class], [Small] Class], [Data Type], [Data Length], and [Data Amount]. If you want to express the parameter value in hexadecimal, the parameter value must be preceded &H. For example, the hexadecimal value of 33 must be specified by &H33.
For more information about the function code, the big class, the middle class, the small class, the data type, the data length, and the data amount, refer to Appendix 1 DNC1 DATA Function Details of the Programming manual.
If you want to write more than one variable data, separate each value by a space character. For example, if you want to write the PMC data values of 7, 17 and 23, the character string 7 17 23 must be specified in the [Data] text box.
7 8
Click the <Run> button. If the value of 0 is displayed in [RESULT], the writing of the variable data is successful. Otherwise, it is failed.
-265-
APPENDIX
B-75044EN/02
2 3 4
From the [Station Address] combo box, select the station address of the NC. Click the <Run> button. If the value of 0 is displayed in [RESULT], the reading of the NC identification is successful. Otherwise, it is failed.
Notice of Alarm
Operating NC 1 Set up the NC parameters which enable to notify the NC alarm to a computer. For more information, refer to the Clause 7.2.6 FANUC SYSTEM FMODEL D Mate CONNECTION /MAINTENANCE MANUAL B75013E (from here on referred to as Connection/maintenance manual). Using Dnc1Test 2 Click the <Notice of Alarm> button in the main screen.
B-75044EN/02
APPENDIX
Operating NC 4 Using Dnc1Test 5 Force the NC to raise an alarm.
D. DNC1
If the value of 0 is displayed in [RESULT], the notice of alarm is successful. Otherwise, it is failed.
Notice of Status
Operating NC 1 Set up the NC parameters which enable to notify the NC status to a computer. For Using Dnc1Test 2 Click the <Notice of Status> button in the main screen. more information, refer to the Clause 7.2.6 of the Connection/maintenance manual.
Force the NC to change a status. If the value of 0 is displayed in [RESULT], the notice of status is successful. Otherwise, it is failed.
-267-
D. DNC1
APPENDIX
B-75044EN/02
D.7
Dnc1LogViewer
The Dnc1LogViewer is the software for displaying the status of the DNC1 board and the DNC1 communication. You dont need to use the Dnc1LogViewer in usual operation. If an error is occurred in the DNC1 board, you can check the status of the DNC1 board and the contents of the DNC1 communication by using the Dnc1LogViewer program. You can also check the status by seeing the green LEDs on the DNC1 board. Refer to D.8 Maintenance information of DNC1 board for more information.
Starting Dnc1LogViewer
1 2
Double-click the [Dnc1LogViewer] program in the [DNC1 Tools] group dialog. The following Dnc1LogViewer screen will appear.
-268-
B-75044EN/02
APPENDIX
D. DNC1
Finishing Dnc1LogViewer
1 Click the [Exit] command in the main screen.
Initializing Dnc1LogViewer
1 Click the [SetUp] command in the main menu.
If the massage Dnc1LogViewer finished to initialize is displayed, the initialization is successful. Otherwise, it is failed. In such case, it is possible that the DNC1 driver is not running. Confirm that the DNC1 driver is running correctly.
-269-
APPENDIX
B-75044EN/02
The DNC1 Log shows the status of the DNC1 communication. 1 Click the [Get Dnc1Log] command of the [File] menu in the main screen.
3 4
Enter the name of file for saving the DNC1 log. Enter the file name C: NCDATA TMP1.LOG, for example. Click the <Run> button. The contents of DNC1 log is shown like this.
-270-
B-75044EN/02
APPENDIX
D. DNC1
-271-
D. DNC1
3 4
APPENDIX
B-75044EN/02
Enter the name of file for saving the contents of the DNC1 dump. Enter the file name C: NCDATA TMP1.DMP, for example. Click the <Run> button. The contents of DNC1 dump is shown like this.
-272-
B-75044EN/02
APPENDIX
D. DNC1
D.8
(0) LED Indicators ? :OFF, :ON , D :Blinking, b :Dont care (1) Power-up state (Green LEDs)
No. Software LEDs Status of DNC1 board
?? ?? ? ?D
?b ?D ?b D ? bD
Running in normal
-273-
D. DNC1
APPENDIX
(3) LED state when an error is occurred (Green LEDs)
No. Software LEDs
B-75044EN/02
D? ?D
On initializing, the SRAM test is failed. (The RAM on the DNC1 board is possible to be damaged.)
b bb ?? bD
An error is occurred in DNC1 board. To know the cause of failure, see the DNC1 log and the DNC1 dump by using the Dnc1LogViewer screen. Refer to D.7 Dnc1LogViewer for details.
(4)
No. 1
(5)
No.
?? ?? ?? ? ? ?? ?? ? ? ?? ?? ?? DD DD
LED test
LED test
LED test
(Running diagnosis )
Diagnosis is complete
-274-
B-75044EN/02
APPENDIX
(6)
No.
D. DNC1
?? ?D ?D ?? ?? D? D? ?? ?D ?D ?? DD D? ?D ?D D? DD ?? ?D DD DD ?D
The Channel-A internal loop-back test is failed. The Channel-A external loop-back test is failed. The Channel-B internal loop-back test is failed. The software interrupt test is failed.
10
11
-275-
D. DNC1
APPENDIX
B-75044EN/02
D.9
Name DNC1 interface board DNC1 loopback connector DNC1 tap DNC1 optical adapter B DNC1 optical adapter C DNC1 terminator External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable External optical fiber cable
Figure No. A20B-8100-0070 A13B-0156-C201 A13B-0156-C100 A13B-0156-C300 A13B-0156-C301 A13B-0156-C200 A66L-6001-0009#L2R03 A66L-6001-0009#L3R03 A66L-6001-0009#L4R03 A66L-6001-0009#L5R03 A66L-6001-0009#L10R03 A66L-6001-0009#L15R03 A66L-6001-0009#L20R03 A66L-6001-0009#L30R03 A66L-6001-0009#L40R03 A66L-6001-0009#L50R03 A66L-6001-0009#L60R03 A66L-6001-0009#L70R03 A66L-6001-0009#L80R03 A66L-6001-0009#L90R03 A66L-6001-0009#L100R03
Remarks
Electrical interfaces 3 Electrical interfaces 3 Optical interface 1 Electrical interfaces 1 Optical interface 2 Cable lead length = 2m Cable lead length = 3m Cable lead length = 4m Cable lead length = 5m Cable lead length = 10m Cable lead length = 15m Cable lead length = 20m Cable lead length = 30m Cable lead length = 40m Cable lead length = 50m Cable lead length = 60m Cable lead length = 70m Cable lead length = 80m Cable lead length = 90m Cable lead length = 100m
NOTE Optical fiber cable cannot be cut or connected by the machine tool manufacturer. Be sure to use only the above pre-cut and preconnected cables.
-276-
B-75044EN/02
APPENDIX
D. DNC1
D.10
Optical connector
Protecting the Optical Connector and Optical Fiber Cable (when not used)
-277-
D. DNC1
APPENDIX
B-75044EN/02
(B) Optical fiber cable Though the reinforcing sheath section used for the optical fiber cable is sufficiently mechanically strong, take care not to drop heavy objects on it. When connecting or disconnecting the optical connector, hold it by its connector. Do not connect or disconnect the connector holding it directly by its cord. After the optical connector is connected it is automatically locked by the lock lever on its top surface to prevent it from becoming disconnected by the connector being pulled. For this reason, before you disconnect the optical connector, first unlock the lock lever. The optical connector is also designed so that it cannot be inserted in the opposite direction. Before you insert the connector, make sure that it is facing the correct direction.
When you lay optical fiber cable, pre-treat the optical connectors as shown below. Pull the reinforcing sheath section out onto a wire w/ hook or tension member as shown in the figure. Be careful to prevent tension force from being applied to the optical connector.
Optical connector
Optical connector
Tension member
Protecting the Optical Connector and Optical Fiber Cable (when laid)
-278-
B-75044EN/02
APPENDIX
D. DNC1
Fasten the reinforcing sheath section to the cable clamp so that the weight of the optical fiber cable is not directly applied on the connecting section of the optical connector.
Cable clamp (sponge filling) Recommended part: CKN-13SP made by Kitagawa Kogyo Ltd.
Optical connector
Optical connector
-279-
D. DNC1
APPENDIX
B-75044EN/02
D.11
MAINTENANCE INFORMATION
COP1
LED1
LED5
JD5
-280-
B-75044EN/02
APPENDIX
D. DNC1
7.62
106.17
2.90
170.78
15 *CS 16 17 18 RT
08
TT
01 10 08 18 05 14
SD RD TT RT RS CS
09 *TT 10 RD
02 *SD 03 TR
11 *RD 12 DM 13 *DM
04 *TR 05 RS
19 *RT 20
06 *RS 07 SG
Recommended connector Made by Honda Tsushin MR-20FH (20-pin, female) MR-20NSB (case)
-281-
ADDITIONAL INFORMATION
Page
CABLE LENGTH..................................................................................................................... 10 CONFIGURATION FOR DUSTPROOF CABINET MODEL OF F-D MATE...................... 11 SHIELDING AND GRANDING.............................................................................................. 12 SPECIFICATIONS OF OPTICAL TAP................................................................................... 14
2.6.1 2.6.2 2.6.3 2.6.4 Setting Switch and LEDs ...............................................................................................................15 Interface of Power Supply..............................................................................................................17 Specification of Power Cable, Housing and Contact......................................................................17 Specification of Optical Cable .......................................................................................................17
2.7
In this manual we have tried as much as possible to describe all the various matters. However, we cannot describe all the matters which must not be done, or which cannot be done, because there are so many possibilities. Therefore, matters which are not especially described as possible in this manual should be regarded as "impossible".
1. OUTLINE
B-75044EN/02
OUTLINE
The optical tap is an adapter used in the FANUC-developed high-speed network DNC1 (connection mode 1). It connects two taps and a node using optical fiber cable.
-2-
B-75044EN/02
2. SPECIFICATION
SPECIFICATION
(ALSE REFER TO FANUC DNC1 SPECIFICATION - B-61782E) There are three types of DNC1 optical tap - "OPT-TAP A", "OPT-TAP B" and "OPT-TAP C". electrical interface. Use a shielded twisted-pair cable to connect a tap with another tap or a tap with a primary station or secondary station. In the following text, the shielded twisted-pair cable is referred to as an electric cable.
Type of Optical tap Interface Function
electrical interface and "TAP" means a DNC1 optical tap or a tap for the
NOTE 1 2 "OPT-TAP A" and "OPT-TAP B" has three electrical interface each other. These three interface has same function. "OPT-TAP C" has two optical interface and these interface are different. Connect the "COP1" to the primary tap and connect the "COP2" to secondary tap.
: Terminating resister unit : Power supply unit (DC+24V 0.3A) : Electric tap
Fig.1 Symbols
-3-
2. SPECIFICATION
B-75044EN/02
2.1
-4-
B-75044EN/02
2. SPECIFICATION
2.2
2.2.1
Fig.3 Extension between primary station and secondary station The "OPT-TAP A" must be set on the primary station side and the "OPTTAP B" must be set the secondary station side.
-5-
2. SPECIFICATION
B-75044EN/02
2.2.2
Fig.4 Extension between secondary stations The "OPT-TAP A" must be set on the primary station side of the transfer path.
-6-
B-75044EN/02
2. SPECIFICATION
2.2.3
Fig.5 Extension of the branch cable The "OPT-TAP A" must be set on the primary station side (the trunk cable side) and the "OPT-TAP B" must be set on the secondary station side.
-7-
2. SPECIFICATION
B-75044EN/02
2.2.4
-8-
B-75044EN/02
2. SPECIFICATION
-9-
2. SPECIFICATION
B-75044EN/02
2.3
Fig.9 Cable length when optical taps are used (2) -10-
B-75044EN/02
2. SPECIFICATION
2.4
-11-
2. SPECIFICATION
B-75044EN/02
2.5
Shielding is to peel off the portion of the cable sheath to expose the shield layer inside and fix the exposed shield layer to the ground plate using cable clamps. An electric cable is a shielded twisted-pair cable used to connect a tap, CNC, or F-D Mate to a tap or optical tap. For information on the cable clamps and ground plate, refer to the connection manual of the CNC or F-D Mate.
Cable
Shield layer
Fig.11 Shielding Connect the frame grounds of the CNCs and F-D Mate to which electric cables are connected using a ground wire with a cross-sectional area of 5.5 mm2 or more. Notice, however, that when two devices are connected via an optical tap, their frame grounds should not be linked. For example, in Fig.4, the frame grounds of the primary station and secondary station #1 and #2 are linked using a ground wire. Secondary stations #3 and #4 are alse linked, while no frame ground connection is provided between stations #2 and #3.
-12-
B-75044EN/02
2. SPECIFICATION
Connect an optical tap to the frame ground using a ground wire with a cross sectional area of 5.5 mm2 or more (Class 3 or higher grounding).
-13-
2. SPECIFICATION
B-75044EN/02
2.6
Item Ordering number
Note : Optical tap operation modes A and B can be switched using the switch on the printed circuit board. Power Supply +24VDC to each optical tap. Voltage : +24VDC +10%, -15% Current : 0.3A max (excluding surge currents) Turn on the power of optical taps at the same time the power of the primary and secondary station is turned on. Refer note 4) and note 5) External dimensions Mounting method Environmental conditions Setting Use the swicthes on the P.C.B. 190 150 50mm W H D Install an optical tap contained in a special unit inside the power magnetics cabinet Ambient temperture : 0 to 60C Relatice humidity : 5 to 75% (Condensation shall not occur.) Vibration : 0.5 G or less Type A B switch SW1 SW2 C SW1 Function Switch the transfer rate between 460.8kbps and 230.4kbps. Switch the operation mode between A and B. Switch the transfer rate between 460.8kbps and 230.4kbps. Refer Fig.15 Refer Fig.16
-14-
B-75044EN/02
2. SPECIFICATION
2.6.1
(1)
(2)
(3)
(4)
LED
Switch SW1
Switch SW2
Fig.13 Switches and LEDs of "OPT-TAP A" and "OPT-TAP B" Functions of LEDs
LED (1) (2) (3) (4) Name P5 BUSY B 460K Functions Pilot LED Power is supplied Receive the data frame from optical interface "OPT-TAP B" is selected by the switch SW2 460.8kpbs is selected by the switch SW1
Setting switches
Switch the transfer rate SW1 Switch the operation mode SW2
460.8kbps
230.4kbps
-15-
2. SPECIFICATION
2) In the case of "OPT-TAP C"
B-75044EN/02
(1)
(2)
(3)
(4)
LED
Switch SW1
Setting switch
Switch the transfer rate SW1
230.4kbps
460.8kbps
-16-
B-75044EN/02
2. SPECIFICATION
2.6.2
Power can be supplied from both Y type connector and X type connector. Basically, please supplid from Y type connector.
2.6.3
Material of cable : Vintyl wire (16 to 20 AWG) Determine the length of the wire so that the rated power voltage is achieved at the receiving end. Taking into account voltage drop due to the resistance of the wire and power fluctuation.
2.6.4
A66L-6001-0009#L100R3
Minimum length :
1m
-17-
2. SPECIFICATION
B-75044EN/02
2.7
30
90 150
160
90
4-M4
-18-
B-75044EN/02
INDEX
A
DNC1 BOARD, OPTICAL FIBER CABLE AND OPTICAL CONNECTOR SPECIFICATIONS 276 DNC1, DNC2 1 167 171 13 76 75 74 49 30 DNC1/ETHERNET Dnc1HardTest Dnc1LogViewer Dnc1Test DNC2, Reader/Puncher Download Settings for Machine 200 213 246 268 251 27 43
About FA SYSTEM for PC About Log Message About Log Viewer ABOUT NC PROGRAM FORMAT About Sample Program About Starting Applications You Have Developed About the Development Language of the Application Program About The NC PROGRAM MANAGEMENT Window Adding Internet Service
E
EDIT LIST FILE SCREEN OPERATIONS 180 183 97 162 104 214 123 114 Editing List Files
B
Browsing, Editing and Creating New Files 58
End of Communication Process < F_TerminateCommunication > * End of FA LIBRARY < F_End > End of Receiving Notice Message < F_StopNotice >
C
Canceling Computer Start Download < F_DownloadCancel > Canceling Computer Start Upload < F_UploadCancel > Communication Settings for Machine Computer Start DNC Operation < F_Dnc... > Conditions for using the DNC1 driver Confirmation of Communication < F_IsOpen > Confirmation of DNC1 Connection < F_ConfirmDnc1 > Copying, Moving, Deleting and Renaming Files Cycle Start < F_Start > 157 158 38 153 239 99 124 56 115
Error Code Establishing DNC1 Connection < F_EstablishDnc1 > External Reset < F_Reset >
F
FA LIBRARY For Setting FA SYSTEM for PC Freeing Descriptor ID < F_FreeID > 71 31 160
G
General Settings for Machine 36 104 161 106 102 100 Getting Descriptor ID of Notice Message < F_GetNoticeID > Getting Error Code < F_GetLastError > Getting Information about Machine < F_GetMachineInfo > Getting List of Communicating Machines < F_GetOpenMachineNumber > Getting List of Registered Machine Numbers <F_GetAllMachineNumber >
D
Deleting NC Program in NC < F_Delete > Details of List File Extended Transfer Function Details of List File Separate Transfer Function 117 21 20
Details of Subprogram Extended Transfer Function 17 Details of Subprogram Separate Transfer Function DIAGNOSIS AND OTHER SERVICES DNC1 16 159 23, 26
INDEX Getting Number of Data < F_GetCount > Getting Result of Asynchronous Treatment < F_Response > Getting the Notice Message of the File Transfer < F_CopyNoticeFileTransfer > 159 161 105 Reader/Puncher
B-75044EN/02
R
205 126 135 120 119 148 144 140 128 5 107 Reading Alarm Information < F_ReadAlarm > Reading Custom Macro Variable < F_ReadCustomMacroVariable > Reading List of NC Program in NC < F_AllFileDirectory > Reading NC Identification < F_Identify > Reading NC Parameters < F_ReadParameter > Reading PMC Data < F_ReadPMCData >
H
How to Read the Library Function 73
I
Initialization Processing < F_Begin > 159
L
LIST FILE MANAGEMENT List File Monitor Operations 179 190
Reading Tool Life Management Information < F_ReadToolLife > Reading Tool Offset < F_ReadToolOffset > Relation between FA SYSTEM for PC and Protocols REQUEST SERVICE
LIST FILE MONITOR SCREEN OPERATIONS 189 LIST FILE TRANSFER FUNCTION List File Transfer Monitor and Control Functions LOG LIBRARY Log Viewer Log Server 18 21 163 167 177
S
Sample of NC Parameter Settings Sample Operation for NC Saving and Restoring Settings Selecting NC Program in NC < F_Select > 195 199 45 116 66 72 29 177 69 241 29 240 23 98 96 103 34 165 99 180
M
Machine Information Settings MAINTENANCE INFORMATION MAINTENANCE INFORMATION OF DNC1BOARD Moving Offset Location of Data < F_Seek > 35 280 273 160
Selecting the NC Program on the PC Service Type Setting FA SYSTEM for PC Setting log creation ON/OFF Setting Options Setting up DNC1 Driver Setting up TCP/IP
N
NC PROGRAM MANAGEMENT 47
Setting up the DNC1 Board Setup Start of Communication < F_Open >
O
Observation of FA SYSTEM for PC 166
Start of Communication Process < F_CreateCommunication > * Start of Receiving Notice Message < F_StartNotice > Starting and Stopping the Communication Process Starting LogServer < F_InvokeLogServer > Stop of Communication < F_Close > Structure of Edit List File Screen
P
PRECAUTIONS WHEN HANDLING RELATED PARTS 277
i-2
B-75044EN/02
Structure of List File Monitor Screen SUBPROGRAM TRANSFER FUNCTION System Configuration System Requirements SYSTEM REQUIREMENTS FOR DNC1 BOARD System Service
U
Upload Settings for Machine Uploading NC Program Requested by Computer < F_Upload... > Using Log Viewer Using NC PROGRAM MANAGEMENT 44 111 172 49
T
Terminating LogServer < F_TerminateLogServer > The Contents of Log File The Contents of Transmission Log File Transmitting an NC Program Transmitting by Operating NC PROGRAM MANAGEMENT Transmitting by Operating NC Side Transmitting by Using FA LIBRARY TRANSMITTING NC PROGRAM 165 170 169 61 7 10 8 7 Work with the File List
W
Work with the Directory List 54 51 138 151 146 132
Writing Custom Macro Variable < F_WriteCustomMacroVariable > Writing NC Parameters < F_WriteParameter > Writing PMC Data< F_WritePMCData > Writing Tool Offset < F_WriteToolOffset >
i-3
Revision Record
FANUC FA SYSTEM for PC OPERATORS MANUAL (B-75044EN)
Addition of
02
01
Edition
Date
Contents
Edition
Date
Contents
TECHNICAL REPORT
FA Network Development Office FANUC FA System for PC Windows NT Version Operators Manual
1. Communicate this report to: Your information GE Fanuc-N, GE Fanuc-E FANUC Robotics CINCINNATI MILACRON Machine tool builder Sales agency End user
Summary for Sales Document (Sales guide, Functional comparison list etc.)
Notice This is an additional document to the FANUC FA System for PC Windows NT Version Operators Manual B-75044EN/02.
Registration of Order List data (In case of Order List) Type of data Lotus 123/WinOasys
Original section of issue Developmen Person in Chief t Manager Change
IDE
FANUC FA System for PC Windows NT Version (Additional document for Version 2.3)
1. Type of applied technical documents Name Spec No. Version FANUC FA System for PC WindowsNT OPERATORS MANUAL / B-75044EN/02
2. Summary of Change New.Add Correct, Delete Add 3 funtions to DNC1/Ethernet Add Fixing problems Add Limitations Name / Outline Applicable Date Immediate
Correction
Another
TITLEFANUC
FA System for PC Windows NT Operators manual (Additional document for Version 2.3)
B-75044EN/02-1
CUST. SHEE
01
EDIT
000626
DATE
matsukura
DESIG. DESCRIPTION
DRAW. NO.
F A N U C
LTD
1/ 2
FANUC FA System for PC Windows NT Version Operators Manual (Additional document for Version 2.3) 1. Outline FA System for PC Windows NT Version was updated to version 2.3. This document describes modification of version 2.3. 2. Updates 2.1. Additional functions to DNC1/Ethernet communication The following functions are added to DNC1/Ethernet communication. These function are described To be support in the FA System for PC Operators manual B75044EN/02. External Reset ( F_Reset(Ex)Reset(Ex) ) Cycle Start ( F_Start(Ex)Start(Ex) ) Reading Tool Life Management ( F_ReadToolLife(Ex)ReadToolLife(Ex) ) 3. Fixing problems The following problems have been modified. a) The error 0xfba3 was occurred when you read or write FS-15B's PMC-N/NB/NB2 area by DNC1 communication. b) If the DLL, which should be copied by installer, is used by another program, installer couldn't install this software. c) Incorrect PC's file data was displayed on NCs floppy cassette directory menu. It occurred when the file is opened at PC with exclusive mode. d) The error 0x60503 occurred on PC when reading NC's directory by DNC1/Ethernet. This problem is influenced by numbers of file at NC memory. e) In Machine setting menu, "Not wait DR signal of NC off" setting for reader/puncher communication didn't work. 4. Limitations 4.1. Communication with FS15i a) It is not available to communicate with FS15 i /150 i. 4.2 DNC1 communication with FS16 i /160 i, 18 i /180 i, and 21 i /210 i. a) With 1CPU2PATH option, it is not available to read or write path 1 and 2. b) With 2CPU3PATH option, it is not available to read or write path 1, 2 and 3. c) With 1CPU1PATH basic option, it is not available to read or write PMC-SB6's T, K, C and D area. 4.3. Operation system It is available for Windows NT 4.0 with Service Pack 5 or later. It is not available for Windows 95/98 and Windows 2000.
TITLEFANUC
FA System for PC Windows NT Operators manual (Additional document for Version 2.3)
B-75044EN/02-1
CUST. SHEE
01
EDIT
000626
DATE
matsukura
DESIG. DESCRIPTION
DRAW. NO.
F A N U C
LTD
2/ 2
2. Summary of Change Group Name/Outline New Add Correct Delete Applicable Date October, 2004
The setting procedures of FA library (A08B-9510-J512) Add Basic Function for DNC1 and DNC2 on Windows XP/2000 have been added. Please read this technical report instead of Chapter 1.1, 1.2 and 2 of manual (B-75044EN/02).
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
1/62
OVERVIEW ........................................................................................................................................................ 4
Update from FA library for Windows version 1. 0 ................................................................................... 4 Comparison with FA library for Windows version and FA library NT version ..................................... 4 The contents of change from B-75044EN/02 ............................................................................................ 5 Software constitution of FA library .......................................................................................................... 5
RELATION BETWEEN FA LIBRARY AND PROTOCOLS ............................................................................ 8
2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.3 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.5 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6
CNC .................................................................................................................................................................. 10
RS-232-C (Reader/Puncher interface) connection .................................................................................. 10 DNC1/Ethernet connection ..................................................................................................................... 10 DNC1 connection ..................................................................................................................................... 14 DNC2 connection ..................................................................................................................................... 16
PERSONAL COMPUTER / HARDWARE ...................................................................................................... 18
Computer.................................................................................................................................................. 18 RS-232-C (Reader/Puncher interface) connection ................................................................................. 19 DNC1/Ethernet connection ..................................................................................................................... 20 DNC1 connection ..................................................................................................................................... 21
PERSONAL COMPUTER / SOFTWARE........................................................................................................ 22 SETUP .............................................................................................................................................................. 23
Install the TCP/IP protocol service ......................................................................................................... 23 Setting the TCP/IP................................................................................................................................... 24 Installation of FA library......................................................................................................................... 25 Contents automatically registered into a TCP/IP SERVICE file........................................................... 30 Uninstall................................................................................................................................................... 32 Setting up DNC1 driver (WindowsXP) ................................................................................................... 33 Setting up DNC1 driver (Windows2000) ................................................................................................ 42 How to use FA library with WindowsXP Professional SP2 ................................................................... 47
STARTING AND STOPPING THE COMMUNICATION PROCESS .................................................................................. 50 SYSTEM CONFIGURATION.......................................................................................................................... 51
Machine Information Settings ................................................................................................................ 51 General Settings for Machine ................................................................................................................. 52 Communication Settings for Machine .................................................................................................... 53 Download Settings for Machine .............................................................................................................. 59 Upload Settings for Machine................................................................................................................... 61 Saving and Restoring Settings ................................................................................................................ 61
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
2/62
ABOUT FA LIBRALY
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
3/62
1.1
1.1.1
OVERVIEW
This document describes about FANUC FA library for Windows, A08B-0510-J512, version 1. 0.
1.1.2
Items
PC's Operation System PC's Development environment Communication Interfece for CNC Setting menu operation FA library functions
Windows XP Professional + ServicePack 1 or 2 Windows NT4. 0 Workstation + ServicePack 6 Windows 2000 Professional + ServicePack 4 Microsoft Visual C++ 6. 0 / Basic 6. 0 Microsoft Visual C++ 97 / Basic 97 + ServicePack 3 + ServicePack 5 Reader/Puncher interface, DNC1/Ethernet DNC1, DNC2 The operation method is the same. The screen for checking the communication state of DNC1/Ethernet was added to FA library for Windows. Compatible (Re-link is required)
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
4/62
1.1.3
1.1.4
Software constitution
Function of FA library (A08B-9510-J512) Machine Configuration User-Application developed by a customer Personal Computer
FA library functions
Communication process
Reader/Puncher
DNC1/Ethernet
DNC1
DNC2
RS-232-C
Ethernet
DNC1
RS-232-C
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
5/62
Reader/Puncher
Reader/Puncher interface is the input/output function of an NC that 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 operator's manual and "RS-232-C/RS-422 INTERFACE CONNECTING MANUAL (B-60043E)" for details of Reader /Puncher. An extension RS-232-C board, AccelePort XP, Digi international, is necessary. RS-232-C Extension Board
NC PC
NC
NC Up to 8(NOTE)
DNC1/Ethernet
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. Use a third-party computer Ethernet Board.
Ethernet Board NC PC NC
NC Up to 64
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
6/62
DNC1
DNCl is a private network developed by FANUC. FA SYSTEM for PC is compatible with. "Model1" of DNC1 protocol. Modele1 enables multi-point communication where a computer acts as the primary station and controls multiple NCs. A computer can be connected with a maximum of 16 NCs by DNCl. DNC1 Board is suppljed by FANUC DNC1 board NC PC NC
NC Up to 16
DNC2
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. An extension RS-232-C board, AccelePort XP, Digi international, is necessary. RS-232-C Extension Board
NC
NC Up to 8(NOTE)
connected to one computer by using the RS-232-C adapter board. It is the sum of NCs communicated with DNC2 and Reader/puncher.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
7/62
1.2
No 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Launch (*1)
Function Downloading NC program to NC memory Uploading NC program to NC memory Informs the start and completion of download required by NC Informs the start and completion of upload required by NC Display NC program lists to CNC screen Downloading NC program to NC memory Uploading NC program to NC memory Selecting and deleting an NC program in the NC memory Reading the NC program list in the NC memory Reading the alarm information Reading variables Reading and writing NC parameters Reading and writing PMC data Reading the tool life data Reading the system identify of an NC External reset Cycle start and writing the
DNC1/ Ethernet X X X X X O O O O O O O O O O O O
DNC1 X X X X X O O O O O O O O O O O O
DNC2 X X X X X O O O O O O O O O O O O
NC
PC
NOTE 1 Launch NC : Executed by CNC operation PC: Executed by program in PC which developed by FA library 2 When you uses the Reader/Puncher for some old types of NCs, optional parameters. it is impossible to use several above functions, or it is necessary to add NC
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
8/62
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
9/62
2.1
2.1.1
CNC
This chapter describes about CNCs that can be connected by FA library.
2.1.2
DNC1/Ethernet connection
An Ethernet is required for the following CNCs: Series 16i -MODEL A/B, Series 160i -MODEL A/B Series 18i -MODEL A/B, Series 180i -MODEL A/B Series 21i -MODEL A/B, Series 210i -MODEL A/B Power Mate i -MODEL D/H NOTE 1 2 3 Cannot connect when the 8-digit program number option is used. Can be used with one-path or two-path control CNC. Cannot be used with three-path control CNC. When FA library is operated, one FOCAS1/Ethernet client is used on each CNC.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
10/62
No 1
Control Software
11
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
11/62
Ethernet boards or DATA SERVER boards and required options (2/2) No Name Fast Ethernet board for LCD-mounted 13 14 15 16 17 18 19 20 type CNC Fast Ethernet board for stand-alone type CNC ATA FAST DATA SERVER for LCD-mounted type CNC ATA FAST DATA SERVER for stand-alone type CNC RISC+ATA FAST DATA SERVER for 21 stand-alone type CNC Embedded Ethernet for LCD-mounted 22 type CNC and stand-alone type CNC Embedded Ethernet for LCD-mounted 23 type CNC and stand-alone type CNC (*7) 24 Fast Ethernet Board Power Mate i -D/H A02B-0259-J293 A02B-0259-J862 (*4) A02B-0259-J847 (*5) A02B-0259-J555 #6567 FS 21i -TB/MB Not required (*7) FS 16i /18i -TB/MB Not required (*6) A02B-0281-J571 #656A Applicable model FS 16i /18i /21i -TA/MA FS 16i /18i /21i -TB/MB FS 16i /18i /21i -TA/MA FS 16i /18i /21i -TB/MB FS 16i /18i /21i -TA/MA FS 16i /18i /21i -TB/MB FS 16i /18i /21i -TA/MA FS 16i /18i /21i -TB/MB FS 16i /18i -MA FS 16i /18i -MB Drawing Number A02B-0236-J293 A02B-0281-J293 A02B-0265-J293 A02B-0281-J299 A02B-0236-J140 A02B-0281-J146 A02B-0265-J140 A02B-0281-J149 A02B-0265-J157 A02B-0281-J161 A02B-0281-J162 (*3) A02B-XXXX-S707 (*1) CNC option A02B-XXXX-S707 (*1) A02B-0207-J800 (*2) A02B-XXXX-S707 (*1) A02B-XXXX-S707 (*1) A02B-0207-J800 (*2) A02B-XXXX-S707 (*1) A02B-XXXX-S707 (*1) A02B-0207-J800 (*2) A02B-XXXX-S707 (*1) A02B-XXXX-S707 (*1) A02B-0207-J800 (*2) A02B-XXXX-S707 (*1) A02B-XXXX-S707 (*1) A02B-0207-J800 (*2) A02B-0281-J561 #6567 Control Software
12
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
12/62
(*1) A02B-XXXX-S707: Ethernet function for FS16i/18i/21i This option is required when an external board for Model A or Model B is used. Specify one of the following drawing numbers in XXXX according to the NC type: 0236 (16i TA) 0237 (16i MA) 0281 (16i TB) 0282 (16i MB) 0238 (18i TA) 0239 (18i MA) 0283 (18i TB) 0284 (18i MB) 0247 (21i TA) 0248 (21i MA) 0285 (21i TB) 0286 (21i MB)
(*2) A02B-0207-J800: Extended driver library for FS16 i /18 i /21 i This option is required when Model A is used. This option is not required for Model B, regardless of whether the embedded function or external board is used. (*3) A02B-0281-J160 is the high-speed version of A02B-0281-J158. A02B-0281-J162 is the high-speed version of A02B-0281-J161. (*4) A02B-0259-J862: Ethernet function for Power Mate i -D/H (*5) A02B-0259-J847: Extended driver library for Power Mate i -D/H (*6) When the embedded Ethernet function is used with FS16 i /18 i -TB/MB, no option is required on the CNC. (*7) When the embedded Ethernet function is used with FS 21 i -TB/MB, the main CPU board with the embedded Ethernet function needs to be specified. No option is required on the CNC. NOTE The following Ethernet-related options are not required: Basic operation package 1 A02B-0207-J810 CNC screen display function A02B-0207-J850
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
13/62
2.1.3
DNC1 connection
A DNC1 board and options is required for the following CNCs: Series 0-MODEL C, Series 15-MODEL A/B Series 16-MODEL A/B/C, Series 18-MODEL A/B/C
3 4 5 6 7 8 9 10
A02B-0094-J723 (*3)
A02B-0162-J723 (*4)
A02B-0162-J590 #60L0
A02B-XXXX-J907 (*5) A02B-XXXX-J902 (*5) A02B-XXXX-J956 (*5) A02B-XXXX-J907 (*6) A02B-XXXX-J902 (*6) A02B-XXXX-J956 (*6)
A02B-0120-J530 #B421
FS 16 -B/C FS 18 -B/C
A02B-0200-J530 #B421
(*1) A02B-XXXX-J879:DNC1 for FS 0T-C Specify one of the following drawing numbers in XXXX according to the NC type: 0098 (0 -TC) 0099 (0 -MC)
(*2) A02B-0098-J879:Assembly plate of control unit A for FS 0M-C It is not necessary to specify this one when control unit B (*3) A02B-0094-J723:DNC1 function for FS 15-A (*4) A02B-0162-J723:DNC1 function for FS 15-B
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
14/62
(*5) A02B-XXXX-J907: DNC1 function for FS16/18-A A02B-XXXX-J902: Extenal I/O device control for FS16/18-A A02B-XXXX-J956: Back ground editing for FS16/18-A Specify one of the following drawing numbers in XXXX according to the NC type 0120 (16 -TA) 0121 (16 -MA) 0130 (18 -TA) 0131 (18 -MA)
(*6) A02B-XXXX-J907: DNC1 function for FS16/18-B/C A02B-XXXX-J902: Extenal I/O device control for FS16/18-B/C A02B-XXXX-J956: Back ground editing for FS16/18-B/C Specify one of the following drawing numbers in XXXX according to the NC type 0200 (16 -TB) 0201 (16 -MB) 0222 (16 -TC) 0223 (16 -MC) 0216 (18 -TB) 0217 (18 -MB) 0228 (18 -TC) 0229 (18 -MC)
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
15/62
2.1.4
DNC2 connection
A DNC2 board and options is required for the fo1lowing CNCs: Series 0-MODEL C, Series 15-MODEL B Series 16-MODEL A/B/C, Series 18-MODEL A/B/C NOTE 1 Cannot connect when the 8-digit program number option is used. 2 Can be used with one-path control CNC. Cannot be used with three-path control CNC.
3 4 5 6 7 8 9 10
A02B-0120-J530 #B426
A02B-0130-J530 #B426
11 12 13
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
16/62
(*1) A02B-XXXX-J878: DNC2 for Series 0 A02B-XXXX-J927: Extenal I/O device control for Series 0 A02B-XXXX-J828: Back ground editing for Series 0 Specify one of the following drawing numbers in XXXX according to the NC type 0098 (0 -TC) 0099 (0 -MC)
(*2) A02B-0098-K121: Assembly plate of control unit A for FS 0M-C It is not necessary to specify this one when control unit B (*3) Only Series 15-MB can be used. (*4) A02B-0162-J600: DNC2 for Series 15 In addition to this option, a CRT display circuit option that matches the corresponding board is required. (*5) A02B-XXXX-J908: DNC2 for Series 16/18 A02B-XXXX-J902: Extenal I/O device control for Series 16/18 A02B-XXXX-J956: Back ground editing for Series 16/18 Specify one of the following drawing numbers in XXXX according to the NC type 0120 (16 -TA) 0121 (16 -MA) 0200 (16 -TB) 0201 (16 -MB) 0222 (16 -TC) 0223 (16 -MC) 0130 (18 -TA) 0131 (18 -MA) 0216 (18 -TB) 0217 (18 -MB) 0228 (18 -TC) 0229 (18 -MC)
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
17/62
2.2
2.2.1
Computer
The computer which can use FA library is as follows.
Computer
(1) CPU: Pentium(R) with 233 MHz or more is recommended. (2) Physical memory: 128MB or more (3) Virtual memory: 200MB or more (4) HDD: Following free space is required; - Drive that OS is installed - Drive to install FA library includes OS. (5) Keyboard, mouse, floppy drive and CD-ROM are required. (6) Ethernet interface Required for DNC1/Ethernet connection (7) RS-232-C extention board Required for RS-232-C, Reader/Puncher interface, connection. 30MB 20MB
50MB space is required when you install FA library to the drive that
Display
(1) Resolution: 1024 x 768 dots or more (2) Color: 16 colors or more
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
18/62
2.2.2
Example of the PC standard RS-232-C port (Please comfirm port detail by the PC manual) PC
DSUB 25pin (Female) Signal SD RD RS CS ER DR CD SG GND Pin 2 3 7 8 4 6 1 5
NC
DSUB 25pin (Male) Signal SD RD RS CS ER DR CD SG FG Pin 2 3 4 5 20 6 8 7 1
NC
DSUB 25pin (Male) Signal SD RD RS CS ER DR CD SG FG Pin 2 3 4 5 20 6 8 7 1
NOTE 1 2 3 No port on the PC can be used with Reader/Puncher. Refer to FANUC "RS-232-C/RS-422 Interface Connection Manual" (B-60043E) for detailed explanations about how to create connection cables. Transmission may stop during DNC operation, depending on the performance of the PC in use or the size of a communication buffer in the NC. Transmission may stop also depending on the way the screen is operated on. If transmission stops, decrease the communication rate or the number of units that are simultaneously subjected to DNC operation.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
19/62
2.2.3
DNC1/Ethernet connection
(1) Ethernet interface An ethernet interface is required. (2) Network configuration Specifically, please investigate whether network configuration is the same as Fig. 1, or it is the same as Fig. 2. The configuration checked here is used by [C4Server IP address] set up of "2.6.3 Communication Settings for Machine". With the network configuration of Fig. 2, it takes about 30 seconds for the FA Library to recognize that the CNC is not turned on. For example, it will take about 30 seconds for the FA library to recognize "power off error" when you read PMC data of CNC which is not turned on.
Network A
PC
NC
NC
PC Router
The PC belongs to a network separated with a router from the network to which the NCs belong.
The server PC and the NCs must belong to the same network. NC
Network B
NC
(3) Ethernet cables, HUB and electrical noise countermeasures Please refer to the following manual according to the Ethernet function of NC currently used. Ethernet function of NC FAST Ethernet Board or FAST DATA SERVER BOARD Manual name FANUC FAST Ethernet Board FANUC FAST DATA SERVER OPERATOR'S MANUAL B-63644EN/02 FANUC Series 16i/160i/160is-MODEL B FANUC Series 18i/180i/180is-MODEL B Embedded Ethernet FANUC Series 21i/210i/210is-MODEL B CONNECTION MANUAL (HARDWARE) B-63523EN/03 Ethernet Board or DATA SERVER BOARD FANUC ETHERNET BOARD FANUC DATA SERVER BOARD OPERATOR'S MANUAL B-63354EN/04 V. CONNECTION 5 CONNECTION TO CNC PERIPHERALS 5. 5 LINKING THE EMBEDDED ETHERNET INTERFACE V. CONNECTION Chapter name
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
20/62
2.2.4
DNC1 connection
Insert the DNC1 board to the personal computer. Please refer each item of the appendix about the insertion of the DNC1 board in the personal computer and the uniting method with NC. "D. 1 SYSTEMREQtJIREMENTSFORDNC1 BOARD" "D. 2 CONDITIONSFORUSINGTHEDNC1 DRIVER" "D. 3 SETTNGUPTHEDNC1 BOARD"
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
21/62
2.3
Licensing agreement
One computer can use this software.
Operating System
This software runs on following Operating System: Microsoft Windows XP Professional ServicePack 1 or 2 Microsoft Windows 2000 Professional ServicePack 4
Development environment
In order to create your application program by FA library, the following development environment is required. Microsoft Visual C++ 6. 0 Service Pack 5 Microsoft Visual Basic 6. 0 Service Pack 5 NOTE 1 2 This software cannot install to PC that FANUC CIMPLICITY i CELL has been installed in. When you develop an application program by Visual C++, cannot link to FA library. 3 The following Ethernet-related software products are not required: - FOCAS1/Ethernet library (A02B-0207-K732) - Basic operation package 1 (A02B-0207-K752) - CNC screen display function disk (A02B-0207-K772) C++ programming is required. The application that is programmed by C
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
22/62
2.4
2.4.1
SETUP
This part describes the setting of FA library.
Checking on localhost
The term localhost is a special host name used by the TCP/IP protocol to indicate the host of interest. It is registered automatically when Windows is installed. Deleting this setting hampers the normal operation of FA library. Before installing the system described in this manual, check whether localhost has been registered in the hosts file. Supposing that Windows is installed in the "c:\winnt" directory, the hosts file is in the location stated below. (The directory where Windows is installed is registered in the system environment variable "windir". It can be checked by activating [System] on [Control Panel]. ) "c:\winnt\system32\drivers\etc\hosts" Open this file with a editor such as Notepad, and look for the following line (usually it is at or near the beginning of the file) . 127. 0. 0. 1 localhost If this line is not in the hosts file, add it.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
23/62
2.4.2
To communicate with NCs using Ethernet, set the TCP/IP. 1. 2. Select [Start] -> [Settings] -> [Control Panel], and activate [Network]. Select [Network and Dial-up Connections] and activate [Local Area Connection].
The IP address and subnet mask must always be set. The default gateway setting may be required depending on the network configuration in use. Contact the network administrator in your company. Also, please confirm the "2.2.3 DNC1/Ethernet connection ".
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
24/62
2.4.3
Installation of FA library
FA library is installed by executing a setup program from CD-ROM. NOTE 1 2 3 The user who installs FA library must have the "administrator privilege". Before starting the installation procedure, stop all application programs. The message "UDP Number for C4 Service" appears during installation. The displayed information must match the setting in the NC. Take note of this information. If you forgot to take note of this information, see "UDP number for C4 service" in the Section "2.4.4 Contents automatically registered into a TCP/IP SERVICE file". The setup procedure follows: 1. Start the computer, and insert the installation CD-ROM into the drive. The installer's start window appears automatically. Click the <Next> button.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
25/62
2.
The software license agreement terms appear. Read them carefully, and if you agree, click the <Yes> button.
3.
Select a folder for installation. Check [Destination Folder], and if it is ok, click the <Next> button. To install FA library in a different folder, click <Browse> and select the desined folder, then click the <Next> button.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
26/62
4.
Select a program folder where icons are to be saved. Usually select the default value displayed on the screen, and click the <Next> button.
5.
Before file copy is started, a dialog box appears which prompts you to check what you specified so far. If it is ok, click the <Next> button. Installation begins.
6.
The message "UDP Number for C4 Service" shown below appears during installation. You need to enter the value indicated in this message as "Port number for UDP" for all NCs. (A value other than "8192" may be indicated depending on the environment of the PC. ) Take note of this value. See "UDP number for C4 service" described in Section, "2.4.4 Contents automatically registered into a TCP/IP SERVICE file" for details.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
27/62
7.
The ReadMe file and the user register card are displayed. The ReadMe file contains the cautions and other information that have not been included in the ReadMe file manual. Be sure to read the ReadMe file. NOTE Please fill in the user registration card and send it to us. When the user registration card is displayed, print it on your printer, and fill in the printed form. If you want to print it later, for example, because your PC has no printer, use the following file: RegistJ. txt in the root directory on the installation CD The fax address and post address are presented on the user registration card. To read the ReadMe file later, open ReadMeJ. txt in the root directory on the installation CD.
8.
Once the setup is completed, the following message appears. Turn the PC power off and on again.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
28/62
FA library programs
When FA library is installed, the following program will be created in the [FANUC FA Library] group.
<1>
<2>
<3>
<4>
<5>
<6>
<7>
<8>
<9>
<1> This is an utility program for the DNC1 communication test. Referto "D. 5 DNC1 HardTest" and "D. 6 DNC1 Test" for operation. <2> This is the commnunication test program for DNC1/Ethernet connection. <3> This is the startup icon for FA library. FA library communicates with the NC by starting the communication process from this icon. Refer to "2. 5. Starting and Stopping the FA library" for the way of operation. <4> This is the FA library sample program for developing applications in Visual Basic. Refer to Chapter 4 "FA library" for an explanation. <5> This is the FA library sample program for developing applications in Visual C++. Refer to Chapter 4 "FA library" for an explanation. <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 Edit List File screen. Refer to "6. 1 Edit List File Screen Operations" for the way of operation. <8> This is the Log Viewer program. Refer to Chapter 5 "Observation of FA SYSTEM for PC" for the way of operation. <9> This is the Machine Configuration program. Refer to "2.6 SYSTEM CONFIGURATION" for how to use this.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
29/62
2.4.4
(*1) This value is a "PORT NUMBER (UDP) " to be entered in the "ETHPRM" menu of the NC. When the port number of the table "Automatically registered service names " is already used at the time of registration, the maximum number in a services file is investigated, and a bigger value than the value is assigned. Therefore, no existing service will be nullified. In registering with a services file automatically, the file before registration is backed up automatically and it saves to the same directory as a services file. Supposing that the directory where Windows is set up is "c:\winnt", the services file and its automatically created backup file are in the following directories: C:\winnt\system32\drivers\etc\ The directory where Windows is installed is registered in the system environment variable "WINDIR". It can be checked by activating [System] on [Control Panel]. The automatically created backup file is named "services. YYYYMMDDhhmm" (where YYYY is the year, MM is the month, DD is the day, hh is the hour, and mm is the minute) from the time of automatic registration. UDP number for C4 service As described in NOTE (*1) under the table above, the same value as the FANUC_C4_SERVER service UDP port number automatically registered in the services file must be set in the corresponding parameter for all NCs. The set port number is displayed in the "UDP Number for C4 Service" dialog box automatically during installation. Set this value as a "Port number for UDP" in the "ETHPRM" dialog box of the NC.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
30/62
If you forgot to take note of the value in the "UDP Number for C4 Service" dialog box displayed during installation, you can use the following procedure to display the value automatically set up in the PC. (1) Start the Ethernet Diagnose program. Click [Start menu] -> [Programs] -> [FANUC FA Library] -> [Ethernet Diagnose]. (2) Select the [C4Service] tab and you will find the "UDP number for C4 service" currently set up in the PC to be displayed as follows:
(3) Close the Ethernet Diagnose program. Editing the TCP/IP services file To set up a value other than the one displayed as the "UDP number for C4 service" during installation, you need to edit the services file, using a text editor such as NotePad. Be careful not to enter any value already in use. WARNING Do not edit the services file unless you have working knowledge about the Ethernet and TCP/IP. If you edit it incorrectly, it is likely that not only FA library but also all Ethernet communication processes on Windows may become inoperable.
NOTE Once the services file is edited, you need to turn the power off and on again to put the editing in effect.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
31/62
2.4.5
Uninstall
FA library can be uninstalled using [Add/Remove Programs] on [Control Panel]. NOTE 1 2 The user who uninstalls FA library must have the administrator privilege. Before starting the uninstallation procedure, stop all application programs. Please uninstall "FANUC FA Library for Windows". Any files that were set up after installation are left installed. Use Explorer to delete them.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
32/62
2.4.6
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
33/62
(4) Seect "Yes I have already connected the hardware" and click <Next>".
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
34/62
(6) Select "Install the hardware that I manually select from a list" and click <Next>.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
35/62
(8) Click <Have disk> and browse for the %Fpfasys%\Bin folder (%Fpfasys% is the folder where FA library was installed).
The following figure shows browsing example when FA library was installed to the installer's default folder.
(9)
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
36/62
(11) The following screen wi1l be displayed when setup has completed.
Please setup resources for DNC1 driver when you finished to install DNC1 driver.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
37/62
Setting resouces
(1) Launch "Control panel " from "Setting" in "Start menu". (2) Launch "System" and click <Hardware> tab and click <Device Manager>.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
38/62
(4)
(5) Select "Basic configuration 0000" in the "Setting based on" combobox.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
39/62
(6) Double click and select parameters of "IRQ", "I/O Range" and "Memory Range". For each paraneters, Select the parameter with "No devices are confliction".
NOTE: l/O Range Please confirm a set value by rotary SW of the DNC1 board is corresponding to a set value by the device manager. If both are not corresponding, please change SW1 of the DNCl board after shutting down the personal computer.
8 C 0 4
Relationship between the SW1 and I/O Range SW SW1 0 (default) 1 2 3 4 5 6 7 I/O Range 280h - 28Fh 290h - 29Fh 220h - 22Fh 230h - 23Fh 300h - 30Fh 310h - 31Fh 320h - 32Fh 330h - 33Fh
TITLE
SW1 8 9 A B C D E F
I/O Range 100h - 10Fh 110h - 11Fh 120h - 12Fh 130h - 13Fh 140h - 14Fh 150h - 15Fh 160h - 16Fh 170h - 17Fh
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
40/62
(7) Please reactivate the personal computer when you set IRQ, the range of I/0, and the memory. Please confirm the following displays by starting the device manager. The yellow "!" mark in the figure (3) will disappears.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
41/62
2.4.7
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
42/62
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
43/62
(3) Select "No, I want to select the hardware from a list" and click <Next>.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
44/62
(5) Click <Have disk> and browse for the %Fpfasys%\Bin folder (%Fpfasys% is the folder where FA library was installed).
The following figure shows browsing example when FA library was installed to the installer's default folder.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
45/62
(8) The following screen wi1l be displayed when setup has completed.
Please setup resources for DNC1 driver when you finished to install DNC1 driver.
Setting resources
The proccdure to setup resourccs of DNC1 driver on Windows 2000 is the same as Windows XP. Please show the "Setting resources" in "2.4.6 Setting up DNC1 driver (WindowsXP)"
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
46/62
2.4.8
To setup, follow these steps; (1) Launch "Windows FireWall" from control pane. (2) Check <On> checkbox and clear <Don't allow exceptions> checkbox, and click [Exceptions] tab.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
47/62
(4) Click <Have disk> for browse the %Fpfasys%\Binfo1der. (%Fpfasys% is the folder where th FA library was installed)
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
48/62
(5) Select "C4Server. exe", then click <Open>. Click <OK> in the the "Add program" dialog
(6) Add CDAMng. exe and CommMng. exe to the exception lists by above (4) and (5) procedure. (7) Please click <OK> after adding 3 programs as shown in the next figure.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
49/62
2.5
The communication process is started in the state of an icon, and the [FANUC FA library] icon appears at the lower-left corner on the computer display.
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, currently connected machine. execute the system configuration described in "2.6 SYSTEM CONFIGURATION" and set the
stopped.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
50/62
2.6
SYSTEM CONFIGURATION
To use FA library, 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 [FANUC FA Library] group.
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 Restoring Settings".
2.6.1
3 4
Enter the name you want to give into the [Machine Name] text box. 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".
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
51/62
2.6.2
2 3
Select the machine number you want to setup from the [Machine] list box. Setup the following parameters in the [General] tab. 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. Enter the extension you want to give in the [Default Extension] text box. Set the same extension as the default extension.
1 2 3
Select the [General] panel in the [Machine Configuration] dialog box. Select the machine number you want to set up from the [Machine] list box. Set up the following parameters in the [General] panel. Enter the extension used for the subprogram in the [Subprogram Extension] text box. Normally, set the same extension as the default extension.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
52/62
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 <Save> button.
2.6.3
Press the <Set Default> 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. Baud Rate : Data Length : Data Code : Parity : Stop Bit : TV Check : Send DC2 and DC4 : 9600 (bps) 8 (bits) ISO NONE 2 (bits) Checked "X" Checked "X" Checked "X"
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
53/62
In the [Settings] group box, set the value that is not set using the <Set Default> button. [For Details] does not need to be specified. Select the RS-232-C port number from the [Port] list box.
Settings of DNC1/Ethernet
1 2 3 Select the [Communication] tab in the [Machine Configuration] dialog box. Select the machine number you want to set up from the [Machine] list box. Select "DNC1/Ethernet" from the [Protocol] list box.
Press the <Set Default> button and set the default. The following value is set: C4 server IP address: 127. 0. 0. 1
In the [Settings] group box, set the value that is not set using the <Set Default> button. [For Details] does not need to be specified. Enter the IP address" set to the NC to be connected in the [NC IP Address] text box. Enter the "TCP Port No. " set in the NC to be connected in the [NC TCP Port No. ] text box.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
54/62
Click the <Comm Test> button, then check that it can be communicated to CNC by DNC1/Ethernet. Please turn on the CNC before checking.
Displays for the correct setup When the IP addresses for the PC and NC are set up correctly, and the NC power is on, it is displayed as follows.
<1> "PING test. . . " is a result of testing the PING command in the NC. <2>"Get System Information test. . . " is the system information of the NC. CNC Type:Indicates an NC type. 15 16 18 21 PD PH M T MM TT MT P Series 15 i (Caution: This model cannot be connected to FA library. ) Series 16 i Series 18 i Series 21 i Power Mate i -D Power Mate i -H Machining center Lathe M series 2 path control T series 2/3 path control (Caution: Cannot be connected) T series with the complex machining (Caution: Cannot be connected) Punch press
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
55/62
Laser
Series:Indicates the CNC software series number, using a 4 digit character string. Version :Indicates the CNC software version number, using a 4 digit character string. Max axes :Indicates the maximum number of controllable axes. Axes :Indicates the number of controlled axes. <3> "C4Api test. . . " indicates whether the NC power is on or off. Live=True means PC recognize that the NC power is on. Live=False means PC recognize that the NC power is off. Incorrect setting (1) If an IP address set up for the NC or PC is incorrect, or the NC power is off, it is displayed as follows.
If the "Reply From. . . " line does not appear, the probable causes are: (1) The NC power is off. (2) The NC IP address is different from the one set up in the Configuration dialog box. (3) The NC network address or the host address is incorrect. Refer to an applicable Ethernet board manual for explanations about the IP address. Refer the Ethernet board manual about the IP address.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
56/62
Incorrect setting (2) When the IP addresses set up for the PC and NC are correct, and the NC power is on, if any other kind of setting is incorrect, it is displayed as follows.
If the "Get System Information test ..." line does not appear, the probable causes are: (1) An IP address for the PC or the devices for which a TCP/IP has been set up, rather than for the NC, has been specified. (2) The "TCP port number" set for the NC is incorrect. If the message "No option (Extended driver and libraries function) " is displayed, the NC lacks the "Extended driver and libraries function" option. But the embedded ethernet board does not need this option.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
57/62
Incorrect setting (3) When the IP addresses set up for the PC and NC are correct, and the NC power is on, if any other kind of setting is incorrect, it could be displayed as follows.
Unlike the display of correct settings, "C4Api test ..." contains "Live=False". In this case, the probable causes are: (1) The "PC's Udp port setting" displayed when FA library was installed in the PC does not match the UDP port number set up for the NC. On the [C4Service] tab, the "PC's Udp port setting" for the current PC appears as shown below. Ensure that it matches the UDP port number set up for the NC. If it does not match, change the UDP port number set up for the NC so that it matches the following display.
(2) The "Time Interval" for the NC is 0. Enter 50. (3) A router exists between PC and NC. Cannot place a router between a PC and CNC. 7 After confirming the communication test, close this program, and then click <SAVE> button on Machine Configuration screen.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
58/62
2.6.4
2 If you select either of "Separate Transfer" or "Extended Transfer" in the [Transfer Styles for Sub Programs] frame, you can set the following:
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
59/62
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 the main program calls a subprogram. 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. " 1st to 3rd Directory Searching Sub Program You can set up to three directories for storing the subprograms. 1 to 3 indicates 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 Program], the subprogram in [1st Directory Searching Sub Program] is transferred. NOTE The subprogram is searched for only from the directories set at [1st to 3rd Directory Searching Sub Programs]. Subprograms will not be searched for even if [Default Directory] is set unless you set [1st to 3rd Directory Searching Sub Programs].
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
60/62
2.6.5
2.6.6
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
61/62
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 3 "The "Insert the floppy disk into the A: drive. " message box appears. Click the <OK> button. The save status is displayed at the bottom of the screen.
Saving and restoring of settings are carried out not for each machine that is set but for all machine settings.
NOTE Before you save the settings to 3.5" floppy disk, do not forget to click the <Save> button in the Machine Setup screen.
Restoring Settings
1 2 3 Insert the floppy disk that you made by saving data into the floppy disk drive. The "Insert the floppy disk into the A: drive. " message box appears. Click the <OK> button. The restore status is displayed at the bottom of the screen.
TITLE
02 01
EDIT
04.10.04 03.09.17
DATE
B-75044EN/02-2
SHEET
DESCRIPTION
FANUC LTD.
62/62