Sunteți pe pagina 1din 74

Omron Ethernet Training

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.

Datagram (Packet) is a single message send/received in the network.

Router a device that relays or routes messages from one network to another.

HUB is a wire concentrator device, repeater.

Protocol is the format of a message, mutually understood command set.

FCS Frame check sum

CRC Cyclic Redundancy Checksum

Gateway is a device that translates two different protocols.

Repeater is a device that amplifies and boosts the signal power.

Segment length of wire between Hubs/Repeaters (500M max).

Bridge is a device that connects two separate networks together

Deterministic / Non- Deterministic A deterministic network guarantees a maximum


response time regardless of traffic ( Controller Link, DeviceNet).

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.

0 network # (7 bits) host # (24 bits)

1 0 network # (14 bits) host # (16 bits)

1 1 0 network # (21 bits) host # (8 bits)

Class A IP addresses range from 0.0.0.0 to 127.255.255.255


Class B IP addresses range from 128.0.0.0 to 191.255.255.255
Class C IP addresses range from 192.0.0.0 to 223.255.255.255

The number of networks in each class and the number of nodes possible on the network
differ according to the class.

Class Number of networks Number of hosts


Class A small 224 - 2 max. (16,777,214 max)
Class B medium 216 - 2 max. (65,534 max)
Class C large 28 - 2 max. (254 max)

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.

Ethernet Unit IP Address Settings


An IP address must be set even for the Ethernet Unit before Ethernet communications can
proceed. Either use the default for the Ethernet Unit’s IP address (192.168.250.FINS address),
or else use a Peripheral Device to set it in the DM Area words allocated to the Unit as a CPU
Bus Unit or in the CPU Bus Unit System Setup (I/O Table).

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

Nomenclature and Function


(Reference Cat. No. W421-E1 )

CS1W-ETN21 front face

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

Lab 1 Installation and Initial Setup


(Reference Cat. No. W421-E1, section 2-1)

Overview of Startup Procedure


The following procedure is the same for the CS Series and CJ Series.

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

1-1 Determine IP Addressing


We will use 192.168.000. FINS NODE NUMBER
Every node must be on Class C Network # 192.168.000, and the FINS node number must be
unique and between 1 and 126 for ETN11 cards and 1 to 254 for ETN21 cards.

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

1-2 Switch Settings


Obtain an Ethernet Module for each workstation in the classroom.
Install a Controller Link card as well, CS1W-CLK21(-V1), set to unit 2, node number = workstation
number (1 to 6).

Setting the Unit Number

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

1-3 Setting the Node Number


The PLC Ethernet module requires a fixed IP address

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)

1-4 Mounting the Ethernet Module to the PLC


(Reference Cat. No. W421-E1-01, section 2-3)

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.

1-5 Mount the CS1W-ETN21 in any slot on the CPU backplane.

10
Omron Ethernet Training

1-6 Connect the cable to the connector on the Ethernet Unit.

Connect with straight through cables provided.

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

Basic Installation Precautions


 Take the greatest care when installing the Ethernet System, being sure to follow ISO
8802-3 specifications. You must obtain a copy of these specifications and be sure you
understand them before attempting to install an Ethernet System. Unless you are already
experienced in installing communications systems, we strongly recommend that you
employ a professional to install your system.
 Do not install Ethernet equipment near sources of noise. If noise-prone environments are
unavoidable, be sure to take adequate measures against noise interference, such as
installing network components in grounded metal cases, using optical links in the system,
use shielded twisted pair wire etc.

Precautions on Laying Twisted-pair Cable


Basic Precautions
 Press the cable connector in firmly until it locks into place at both the hub and the Ethernet
Unit.
 After laying the twisted-pair cable, check the connection with a 10Base-T cable tester.

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.

Hub Installation Environment Precautions


 Do not install the hub near devices that generate noise.
 Do not install the hub in locations subject to high temperatures or high humidity.
 Do not install the hub in locations subject to excessive dirt and dust or to oil mist or other
contaminants.

12
Omron Ethernet Training

Hub Connection Methods


If more hub ports are required, they can be added by connecting more than one hub. There
are two possible connection methods for hubs: Cascade and stacked.
Cascade Connections
 Connect two hubs to each other as follows:
 Connect an Media Dependent Interface (MDI) port to an Media Dependent
Interface Crossover (MDI-X) port with a straight cable
 connect two MDI ports with a cross cable
 connect two MDI-X ports with a cross cable

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.

Using Contact Outputs (Common to All Units)


Communications errors can occur when Contact Output Units are mounted to the same Rack
or connected to the same PLC as an Ethernet Unit due to noise generated by the contact
outputs. Use one or more of the following measures when installing Contact Output Units and
Ethernet Units on the same Rack.

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

Connecting to the Network


(Reference Cat. No. W421-E1, section 2-5)

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

Lab 2 PLC Software Settings

2-1 I/O Table and IP Address Setting (ETN21)

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.)

Creating the I/O table using CX-Programmer


1. Go On-line to the PLC via the peripheral port using CS1W-CN226/626 or the RS-232C
port using CBL-202.
2. Put the PLC into program mode.
3. From the Project Window double click on the I/O Table.
Select Options from the top menu then select Create. This will create an I/O
table.

4 Open the Main rack and check the I/O Table settings. The values in square brackets are
the CIO allocated words.

5 Right click the Ethernet Unit and select UNIT SETUP


Set only the IP address for your PLC based on station number, and set the Sub Net Mask
to 255.255.255.000. Select Transfer PC To Unit and restart the card.

16
Omron Ethernet Training

6 Local routing table setting. Right click the Ethernet Unit and select;

7 Wait while CX Integrator starts. Cancel the upload of Network if prompted.


At the bottom, right click the target PLC and select Start Routing Table.

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

2-2 Local Routing Table

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.

Routing Table Overview


(Reference Cat. No. W421-E1, section 6-4-1)

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.

Local Network Table


The local network table is a table describing the correspondences among unit numbers of the
Communications Units and Boards mounted to each node.

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

Relay Network Table (Remote Routing)


A remote network by definition is one that is not physically connected to a PLC by network
connection or backplane.
A relay table is a table setup in each Communication Unit telling it how to respond and send
messages from its local network to another network. The table contains three pieces of
information:

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

Lab 3 Check Settings and Test Ethernet Connection

3-1 Check the IP address setting


Look in the PLC Data Memory D30198 + (100 x unit #) and D30199 + (100 x unit #).
For example if the unit # = 01 then the two data memory are D30198 and D30199.
If the IP address is 192.168.0.116 then D30198 = C0A8 and D30199 = 0074. The IP address
in the data memory is in hex.
Make sure the value in the two data memories is equal to the IP address set in the Ethernet
module.

3-2 Check the PLC Ethernet Module LED Indicator


Check the PLC Ethernet module LED. In normal operation the RUN, 100M and LNK LED
should be ON. The ERC and ERH LED should be OFF. The SD and RD could be flashing or
stay lit if the module is sending/receiving data. The TCP, FTP and HOST LED status will
depend if either of those functions is being used.

RUN = Green for No error


100M = Green if the network is 100M. OFF if the network is 10M
LNK = Orange if link is established between the HUB
ERC = OFF
ERH = OFF

3-3 Check the IP Address on the Computer


From the Window Desktop select Start then Run...

20
Omron Ethernet Training

From the Run window type cmd.exe in the Open: text box

A command prompt window will be display.

If the computer operating system is Windows 98 or NT type "winipcfg" after C:\>.


If the computer operating system is Windows 2000 or XP type "ipconfig after C:\>.

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.

3-4 Ping the PLC Ethernet module via the computer


From the command prompt type "ping" then the IP address of the PLC Ethernet module.
In this example the IP address of the PLC Ethernet module is 192.168.000.001 then in the
command prompt type "ping 192.168.000.001". Ping all of the PLCs, node 1-6.

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.

3-5 Go Online with CX Programmer via Ethernet

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.

3-6 Network Programming via Ethernet


CX Programmer supports multiple PLCs in a Project.
Right click at the top of the Project Tree and select INSERT PLC.

Note: The training PLCs are all CS1G-CPU42H


Add the other 5 PLCs to your project making sure to correctly set the source and destination
network number to 1 , set the node number and IP address.
Test that you can communicate with the others.
If you have a problem with a node, try pinging it.
Shown below is one side of the classroom, nodes 1 to 3 on Net1.

unit 1 unit 1 unit 1


node 1 node 2 node 3
192.168.0.1 192.168.0.2 192.168.0.3
ETN
ETN

ETN

network # 1

23
Omron Ethernet Training

3-7 Network Programming via Ethernet/ Controller Link Gateway


A gateway connects two networks with different protocols.
The Ethernet Network is Net 1 and Controller Link is Net2, set in the local routing table.
Assuming the network is already setup, with node numbers and network numbers, setting up a
gateway is as easy as setting the FINS source and destination network to different numbers.

Set one of the remote PLCs in your project to;


Network Type = NewPLC1 or what you named your PLC
FINS Source Network = 1 Ethernet
FINS Destination Network = 2 Controller Link
Node Number = Station Number Controller Link Node Number

See example below;

This connects a PLC node 2 on Controller Link through Ethernet.

24
Omron Ethernet Training

4 Using SEND RECV Ladder Commands


The SEND(090) command can be used to send data from the local node to the remote node.
Code is required in the local PLC, but nothing is required in the remote PLC.

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

Ladder only in Node 001

Data in D31600-31604 required, ensure data types correct.

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.

Logical port 0 – 7 = PLC Address A202.00 to A202.07

Communications Port Error Flags Logical Port 0-7 = A219.00 - 07

Communication Result Code A203 to A210 , contents written at end of SEND execution,
0000=normal, 0204 busy.

27
Omron Ethernet Training

Lab 4 Network SEND and RECV Instructions

Enter the ladder below into your PLC.


The code sends CH000 switch array status to a remote PLCs output card CH001.
Lab station 1 CH000 should go to station 2 CH001 relay card, Station 2 to Station 3 and so on.
The Ladder in each PLC will be the same, but the control words will differ.

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

Lab 5 FINS Commands via CMND Instruction


The CMND instruction can be used to send C Mode (Serial Host Link) or FINS
commands ( Ethernet , Controller link etc. ).
These commands are detailed in manual W342 “Communication Commands” and can perform
functions such as, changing the PLC Mode, reading and writing memory, reading status, File
Memory commands etc.
Enter the code below to read DM10 of a remote PLC with a FINS command via Ethernet.
Enter the Command word data starting at S, and the Control word data starting at C.
Enter the Node number 1-6 of the remote PLC to read from ,upper byte of D303.

Observe the following in DM200-202

D200 is the response command code (0101).


D201 is the 2 byte completion code, 00 = normal
D202 is the data requested from D10 of the designated node and network.

29
Omron Ethernet Training

Lab 6 NS Screen Connection on Ethernet


The NS Series of screens support Ethernet as an option.
The NS Ethernet supports Programming of the screen, Host Connection (PLCs) and FTP.
This is done with FINS over IP so that we don’t have to concern ourselves with protocols.

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.

3 Start a new project in CX Designer included with CX One , ver 1.1.


Select File/New once CX Designer is open.
Enter the correct NS type, OS Version

4 Select Comm. Setting


Disable the default of Serial A

Click Ethernet and Select Enable

30
Omron Ethernet Training

5 Set the Ethernet Settings


The default Network Address is 1 which is correct for our Ethernet Network.
The node address shown is 11 for station 1 (set from 11 to 16 depending on station number)
Then select the Add button and add every other IP address the NS will communicate with via
FINS. These addresses are for the PLC and Computer, again dependant on station number.

6 Register the Host


This is required when assigning screen I/O and or system words/ bits via Ethernet.
At the bottom, select ADD HOST
Enter the Node number , 1 to 6 station 1-6, the PLC is considered as the Host.

31
Omron Ethernet Training

7 Allocate Screen I/O to Screen 0000 in CX Designer.


Select the PB push button Icon, click and drag on the screen to create a button.
Double click the button and set the properties below.
Select the Host
Set the PLC address to turn on, 1.07

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

Lab 7 CX Integrator Ethernet Connection used to Program the NS Screen


1 Start CX Integrator from the start menu;

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

5 Right click the Ethernet Card and upload the Network

Select node 1-16 for the range of FINS nodes.

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.

9 Change connection to another PLC


To access the program, routing table, I/O memory etc of another PLC, select the PLC and the
right click. Select Change Connection to this PLC.
Note how the Target PLC changes at the bottom of the screen.
Upload the remote PLCs routing table etc., but do not write to that PLC.

34
Omron Ethernet Training

Appendix 1 Using FTP (File Transfer Protocol) to Transfer files from


Ethernet NS Units
FTP can be used to transfer large files stored on the PLC or NS CF (compact flash)
cards. The PLC can also use EM banks as file memory.

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

To do this go to; Settings/System Settings/Initial/System Allocation

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

4 Download screen data to the NS with CBL-202


Ensure the screen is connected to the PLC, then generate some Alarms by triggering the alarm
registered bits.

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

7 Using FTP to get the Alarm.csv file into the computer.

The ftp software needs to be OS9000 compliant.


From the Start menu select Run, then type CMD.EXE

From the command prompt type;


ftp 192.168.000.011 starts ftp session
User: default default used ID is default
Password : default default password is default
cd/at0 change to directory of CF card
ls list files
cd/log change to CF card log directory where alarm data is stored
ls list files to ensure alarm.csv is present
get alarm.csv transfer file to computer

8 Automate the process by writing a batch file on the IBM in notepad

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

Appendix 2 FTP with PLC CF Card


The FTP functions are handled with the online feature of CX Programmer in the project
workspace tree, Memory Card.
CS/CJ/CJ1M CPU with Compact Flash Card or EM set for File Memory

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.

HMC – AP001 PCMCIA


Adapter

HMC – EF_ _ _ Memory Card

The memory card stores data files in the following formats:


in Binary format with the *.IOM file name extension
in Text format with the *.TXT file name extension
in Microsoft format with the *.CSV file name extension
OMRON files are stored as the following formats:
User programs with the *.OBJ file name extension
I/O memory files with the *.IOM file name extension
Parameter files with the *.STD file name extension
The Memory card is a good tool for simple data logging, PLC system
backup, and storing the symbols and comments from the program.
The Memory card acts as a Hard-Drive for the PLC.
EM banks in equipped PLCs are 32K words (64KB) and can be
used by FWRIT to store the Data. ( All CS1G/H-H, CJ1G/H-H)

40
Omron Ethernet Training

Explanation of the “FWRIT” instruction

Example;

41
Omron Ethernet Training

When the bit SampleNow1 is ON, it executes FWRIT.


The Bit A343.15 is the memory card detected flag. It will be ON when a
formatted card is installed in the PLC. Bit A343.13 is busy flag for the
memory card The busy flag is used to interlock the execution of CMND or
FREAD or other FWRIT instructions.

FWRIT instruction operands .


The first parameter: #3C00 means: 3:Comma-delimited words format;
*.CSV
C:Carriage Return every 5 fields
0:Append to the existing file
0:Memory card as the destination
Second parameter H10 is set as the first destination word.
Third parameter H50 is set as the file name, and
Fourth parameter D210 is set as the first source word. It is the data to log.

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

The left most second-bit can be set as the following:


0: No return
8: Return every 10 fields
9: Return every 1 field
A: Return every 2 fields
B: Return every 4 fields
C: Return every 5 fields
D: Return every 16 fields

The right most second-bit can be set as the following:


0: Append to existing file
1: Overwrite the existing file

The right most-bit can be set as the following:


0: Memory card set as the destination
1: Expand memory, EM set as the destination

42
Omron Ethernet Training

Lab Exercise Using FWRIT to datalog to the EM memory area

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.

1 Create a new project in CX Programmer for CS1G-CPU42H

2 In the project workspace tree, select “Settings”

3 In the CPU Settings tab, select EM set as file memory

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

4 Create the following ladder program;

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.

#3C01 3= CSV Data, C= carriage return every 5 fields 01= EM storage


H10 Double word , unsigned binary (UDINT) number of PLC words to log
H50 File name in ascii, starting with \ i.e. \filename
D210 Data in PLC to log
:
.

44
Omron Ethernet Training

5 Compile the program and download to the PLC.

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.

10 Run the program, select PLC/OPERATING MODE/MONITOR


11 After a minute, stop program execution.
12 In CX Programmer, double click Memory Card from the Project
Workspace Tree

45
Omron Ethernet Training

13 Double click EM File Area, and note the contents

The DA.CSV is the data logged, the other items are automatically stored by CX Programmer and
are the Symbols, Comments and Program Index.

14 Right click the DA.CSV file and select “COPY”

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

Item Description Part Number


Flash Memory Card 15 MB HMC-EF172
30 MB HMC-EF372
64 MB HMC-EF672
Memory Card Adapter Allows a Memory Card to fit the PCMCIA slot on a HMC-AP001
computer.

47
Omron Ethernet Training

Appendix 3 Ethernet Unit Memory Allocations


(Reference Cat. No. W421-E1, section 4-1)

CIO Area Allocations


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 n is calculated by the following equation:
Beginning word n = CIO 1500 + (25 x unit number) Bus Unit Area

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

Socket Force-close Switch (Bit 2)


All UDP and TCP sockets used for socket services can be force-closed by turning ON
this switch. This can be used for operations such as error processing.
Be careful not to force-close sockets during communications, or an error will occur. After
all sockets have been force-closed, the Ethernet Unit will turn the switch OFF again. Do
not attempt to forcibly manipulate this switch before the Unit automatically turns it OFF.
Ports used exclusively by the Ethernet Unit will not be closed.

Mail Send Switch (Bit 3)


Turning ON this switch can send user mail. The contents of the user mail are set in the
CPU Bus Unit System Setup.
After the user mail has been sent the Ethernet Unit will turn this switch OFF again. Do not
attempt to forcibly manipulate this switch before the Unit automatically turns it OFF.

Automatic Clock Adjustment Switch (Bit 4)


The automatic clock adjustment can be executed by turning this switch ON.
The SNTP server required for the automatic clock adjustment is set in the Unit Setup.
After the automatic clock adjustment has been completed, the Ethernet Unit will
automatically turn this switch OFF. Until then, do not forcibly manipulate the switch.

49
Omron Ethernet Training

Note the status of these flags can also be checked using the software switch settings
on the CX-Programmer.

Opening Flag (Bit 0)


Turns ON when an open request is received either by control bit manipulation or the
CMND (490) instruction, and turns OFF again when the open processing has been
completed. When CMND (490) is used, the Results Storage Error Flag (bit 14) will turn
ON at the same time as the Opening Flag turns OFF if there is an error in the Results
Storage Area designation.

50
Omron Ethernet Training

Receiving Flag (Bit 1)


Turns ON when a receive request is received either by control bit manipulation or the
CMND (490) instruction, and turns OFF again when the receive processing has been
completed. When CMND (490) is used, the Results Storage Error Flag (bit 14) will turn
ON at the same time as the Receiving Flag turns OFF if there is an error in the Results
Storage Area designation.

Sending Flag (Bit 2)


Turns ON when a send request is received either by control bit manipulation or the
CMND (490) instruction, and turns OFF again when the send processing has been
completed. When CMND (490) is used, the Results Storage Error Flag (bit 14) will turn
ON at the same time as the Sending Flag turns OFF if there is an error in the Results
Storage Area designation.

Closing Flag (Bit 3)


Turns ON when a close request is received either by control bit manipulation or the
CMND (490) instruction, and turns OFF again when the close processing has been
completed. When CMND (490) is used, the Results Storage Error Flag (bit 14) will turn
ON at the same time as the Closing Flag turns OFF if there is an error in the Results
Storage Area designation.

Data Received Flag (Bit 13)


This bit turns ON when data is received from a remote node at an open TCP socket.
Linked to this flag, the number of bytes of data saved in the reception buffer is stored in
Number of Bytes Received at TCP Socket in the words allocated in the DM Area. The bit
is turned OFF when a receive request is made by either bit manipulation or the CMND
(490) instruction. If any data remains in the reception buffer after the receive request
processing is complete, the number of bytes is stored in Number of Bytes Received at
TCP Socket and the Data Received Flag turns ON again.

The status of this flag is checked before a receive request is executed.

Results Storage Error Flag (Bit 14)


Turns ON if there is an error in the Results Storage Area for a socket service request
(open, receive, send, close) made using CMND (490). This flag turns ON at the same
time as the service request processing flags (bits 0 to 3) turn OFF. It remains ON until the
next service request is received, and then it turns OFF again. When this flag turns ON,
check the set values in the Results Storage Area.

The Results Storage Error Flag does not operate when socket services are requested by
control bit manipulation.

TCP/UDP Open Flag (Bit 15)


Remains ON while a socket is open by means of control bit manipulation or the CMND
(490) instruction. In the case of TCP, it indicates a connection. When the socket is closed,
this flag turns OFF again. (If the socket did not close properly, the flag remains ON.)

Check to be sure that this flag is ON before executing a send or receive request.

51
Omron Ethernet Training

FTP Status (Bit 0)


Turns ON while connected to an FTP client and OFF while not connected. With the FTP
server function only one FTP client can be connected at a time, so while this bit is ON no
other clients can connect to the server.

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)

Accessing Memory (Sending Mail) (Bit 1)


This bit turns ON while CPU Unit memory is being accessed to create a file to be
attached using the mail sends function, and it turns OFF when the file has been created.

ON while CPU Unit memory is being accessed to store attached files using the mail receive function.

52
Omron Ethernet Training

Accessing Memory (Receiving Mail) (Bit 2)


This bit turns ON while CPU Unit memory is being accessed to store an attached file
using the mail receives function, and it turns OFF after the file has been stored.

System Setup Format (Bits 8 to 11)


These bits show the format classification in the CPU Bus Unit System Setup Area.

Error Status (Ethernet Unit to CPU Unit)


The status of errors that occur at the Ethernet Unit is reflected as shown in the following
diagram.

53
Omron Ethernet Training

54
Omron Ethernet Training

Socket Service Request Switches 1 to 8 (CPU Unit to Ethernet Unit)


When a socket service request is executed by control bit manipulation, it is the following
bits that are manipulated. For details, refer to Operation Manual, Construction of
Applications, SECTION 6, and W421-E1.

55
Omron Ethernet Training

FINS/TCP Connection Status

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

Send Mail Status 1, 2 (Ethernet Unit to CPU Unit)

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

Check this transmission status in the ladder program as required.

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.

0000 hex: 0 bytes


07CD hex: 1,984 bytes

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

Socket Services Parameter Area 1 to 8 (Ethernet Unit to CPU Unit)

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.

IP Address Display/Setting Area

IP address: (1)(2).(3)(4).(5)(6).(7)(8) (Hex)


If the local IP address in the CPU Bus Unit System Setup is set to a value other than
00.00.00.00; (word m+98 and m+99), this area will act as an IP Address Display Area. The
local IP address set in the CPU Bus Unit System Setup will be read and stored here when the
power is turned ON or the Unit is restarted. If the local IP address in the CPU Bus Unit System
Setup is set to 00.00.00.00 (the default setting), this value is read by the Ethernet Unit when
the power is turned ON or the Unit restarted and is used as the local IP address.

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

Auxiliary Area Data


(Reference Cat. No. W421-E1-01, section 4-3)

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

Troubleshooting with Indicators


(Reference Cat. No. W421-E1)

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

Error Log Table


Each error is recorded as one record in an error log table. Up to 64 records can be saved. If
more than 64 errors occur, the oldest errors will be deleted from the error log and the most
recent error will be recorded.
The following information is recorded in the error log table.
 Main error code (See table later in this section.)
 Detailed error code (See table later in this section.)
 Time stamp (from the clock in the CPU Unit)

Error Log Location


When an error is detected, the error codes and time stamp are recorded in the error log in
RAM inside the Ethernet Unit. Serious errors are also recorded in EEPROM. The maximum
number of errors that can be saved to EEPROM is 64 for the CS Series and 32 for the CJ
Series. The errors recorded in EEPROM will be saved even if the Unit is restarted or power is
turned OFF. When the Ethernet Unit is started, the contents of the error log in EEPROM are
copied to RAM.

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

FINS Commands for Error Logs


The following FINS commands can be used to read or clear the error log.
Refer to SECTION 7 FINS Commands Addressed to Ethernet Units, W420-E1.

Error Log Error Codes


(Reference Cat. No. W421-E1-01, section 8-3-1)

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

Troubleshooting - Computer cannot communicate to PLC via


Ethernet

Check the IP address and Subnet-mask on the computer

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.

Check if the computer can communicate to the PLC

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.

Check if Link LED is ON

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

S-ar putea să vă placă și