You are on page 1of 44

5.

EMBEDDED ETHERNET FUNCTION

B-64305EN/01

EMBEDDED ETHERNET FUNCTION


This chapter describes the specifications of the embedded Ethernet function. Chapter 5, "EMBEDDED ETHERNET FUNCTION", consists of the following sections: 5.1 5.2 5.3 5.4 5.5 5.6 5.7 EMBEDDED ETHERNET PORT AND PCMCIA ETHERNET CARD ...............................................................309 SETTING UP THE EMBEDDED ETHERNET FUNCTION ............................................................................311 SWITCHING BETWEEN THE EMBEDDED ETHERNET DEVICES..........................................................329 EMBEDDED ETHERNET OPERATIONS...........................332 RESTART OF THE EMBEDDED ETHERNET...................343 MAINTENANCE SCREEN FOR EMBEDDED ETHERNET FUNCTION ......................................................344 LOG SCREEN OF THE EMBEDDED ETHERNET FUNCTION ............................................................................349

- 308 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

5.1

EMBEDDED ETHERNET PORT AND PCMCIA ETHERNET CARD


The embedded Ethernet function can be used by selecting one of two types of devices: the embedded Ethernet port and PCMCIA Ethernet card. A selection can also be made to stop the embedded Ethernet function. The PCMCIA Ethernet card is to be inserted into the memory card slot for temporary communication.

CAUTION 1 When using the embedded Ethernet function for the first time, set an IP address and other items carefully as instructed by the network administrator, then perform a sufficient communication test. Note that an incorrect IP address or other setting may cause a communication failure on the entire network. 2 A unit such as a PC situated in the same network can increase the communication processing load on the CNC even if the unit is not communicating with the CNC. Avoid connecting the CNC to a factory-wide network. Use a router or the like to separate the network including the CNC from the other networks. NOTE 1 Use the PCMCIA Ethernet card designated by FANUC. General Ethernet cards available on the market cannot be used. 2 The PCMCIA Ethernet card is used for FANUC LADDER-III or SERVO GUIDE. 3 Use the PCMCIA Ethernet card just for temporary communication as described above. Avoid using the card for continuous communication. 4 The PCMCIA Ethernet card is inserted into a memory card slot, with a part of the card left uninserted. When using the PCMCIA Ethernet card, take great care not to damage the card by hitting the protruding part of the card. When the card becomes unnecessary, remove the card immediately, in order to prevent any damage to the card.

- 309 -

5.EMBEDDED ETHERNET FUNCTION Related NC parameters


#7 14880 #6 #5 #4 #3 #2 #1

B-64305EN/01

#0 ETH

[Input type] [Data type] #0 ETH

Setting input Bit The embedded Ethernet function (embedded Ethernet port or PCMCIA Ethernet card) is: 0: Used. 1: Not used.

- 310 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

5.2
5.2.1

SETTING UP THE EMBEDDED ETHERNET FUNCTION


This section describes the setting of parameters for the embedded Ethernet function.

Setting of the FOCAS2/Ethernet Function


This subsection describes the settings required to operate the FOCAS2/Ethernet function.

Notes on using the FOCAS2/Ethernet function for the first time NOTE 1 When running user's original application software created by using the FOCAS2/Ethernet function, use the embedded Ethernet port. 2 The FOCAS2/Ethernet function allows up to five FOCAS2/Ethernet clients to be connected to one CNC. 3 Concurrent access by multiple applications or personal computers may overload the CNC, reducing the communication speed.

- 311 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.2.1.1

Operation on the FOCAS2/Ethernet setting screen


On the Ethernet parameter setting screen, set the parameters for operating the FOCAS2/Ethernet function.

Procedure
1 2 3 Press the function key . Soft keys [EMBED] and [PCMCIA] appear. (When there is no soft keys, press the continue key.) To display the Ethernet Setting screen for the embedded Ethernet port or the PCMCIA Ethernet card, press soft key [EMBED] or [PCMCIA], respectively. Press soft keys [COMMON] and [FOCAS2] and then enter parameters for the items that appear.

NOTE 1 The parameters for the embedded Ethernet port and the parameters for the PCMCIA Ethernet card are independent of each other. 2 The settings of the FOCAS2/Ethernet function for the PCMCIA Ethernet card are made when a connection to SERVO GUIDE and FANUC LADDER-III is established.

- 312 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

COMMON screen (BASIC)


Press soft key [COMMON]. displayed. The COMMON screen (BASIC) is

COMMON screen (BASIC)

Settings items
Item IP ADDRESS SUBNET MASK Description Specify the IP address of the embedded Ethernet. (Example of specification format: "192.168.0.100") Specify a mask address for the IP addresses of the network. (Example of specification format: "255.255.255.0") ROUTER IP ADDRESS Specify the IP address of the router. Specify this item when the network contains a router. (Example of specification format: "192.168.0.253")

Display items
Item MAC ADDRESS AVAILABLE DEVICE Description Embedded Ethernet MAC address Enabled device of the embedded Ethernet. Either the embedded Ethernet port or the PCMCIA Ethernet card is displayed.

- 313 -

5.EMBEDDED ETHERNET FUNCTION FOCAS2 screen

B-64305EN/01

Press soft key [FOCAS2]. The FOCAS2 screen is displayed.

FOCAS2 screen

Setting items
Item PORT NUMBER (TCP) PORT NUMBER (UDP) TIME INTERVAL Description Specify a port number to be used with the FOCAS2/Ethernet function. The valid input range is 5001 to 65535. Set this item to 0 when it is used as the FOCAS2/Ethernet function. Set this item to 0 when it is used as the FOCAS2/Ethernet function.

NOTE 1 When a connection to the CIMPLICITY i CELL is established, set the UDP port number and time interval above as described in the FANUC CIMPLICITY i CELL Operator's Manual (B-75074). 2 The unit of the time interval is 10 ms. The allowable range is between 10 and 65535. A time interval less than 100ms cannot be set. 3 Decreasing the time interval setting increases the communication load and can affect the network performance. Example) If the interval is set to 100 (100 x 10 ms = 1 second), broadcast data is sent every 1 second.
- 314 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

Initial setting of the PCMCIA Ethernet card


The PCMCIA Ethernet card is factory-set to the following default values, for ease of connection with SERVO GUIDE or FANUC LADDER-III. IP ADDRESS : 192.168.1.1 SUBNET MASK : 255.255.255.0 ROUTER IP ADDRESS : None PORT NUMBER (TCP) : 8193 PORT NUMBER (UDP) : 0 TIME INTERVAL :0 If a specified IP address is changed to a blank (space), the specified setting is reset to the default value. The embedded Ethernet port does not have a default value.

5.2.1.2

Example of setting the FOCAS2/Ethernet function


The following shows a setting example required for the FOCAS2/Ethernet function to operate. In this example, one personal computer is connected to two CNCs through FOCAS2/Ethernet.

HUB

10BASE-T or 100BASE-TX

CNC 1

CNC 2

PC 1

CNC 1 IP address Subnet mask Router IP address TCP port number UDP port number Time interval

CNC 2

192.168.0.100 192.168.0.101 255.255.255.0 255.255.255.0 None None 8193 8193 0 0 0 0 PC 1

The Ethernet parameter screen is used for setting.

IP address Subnet mask Default gateway CNC 1 NC IP address NC TCP port number CNC 2 NC IP address NC TCP port number

192.168.0.200 255.255.255.0 None 192.168.0.100 8193 192.168.0.101 8193

"Microsoft TCP/IP property" of the personal computer (Windows 2000/XP/Vista) is used for setting. The arguments of the data window library function cnc_allclibhndl3 are used for setting.

- 315 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.2.2

Setting of the FTP File Transfer Function


This section describes the settings required for the FTP file transfer function to operate using the embedded Ethernet function.

Notes on using the FTP file transfer function for the first time NOTE 1 When using the FTP file transfer function, use the embedded Ethernet port. 2 The number of FTP communications to which one CNC can be connected using the FTP file transfer function is one.

5.2.2.1

Operation on the FTP file transfer setting screen


On the Ethernet setting screen, set the parameters for operating the FTP file transfer function.

Procedure
1 2 3 4 Press the function key . Soft keys [EMBED] appear. (When there is no soft keys, press the continue key.) By pressing the [EMBED] soft key, the Ethernet Setting screen for the embedded Ethernet port is displayed. Press soft keys [COMMON] and [FTPTRNS] and then enter parameters for the items that appear.

NOTE The parameters for the embedded Ethernet port and the parameters for the PCMCIA Ethernet card are independent of each other. If the [PCMCIA] soft key is pressed, the PCMCIA Ethernet card can be set up. However, the card setup is carried out for maintenance and is not necessary usually.

- 316 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

COMMON screen (BASIC)


Press soft key [COMMON]. displayed. The COMMON screen (BASIC) is

COMMON screen (BASIC)

Setting items
Item IP ADDRESS SUBNET MASK Description Specify the IP address of the embedded Ethernet. (Example of specification format: "192.168.0.100") Specify a mask address for the IP addresses of the network. (Example of specification format: "255.255.255.0") ROUTER IP ADDRESS Specify the IP address of the router. Specify this item when the network contains a router. (Example of specification format: "192.168.0.253")

Display items
Item MAC ADDRESS AVAILABLE DEVICE Description Embedded Ethernet MAC address Enabled device of the embedded Ethernet. Either the embedded Ethernet port or the PCMCIA Ethernet card is displayed.

- 317 -

5.EMBEDDED ETHERNET FUNCTION FTP transfer screen (CONNECT1, CONNECT2, CONNECT3)


1 2 Press soft key [FTPTRNS]. displayed. Page keys

B-64305EN/01

The FTP transfer screen is

can be used to make settings for the three

host computers for connection destinations 1 to 3.

FTP transfer screen (1st page)

FTP transfer screen (2nd page) Item HOST NAME Description Specify the IP address of the host computer. (Example of specification format: "192.168.0.200")

- 318 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION


Item PORT NUMBER Description Specify a port number to be used with the FTP file transfer function. An FTP session is used, so that "21" is to be specified usually. USERNAME Specify a user name to be used for logging in to the host computer with FTP. (Up to 31 characters can be specified.) PASSWORD Specify a password for the user name specified above. (Up to 31 characters can be specified.) Be sure to set a password. LOGIN FOLDER Specify a work folder to be used when logging in to the host computer. (Up to 127 characters can be specified.) If nothing is specified, the home folder specified in the host computer becomes the log-in folder.

Operation
Select a destination. 1 Pressing the [(OPRT)] soft key causes soft key [HOST] to be displayed. Pressing this soft key causes soft keys [CONECT 1], [CONECT 2], and [CONECT 3] to be displayed.

Depending on the host computer to be connected, press soft key [CONECT 1], [CONECT 2], or [CONECT 3]. Destination 1, 2, or 3 is highlighted in the screen title field. The computer corresponding to the highlighted destination is selected as the target computer to be connected.

When destination 1 is selected

- 319 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.2.2.2

Related NC parameters
The NC parameters related to the FTP file transfer function are described below.
0020 I/O CHANNEL : Input/output device selection, or interface number for a foreground input device

[Input type] [Data type] [Valid data range]

Setting input Byte 9 : Select the embedded Ethernet as the input/output device.
#7 #6 #5 SI2 #4 SI1 #3 #2 #1 #0

13115

[Input type] [Data type] #4 SI1

Parameter input Bit Soft key input of the characters shown below is: 0: Disabled. 1: Enabled. <>%$!~:"' Soft key input of the characters shown below and switching between the uppercase and lowercase input modes by a soft key are: 0: Disabled. 1: Enabled. ()?*&@_

#5

SI2

For embedded Ethernet port


#7 14880 #6 #5 #4 #3 #2 #1 PCH #0

[Input type] [Data type] #1 PCH

Setting input Bit When communication based on the FTP file transfer function starts, an FTP server presence check based on PING is: 0: Made 1: Not made

NOTE Generally, set this parameter to 0 so that an FTP server presence check based on PING is performed. Otherwise, if the server is not present in the network, it takes several tens of seconds to detect an error. Some PCs are set not to response to the PING command mainly for security purposes. To communicate with such a PC, set this parameter to 1.
- 320 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

14890

Selects the host computer 1 OS.

14891

Selects the host computer 2 OS.

14892

Selects the host computer 3 OS.

[Input type] [Data type] [Valid data range]

Parameter input Word 0 to 2 0: Windows2000/XP/Vista. 1: UNIX, VMS. 2: Linux.

NOTE Some FTP server software products do not depend on the OS. So, even when the above parameters are set, it is sometimes impossible to display a list of files properly.

- 321 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.2.2.3

Example of setting the FTP file transfer function


The following shows a setting example required for the FTP file transfer function to operate. In this example, one personal computer is connected to two CNCs through the FTP file transfer function. On Personal Computer 1, the FTP server function operates. On CNC 1 and CNC 2, the FTP client operates as the FTP file transfer function.

HUB

10BASE-T or 100BASE-TX

CNC 1

CNC 2

PC 1

CNC 1 IP address Subnet mask Router IP address Connection Port number host 1 IP address User name Password Login DIR NC parameter No. 20

CNC 2

192.168.0.100 192.168.0.101 255.255.255.0 255.255.255.0 None None 21 21 192.168.0.200 192.168.0.200 user user user user None None 9 9 PC 1

The Ethernet parameter screen is used for setting.

The parameter screen is used for setting.

IP address Subnet mask Default gateway User name Password Login DIR

192.168.0.200 255.255.255.0 None user user Default

"Microsoft TCP/IP property" of the personal computer (Windows 2000 / XP / Vista) is used for setting. "User acount of the personal computer (Windows 2000 / XP / Vista) is used for setting. "Internet service manager" of the personal computer (Windows 2000 / XP) is used for setting. "FTP Publishing Service" (Windows Vista) is used for setting.

- 322 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

5.2.3

Setting Up the DNS/DHCP Function


The DHCP/DNS function is set up by using the COMMON screen (DETAIL) and NC parameters.

5.2.3.1

Setting up DNS
This subsection describes the procedure for setting up a DNS.

Procedure
1 2 3 Enable the DNS function, with reference to "Related NC Parameters," which will be seen later. Set up the DNS server of the host computer. Connect the host computer on which the DNS server is working (hereafter referred to as a DNS server), reboot the CNC, then press function key 4 5 . Press soft keys [EMBED] and [COMMON] in that order. The COMMON screen (DETAIL) appears. Enter the IP address of the DNS server in the corresponding DNS IP address field.

COMMON screen (DETAIL)


After pressing soft key [COMMON], press either page key to call a desired COMMON screen (DETAIL). Specify a DNS IP address.

COMMON screen (DETAIL)

- 323 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

Setting items
Item DNS IP ADDRESS 1, 2 Description Up to two DNS IP addresses can be specified. The CNC searches for the DNS server using DNS IP addresses 1 and 2 in that order.

5.2.3.2

Setting up DHCP
This subsection describes the procedure for setting up a DHCP.

Procedure
1 2 3 Enable the DHCP function, with reference to "Related NC Parameters," which will be seen later. Set up the DHCP server of the host computer. Connect the host computer on which the DHCP server is working (hereafter referred to as a DHCP server), reboot the CNC, then press function key 4 5 . Press soft keys [EMBED] and [COMMON] in that order. The COMMON screen appears. If the DHCP function of the CNC has been enabled and if the DHCP server is connected successfully, the DHCP server automatically specifies the following items. IP ADDRESS SUBNET MASK ROUTER IP ADDRESS DNS IP ADDRESS DOMAIN If the DHCP server cannot be connected, "DHCP ERROR" is displayed in each field. If the DNS function has also been enabled and if the DHCP server and the DNS server work together (if the DNS server supports dynamic DNS), enter a host name.

- 324 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

COMMON screen (basic and detail)


After pressing soft key [COMMON], press either page key to call a desired Ethernet common setting screen (basic, detail). If the DHCP server is connected successfully and if the setting data can be obtained, the screen is displayed as shown below.

When the DHCP server is connected successfully (1st page)

When the DHCP server is connected successfully (2nd page)

- 325 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

If the host name is not specified, the CNC automatically assigns a host name in the "NC-<MAC-address>" format.

Example of automatically assigned host name

If the DHCP server cannot be connected, the screen is displayed as shown below.

When the DHCP server cannot be connected (1st page)

When the DHCP server cannot be connected (2nd page)

- 326 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

Check items
Item IP ADDRESS SUBNET MASK ROUTER IP ADDRESS DNS IP ADDRESS 1,2 DOMAIN Description If the DHCP server is connected successfully, the items obtained from the DHCP server are displayed. If the DHCP server cannot be connected, "DHCP ERROR" is displayed.

Setting items
Item HOST NAME Description Enter the host name of the CNC. If a DHCP server and a DNS server work together, the DHCP server notifies the DNS server of this host name. If the host name is left blank, a host name is automatically assigned in the "NC-<MAC-address>" format. Example of automatically assigned host name: NC-00E0E4000001

Display items
Item MAC ADDRESS Description MAC address of embedded Ethernet

- 327 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.2.3.3

Related NC parameters

For embedded Ethernet port


#7 14880 #6 DHC #5 DNS #4 #3 D1E #2 #1 #0

[Input type] [Data type] #3 D1E

Setting input Bit When the DHCP function is used: 0: The default parameters for the FOCAS2/Ethernet function are specified. PORT NUMBER (TCP) 8193 PORT NUMBER (UDP) 0 TIME INTERVAL 0 1: The default parameters for CIMPLICITY i CELL are specified. PORT NUMBER (TCP) 8193 PORT NUMBER (UDP) 8192 TIME INTERVAL 50 The DNS function is: 0: Used. 1: Not used. The DHCP function is: 0: Used. 1: Not used. A change in these parameters becomes effective after the power is turned off and on or after the embedded Ethernet function is restarted.

#5

DNS

#6

DHC

- 328 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

5.2.4

Backing up and Restoring Communication Parameters


This section describes how to back up the embedded Ethernet communication parameters to a memory card and to restore them from the memory card. 1. 2. 3. Press the function key .

4.

5. 6.

The soft keys [EMBED] and [PCMCIA] appear. (If they do not appear, press the continuous menu key.) When the soft key [EMBED] or [PCMCIA] is pressed, the Ethernet Setting screen, respectively, for the embedded Ethernet port or the PCMCIA Ethernet card appears. Once the soft keys [COMMON] and [(OPRT)] are pressed, pressing the soft key [+] displays the soft keys [BACKUP], [RESTORE], [ALLBACK], and [ALL RES] for backing up or restoring communication parameters as shown below. Pressing the soft key [BACKUP], [RESTORE], [ALLBACK], or [ALL RES] displays the soft keys [EXECUTE] and [CANCEL]. Once the name of a file to be backed up or restored is entered into a key-in buffer, pressing the soft key [EXECUTE] starts the respective operation. "EXECUTING" blinks while backup or restoration is in progress.

- 329 -

5.EMBEDDED ETHERNET FUNCTION BACKUP

B-64305EN/01

The embedded Ethernet communication parameters are saved from the SRAM of the CNC main unit to the memory card. If a file name is specified in the key-in buffer, the specified file name is used when the parameters are saved to the memory card. If no file name is specified, the file name EMBETHER.MEM is used.

RESTORE
The embedded Ethernet communication parameters are read from the memory card and saved to the SRAM of the CNC main unit. If a file name is specified in the key-in buffer, the specified file name is used when the parameters are read from the memory card. If no file name is specified, the file name EMBETHER.MEM is used.

ALLBACK
All valid embedded Ethernet, Fast Ethernet/Fast Data server, and PROFIBUS-DP master/slave communication parameters are saved from the SRAM of the CNC main unit to the memory card. If a file name is specified in the key-in buffer, the file name is used when the parameters are saved. If no file name is specified, the file name NETWORK.MEM is used.

ALL RES
All valid embedded Ethernet, Fast Ethernet/Fast Data server, and PROFIBUS-DP master/slave communication parameters are read from the memory card and saved to the SRAM of the CNC main unit. However, if a communication function related to a valid communication parameter is disabled in the CNC, that parameter is not saved to the SRAM. If a file name is specified in the key-in buffer, the specified file name is used when the parameters are read from the memory card. If no file name is specified, the file name NETWORK.MEM is used.

NOTE 1 Communication parameter backup and restoration are usable only in the MDI mode and at an emergency stop. 2 Performing communication parameter restoration leads to an alarm condition that requests to turn off the power. 3 When communication parameters are backed up or restored, the memory card is always used no matter what the external input/output device number (NC parameter No. 20) is.

- 330 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

5.3

SWITCHING BETWEEN THE EMBEDDED ETHERNET DEVICES


There are two types of embedded Ethernet devices: the embedded Ethernet port and PCMCIA Ethernet card. Screen operation is required to switch between these two types of devices.

Procedure
1 2 3 Press the function key . Soft keys [EMBED] and [PCMCIA] appear. (When there is no soft keys, press the continue key.) Press soft key [EMBED] or [PCMCIA], press soft key [COMMON], and then press [(OPRT)] to display soft key [EMB/PCM]. Pressing soft key [EMB/PCM] switches between enabled devices. If you want to execute the switchover, press soft key [EXECUTE]. If you do not want to execute the switchover, press soft key [CANCEL]. The valid devices are switched each time Step 4 is performed.

NOTE Information on a switched device is stored in nonvolatile memory. On the next power-on, the device last selected can be used as is.

- 331 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.4
5.4.1

EMBEDDED ETHERNET OPERATIONS


FTP File Transfer Function
The operation of the FTP file transfer function is described below.

Host file list display


A list of the files held on the host computer is displayed.

Procedure
1 2 Press the function key . Press soft key [DIR+]. The program folder screen appears. (If the soft key does not appear, press the continuous menu key.)

Press soft keys [(OPRT)] and [DEVICE] in that order. The soft keys for selectable devices appear.

Pressing soft key [EMB ETH] displays the Embedded Ethernet host file list screen, on which a list of files in the host computer connected with the embedded Ethernet port is displayed.

- 332 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

Embedded Ethernet host file list screen (8.4-inch LCD)

Embedded Ethernet host file list screen (10.4-inch LCD)

- 333 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

NOTE When using the FTP file transfer function, check that the valid device is the embedded Ethernet port. The two conditions below determine a connection destination on the host file list screen: (1) Check that the valid device is the embedded Ethernet port. It is selected using soft key [EMB/PCM] on the Ethernet setting screen. (2) A host computer can be selected from connection destinations 1, 2, and 3. A computer to be connected is selected using the operation procedure described in Subsection 5.2.2.1, "Operation on the FTP file transfer setting screen" or HOST CHANGE explained later.
5 When a list of files is larger than one page, the screen display can be switched using the page keys .

Display item DEVICE (AVAILABLE DEVICE)


The currently selected device is displayed.

CON HOST (CONNECT HOST)


Number of the currently connected host of the host computer

REG NUM (REGISTERED PROGRAM)


The number of files in the current folder.

DEVICE
Current device. When the embedded Ethernet host file list is selected, EMB_ETHER is displayed.

CURRENT FOLDER
Current work folder in the host computer

FILE LIST
Information of the files and folders in the host computer

Operation list DEVICE (DEVICE CHANGE)


Enables a device to be selected from the program folder screen. To select the embedded Ethernet host file list, press soft key [EMB ETH].

- 334 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

DIR +
Switches between the outline and detailed file lists.

F CREAT (CREATE FOLDER)


Create a subfolder in the current work folder in the host computer.

DELETE
Deletes a file or folder in the host computer.

RENAME
Renames a file or folder in the host computer.

HOST (HOST CHANGE)


Changes the connected host computer.

SEARCH
Searches for a file through the current folder in the host computer.

REFRESH
Updates the information displayed on the embedded Ethernet host file list screen.

F INPUT
Transfers a program from the host computer to the CNC memory.

F OUTPUT
Transfers a program from the CNC memory to the host computer.

NOTE The character strings enclosed in parentheses are those displayed when the 10.4-inch LCD unit is used.

- 335 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.4.1.1

Displaying and operating the file list

DETAIL ON, DETAIL OFF


Displays can be switched between outline and detailed file lists. Either the outline or detailed file list display is selected each time soft key [DIR+] is pressed. The outline file list display contains only file names, while the detailed file list display contains file sizes, creation dates, and other file information as well file names.

NOTE 1 The items displayed in the detailed list depend on the FTP server setting on the host computer. 2 When files in the detailed file list are operated on, information displayed at the right edge of the screen is treated as a file name. Therefore, it is likely that files may not be operated on properly depending on displays or file names. If this is the case, use the outline file list display. REFRESH
Update the contents of the file list. Pressing soft key [REFRESH] causes the file list contents to be updated.

Moving a folder
Move a folder. 1 Select a folder you want to move using cursor keys . 2 Press MDI key . and

CREATE FOLDER
Create a new folder. 1 Move to a folder in which you want to create a new folder. 2 Key in a folder name. 3 Press soft key [F CREAT] ([CREATE FOLDER]).

- 336 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

DELETE
Delete a file or folder. 1 Select a file or folder you want to delete using cursor keys and 2 .

Press soft key [DELETE]. To execute the deletion, press soft key [EXEC]. To cancel the deletion, soft key [CANCEL].

DELETE (multiple files)


Delete multiple files at a time. 1 Press soft key [SELECT] ([SELECT START]). 2 Select a file or folder you want to delete using cursor keys and 3 .

Press soft key [SELECT]. The selected file is highlighted. Repeat steps 2 and 3 for each file you want to delete. 4 Press soft key [DELETE]. To execute the deletion, press soft key [EXEC]. To cancel the deletion, soft key [CANCEL].

NOTE 1 Up to 10 files can be selected at a time. 2 Only files can be specified. If folders are specified, an error is reported when an attempt is made to delete the folders. RENAME
Rename a file or folder. 1 Select a file or folder you want to rename using cursor keys and 2 3 . Enter a new file or folder name. Press soft key [RENAME].

SEARCH
Search for a file or folder through the current work folder. The file or folder found is displayed at the top of the file list. 1 2 Key in a file or folder name you want to search for. Press soft key [SEARCH].

- 337 -

5.EMBEDDED ETHERNET FUNCTION HOST CHANGE

B-64305EN/01

Change the connected host computer. 1 Press soft key [HOST] ([HOST CHANGE]). The connected host number changes from 1 to 2 to 3, then back to 1.

- 338 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

5.4.1.2

Transferring programs
How programs are transferred between the host computer and CNC is explained below.

NOTE 1 Inputting or outputting programs with the embedded Ethernet host requires setting NC parameter No. 20 with 9. 2 If an error occurs, check its cause on the Ethernet log screen. Inputting programs
The following procedure can be used to transfer programs from the host computer to the CNC memory. 1 2 Press soft key [F INPUT]. Select a program in the host computer. In the host computer, place the cursor on the file you want to input and press soft key [F GET], or key in the file name. Press soft key [F NAME]. If you want to rename a program when inputting it, key in the program number and press soft key [O SET]. Press soft key [EXEC].

3 4 5

The following table summarizes what operation occurs when the input file name [F NAME] and input program number [O SET] are omitted.
[F NAME] [O SET] Key input buffer Other than Oxxxx Oxxxx Input file name Input program Input program No.

-9999 O O -9999 O No relation

Warning message NO PROGRAM SELECTED is displayed, and nothing is input. Warning message THE WRONG DATA IS USED is displayed, and nothing is input. Continuous program File name set in the All programs in the input numbers starting at one key input buffer file (xxxx) set in the key input (NOTE) buffer Warning message NO PROGRAM SELECTED is displayed, and nothing is input. Continuous program Same file name as All programs in the input numbers starting at one program No. set by file set by [O SET] [O SET] (NOTE) File name set by [F All programs in a file Program No. used when NAME] specified by [F NAME] the program was saved Warning message THE WRONG DATA IS USED is displayed, and nothing is input. Continuous program File name set by [F All programs in the file numbers starting at one NAME] specified by [F NAME] set by [O SET]

O: Specified : Not specified


- 339 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

NOTE The input file name consists of O followed by a 4-digit number. If program input is executed by specifying program No. 1, for example, a file whose file name is O0001 is input. If this operation is performed for path 2, the file name is suffixed with the file extension P-2 (for this example, O0001.P-2).

- 340 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

Outputting programs
The following procedure can be used to transfer programs from the CNC memory to the host computer. 1 2 3 4 5 Press soft key [FOUTPUT]. Select a program in the CNC. Key in the program No. of the program to be output. Press soft key [O SET]. If you want to rename a program when outputting it, key in the file name and press soft key [F NAME]. Press soft key [EXEC].

The following table summarizes what operation occurs when the output file name [F NAME] and output program number [O SET] are omitted.
[F NAME] [O SET] Key input buffer Other than Oxxxx Oxxxx O-9999 -9999 O O -9999 O No relation File name set by [F NAME] Output file name Output program

Currently selected main program Currently selected main program name (NOTE 1 and NOTE 2) (NOTE 1) Warning message THE WRONG DATA IS USED is displayed, and nothing is output. Program name set in the key input Program in the CNC memory set in the buffer (NOTE 2 key input butter ALL-PROG.TXT (NOTE 3) Same file name as program No. set by [O SET] (NOTE 2) All programs in the CNC memory Program in the CNC memory set by [O SET] Currently selected main program (NOTE 1) All programs in the CNC memory Program in the CNC memory set by [O SET]

O : Specified : Not specified

NOTE 1 If a file is undergoing background editing, it is output. 2 The output file name consists of O followed by a 4-digit number. If a program whose program No. is 1 is output, for example, it is output under the file name O0001 to the host computer. If this operation is performed for path 2, the file name is suffixed with the file extension P-2 (for this example, O0001.P-2). 3 If this operation is performed for path 2, the file name ALL-PROG.P-2 is used.

- 341 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.4.1.3

Inputting special characters


Using bits 4 (SI1) and 5 (SI2) of NC parameter No. 13115 enables special characters and lowercase letters, which are not available on the MDI keypad, to be entered. Setting this NC parameter displays soft key [CHA-EXT]([CHARA EXT]). Pressing this soft key displays the following soft keys:

Pressing soft key [ABC/abc] switches between uppercase and lowercase characters for input. Which case can be currently input is indicated in the key input field.

Uppercase letter input

Lowercase letter input

Related NC parameters
#7 13115 #6 #5 SI2 #4 SI1 #3 #2 #1 #0

[Input type] [Data type] #4 SI1

Parameter input Bit Soft key input of the characters shown below is: 0: Disabled. 1: Enabled. <>%$!~:"' Soft key input of the characters shown below and switching between the uppercase and lowercase input modes by a soft key are: 0: Disabled. 1: Enabled. ()?*&@_

#5

SI2

- 342 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

5.5
Procedure

RESTART OF THE EMBEDDED ETHERNET


Communication using the embedded Ethernet can be restarted.

1 2 3

Press the function key

Soft keys [EMBED] and [PCMCIA] appear. (When there is no soft keys, press the continue key.) Press soft key [EMBED] or [PCMCIA], press soft key [COMMON], and then press [(OPRT)] to display soft key [RESTART]. Pressing soft key [RESTART] resets embedded Ethernet communication and then restarts it.

NOTE 1 Pressing soft key [RESTART] forcibly interrupts communication even when it is in progress. 2 This function makes a restart by software. An actual restart may be impossible under some conditions.

- 343 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

5.6

MAINTENANCE SCREEN FOR EMBEDDED ETHERNET FUNCTION


With the embedded Ethernet function, a dedicated maintenance screen is available. The maintenance screen enables operations to be checked when the embedded Ethernet function operates abnormally.

Displaying and operating the PING screen

Procedure
1 2 3 Press the function key . Soft keys [EMBED] and [PCMCIA] appear. (When there is no soft keys, press the continue key.) By pressing the [EMBED] soft key, the Ethernet Setting screen for the embedded Ethernet is displayed. By pressing the [PCMCIA] soft key, the Ethernet Setting screen for the PCMCIA Ethernet card can be set. Press soft key [PING] and then press [(OPRT)]. To send the PING command to connection destination 1 for FTP file transfer, press soft key [P.FTP1]. Similarly, to send the PING command to connection destination 2 or 3, press [P.FTP2] or [P.FTP3], respectively.

4 5

PING connection status screen

- 344 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION


6 To send the PING command to the desired destination, enter the address of the destination on the PING setting screen. (Page keys are used for switching.)

PING connection setting screen

After entering the address and the repeat count, press the soft key [P.EXEC]. The specified number of PING commands are sent to the specified destination. To cancel the PING command currently being sent, press soft key [P.CAN].

- 345 -

5.EMBEDDED ETHERNET FUNCTION Displaying Communication status screen

B-64305EN/01

Procedure
1 2 3 Press the function key . Soft keys [EMBED] and [PCMCIA] appear. (When there is no soft keys, press the continue key.) By pressing the [EMBED] soft key, the Ethernet Setting screen for the embedded Ethernet is displayed. By pressing the [PCMCIA] soft key, the Ethernet Setting screen for the PCMCIA Ethernet card can be set. To display the communication status of the embedded Ethernet, press soft key [COM STS]. Page keys can be used to switch between the sending state and the receiving state.

Communication status screen (1st page)

- 346 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

Communication status screen (2nd page)

Display items
Display item BAUDRATE Explanation Indicates the communication speed and communication mode. Communication speed: 100 or 10 Mbps Communication mode: Full or half duplex --------: Not connected to HUB Indicates the number of packets sent. Indicate the number of errors detected during packet transmission.

SEND PACKET COLLISION CARRIER SENSE LOST DELAYOVER UNDERRUN SEND PARITY ERROR RECEIVE PACKET ALIGNMENT ERROR CRC ERROR OVERRUN ERROR FRAME LENGTH ERROR RECV PARITY ERROR

Indicates the number of packets received. Indicate the number of errors detected during packet reception.

- 347 -

5.EMBEDDED ETHERNET FUNCTION Displaying Task status screen

B-64305EN/01

Procedure
1 2 3 Press the function key . Soft keys [EMBED] and [PCMCIA] appear. (When there is no soft keys, press the continue key.) To display the Ethernet Setting screen for the embedded Ethernet port or the PCMCIA Ethernet card, press soft key [EMBED] or [PCMCIA], respectively. Pressing soft key [TSK STS] causes the task status of the embedded Ethernet function to be displayed.

Task status screen

The following symbols are used.


Symbol and meaning FOCAS2 #0 (FOCAS2/Ethernet) C: Waiting for a connection from the host W: Data processing in progress (1) D: Data processing in progress (2) N: FOCAS2 out of service W: Data processing in progress (1) D: Data processing in progress (2) X: Not yet executed W: Data processing in progress (1) D: Data processing in progress (2) X: Not yet executed W: Data processing in progress (1) D: Data processing in progress (2) X: Not yet executed C: Execution wait W: Data processing in progress (1) D: Data processing in progress (2) X: Not yet executed

FOCAS2 #1,#2 (FOCAS2/Ethernet) PMC (FANUC LADDER-III) UDP (CIMPLICITY iCELL) FTP (FTP file transfer function)

- 348 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION

5.7

LOG SCREEN OF THE EMBEDDED ETHERNET FUNCTION


This screen displays the log of the embedded Ethernet function.

NOTE If alarm SR2032, EMBEDDED ETHERNET/DATA SERVER ERROR is issued during data transfer using the embedded Ethernet function, check the error details on the log screen of the embedded Ethernet function. Displaying the log screen

Procedure
1 2 Press the function key . To display the log screen for the embedded Ethernet port or PCMCIA Ethernet card, press soft key [EMB LOG] or [PCM LOG], respectively. (When there is no soft keys, press the continue key.)

LOG screen

The newest error log appears at the top of the screen. The date and time when an error occurred are displayed at the right end of the line. The format of date and time data is MMM.DD hh:mm:ss where MMM represents a month, DD represents a day, hh represents hours, mm represents minutes, and ss represents seconds. The date and time of the upper item shown above is January 28, 12:28:17.

- 349 -

5.EMBEDDED ETHERNET FUNCTION

B-64305EN/01

To clear the log, press soft keys [(OPRT)] and [CLEAR] in that order.

The log for each function can be displayed by using soft keys on the embedded Ethernet log screen. (1) Soft key [ALL] Displays all log related to the embedded Ethernet. (2) Soft key [COMMON] Displays the log related to the parameter settings of the embedded Ethernet function and the basic communication function. (3) Soft key [FOCAS2] Displays the log related to the FOCAS2/Ethernet function. (4) Soft key [FTPTRNS] Displays the log related to FTP file transfer.

Error and message


Error No. E-0118 E-0119 Log message Error occurred while wait for FOCAS2 pdu Description and necessary action A communication error has occurred because of any of the following: The network quality has been lowered to such a level that data cannot be received from a PC at the other end. The communication channel has been logically shut down. Software running on a PC at the other end has logically shut down the communication channel. The Ethernet cable has been disconnected. All the FOCAS2/Ethernet communication channels are busy. A message sent by the FTP server is directly displayed. Software of the FTP server may not be running. Start the software of the FTP server. The specified IP address of the router may be wrong. Alternatively, the router may be turned off. Check whether the IP address of the router has been correctly specified and whether the router is turned on. The specified IP address of the FTP server may be wrong. Alternatively, the FTP server may be turned off. Check whether the IP address of the FTP server has been correctly specified and whether the FTP server is turned on. Check whether a correct user name and password are specified when logging into the FTP server. Check whether a correct user name and password are specified when logging into the FTP server. Check the work folder logging into the FTP server.

E-011A E-0200 E-0202 E-0207

All communication paths are busy Received message from FTP server Connection failed with FTP server The router is not found

E-0208

The FTP server is not found

E-020B E-020C E-020D

Cannot login into FTP server The parameters of FTP server are wrong Changing a work folder of host failed

- 350 -

B-64305EN/01

5.EMBEDDED ETHERNET FUNCTION


Log message Frame transmission failed (TCP) Description and necessary action A communication error has occurred because of any of the following: The network quality has been lowered to such a level that data cannot be received from a PC at the other end. The communication channel has been logically shut down. Software running on a PC at the other end has logically shut down the communication channel. The Ethernet cable has been disconnected. The MAC address is not written in the hardware. Alternatively, the hardware has been damaged. An excessive amount of data is flowing over the network. One possible solution is to divide the network. Specify a correct IP address in the designated format. Specify an IP address. Specify a correct subnet mask in the designated format. Specify a subnet mask. There may be class disagreement between the IP address of the local node and the IP address of the router. There may be class disagreement between the IP address of the local node and the IP address of the DNS server. Check whether a correct host name is specified. Check whether a correct domain name is specified. A value beyond the permissible setting range may be specified. A value beyond the permissible setting range may be specified. Specify a correct IP address in the designated format. Specify a correct IP address in the designated format. A value beyond the permissible setting range may be specified. The specified user name may contain a prohibited character. The specified password may contain a prohibited character. The specified log-in folder name may contain a prohibited character. To allow a set-up, disable the DHCP client function. The software or hardware of embedded Ethernet function cannot be recognized. Check whether the software has been incorporated. Check whether the hardware is sound. An internal error has occurred. Make a notification of the error number.

Error No. E-041A

E-0901 E-0A06 E-0B00 E-0B01 E-0B02 E-0B03 E-0B04 E-0B05 E-0B06 E-0B07 E-0B08 E-0B09 E-0B0B E-0B0B E-0B0C E-0B0D E-0B0E E-0B0F E-0B18 E-0B19 E-0B1A E-XXXX

Cannot read MAC address Network is too busy The own IP address is wrong The own IP address is not set Subnet mask is wrong Subnet mask is not set Router IP address is wrong IP address of DNS server is wrong The own host name is wrong The own domain name is wrong TCP port number is wrong UDP port number is wrong IP address of remote FTP server is wrong IP address of remote FTP server is wrong Port No of a remote FTP server is wrong User name of remote FTP server is wrong Password of remote FTP server is wrong Login folder of remote FTP srv is wrong Cannot set because DHCP is available Embedded Ethernet hardware isn't found

(No message)

- 351 -