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