You are on page 1of 32

ScGi 05/07/2002

ERVICE NFORMATION

Communication with Fast Ethernet Board on “CTX...” with


CNC FANUC and 100 M bit Fast Ethernet Board

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
1/32
ScGi 05/07/2002

SUMMARY

1. General Information .............................................................................................................................3

2. Connection Cable.................................................................................................................................3

3. Found a FTP software for connecting ...............................................................................................3

4. Requirements to connect ....................................................................................................................3

5. How to use ............................................................................................................................................4


5.1 Visualising remote directory on PC (used also for verify if I/O operation is complete) .............4

6 Input / output a program......................................................................................................................9


6.1 Input / output tool offsets............................................................................................................... 12

7 How to configure................................................................................................................................ 15
7.1 Configure your Personal Computer’s Net data............................................................................ 15
7.2 Group of your W98/NT Net identification...................................................................................... 17
7.3 Set of Parameter on CNC ............................................................................................................... 17
7.4 Fix communication FTP data for FTP software and for CNC ..................................................... 17
7.5 Set IP address, Subnet Mask data, FTP data into CNC............................................................... 18
7.6 Settings your FTP software............................................................................................................ 25

8. How to test the communication....................................................................................................... 27


8.1 Example using serv-U32................................................................................................................. 27
8.2 Example using PING command of CNC........................................................................................ 28

9. Standard settings.............................................................................................................................. 32

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
2/32
ScGi 05/07/2002

1. General Information

This document describes a simple method to introduce the right values required for connecting via Ethernet
cable plugged at the “Fast Ethernet Board” (standard on CTX310 / CNC type related option on other models).

All information contained in this document have been tested in Graziano.

2. Connection Cable
The cable used is a standard Ethernet cable to connect together two Personal Computers by Ethernet adapters.

3. Found a FTP software for connecting


To connect with CNC it’s necessary to use an “FTP Server software” that can be found without difficult, using
Internet, in freeware, shareware and other form.

In this documentation we refer to an “under license” software, named Serv-U32, you can find and buy:

site: http//www.cat-soft.com, Email: RB5@acpub.duke.edu

If program Serv-U32 used, it’s strongly recommended to register your copy !

4. Requirements to connect
1 Know of your PC’s Net data and set the PC for a static IP address (if your PC uses an automatically
assigned IP address it’s necessary change your network parameters)

2 Know your “Group Name” for your W98/NT Net identification

3 Set right parameters on CNC

4 Fix a IP address, Sub net Mask, name of User, password, directory where CNC has to manage data
(for example c:\fanuc)

Note. CNC IP number must be different from your PC’s IP address. Subnet mask can be 255.255.255.0.

5 IP address, Subnet Mask data, FTP transfer Data will be set into CNC and then CNC most turned OFF / ON

6 Correct settings of your FTP server software

7 When you try to connect from CNC, FTP server software must be already running on your PC

Note. Please see chapter 7 to know how to find or set all data required.

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
3/32
ScGi 05/07/2002

5. How to use
When all settings are correct the CNC uses the declared directory of your PC as a memory card, so every kind
of data can be saved with standard commands.

To simplify in the examples following it’s only explained how to manage (Input – Output) a program and tool
offsets.

5.1 Visualising remote directory on PC (used also for verify if I/O operation is complete)
1) Be sure that FTP software is already running with right settings (if “serv-U32” used must be a green “U” icon
on down bar, in down-right position on the screen of your PC).
2) Be sure that the I/O channel is 5 (CNC parameter 20=5)
3) Select EDIT mode on CNC
4) Select PROGRAM screen

CNC displays:

4) Select softkey “+” until you see the softkey “HOST”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
4/32
ScGi 05/07/2002

CNC displays:

5) press “HOST”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
5/32
ScGi 05/07/2002

CNC displays:

6) press “OPRT”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
6/32
ScGi 05/07/2002

CNC displays:

7) press “BOARD”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
7/32
ScGi 05/07/2002

CNC displays remote directory on your PC (HOST FILE DIR):

DISPLAY ERROR

- example of programs saved on remote directory

- ex. of CNC parameter

- ex. of tool offsets

Note. CNC displays a red and blinking Fanuc error (DISPLAY ERROR) if a communication problem occurs
or the remote directories set into CNC and that in the PC are different.

Available Soft-keys:

- SWITCH switch display to a visualisation with more/less information (in figure with less inf.)
- UPDATE updates visualisation of directory (refresh connection and information with PC)
- STOP not important for this document
- SEARCH search and display (on PC remote directory) a file not visible (out of the screen)
- DELETE delete specified file on PC remote directory (if authorised)

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
8/32
ScGi 05/07/2002

6 Input / output a program


In the example below it’s explained how to save a CNC program / re-load it from remote PC.

Please refer to chapter 5.1 for procedure to verify / display the contents of remote directory, on your PC.

1) Be sure that FTP software is already running with right settings (if “serv-U32” used must be a green “U” icon
on down bar, in down-right position on the screen of your PC).
2) Be sure that the I/O channel is 5 (CNC parameter 20=5)
3) Select EDIT mode on CNC
4) Select PROGRAM screen

CNC displays:

4) Select softkey “+” until you see soft-keys “READ” and “PUNCH”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
9/32
ScGi 05/07/2002

CNC displays:

5) press “PUNCH” to save into remote directory (“READ” to read from it)

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
10/32
ScGi 05/07/2002

CNC displays:

6) write “O” + number of program to save (or to load)

7) press “EXEC”

Desired file is saved/loaded.

Note. Same operations are possible starting from PROGRAM, DIR screen, using softkey “OPRT” and searching
“READ” and “PUNCH” with “+” soft-key.

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
11/32
ScGi 05/07/2002

6.1 Input / output tool offsets


In the example below it’s explained how to save a CNC tool offsets program / re-load them from remote PC.

Please refer to chapter 5.1 for procedure to verify / display the contents of remote directory, on your PC.

1) Be sure that FTP software is already running with right settings (if “serv-U32” used must be a green “U” icon
on down bar, in down-right position on the screen of your PC)
2) Be sure that the I/O channel is 5 (CNC parameter 20=5)
3) Be sure CNC is in EDIT mode
4) Select SETTING screen

CNC displays:

5) press “OPRT” then press “+” until you see “READ” and “PUNCH”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
12/32
ScGi 05/07/2002

CNC displays:

6) press “PUNCH” to save into remote directory (or “READ” to load from it – existing tool offset will be over-
written !)

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
13/32
ScGi 05/07/2002

CNC displays:

7) press “EXEC” to execute

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
14/32
ScGi 05/07/2002

7 How to configure
In this section you can find all useful information to configure your Personal Computer and your CNC.

7.1 Configure your Personal Computer’s Net data

Note. The operation in this chapter can alter normal NET operation of your Personal Computer, so we suggest
to backup all settings before progress (please take note of every single original values you have to change
in order to be possible restore the PC to original configuration).

In W98/NT environment:

1) click with right button on “Net Resource” icon


2) select “proprieties” choice
3) select “configuration”, a screen like this will be appear:

4) select you TCP/IP driver


5) click on “settings”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
15/32
ScGi 05/07/2002

Note. The operation in this chapter can alter normal NET operation of your Personal Computer, so we
suggest to backup all settings before progress (please take note of every single original values you have to
change in order to be possible restore the PC to original configuration).

another screen will appear:

6) select choice to specify IP address

7) specify IP address and Subnet mask

8) press OK and REBOOT YOUR PC

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
16/32
ScGi 05/07/2002

Note. The operation in this chapter can alter normal NET operation of your Personal Computer, so we suggest
to backup all settings before progress (please take note of every single original values you have to change
in order to be possible restore the PC to original configuration).

After boot of your PC it is possible verify the current TCP/IP data:

- open Prompt of Ms-Dos and give this command: IPCONFIG <enter>

Your PC shows a screen like this:

mer 03/07/2002
C:\FANUC\ipconfig

Windows 98 IP configuration

x - Ethernet board:

IP address. . . . . . . . : 200.200.200.200
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . :

7.2 Group of your W98/NT Net identification


In W98/NT environment:

- click with right button on “Net Resource” icon


- select “proprieties” choice
- select “identification”
- take note of the name contained in the field “work Group”

7.3 Set of Parameter on CNC


1) Open write parameter capability (PWE=1)
2) set parameter number 9990 bit3=1
3) switch OFF and ON the CNC
4) set parameter 20=5 (enables Ethernet communication, disables Memory Card use)
5) Close write parameter capability (PWE=0)

7.4 Fix communication FTP data for FTP software and for CNC
It’s necessary to define some data that CNC has to use for connecting with “FTP server software”

These data will inserted in right fields into CNC and in FTP software

You have to define:

1) port for communication (the same indicated in the FTP software, for example 22)
2) user name (f.e. CTX310)
3) password (f.e. 310)
4) directory of your PC where CNC has to manage data (f.e. C:\FANUC)

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
17/32
ScGi 05/07/2002

7.5 Set IP address, Subnet Mask data, FTP data into CNC

1) Open parameter write capability (PWE=1), then press “parameter” button until CNC shows the screen with
parameter list:

2) Press “+” softkey until you see Ethernet parameter choice (ETHPRM)

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
18/32
ScGi 05/07/2002

CNC displays:

3) Press ETHPRM

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
19/32
ScGi 05/07/2002

CNC displays:

4) Press “OPRT”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
20/32
ScGi 05/07/2002

CNC displays:

5) Press BOARD

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
21/32
ScGi 05/07/2002

CNC displays:

6) Insert the IP Address, for example: 200.200.200.201

7) Insert the Subnet mask data, for example: 255.255.255.0

8) If a number is set inside “ROUTER IP ADDRESS” please delete it:

- position cursor on “ROUTER IP ADDRESS” field


- press “shift” button + SP (space character) then press “input” button

after this operation CNC shows “0” into “ROUTER IP ADDRESS” field
data not to be changed

9) Press “Pg Down” button (number of sub-pages it’s increased from 1/7 to 2/7)

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
22/32
ScGi 05/07/2002

CNC displays:

10) insert values as shown in figure (select field, write number and press “input”)

11) Press “Pg Down” button (number of sub-pages it’s increased from 2/7 to 3/7)

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
23/32
ScGi 05/07/2002

CNC displays:

This is the FTP DATA SERVER settings screen.

12) Insert values as shown in figure (select field, write number and press “input”)

The settings in figure assume to have found these data for communication (tested in Graziano):

Port Number: 22 (number of port also will be set in FTP software on your PC)
IP address: 200.200.200.200 (this is your Personal Computer’s IP address)
Username: CTX310
Password: 310
Login dir: FANUC (this mean C:\FANUC on your PC)

No other pages need to be set on CNC

Note. After input the password is encrypted and disappears. In substitution there are some *** characters.

13) Close write parameter capability (PWE=0)

14) TURN OFF AND ON CNC TO TAKE EFFECT AS NEW SETTINGS

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
24/32
ScGi 05/07/2002

7.6 Settings your FTP software


1) Run “serv-U32” (a new and green “U” icon appears on the down bar, down-right part of the screen)
2) Select the U icon with right button and choice “show window”
3) click on up menu “Setup”, choice “FPT-server”

PC displays:

These settings were used to communicate in Graziano

4) insert the number of port and all data like figure

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
25/32
ScGi 05/07/2002

5) click on up menu “Setup”, choice “Users”


6) press “NEW” for add a new user and insert the values like figure:

These settings were used to communicate in Graziano

The group must be the same of your PC (see chapter “Group of your W98/NT Net identification”)

7) Press “add”, then choice “browse” to select a directory for communicate with CNC, then select desired voices

8) After insert all data press “Store” to save settings

More than one directory can be selected, but CNC reads only it’s own (the witch that is declared into Ethernet
“DATA SERVER” FTP communication field – see previous chapter)

The password used was 310. After input the password is encrypted and disappears.

Note. If you use a different FTP software you can find some differences on graphic or on menu structure, but
for the greatest part the data to be set will be the same.

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
26/32
ScGi 05/07/2002

8. How to test the communication


It’s possible to use two methods:

1) refer to the information window of your FTP server software


2) using PING command of CNC

8.1 Example using serv-U32


- Stop and run your “serv-U32” software
- click right on “show window”, this screen appears

this line means that the connection is operating (on-line).

Note. This is the easiest method to verify Ethernet communication

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
27/32
ScGi 05/07/2002

8.2 Example using PING command of CNC


If FTP software used on PC has not a screen to verify communication, it is possible to use the “PING” command
of CNC to verify Ethernet response from PC.

1) press “PARAMETER” button, CNC displays:

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
28/32
ScGi 05/07/2002

2) press “+” soft-key until you see:

3) press soft-key “ETHMNT”

4) then press soft-key “OPRT”

5) then press soft-key “BOARD”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
29/32
ScGi 05/07/2002

CNC displays:

6) write the complete IP address of your connected Personal Computer

7) then press “PING”

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
30/32
ScGi 05/07/2002

CNC displays:

this tree lines means that the communication is correctly running

Note. In the other pages of this screen it’s possible to read other useful information on connection state.

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
31/32
ScGi 05/07/2002

9. Standard settings CTX-CTX310

The main characteristics for Ethernet communication of Graziano’s Lathes are following resumed:

CNC parameter 9990 bit 3=1


CNC parameter 20=5 (Ethernet used - memory card not used)

IP ADDRESS: 200.200.200.201
SUBNET MASK 255.255.255.0
ROUTER IP ADDRESS (“space” = nothing)

PORT NUMBER TCP 9000


TIME INTERVAL 10

PORT NUMBER 22
IP ADDRESS 200.200.200.200
USERNAME CTX310
PASSWORD 310
LOGIN DIR FANUC

These settings can operate correctly if (for example) the remote Personal Computer has this configuration:

NET SETTINGS:

IP ADDRESS DEFINED BY USER (NOT AUTOMATIC) 200.200.200.200


SUBNET MASK DEFINED BY USER (NOT AUTOMATIC) 255.255.255.0

FTP SERVER SOFTWARE (f. example serv-U32.exe):

PORT NUMBER 22
MAX NUMBER OF USER 1
USER CTX310
GROUP GRAZIANO
PASSWORD 310
DIRECTORY C:\FANUC

_________________________________________________________________________________________
GB - Kl050_CTX_GE Fanuc Communication with EtherNet_nr.doc
32/32

You might also like