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