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