Ethernet Units Construction of Networks
Revised January
Page
Omron Product References
Omron
Confirming Unit Versions with Support Software
Unit Versions
Notation of Unit Versions on Products
Unit Version Notation
Lowing table
Viii
Table of Contents
Ethernet Unit Memory Allocations
Index 249 Revision History 257
Xii
Section Contents
About this Manual
Manual Model Name Contents Number
Relevant Manuals
CQM1H-PRO01-E
WS02-CXPC1-EV6
CXONE-AL@@C-E
CQM1-PRO01-E
Xvi
Read and Understand this Manual
Application Considerations
Disclaimers
Page
Precautions
Intended Audience
General Precautions
Safety Precautions
Operating Environment Precautions
Application Precautions
Application Precautions
Concepts
Conformance to EC Directives
Applicable Directives
EMC Directives
Low Voltage Directive
Section
Ethernet Unit Function Guide
Overall System Configuration Example
Connecting the CX-Programmer to PLCs Online via Ethernet
Determining the Objectives
Section
Exchanging Data between Omron PLCs using Ethernet
Reference
Operation
Receiving E-mail Data and Files at the PLC
Operation Use the mail receive function
Ladder program
Ulating control bits or the CMND490 instruction
Compatibility and Speed
Features
Simplified Socket Services
Various Protocols Available on Ethernet
Improved Fins Message Communications
Additional E-mail Functions
Use Web Function to Read Ethernet Unit Settings and Status
Automatic PLC Internal Clock Adjustment
Specification of Servers by Host Name
Network Connection with Controller Link
Setup Area and Related Peripheral Devices
System Configuration
System Configuration
Devices Required for Constructing a Network
Routing Table Area
Specifications
Specifications
General Specifications
CS-series Ethernet Unit
CJ-series Ethernet Unit
Dimensions
Software Configuration
Overview of Communications Functions
Fins Communications Service
PLCs, mode changes, and file memory operations
Basic Functions
Manipulating Dedicated Control Bits
Socket Services
Upgraded Functions
Executing CMND490 Improved TCP Socket Interface
FTP Server Function
Mail Send Function
Mail Receive Function
Automatic Clock Adjustment Function
Specifying Servers by Host Name
CS-series Ethernet Units
Nomenclature and Functions
Component Names
CS1W-ETN21 100Base-TX
Front
CJ-series Ethernet Units
CJ1W-ETN21 100Base-TX
Subnet Mask
Indicators
IP Address
Indicator Color Status Meaning
CS1W-ETN11 CS1W-ETN21 CJ1W-ETN11 CJ1W-ETN21
Comparison with Previous Models
Previous models New models
Unit Version
Unit Version Upgrade Information
Upgrade Details
FINS/UDP
Installation and Initial Setup
Overview of Startup Procedure
Tables
Setting the Node Address
Switch Settings
Setting the Unit Number
Setting range
Unit
CJ-series Ethernet Units
Mounting to a CJ-series PLC
Mounting to a PLC
Mounting to a CS-series PLC
Network Installation
Basic Installation Precautions
Basic Precautions
Precautions
Precautions on Laying Twisted-pair Cable
Recommended Products
Stack Connections
Connect the hubs using special cables or special racks
Cascade Connections
Hubs per stack
Cable Location
Using Contact Outputs Common to All Units
Mounting Location
Hub Measures
Connecting the Cable
Connecting to the Network
Ethernet Connectors
Connector pin Signal name Abbr Signal direction
1 I/O Table Overview
Connecting Programming Devices to the PLC
Creating I/O Tables
Devices
CX-Programmer Version 3.20 or Higher and CX-Integrator
Procedure for Creating I/O Tables
Connecting Programming Devices Programming Console
Model number Key Sheet required Recommended cable required
Unit Setup Procedure
Section
Using the Web Browser Setting Function
3.. . Connect to the Ethernet Unit from the Web browser
Section
Basic Settings
IP Address
Operation status
Default Setting
Unit Setup
+98 +99
Subnet Mask
Broadcast Settings
Setting Contents
Class Subnet mask
Baud Rate
TCP/IP Keep-alive Setting
Settings
Set the baud rate
CX-Programmer tab Settings
Unit Setup for Particular Applications
Socket Services
CX-Programmer tab Setting Setup Keep-alive
Smtp
Automatic Clock Adjustment
Mail Reception
POP
Communications Test
Ping Command
CX-Programmer Setting item Tab
Ethernet Unit
Method
Converting from Previous Models
Host Computer
Application Examples
Specifications in ETN11 mode
Checking the CPU Bus Unit System Setup Area Format
Changing the CPU Bus Unit System Setup Area Format
Bit address Format classification
Using the CX-Programmers Unit Setup
Not lit
If an Error Occurred in the Mode Change
Node address Indicators
Not lit Lit
Converting from ETN21 Mode to ETN11 Mode
Section
CX-Programmer Unit Setup
Setup
Contents Default
Confidential
FINS/TCP Connection Setup
FINS/TCP
Following settings can be made for each connection number
Tion of Applications
DNS Server Setup
DNS
Smtp Server Setup
Smtp
POP Server Setup
POP
Destination Mail Address Setup
Mail Address
Send Mail
ETN
CPU
Posting Mail Address Protection Setting
Receive Mail
Receive Attached File Setting
Receive Command Setting
Auto Adjust Time
Sntp Server Setup
Http
Http Server Setup
For details, refer to Automatic Clock Adjustment Function
Section
Ethernet Unit Memory Allocations
CIO Area Allocations
Automatic Clock Adjustment Switch Bit
Socket Force-close Switch Bit
Mail Send Switch Bit
Unit Control Bits CPU Unit to Ethernet Unit
Bit Flag Status Manipulated Unit operation Reference
Status of UDP/TCP Sockets 1 to 8 Ethernet Unit to CPU Unit
Opening Flag Bit
Sending Flag Bit
Results Storage Error Flag Bit
Receiving Flag Bit
Closing Flag Bit
FTP Status Bit
Service Status Ethernet Unit to CPU Unit
Accessing Memory Sending Mail Bit
Bit Name Status Manipulated Unit operation Reference
Error Status Ethernet Unit
Accessing Memory Receiving Mail Bit
System Setup Format Bits 8 to
To CPU Unit
Sntp server error Unit
Bit Switch Status Manipulated Unit operation Reference
FINS/TCP Connection Status
DM Area Allocations
These bits show the status of FINS/TCP connections
Bits Status
Send Mail Status 1, 2 Ethernet Unit to CPU Unit
Send Mail Status
+1 to m+8 Number of Bytes Received 0000 to 07C0 hex
IP Address Display/Setting Area
Application Setting device Setting area Remarks
Area of PLC memory that are related to the Ethernet Unit
Words Bits Name Function Settings
Auxiliary Area Data
Read-only Bits/Words
Read/Write Bits User Settings
Bits Name Description Settings
Section
Determining IP Addresses
Allocating IP Addresses
IP Address Configuration
IP Addresses
Class Number of networks Number of hosts
Class Subnet Mask value
Ethernet Unit IP Address Settings
Subnet Masks
Allocating Addresses to Ethernet Units
Specifying Nodes in Fins Communications Services
IP Addresses in Fins Communications
Ethernet Unit Fins Message Reception
Remote Fins node Remote IP address Connection Remote port
Automatic Generation Method Dynamic/Static
IP Address Table Method and Combined Method
Example Number Example
Automatic Generation Dynamic
Pairing Addresses in Internal Tables
FINS/UDP Communications Methods
Automatic Generation Static
Example
Combined Method
Prohibiting Dynamically Changing Remote IP Addresses
Using the ETN11- compatible Mode
Internal Processing
Pairing in the FINS/TCP Method
FINS/TCP Communications Method
Local Device Is FINS/TCP Client
Local Device Is a Client
Setting FINS/TCP Connections
Local Device Is Server
Responding to Computers with Changed IP Addresses
Automatic IP Address Setting by Dhcp Service
Application Examples
FINS/UDP Communications Method
Related Products and Communications/Setting Methods
Models Supporting Automatic Generation Method Dynamic
Models that Can Use the Combined Method
Models Supporting Automatic Generation Method Static
Models Supporting IP Address Table Method
FINS/UDP and FINS/TCP
Private and Global Addresses
Private and Global Addresses
108
Fins Communications Service
Using a Private Address for the Ethernet Unit
Conditions for Using Communications Applications
Sending Mail
Automatic Clock Adjustment
Transferring Files
Receiving Mail
Ethernet Unit with a Global Address
Mail via the intranet, even if it as a private address
Considerations, on using POP before Smtp
UDP/TCP port number default 53 to be used for DNS cannot be
PLC can receive the Ethernet Units IP address from the POP3
Fins Communications
Communications On an Ethernet Network
Using the FINS/UDP and FINS/TCP Methods
Overview of Fins Communications
Fins Communications Service Specifications for Ethernet
Overview
FINS/UDP Features
FINS/UDP Method
Procedure for Using FINS/UDP
UDP Port Numbers for
FINS/TCP Features
FINS/TCP Method
TCP Port Number for
FINS/TCP Connection Numbers
Communications
Procedure
FINS/TCP Connection Status Word n+23
Internal table
FINS/TCP Tab
Procedure for Using FINS/TCP
Setup Tab
Local Network Table
Creating Routing Tables
Routing Table Overview
Relay Network Table
Connecting and Using a Peripheral Device for the PLC
Routing Table Setting Examples
Example 2 Three Interconnected Networks
Example 3 All Nodes
Settings for target PLC PLC1s Change PLC Dialog Box
Using Fins Applications
System Configuration Example 1 No Routing
CX-Programmer CX-Server
CX-Programmers Unit Setup Setup Tab
128
Settings for target PLC PLC3s Change PLC Dialog Box
System Configuration Example 2 Using Routing Tables
Routing Table Settings and Transfer to Each PLC
PLC3
FinsGateway
Overview of Setup Methods Starting FinsGateway Settings
Etnunit Driver Setup
Local Network Table
Network Tab
Communication Unit Tab
132
133
Starting FinsGateway Etnunit Service
Conditions
Not set. All defaults are used
Communications Specifications
CX-Programmers Unit Setup
Communicating between Omron PLCs
PLC Communications Data Areas
Area Range
Ning word D at the remote destination node node address N
Using SEND090, RECV098, and CMND490
SEND090
RECV098
CMND490
Hex 2 s Destination node number N To FE Hex
Commands Addressed to CS/CJ-series CPU Units
Usage Command Name Function Code
Writing Programs
Flag name Address Contents Word Bits
Communications Port Completion Codes
Communications Port Error Flag and Completion Codes CMND490
Word Contents
Timing of Communications Flag Changes
144
Program Example
146
CPU execution mode Processing time considerations
Transmission Delays
CPU Bus Unit Service Cycle Local Node
SEND090
CPU Bus Unit Service Cycle Remote Node
CPU Bus Unit Service Processing Time Local Node
Transmission Delay
Transmission Processing Time
Example Calculations
CPU Bus Unit Service Processing Time Remote Node
CPU processing mode Processing time considerations Settings
Calculation
Equation illustrated in the following diagram
RECV098
Reception processing time command
Transmission processing time command
Transmission Delay Command
Response
152
Calculations
Precautions on High Traffic in Fins Communications
Conditions for High Traffic
Avoiding Errors due to High Traffic
Fins Commands Addressed to Ethernet Units
Response Code List
Command Codes and Response Codes
Command Code List
Command code Name
Socket Applications
Format
CIO
Parameters
Communications Type
Command/Response Reference
Reset
FINS/UDP Port Number Setting
Broadcast Address Setting
IP Address Conversion Method Setting
Controller Data Read
Controller Status Read
IP Address Table Error
Error Flags Response
IP Address Error
IP Router Table Error
Runs the echo test between specified nodes
Eeprom Error
Internode Echo Test
Broadcast Test Results Read
Command Block Response Block Parameters
Test Data Command, Response
Broadcast Data Send
Reads the error log
Error LOG Read
Test Data Command
Bytes can be specified
Error Code, Detailed Information
Error LOG Clear
Error Log Data Response
Minute, Second, Day, Hour, Year, Month
Requests processing to open a socket
UDP Open Request
Results Storage Format
Requests that data be sent from a UDP socket
UDP Socket Number Command Results Storage Area Command
UDP Receive Request
Enobufs
Requests that data be received by a UDP socket
UDP Send Request
Results Storage Area Response Codes
170
UDP Close Request
Requests processing to close a socket
Passive TCP Open Request
Response code Description 0000 Normal
Remote IP address Remote TCP port Description
Econnaborted
Econnreset
Active TCP Open Request
Tunreach
175
Eacces
Drnotavail
TCP Receive Request
Requests that data be sent from a TCP socket
Etimedout
TCP Send Request
Requests that data be received at a TCP socket
Results Storage Format Parameters
Ehostunreach
TCP Close Request
Enetunreach
Response Block Parameters
Destination IP Address Command Timeout Value Command
Ping
Remarks
Ping Command
FINS/TCP Connection Remote Node Change Request
2232
FIFINS/TCP Connection No. Command Response
FINS/TCP Connection Status Read
Reads the FINS/TCP connection status
Remote TCP Port Number Response TCP Transitions Response
Number of Records Command
IP Address Table Write
Writes the IP address table
IP Address Write
Precautions Response Codes
IP Address Table Records Command
Fins Node Address
IP Address Table Read
Reads the IP address table
IP Router Table Read
Reads the IP router table
IP Network Address
Router IP Address
IP Status Response
Protocol Status Read
Reads the Ethernet Unit protocol status
Value
Type number Description
Connection Information 60 Bytes
Send Information 40 Bytes
Receive Information
Memory Status Read
Memory Status Response
Socket Status Read
Reads Fins node addresses and IP addresses
Address Information Read
TCP Transitions 4 bytes
Number of Addresses Response
IP address set on the Ethernet Unit hexadecimal
IP Address Read
Node address set on the Ethernet Unit hexadecimal
Fins Node Address Response
Subnet Mask Response
Troubleshooting
Troubleshooting with Indicators
Probably cause Correction
Error Status
Word = CIO 1500 + 25 x unit number +18
Following errors are recorded in the error log
Error Log
Logged Errors
Error Log Location Fins Commands for Error Logs
Error Log Error Codes
Error Log Table
204
205
206
207
208
Troubleshooting Procedures
Startup Problems
Fins Communications Problems SEND090/RECV098/ CMND490
Is the control data For the instruction set Incorrectly?
Problems
UDP Socket Problems
General Problems
Opening and Closing
Reception Problems
Read Controller Status
Transmission Problems
Is send Y processing not Finishing?
TCP Socket Problems
General Problems
Refer to General Problems on
Opening Problems
Closing Problems
216
FTP Service Problems
Connection Problems
File Transfer Problems
END
Network Connection Problems
Status Read
Mail Not being Sent
A R T
Mail Not being Received
A R T
Clock Not being Automatically Adjusted
Flashing? Status bit ON?
Controller
Troubleshooting with Response Codes
Main code Sub-code Check point Probable cause Remedy
Status Read
224
225
226
Codes stored in the Results Storage Area
Network Relay Errors
Results Storage Area Response Codes
Devices
Ealready
Eisconn
Enotconn
Emsgsize
Response Unix error Description Probable remedy Code
230
Ethernet Network Parameters
Parameter Value Description
Page
Buffer Configuration
Appendix B
Network Memory
TCP Status Transitions
Status Meaning
Page
Ascii Characters
Space
Page
Settings after Replacing a CPU
Maintenance
Settings after Replacing an Ethernet Unit
Replacing an Ethernet Unit
Page
Tools Required for Inspection
Inspections
Items
Page
Web Function List
Unit Setup Functions
Ethernet Unit Web Function
Appendix G
POP
Status Monitor
Web Function Password
Using the Web Function Setting Password
Menu item Corresponding CX-Programmer function
Appendix G
247
248
Numerics
Index
251
252
253
254
255
256
Revision History
Cat. No. W420-E1-04 Revision code
Revision History
Omron Corporation Control Devices Division H.Q
Regional Headquarters
Authorized Distributor