Documente Academic
Documente Profesional
Documente Cultură
Omron Networks............................................................................................................................. 2
Topologies................................................................................................................................... 2
Transmission media.................................................................................................................... 2
Protocol....................................................................................................................................... 2
IP Address...................................................................................................................................... 3
IP Address Configuration............................................................................................................. 3
Allocating IP Addresses............................................................................................................... 3
Ethernet Unit IP Address Settings............................................................................................... 4
Subnet Masks............................................................................................................................. 4
General Specifications.................................................................................................................... 5
Nomenclature and Function............................................................................................................ 6
CS1W-ETN21 front face.............................................................................................................. 6
Indicators..................................................................................................................................... 7
Installation and Initial Setup............................................................................................................ 8
Overview of Startup Procedure................................................................................................... 8
LAB 1 Determine IP Addressing, Switch Settings...........................................................................9
Setting the Unit Number.............................................................................................................. 9
Setting the Node Number.......................................................................................................... 10
Mounting the Ethernet Module to the PLC....................................................................................10
Connecting the Ethernet Cable..................................................................................................... 12
Network Installation................................................................................................................... 12
Precautions on Laying Twisted-pair Cable................................................................................12
Using Contact Outputs (Common to All Units)..........................................................................13
Hub Connections.......................................................................................................................... 15
Mounting Locations................................................................................................................... 15
Ethernet Port Pin Out................................................................................................................ 16
Lab 2 Creating I/O Tables and Setting IP Address........................................................................17
Routing Table Overview............................................................................................................ 18
Lab 3 Check the IP address setting DM Method...........................................................................20
Check the PLC Ethernet Module LED Indicator........................................................................20
Check the IP Address on the Computer....................................................................................20
Ping the PLC Ethernet module via the computer......................................................................21
Going on line with CX Programmer over Ethernet........................................................................24
Network Programming via Ethernet........................................................................................... 24
Network Programming via Ethernet / Controller Link Gateway.................................................25
Using SEND RECV Commands................................................................................................ 26
Lab 4 Network SEND and RECV Instructions...............................................................................29
Lab 5 FINS Commands via CMND Instruction..........................................................................30
Lab 6 NS Screen Connection on Ethernet................................................................................31
Lab 7 CX Integrator Ethernet Connection used to program NS Screen....................................34
Appendix 1 Using FTP (File Transfer Protocol ) to transfer files from NS Ethernet Units..............36
Appendix 2 FTP with PLC CF Card...........................................................................................41
Appendix 3 Ethernet Unit Memory Allocations CIO, DM, AR Areas ………………………….49
Troubleshooting Connections ……………………………………………………………………..…73
1
Omron Ethernet Training
Terminology
Ethernet is a type of local area network (LAN) not a protocol
OSI Open Systems Interconnect - this is a model that consists of seven layers:
Application, Presentation, Session, Transport, Network, Data Link, and Physical.
Router a device that relays or routes messages from one network to another.
Topologies
Token Ring
Token Bus
Star configuration
Transmission media
Wireless
Fiber optic
Coaxial
Twisted pair
Protocol
IP Internet Protocol
UDP User Datagram Protocol
TCP Transmission Control Protocol
FTP File Transfer Protocol
FINS Factory Interface Network Service
2
Omron Ethernet Training
IP Address
(Reference Cat. No. W421-E1, section 5-1)
Ethernet networks use IP addresses for communications. IP addresses identify both the Ethernet
network and the node (host computer, Ethernet Unit, etc.). IP addresses must be set and
controlled so that they are not duplicated.
IP Address Configuration
IP addresses are made up of 32 bits of binary data divided into four 8-bit fields called
octets. These four octets provide the network number (net ID) and host number (host ID).
The network number identifies the network, and the host number identifies the node (or
host) on the network.
The network numbers in an IP address are divided into three classes, A, B, and C, so that
the address system can be selected according to the scale of the network. (Classes D
and E are not used.) The configuration of the IP address for each of these classes is
shown in the following diagram.
The number of networks in each class and the number of nodes possible on the network
differ according to the class.
The 32 bits of an IP address are divided into four sections of eight bits each, and
expressed as a punctuated number. IP addresses are represented by the decimal
equivalent of each of the four octets in the 32-bit address; each separated by a period.
For example, the binary address 10000010 00111010 00010001 00100000 would be
represented as 130.58.17.32.
Note the same network number must be set for every node on the same Ethernet network.
Allocating IP Addresses
IP (Internet Protocol) is a standard communications protocol used throughout the world,
and is designed to enable communications between any Ethernet nodes regardless of
the networks on which they exist. To achieve this, network numbers are allocated by the
Network Solutions, InterNIC Registration Services, to ensure that all Ethernet networks
3
Omron Ethernet Training
have unique numbers regardless of where they exist. The local system administrator is
left the responsibility of allocating unique host numbers locally. You therefore should
obtain a network number from the InterNIC Registration Services to ensure uniqueness
and allow for future network expansions if required.
Subnet Masks
Operation and management of a network can become very difficult if too many nodes are
connected on a single network. In such a case it can be helpful to configure the system so that
a single network is divided up into several sub-networks. This can be done by using part of the
host number as a subnet number. Internally the network can be treated as a number of sub-
networks, but from the outside it acts as a single network and uses only a single Network ID.
To establish sub-networks, the Host ID in the IP address is divided into a Subnet ID and a
Host ID by using a setting called the Subnet Mask. The Subnet Mask indicates which part of
the Host ID is to be used as the Subnet ID. All bits in the Subnet Mask that correspond to the
bits in the IP address used either as the Network ID or Subnet ID are set to “1”. The
remaining bits, which correspond to the bits in the IP address actually used for the Host ID,
are set to “0.”
The following example shows the Subnet Mask for an 8-bit Subnet ID used in a class-C IP
address.
Set the same Subnet Mask value for all of the nodes on that sub-network. If no sub-networks
are used, there is no need to set Subnet Masks. In that case, the following Subnet Mask
values will be used depending on the IP address class.
4
Omron Ethernet Training
General Specifications
(Reference Cat. No. W421-E1, section 1-4)
5
Omron Ethernet Training
6
Omron Ethernet Training
Indicators
The status of the indicators shows the operating status of the Ethernet Unit, as shown below.
7
Omron Ethernet Training
Note 1: Used mainly when a Programming Console is used to set only the local IP address (set in allocated DM words). When using this
method, always leave the local IP address in the CPU Bus Unit Setup Area set to the default value of 00.00.00.00. If the CPU Bus Unit
Setup Area contains any other value, any setting made in the allocated DM words will be overwritten with it.
2: The local IP address and other parameters can be set with the CX-Programmer.
3: A PLC Programming Device is required: CX-Programmer, CX-Net, CX Integrator, Programming Console, etc.
4: The CX-Net is required.
5: The CX-Programmer is required.
8
Omron Ethernet Training
Station 1
PLC 192.168.000.001
NS 192.168.000.011
Computer 192.168.000.101
Station 2
PLC 192.168.000.002
NS 192.168.000.012
Computer 192.168.000.102
Station 3
PLC 192.168.000.003
NS 192.168.000.013
Computer 192.168.000.103
Station 4
PLC 192.168.000.004
NS 192.168.000.014
Computer 192.168.000.104
Station 5
PLC 192.168.000.005
NS 192.168.000.015
Computer 192.168.000.105
Station 6
PLC 192.168.000.006
NS 192.168.000.016
Computer 192.168.000.106
A unique Unit number; setting range 0 to F, has to be set for each communication module
(Controller Link, DeviceNet, Ethernet, and Serial Communication Unit). ETN=1,CLK=2
Usually it is best to set the Unit number to be the same as the network number. Network
numbers start from 1 to 127. (Network number: when the system has more that one
communication module a network number is required for identification.)
Set each module to Unit 1, this is so that the whole class is Net 1. We will set our Network
Number equal to our Unit number for quick reference. CLK is unit 2 Net 2.
9
Omron Ethernet Training
An IP address for the PLC Ethernet module must be obtained from the IT department so no
duplicate IP s are assigned on the network.
By default the node number; setting range 1 to 254, should equal to the last octet of the IP
address. For example if the IP address is 192.168.0.116. The last octet is 116 10 then the
rotary switches should be set to 7416.
With the FINS communications service, when there are multiple Ethernet Units connected to
the Ethernet network, the Ethernet Units are identified by node addresses. Do not set a
number that has already been set for another node on the same network.
Set the node number equal to the workstation number (1 to 6)
Ethernet Units can be mounted to any slots in either a CS-series CPU Rack or a CS-series
Expansion CPU Rack, but the number of slots to which they can be mounted depends on the
Backplane. Up to four Ethernet Units can be mounted to a single PLC. If it is mounted in
combination with other CPU Bus Units (e.g., Controller Link Units), the maximum total number of
CPU Bus Units that can be mounted is 16.
The CS1W-ETN21 Ethernet Unit’s maximum current consumption is 380mA. Make sure that the
total current consumption of all the Units connected to the same CPU Backplane or Expansion
Backplane does not exceed the output capacity of the Power Supply Unit.
10
Omron Ethernet Training
Note: A cross-over cable can be used for a point to point connection with the computer. When
using point to point communications, it may be convenient to use the default IP address,
192.168.250. FINS node number.
The default IP address is present when the card is new and the DM30,000 area
reserved for the communications bus unit is all zeros. Simply set the FINS node number on
the front of the card.
Network Installation
(Reference Cat. No. W421-E1, section 2-4)
11
Omron Ethernet Training
Environment Precautions
The UTP cable is not shielded, and the hub is designed for use in office automation (OA)
environments. In environments subject to noise, construct a system with shielded twisted-
pair (STP) cable and hubs suitable for a factory automation (FA) environment.
Do not lay the twisted-pair cable together with high-voltage lines.
Do not lay the twisted-pair cable near devices that generate noise.
Do not lay the twisted-pair cable in locations subject to high temperatures or high humidity.
Do not lay the twisted-pair cable in locations subject to excessive dirt and dust or to oil
mist or other contaminants.
12
Omron Ethernet Training
Note it is very difficult to distinguish cross cables and straight cables by appearance.
Incorrect cables will cause communications to fail. We recommend using cascade
connections with straight cables whenever possible.
With cascade connections, up to 5 segments can be connected using up to 4
repeaters (i.e., 4 hubs).
Stack Connections
Connect the hubs using special cables or special racks.
Normally there is no limit to the number of hubs in a stack, and each stack is treated
as one hub. Some hubs, however, are limited in the number of hubs per stack.
13
Omron Ethernet Training
Mounting Location
Mount (or connect) any Contact Output Units as far away from the Ethernet Unit as possible.
Cable Location
Separate the transceiver cable or twisted-pair cable connecting the Ethernet Unit as far from
the wiring to the Contact Output Units as possible. The coaxial cable must also be placed as
far away from the Contact Output Units and their wiring as possible.
Hub Measures
Attach several ferrite cores designed for EMI countermeasures on the transceiver cable or
twisted-pair cable near the hub. The transceiver must also be placed as far away from the
Contact Output Units and their wiring as possible.
14
Omron Ethernet Training
Ethernet Connectors
The following standards and specifications apply to the connectors for the Ethernet twisted-
pair cable.
Electrical specifications: Conforming to IEEE802.3 standards.
Connector structure: RJ45 8-pin Modular Connector (conforming to ISO 8877)
15
Omron Ethernet Training
I/O tables are used to identify Units mounted to the PLC, and to allocate I/O to them. With CS-
series and CJ-series PLCs, whenever there is a change to the Unit configuration it is
necessary to create I/O tables and register the Units to the CPU Unit.
The I/O tables can be created in the following ways.
Using the CX-Programmer offline.
Using the CX-Programmer online, with the Units mounted to the PLC.
Using the Programming Console, with the Units mounted to the PLC.
Using the CPU Unit's automatic I/O allocation at startup. (This method is available for the
CJ Series only.)
4 Open the Main rack and check the I/O Table settings. The values in square brackets are
the CIO allocated words.
16
Omron Ethernet Training
6 Local routing table setting. Right click the Ethernet Unit and select;
8 Select the Table View once the Local Routing Table comes up.
Set the following numbers, Ethernet is set to Net 1 and Controller Link to Net 2 in this
case.
Select Options/Transfer to PLC. The PLC should still be in program mode.
Close the routing table window, it is not necessary to save the routing table, but you may
if you wish to see it in the off line mode.
17
Omron Ethernet Training
When the FINS communications service is used, routing tables must be created in advance.
Routing tables are required in the following circumstances.
When multiple Communications Units are mounted to a single PLC system.
When communicating with a PLC or computer on another network. For example remote
programming using CX-Programmer, sending FINS messages, or using SEND, RECV,
and CMND functions in the ladder program.
It is not necessary to set routing tables if one Communications Unit is mounted to the PLC and
the nodes are connected as one network. The routing tables are required not only for nodes
communicating via the FINS communications service but also for all relays nodes on the network.
The routing tables describe the transmission path for FINS messages when the FINS
communications are used. It consists of two tables: A local network table and a relay network
table.
Note
1. The unit number is set (0 to F: 0 to 15) by the rotary switch on the front of the Ethernet
Unit.
2. The network address is the number of the network (1 to 127) to which the
Communications Unit or Board is connected. It is set when the local network table is
created.
18
Omron Ethernet Training
1. The destination network number (End network). This is the other network the local
communication unit needs to respond and send messages
2. The relay network number (Relay network). This is the local network number.
3. The relay node number (Relay node). This is the node number of the communication
unit with the same local network number that is mounted on the gateway
PLC/computer.
The following example shows the relay network tables for sending data from PLC #1 (the
local node: network #1, node #1) to PLC #4 (the destination node: network #3, node #2).
19
Omron Ethernet Training
20
Omron Ethernet Training
From the Run window type cmd.exe in the Open: text box
Make sure the Subnet Mask of the computer matches the one set in the PLC. In this example
the subnet mask is 255.255.255.0.
Make sure the computer and the PLC are on the same network. In this example the network
is 192.168.0 (Net ID) last Octet is Host ID = FINS node #.
Default Gateway is optional. Some computers do not have this set.
21
Omron Ethernet Training
If the ping returns with a reply then the setting on the computer and the PLC is correct. See
below picture.
If the ping returns with a time out then check the computer and the PLC Ethernet setup.
Check the cabling between the computer to the HUB and the cabling between the PLC and
the HUB.
1 Double click the PLC in the workspace window, in the offline mode to obtain the Change Dialog
Box
Change Toolbus to Ethernet and click Settings.
Set the following settings; The node number = your station number
22
Omron Ethernet Training
Then select the Driver Tab, enter the IP address of your PLC, station 1 shown.
Select Work Online, and you should be able to go on-line with Ethernet.
Verify on-line status and check the SD and RD LEDS are on or flashing on the ETN21 card.
ETN
network # 1
23
Omron Ethernet Training
24
Omron Ethernet Training
Send only sends data in 1 direction. To get data in the other direction we can either put a send
command in the remote PLC or use RECV(098) in the local PLC which requests data from the
remote PLC.
A broadcast command can be done by setting the node# to FF (send to all nodes).
SEND (090) can be used on Ethernet, Controller Link, Sysmac Link and Sysmac Net.
In the following example, 100 words are sent from Node 01 starting at DM0 to Node 02 DM0,
across Network 1.
Example;
Ethernet , Network 1 set in two PLCs CS1W-ETN21
Node 01, Bus Unit 1 IP 192.168.000.001 FINS Node number 001
Node 02, Bus Unit 1 IP 192.168.000.002 FINS Node number 002
Local Routing Table in each PLC
25
Omron Ethernet Training
26
Omron Ethernet Training
Handshaking
The logical port assigned in the C+3 control word is one of 8 in the CPU and is shared with
Protocol Macro function and other communications functions. Assign a logical port to
each simultaneous operation. If we need more that 8 logical ports in a given scan, we
must interlock them so that only one executes at a time .
When the SEND is executed, the logical port goes low, and on completion of the command it
goes high.
Communication Result Code A203 to A210 , contents written at end of SEND execution,
0000=normal, 0204 busy.
27
Omron Ethernet Training
Control Words for SEND Change only D31602 upper byte, destination node#
Control Words for RECV Change only D31612 upper byte, source node#
28
Omron Ethernet Training
29
Omron Ethernet Training
1 Obtain an NS Screen with Ethernet port, Ethernet cable for Host connection, CBL-202 cable
and connect the NS to 24 VDC.
2 Determine the OS version of the NS by pressing and 2 of the 4 corners, select Special Screen /
System Version.
30
Omron Ethernet Training
31
Omron Ethernet Training
8 Add a lamp tied to bit 0.07 in the same way a Push Button was added above.
9 Plug a CBL-202 cable from the computer COM1 serial port to Port A of the NS.
It is easiest to setup the Ethernet via serial to start with.
10 Download the NS settings and screen program by selecting;
PT/Transfer
32
Omron Ethernet Training
2 Select the Edit Comms settings Icon, or right click the default PLC at the bottom window.
3 Set your PLC CS1G-CPU42H , Ethernet, Net 1, Node 1-6, specify your PLCs IP Address in
the driver tab.
4 Click the work-online Icon, or right click the target PLC below and select Work Online
33
Omron Ethernet Training
6 Wait while the network and parameters are uploaded. Note the selected PLC in the network
window is the one you are currently online with.
7 Select your NS Screen and then right click, select Start Special Application, with settings
Inherited
8 When CX Integrator starts you can either open the file for the NS and upload on top of it, or
close the dialog box and select PT/Transfer From PT.
Notice how the Comms setting for upload / download cannot be set, the setting is a function
of CX Integrator.
34
Omron Ethernet Training
The NS series screens Alarm object is capable of out putting a file to the CF card ( Omron pn
HMC-EF672 64 MB) of the NS if equipped.
Since the CF is a portable HD, it is possible to use FTP ( File Transfer Protocol ) commands to
access the files.
1 Setup of Project
Setup the project for Ethernet Communications, set the IP address etc.
Set in Comm-All Ethernet Enable. Set in Initial $SB=HR040 $SW=HR000
In addition to this you will need to enter the System menu fron the front of the NS, two corners,
and select COMMS, press ETHERNET setup and select FTP ENABLE, then write.
Test Setup;
NS8-TV01B-V1 IP 192.168.000.011 FINS Network 1
CS1 PLC IP 192.168.000.002 CS1W-ETN21
IBM Fixed IP 192.168.000.010
2 Note that to Save the file to the CF card from within the NS, we need to execute a save
command.
This can be done in the system menu of the NS or by allocating system memory to the PLC and
turning on the corresponding bit in the PLC (and Macro).
35
Omron Ethernet Training
Check all of the Items, note $SB33= HR041.01 in the PLC ,if $HR040 is set as $SB allocation.
When H041.01 is turned on in the PLC, the NS will save the updated version of the Alarm file on
the CF card.
3 Create the Alarm History functional object first, then select Settings/Alarm Event. Register
each alarm condition and select Save to History File (S).
36
Omron Ethernet Training
5 Save the Alarm file to the CF card. Either enter the system menu of the NS and press
Initialize/Save Alarm/Event History or turn on the allocated System Bit, $SB33=H41.01 in the
Watch Window of CX programmer.
6 Check that a file named Alarm.CSV is on the CF card. You can either put the CF card in a
PCMCIA adapter with Adapter HMC-AP001 or use the Memory card transfer tool found under
Start/Programs/Omron/NS Designer/Memory Transfer Tool
Click Connect, select the Alarm.CSV file then click the Red upload button.
Serial Comm1 was use for this transfer and cable CBL-202.
37
Omron Ethernet Training
A file also has to be created on the IBM to emulate the user id and password entries.
Here is the dialog seen when the Batch file (ftp.bat) is run sucessfully.
38
Omron Ethernet Training
39
Omron Ethernet Training
For CS/CJ series PLC, a CF memory card can be used to store files. All user programs, I/O
memory areas, and the parameter areas can be stored as files. There are four memory sizes can
be selected from: 8,15,30,64 Mbytes. With the adapter, HMC-AP001, the memory card can be
inserted into the PCMCIA slot and is automatically detected as an additional hard-drive.
If data is logged on the CF card as .CSV or .TXT, simply double clicking the file will open up Excel
and the data directly.
40
Omron Ethernet Training
Example;
41
Omron Ethernet Training
For the first parameter, the left most-bit can be set as the following:
0: Binary format in *.IOM
1: Non delimited word in *.TXT
2: Non delimited double word in *.TXT
3: Comma delimited word in *.CSV
4: Comma delimited double word in *.CSV
5: Tab delimited word in *.TXT
6: Tab delimited double word in *.TXT
42
Omron Ethernet Training
Since we will use the EM bank in the CS1G-CPU42H, we must first set the
EM bank up as file memory. Select “Settings” in the project workspace
tree.
Note ; The CPU42 has only 1 bank of EM and that the Symbols,
Comments and Index of the program will also be stored there. The CF card
in 8/30 and 64MB sizes will hold more data.
43
Omron Ethernet Training
The one second clock pulse is used to execute FWRIT . A343.15 busy bit
is used to ensure we don’t execute FWRIT when the processor is busy.
The number of words specified in H10, stored at beginning address D210
are written to the EM file memory.
44
Omron Ethernet Training
Select Program/Compile from the pull down menu and check for no errors
in the Output Window.
6 Download the program and ensure “Settings” are selected during the
down load.
7 Cycle power to the PLC.
8 Run the program, and ensure the H0.00 is not set, indicating an error
executing FWRIT.
9 Open the Watch Window and set the following addresses with correct
Data Types. Enter the file name in H50 as /DA. Enter data into DM210-
215. H10 is the number of words to Datalog starting at DM210.
45
Omron Ethernet Training
The DA.CSV is the data logged, the other items are automatically stored by CX Programmer and
are the Symbols, Comments and Program Index.
15 Browse to the C: drive in My Computer and Select/Edit/Paste (or right click Paste) This may
take a minute as the computer uses FTP (file transfer protocol ) to copy the data from the CF
Card to the C: drive.
16 Finally, double click the DA.CSV file and Excel should open with the data.
Beyond the basics; It is possible to write a ladder program to capture the real time clock date,
convert to ASCII and store in the file name area (H50). This is done at the end of every day.
Using a 64MB CF card would greatly improve the data storage capacity.
46
Omron Ethernet Training
47
Omron Ethernet Training
The following items in the diagram can also be checked using software switch
settings on the CX-Programmer.
• The status of UDP/TCP sockets 1 to 8 (Opening Flag, Receiving Flag, Sending
Flag, Closing Flag, Results Storage Error Flag, Socket Open Flag)
• Service status (FTP status)
• FINS/TCP Connection Status
For explanations of how to use the related communications services listed in the
above diagram, refer to the indicated sections.
48
Omron Ethernet Training
49
Omron Ethernet Training
Note the status of these flags can also be checked using the software switch settings
on the CX-Programmer.
50
Omron Ethernet Training
The Results Storage Error Flag does not operate when socket services are requested by
control bit manipulation.
Check to be sure that this flag is ON before executing a send or receive request.
51
Omron Ethernet Training
The Ethernet Unit's FTP indicator also shows the FTP status, as follows:
Not lit: FTP server on standby. (FTP status: OFF)
Lit: FTP server operating. (FTP status: ON)
ON while CPU Unit memory is being accessed to store attached files using the mail receive function.
52
Omron Ethernet Training
53
Omron Ethernet Training
54
Omron Ethernet Training
55
Omron Ethernet Training
56
Omron Ethernet Training
DM Area Allocations
(Reference Cat. No. W421-E1-01, section 4-2)
Various kinds of data are stored in the offset positions shown in the following diagram, from
the beginning word in the area for each Unit.
The beginning word m is calculated by the following equation:
Beginning word m = D30000 + (100 x unit number)
The meaning of the items shown in the above diagram are explained on the following pages.
For details regarding the related communications services shown in the diagram, refer to the
indicated sections.
57
Omron Ethernet Training
The transmission status of user mail, periodic mail, and error log mail are stored in this word
as shown in the following table.
While mail is being sent, the transmission status of the three bits for each send condition
settings 1 to 8 are:
58
Omron Ethernet Training
59
Omron Ethernet Training
TCP Socket No. (1 to 8): Number of Bytes Received (Ethernet Unit to CPU Unit)
For each TCP socket, the number of bytes of data in the reception buffer is stored in one
word. A maximum of 4,096 bytes of data can be held in the reception buffer, but a value of
only up to the maximum value (1,984 bytes) that can be set for receive requests by
manipulating control bits or using CMND (490) is stored.
The Data Received Flag in the CIO Area turns ON and OFF linked to this word. This area is
given a value of 0000 hex when a receive request is executed by manipulating control bits or
using the CMND (490) instruction. If any data remains in the reception buffer after the receive
request processing is completed, the remaining number of bytes is stored and the Data
Received Flag turns ON again.
Before a receive request is executed, a check is performed to confirm that the required data is
available.
TCP Socket No. (1 to 8): Connection Status (Ethernet Unit to CPU Unit)
60
Omron Ethernet Training
When socket services are requested by control bit manipulation, the settings must be made in
advance in a Socket Service Parameter Area. The parameters used will vary depending on
the service requested. For details, refer to Operation Manual, Construction of Applications,
SECTION 6, and W421-E1.
Note Choose the method used to set the local IP address as follows:
Set the local IP address in the CPU Bus Unit System Setup when making other settings in the
CPU Bus Unit System Setup (i.e., the default settings are not used). The settings are made
with CX-Programmer.
Set the local IP address in the allocated words in the DM Area when using the CPU Bus Unit
System Setup at its default settings (i.e., for simple operation).
The setting can also be made with a Programming Console.
61
Omron Ethernet Training
Note
1. If a value other than 00.00.00.00 is set as the local IP address in the CPU Bus Unit
System Setup, even if an IP address is set in the allocated words in the DM Area, it will be
overwritten with the setting in the CPU Bus Unit System Setup.
2. It is not possible to set the following IP addresses. If any of these values are set, the ERH
indicator will flash.
IP addresses where all network number bits are 0 or 1.
IP addresses where all host number bits are 0 or 1.
IP addresses where all subnet number bits are 1.
IP addresses that start with 127 (7F hexadecimal, e.g., 127.35.21.16)
62
Omron Ethernet Training
The following table and descriptions cover the words and bits in the Auxiliary Area of PLC
memory that are related to the Ethernet Unit.
63
Omron Ethernet Training
64
Omron Ethernet Training
Appendix 4 Troubleshooting
The indicators on the Ethernet Unit can be used to troubleshoot some errors.
The probable cause and correction for errors that can be determined from the LINK, HOST,
RUN, ERC, and ERH indicators are listed in the following table.
65
Omron Ethernet Training
Error Log
(Reference Cat. No. W421-E1-01, section 8-3)
The Ethernet Unit provides an error log that records errors that have occurred during Ethernet
Unit operation. The contents of the error log can be read or cleared from a Programming
Device, such as the CX-Programmer, or it can be read or cleared using FINS commands from
a workstation or computer.
(See 7-3-7 ERROR LOG READ and 7-3-8 ERROR LOG CLEAR) in W420-E1.
Logged Errors
The following errors are recorded in the error log.
Errors in network operation
Errors in data transfers
Error in the CPU Unit
When a FINS command is used to read the error log, the log held in RAM is read. When a
FINS command is used to clear the error log, the logs held in both RAM and EEPROM are
cleared.
66
Omron Ethernet Training
The error codes are described in the following table. The detailed error code will provide
detailed information on an error.
67
Omron Ethernet Training
68
Omron Ethernet Training
69
Omron Ethernet Training
70
Omron Ethernet Training
71
Omron Ethernet Training
Note
1. The time information in the CPU Unit is used in the CPU Bus Units.
2. If the time information cannot be read from the CPU Unit, the time stamp in the error log will
be all zeros. This can occur due to CPU Unit startup error, unit number errors, CPU error, and
model number errors. If the time is read out from a Programming Device, the time will be
shown as all zeros in the year 2000.
3. The battery must be installed in the CS/CJ-series CPU Unit, the power turned ON, and then
the time set before the clock in the CPU Unit can be used. The time will not be set correctly in
the error log unless the clock time is set correctly.
4. An error record is not created in EEPROM when a CPU Bus Unit memory error occurs.
72
Omron Ethernet Training
To check the setup on the computer Ethernet card from the command prompt type ipconfig/all
if using Win98, Win2K, and XP.
This will show the computer IP Address and subnet-mask. If DHCP Enable = No then the IP
address is fixed. If DHCP Enable = Yes then the computer IP address was provided by a
computer server.
Make sure the PLC Ethernet Unit network and subnet-mask match the computer settings.
From the command prompt type ping follow by the IP address of the PLC Ethernet Unit. For
example if the PLC Ethernet Unit IP is 192.168.0.1 then type ping 192.168.0.70.
If the ping return with a "Reply from 192.168.0.70 ..." then the computer can communicate with
the PLC. If the ping return with a "Request timed out." Then check the PLC Ethernet Unit
settings to make sure it is set to the same network and subnet-mask.
73
Omron Ethernet Training
Check if the PLC Ethernet Unit Node number matches its IP address
Using CX-Programmer and go online to the PLC via the ToolBus or RS-232C port.
Monitor D30098 + (100 x unit #) and D30099 + (100 x unit #).
Check the last two digits of D30099 + (100 x unit #) is equal to the Node No. set on the front of
the PLC Ethernet Unit.
For example if the PLC Ethernet Unit IP address = 192.168.0.116, Unit Number = 3 then
D30398 = C0A8 and D30399 = 0074. The Node No. set on the front should equal 74.
If the PLC Ethernet Unit is connected to a HUB the LNK LED should be lit. If the HUB is
connected to the PLC Ethernet Unit the HUB link led should be lit.
If either of the link LEDs is not lit then check the Ethernet cable between the PLC and the HUB.
74