Omron SYSMAC CS1W-ETN21 Operation Manual

Omron SYSMAC CS1W-ETN21 Operation Manual

100base-tx ethernet units construction of networks
Hide thumbs Also See for SYSMAC CS1W-ETN21:
Table of Contents

Advertisement

Quick Links

Cat. No. W420-E1-06
SYSMAC CS and CJ Series
CS1W-ETN21 (100Base-TX)
CJ1W-ETN21 (100Base-TX)
Ethernet Units
Construction of Networks
OPERATION MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Omron SYSMAC CS1W-ETN21

  • Page 1 Cat. No. W420-E1-06 SYSMAC CS and CJ Series CS1W-ETN21 (100Base-TX) CJ1W-ETN21 (100Base-TX) Ethernet Units Construction of Networks OPERATION MANUAL...
  • Page 2 CS1W-ETN21 (100Base-TX) CJ1W-ETN21 (100Base-TX) Ethernet Units Construction of Networks Operation Manual Revised April 2009...
  • Page 4 OMRON. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is con- stantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice.
  • Page 5 Unit version Lot No. Example for unit version 1.3 Lot No. 040401 0000 Ver.1.3 OMRON Corporation MADE IN JAPAN Confirming Unit Versions CX-Programmer version 4.0 can be used to confirm the unit version using the with Support Software Unit Manufacturing Information.
  • Page 6 Using Unit Version Label The following unit version label is provided with the Ethernet Unit. This label can be attached to the front of the Ethernet Unit to differentiate between Ethernet Units with different unit versions. Unit Version Notation In this manual, the unit version of a Ethernet Unit is given as shown in the fol- lowing table.
  • Page 7 viii...
  • Page 8: Table Of Contents

    TABLE OF CONTENTS PRECAUTIONS ........Intended Audience .
  • Page 9 Communicating between OMRON PLCs ........
  • Page 10 TABLE OF CONTENTS Appendices Ethernet Network Parameters ..........Buffer Configuration .
  • Page 12 Information on using mail functions to automatically send I/O memory data from OMRON PLCs to personal computers. Section 3 Information on using mail functions to send commands from OMRON PLCs to per- sonal computers. Section 4 Information on transferring large files between personal computers and OMRON PLCs.
  • Page 13 Relevant Manuals The following table lists CS and CJ-series manuals that contain information relevant to Ethernet Units. Manual Model Name Contents number CS1W-ETN21 Ethernet Units Oper- Provides information on operating and installing W420 CJ1W-ETN21 ation Manual 100Base-TX Ethernet Units, including details on basic Construction of Net- settings and FINS communications.
  • Page 14 Manual Model Name Contents number W446 WS02-CXPC@-V8 CX-Programmer Provides information on how to use the CX-Programmer, Ver. 8.0 Operation a Windows-based programming device, and CX-Net, a Manual Windows-based network configuration tool. Use together with the Programmable Controllers Opera- tion Manual (W339 for CS-series PLCs and W393 for CJ- series PLCs), Programmable Controllers Programming Manual (W394) and the Programmable Controllers Instructions Reference Manual (W340) to perform pro-...
  • Page 16 WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY. In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted. IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS...
  • Page 17 Application Considerations SUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the combination of products in the customer's application or use of the products. At the customer's request, OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products.
  • Page 18 Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
  • Page 20 PRECAUTIONS This section provides general precautions for using the CS1W-ETN21 and CJ1W-ETN21 Ethernet Units (100Base-TX). The information contained in this section is important for the safe and reliable application of Ethernet Units. You must read this section and understand the information contained before attempting to set up or operate an Ethernet Unit.
  • Page 21: Intended Audience

    It is extremely important that a PLC and all PLC Units be used for the speci- fied purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PLC System to the above-mentioned appli- cations.
  • Page 22: Operating Environment Precautions

    Operating Environment Precautions • Emergency stop circuits, interlock circuits, limit circuits, and similar safety measures must be provided in external control circuits. !Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the torque specified in the operation manual. The loose screws may result in burning or malfunction.
  • Page 23 Application Precautions • Always turn OFF the power supply to the CPU Unit, Slaves, and Commu- nications Units before attempting any of the following. Not turning OFF the power supply may result in malfunction or electric shock. • Mounting or dismounting I/O Units, CPU Units, Memory Packs, or Master Units.
  • Page 24: Conformance To Ec Directives

    Concepts EMC Directives OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine. The actual products have been checked for conformity to EMC standards (see the following note).
  • Page 25 Conformance to EC Directives Low Voltage Directive Always ensure that devices operating at voltages of 50 to 1,000 V AC and 75 to 1,500 V DC meet the required safety standards for the PLC (EN61131-2). xxvi...
  • Page 26: Features And System Configuration

    SECTION 1 Features and System Configuration This section introduces the features, describes the system configuration and Unit parts, and provides Unit specifications. Ethernet Unit Function Guide ........1-1-1 Overall System Configuration Example .
  • Page 27: Ethernet Unit Function Guide

    Use the UDP/IP version of the FINS communications service (i.e., FINS/ Same Segment UDP). FINS/UDP is supported by many OMRON products and is compatible with earlier Ethernet Units (CS1W-ETN01/ETN11 and CJ1W-ETN11). The CX-Programmer can be connected and used with FINS/UDP even if personal computer middleware (FinsGateway) is not used.
  • Page 28 Section 1-1 Ethernet Unit Function Guide Connecting through Use the TCP/IP version of the FINS communications service (i.e., FINS/TCP). Multiple Segments FINS/TCP is a new function supported by these Ethernet Units (CS1W- ETN21 and CJ1W-ETN21). It provides automatic recovery at the TCP/IP layer from communications errors (such as packet loss) that occur during multilevel routing.
  • Page 29 UDP), and construct applications using the SEND(090), RECV(098), and CMND(490) instructions in the ladder program. FINS/UDP is supported by many OMRON products, and is compatible with earlier Ethernet Units (CS1W- ETN01/ETN11 and CJ1W-ETN11). The protocol processing for FINS/UDP is simpler than for FINS/TCP, giving FINS/UDP certain advantages in terms of performance.
  • Page 30 Section 1-1 Ethernet Unit Function Guide Intranet Production line A Ethernet Unit Ethernet Router Connecting through multiple segments: FINS message communications Use FINS/TCP. Router Production line B Ethernet Unit Ethernet Unit Mail communications FINS message Memory Card communications Connecting within the same segment: Use FINS/UDP.
  • Page 31 Section 1-1 Ethernet Unit Function Guide Mail software Receiving e-mail E-mail Internet IP router Intranet Firewall (Server room) (Office floor) DNS server Mail software POP3 server SMTP server Receiving SNTP server e-mail Ethernet Ethernet Router Router (Production line) Ethernet Ethernet Unit Sending e-mail Monitoring PLC changes and...
  • Page 32 Ethernet Unit Function Guide Section 1-1 Mail software Sending e-mail Internet IP router Intranet Firewall (Server room) (Office floor) DNS server Mail software POP3 server SMTP server SNTP server Sending e-mail Ethernet Ethernet Router Router (Production line) Writing command File attachment enabled Ethernet Ethernet Unit Writing command...
  • Page 33: Features

    Ethernet network. The protocols that can be selected include sending and receiving data by TCP/IP or UDP/IP (socket services), sending and receiving commands by OMRON's standard protocol FINS, transferring files by FTP, sending and receiving e-mail by SMTP/POP3, and automatically adjusting the PLC's internal clock by SNTP.
  • Page 34 Section 1-2 Features Starting with unit version 1.5, the performance of sending and receiving has been improved using optional settings for the TCP or UDP socket services using specific bits in memory. Also, a linger socket option has been added to the TCP socket services.
  • Page 35 Section 1-2 Features • The Ethernet Unit can automatically generate data files (6,000 words maximum per file) from the CPU Unit's I/O memory status, and send them to specified e-mail addresses as e-mail attachments. It can also send pro- gram files from the Memory Card (up to 1 MB) to specified e-mail addresses as e-mail attachments.
  • Page 36: System Configuration

    System Configuration Section 1-3 Full Range of Functions for Handling Troubles A full range of functions is provided for promptly handling any troubles that may arise. • Self-diagnostic function when power is turned ON • Remote node connection check by PING command •...
  • Page 37: Setup Area And Related Peripheral Devices

    CPU Bus Unit System Setup Area CS/CJ-series CPU Unit Making Settings in the OMRON Communications Units use OMRON's original FINS network system. Routing Table Area (with Make the settings for the FINS network and the relay path, as required, in the CX-Integrator) Routing Table Area allocated to the non-volatile memory in the CPU Unit.
  • Page 38 Section 1-3 System Configuration When the CX-Programmer and CX-Integrator are connected online by FINS/ TCP, FinsGateway Version 2003 or higher must be used. For CX-Programmer Ver. 4.0 or higher, FINS/TCP can be used to directly con- nect to the PLC online. Personal computer running Windows User-created CX-Programmer...
  • Page 39: Specifications

    Specifications Section 1-4 Specifications 1-4-1 General Specifications CS-series Ethernet Unit Item Specifications Model number CS1W-ETN21 Type 100Base-TX (Can be used as 10Base-T) Applicable PLCs CS-series PLCs Unit classification CS-series CPU Bus Unit Mounting location CPU Rack or Expansion Rack Number of Units that can be mounted 4 max.
  • Page 40: Dimensions

    Section 1-4 Specifications 1-4-2 Dimensions CS1W-ETN21 ETN21 100M HOST UNIT NODE ×16 ×16 100BASE-TX 10BASE-T (Unit: mm) CJ1W-ETN21 Back Front • Unit Version 1.5 or Later • Unit Version 1.4 or Earlier ETN21 ETN21 LINK LINK 100M FTP HOST 100M FTP HOST UNIT UNIT...
  • Page 41: Software Configuration

    7. FINS (Factory Interface Network Service) A protocol that sends messages between PLCs on any of various OMRON FA networks. To ensure that transmitted messages arrive at the destination node, it is necessary to program special measures such as retry process- ing into the user's applications.
  • Page 42: Overview Of Communications Functions

    Overview of Communications Functions Section 1-5 Overview of Communications Functions 1-5-1 FINS Communications Service Basic Functions FINS commands can be sent to or received from other PLCs or computers on the same Ethernet network by executing SEND(090), RECV(098), or CMND(490) instructions in the ladder diagram program. This enables various control operations such as the reading and writing of I/O memory between PLCs, mode changes, and file memory operations.
  • Page 43: Socket Services

    Section 1-5 Overview of Communications Functions • Even if the IP address and UDP port number of the host computer (a DHCP client computer) are changed, it is still possible for the host com- puter to send FINS commands to PLCs on the Ethernet network and to receive responses.
  • Page 44 Section 1-5 Overview of Communications Functions Executing CMND(490) Another way to use socket services is to request a UDP or TCP socket ser- vice by sending a FINS command to the Ethernet Unit by executing CMND(490) from the CPU Unit. When the Ethernet Unit receives the socket service request, it returns a response to the CPU Unit to confirm that it received the request, and then begins the requested processing.
  • Page 45: Ftp Server Function

    Section 1-5 Overview of Communications Functions 1-5-3 FTP Server Function The Ethernet Unit has a built-in FTP server, so other computers on the Ether- net can read or write individual files on a Memory Card mounted to the CPU Unit or in EM File Memory. This allows files to be exchanged between the host computer and the PLC, with the host computer functioning as an FTP client and the PLC as an FTP server.
  • Page 46: Mail Receive Function

    Overview of Communications Functions Section 1-5 (2) An SMTP server is required to use the mail send function. (3) Mail server settings require specialized knowledge, so they should al- ways be handled by the network administrator. (4) Be sure that you have a clear understanding of the mail system before us- ing this function.
  • Page 47: Automatic Clock Adjustment Function

    Overview of Communications Functions Section 1-5 1-5-6 Automatic Clock Adjustment Function The Ethernet Unit can acquire clock information from the SNTP server at a particular time or when a dedicated bit turns ON, and it can refresh the inter- nal clock information of the CPU Unit to which it is mounted. SNTP server Ethernet Clock information...
  • Page 48: Nomenclature And Functions

    Ethernet address. For the Ethernet Unit, this Ethernet address is shown on the right side of the Unit as a 12-digit hexadecimal number. CS1W-ETN21 ETHERNET UNIT Lot No. OMRON Corporation MADE IN JAPAN @@@@@@@@@@@@ Ethernet Address Ethernet address (12 digits)
  • Page 49 Nomenclature and Functions Section 1-6 CJ-series Ethernet Units CJ1W-ETN21 (100Base-TX) Front • Unit Version 1.5 or Later • Unit Version 1.4 or Earlier Slider For mounting to other Units. Indicators Display the operating status of the Unit. ETN21 ETN21 ERC SD LINK RUN ERC SD LINK...
  • Page 50: Indicators

    Ethernet address. For the Ethernet Unit, this Ethernet address is shown on the right side of the Unit as a 12-digit hexadecimal number. CJ1W-ETN21 ETHERNET UNIT Lot No. OMRON Corporation MADE IN JAPAN @@@@@@@@@@@@ Ethernet Address Ethernet address (12 digits)
  • Page 51 Section 1-6 Nomenclature and Functions Indicator Color Status Meaning Green Not lit Operation stopped Hardware error Normal operation 100M Green Not lit 10 Mbps (10Base-T) (Transfer speed) 100 Mbps (100Base-TX) Not lit Unit normal (Ethernet Unit error) Node address not between 1 and 254 A hardware (e.g., internal memory) error has occurred.
  • Page 52: Comparison With Previous Models

    Comparison with Previous Models Section 1-7 Comparison with Previous Models Item Previous models New models Model number CS1W-ETN11 CS1W-ETN21 CJ1W-ETN11 CJ1W-ETN21 Physical layer 10Base-T 100Base-TX, 10Base-T Number of nodes PLC maintenance via the Internet Not possible to send FINS Can send commands (including FINS com- commands from a personal mands) by e-mail over the Internet from a computer to the PLC via the...
  • Page 53: Unit Version Upgrade Information

    Section 1-8 Unit Version Upgrade Information Unit Version Upgrade Information The details of the upgrade to the Ethernet Unit version are as follows: ■ Unit Version 1.3 Upgrade Details Web function added The unit settings and status monitoring for the Ethernet Unit can be easily performed from a Web browser.
  • Page 54: Installation And Initial Setup

    SECTION 2 Installation and Initial Setup This section explains how to install the Ethernet Unit and make the initial settings required for operation. Overview of Startup Procedure ........Switch Settings .
  • Page 55: Overview Of Startup Procedure

    Section 2-1 Overview of Startup Procedure Overview of Startup Procedure The following procedure is the same for the CS Series and CJ Series. Determine the local IP address Refer to SECTION 5 Determining IP Addresses. and address conversion method. Set the unit number. Refer to 2-2 Switch Settings.
  • Page 56: Switch Settings

    Section 2-2 Switch Settings Switch Settings 2-2-1 CS-series Ethernet Units Setting the Unit Number The unit number is used to identify individual CPU Bus Units when more than one CPU Bus Unit is mounted to the same PLC. Use a small screwdriver to make the setting, taking care not to damage the rotary switch.
  • Page 57: Cj-Series Ethernet Units

    Section 2-2 Switch Settings 2-2-2 CJ-series Ethernet Units Setting the Unit Number The unit number is used to identify individual CPU Bus Units when more than one CPU Bus Unit is mounted to the same PLC. Use a small screwdriver to make the setting, taking care not to damage the rotary switch.
  • Page 58: Mounting To A Plc

    Section 2-3 Mounting to a PLC Unit Operating Mode If the node address is set to 00, the Unit operating mode change function will Change Function start. This function changes the format for the Unit Setup (in the CPU Bus Unit Sys- tem Setup Area) when converting to a CS1W-ETN21 or CJ1W-ETN21 Ether- net Unit from one of the previous models (CS1W-ETN01/11 or CJ1W-ET11).
  • Page 59: Network Installation

    Section 2-4 Network Installation End cover 10 Units max. CPU Rack End cover 10 Units max. Expansion Backplane Up to four Ethernet Units can be mounted. End cover 10 Units max. Expansion Backplane End cover 10 Units max. Expansion Backplane PS: Power Supply Unit CPU: CPU Unit IC: I/O Control Unit...
  • Page 60: Recommended Products

    Section 2-4 Network Installation 2-4-2 Recommended Products The following products are recommended for use with the CS1W-ETN21 Ethernet Unit. Part Maker Model Specifications Inquires number 100BASE-TX PHOE- SWITCH 10/100 Mbit/s 5-port hub CON- TACT 10BASE-T Allied MR820TLX 9-port hub with 10Base-5 Allied Telesis Telesis backbone port...
  • Page 61 Section 2-4 Network Installation • 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 •...
  • Page 62: Using Contact Outputs (Common To All Units)

    Section 2-4 Network Installation 2-4-4 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.
  • Page 63: Connecting To The Network

    Section 2-5 Connecting to the Network Connecting to the Network 2-5-1 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) Connector pin Signal name...
  • Page 64: Creating I/O Tables

    Section 2-6 Creating I/O Tables 3. Connect the cable to the connector on the Ethernet Unit. Be sure to press in the cable until it locks into place. Example: CS1W-ETN21 RJ45 Modular Connector Ethernet Unit Creating I/O Tables 2-6-1 I/O Table Overview I/O tables are used to identify Units mounted to the PLC, and to allocate I/O to them.
  • Page 65: Procedure For Creating I/O Tables

    Section 2-6 Creating I/O Tables Connecting Programming To connect a Programming Console, attach a CS/CJ-series Key Sheet and Devices then connect the Console to the CPU Unit’s peripheral port. (It cannot be con- nected to the RS-232C port.) 2-6-3 Procedure for Creating I/O Tables The procedure for creating I/O tables is shown here, taking as an example I/O tables that is generated automatically for a PLC connected online.
  • Page 66: Unit Setup Procedure

    Unit Setup Procedure Section 2-7 Unit Setup Procedure 2-7-1 Using the CX-Programmer Use the CX-Programmer (Ver. 3.20 or higher) for the Ethernet Unit Setup, and follow the procedure described below. Some functions added with unit version 1.3 require CX-Programmer version 5.0 or higher for setting. 1,2,3...
  • Page 67 Unit Setup Procedure Section 2-7 3. Read the I/O tables from the PLC and select the Rack to which the Ether- net Unit is mounted. 4. Move the cursor to the Ethernet Unit and right-click. Select Unit Setup from the popup menu to display the window for making the Ethernet Unit Setup. The default settings are shown below.
  • Page 68: Using The Web Browser Setting Function

    Section 2-7 Unit Setup Procedure 5. Make the required settings (i.e., the IP address in this case). 6. Transfer the settings to the PLC. Click on Yes in the following dialog box. In order for the Ethernet Unit Setup to go into effect, the Unit must be re- started.
  • Page 69 Unit Setup Procedure Section 2-7 1,2,3... 1. Connect to the Ethernet Unit from the Web browser. In this example, the URL is specified as http://192.168.250.1/0 using the Ethernet Unit’s default IP address. 2. Select Settings from the menu on the left side of the window to display the Settings Menu.
  • Page 70 Section 2-7 Unit Setup Procedure 3. Select 1. IP address and Protocols - System to display the Login Pass- word field on the right of the window. 4. Input the default password (“ETHERNET” all in upper case) and click the Login Button.
  • Page 71: Basic Settings

    Section 2-8 Basic Settings 6. Make the required settings (i.e., the IP address in this example). 7. After entering the correct values, click the Set Button followed by the Reg- ist Button to register them. The Set Button is used to transfer the entered values from the personal com- puter, and temporarily register them in the Ethernet Unit.
  • Page 72 Basic Settings Section 2-8 Depending on the value that is set, the IP address has a great influence on the connectability of the Ethernet Unit. To make full use of the Ethernet func- tions, it is necessary to study the applications and network system design when determining IP address allocations.
  • Page 73 Section 2-8 Basic Settings Unit Setup This method sets the IP address by first selecting the Ethernet Unit from the CX-Programmer's I/O Table Window while connected online, and then setting the IP address from the Unit Setup. Example: Using the CX-Programmer to Set the IP Address to 10.3.65.1 When an IP address is set in the Unit Setup, that value is displayed in the IP Address Display/Setting Area in the DM Area words allocated for CPU Bus Units.
  • Page 74 Section 2-8 Basic Settings If CIDR is not enabled and a subnet mask is not set (i.e., the default of 0.0.0.0 is set) or an illegal value is set, one of the following values will be set as the network mask according to the class of the local IP address. Class Subnet mask Class A...
  • Page 75: Unit Setup For Particular Applications

    Section 2-9 Unit Setup for Particular Applications For the IP network address, set the network number (i.e., the net ID) of the other IP network segment with which communications are to be executed. The length of the network number (i.e., the number of bytes) will vary depend- ing on the IP address class.
  • Page 76 Section 2-9 Unit Setup for Particular Applications Use CX-Integrator to make routing table settings as required. Socket Services CX-Programmer tab Setting Setup Keep-alive CX-Programmer tab Settings Setup Login Password Port No For details, refer to SECTION 4 FTP Server Function in the Operation Manual Construction of Applications.
  • Page 77: Communications Test

    Section 2-10 Communications Test CX-Programmer tab Settings Receive Mail Posting Mail Address Protection Setting Receive Attached File Setting Receive Command Setting For details, refer to SECTION 3 Mail Receive Function in the Operation Man- ual Construction of Applications. Automatic Clock Adjustment CX-Programmer tab Settings IP Address...
  • Page 78: Ethernet Unit

    Section 2-10 Communications Test If the remote node returns a normal response to the PING command, then the nodes are physically connected correctly and Ethernet node settings are cor- rect. Remote Node (host computer or Ethernet Unit) ICMP Ethernet Echo request Echo response 2-10-2 Ethernet Unit The Ethernet Unit automatically returns the echo response packet in...
  • Page 79: Converting From Previous Models

    Section 2-11 Converting from Previous Models Abnormal Execution ; Executes PING command ping 130.25.36.8 PING 130.25.36.8: 56 data bytes ←Enter Ctrl+C Key to cancel. ––––130.25.36.8 PING Statistics–––– 9 packets transmitted, 0 packets received, 100% packets loss Refer to operating system documentation for your host computer for details about using the host computer’s PING command.
  • Page 80 Section 2-11 Converting from Previous Models Specifications in ETN11 mode Item Mail send function • The specifications for previous Units apply. • The mail transmission status is as follows: • Status of user mail transmission → Status of transmission condition setting 5 •...
  • Page 81 Section 2-11 Converting from Previous Models Checking with the CX-Programmer's Unit Setup Window ■ Window Display in ETN21 Mode ■ Window Display in ETN11 Mode ■ Checking by Reading Words Allocated in the CIO Area n+17 System Setting Format...
  • Page 82 Section 2-11 Converting from Previous Models Bit address Format classification ETN11 mode ETN21 mode Other Reserved Changing the CPU Bus The CPU Bus Unit System Setup Area format can be changed in either of the Unit System Setup Area following two ways. Select the method that can be used in the system in which Format the Unit is to be replaced.
  • Page 83 Section 2-11 Converting from Previous Models ■ Manipulating the Rotary Switches for the Node Address with a Precision Screwdriver Converting from ETN11 Mode to ETN21 Mode 1. Turn OFF the power to the PLC, and set the Ethernet Unit's rotary switches for the node address as follows: Node address Indicators...
  • Page 84 Section 2-11 Converting from Previous Models • If an Error Occurred in the Mode Change Node address Indicators ×16 ×16 Flashing Not lit Note If an error occurs in the mode change, remove the Ethernet Unit, create the I/O tables, and correct the settings using the procedures described in this section.
  • Page 85 Section 2-11 Converting from Previous Models • If the Mode Change was Completed Normally Node address Indicators ×16 ×16 Flashing • If an Error Occurred in the Mode Change Node address Indicators ×16 ×16 Flashing Not lit Note If an error occurs in the mode change, remove the Ethernet Unit, create the I/O tables, and correct the settings using the procedures described in this section.
  • Page 86: Cx-Programmer Unit Setup

    SECTION 3 CX-Programmer Unit Setup This section describes how to install the Ethernet Unit and make the initial settings required for operation. Setup ............FINS/TCP .
  • Page 87: Setup

    Section 3-1 Setup Setup Item Contents Default Broadcast Set the method for specifying IP addresses for broadcasting in FINS/ All 1 (4.3BSD) UDP. • All 1 (4.3BSD): Broadcast with host number set to all ones. • All 0 (4.2BSD): Broadcast with host number set to all zeros. Normally the default setting should be used.
  • Page 88 Section 3-1 Setup Item Contents Default Conversion Select any of the following as the method for finding and converting IP Auto (dynamic) addresses from FINS node addresses. (Enabled for FINS/UDP only.) • Automatic generation (dynamic): Auto (dynamic) • Automatic generation (static): Auto (Static) •...
  • Page 89: Fins/Tcp

    Section 3-2 FINS/TCP FINS/TCP FINS/TCP Connection Setup Item Contents Default Shows the connection number. This is a network API used when TCP is used for the FINS communica- tions service. It corresponds to a socket in the socket services. Up to 16 can be used at a time, and they are identified by connection numbers 1 to 16.
  • Page 90 Section 3-2 FINS/TCP The following settings can be made for each connection number. Item Contents Default FINS/TCP Mode For each connection number, this setting specifies Server the Ethernet Unit for use as either a server or a cli- ent. • When the Ethernet Unit is used as a server: The Ethernet Unit opens a connection with that connection number and waits for service requests (FINS commands) from clients.
  • Page 91: Dns

    Section 3-3 DNS Server Setup Item Contents Default IP Address Set the IP address for the DNS server. None The DNS server is required when specifying the POP3, SMTP, or SNTP servers by host name for the mail send function or mail receive function. Port No.
  • Page 92: Smtp

    Section 3-4 SMTP SMTP SMTP Server Setup Item Contents Default Designation Select whether the SMTP server used for send- IP Address Method ing mail is to be specified by IP address or the host's domain name (i.e., host name). IP Address Set the IP address for the SMTP server used for 0.0.0.0 sending mail.
  • Page 93: Pop

    Section 3-5 POP Server Setup Item Contents Default Designation Select whether the POP3 server used for receiving IP Address Method mail is to be specified by IP address or the host's domain name (i.e., host name). IP Address Set the IP address for the POP3 server used for 0.0.0.0 receiving mail.
  • Page 94: Mail Address

    Section 3-6 Mail Address Mail Address Destination Mail Address Setup Item Contents Default Mail Address 1 Set one of the addresses to which the Ethernet Unit None is to send mail. (Up to two address can be set.) Note: Mail can be sent to multiple addresses by punctuating the mail address with commas.
  • Page 95: Send Mail

    Section 3-7 Send Mail Send Mail Item Contents Default Send Trigger Select a number as the trigger condition for send- ing mail. Up to eight trigger numbers can be regis- tered. Use send trigger Sets whether or not the selected mail trigger is to Not checked be enabled.
  • Page 96 Send Mail Section 3-7 Item Contents Default Mail Soft- If this option is selected, mail is sent whenever the Checked trigger ware Mail Send Switch turns ON. type switch The Mail Send Switch is bit 03 of word n in the (Select words allocated for CPU Bus Units.
  • Page 97: Receive Mail

    Receive Mail Section 3-8 Item Contents Default Interval time When “Periodic Set the time interval for sending timer” is set as mail. (10 minutes) the mail trigger 1 to 1,440 (10 to 14,400 min), in type units of 10 min When “Bit value Set the time interval for monitor- change”...
  • Page 98 Section 3-8 Receive Mail Receive Attached File Setting Item Contents Default Receive a specified If this option is selected, only file attachments extension file only with specified extensions is accepted with mail. checked Use the checkboxes below to select which file extensions are to be accepted.
  • Page 99: Auto Adjust Time

    Auto Adjust Time Section 3-9 For details, refer to SECTION 3 Mail Receive Function in the Operation Man- ual Construction of Applications. Auto Adjust Time SNTP Server Setup Item Contents Default Obtain clock If this option is selected, the CPU Unit's clock is set to data from SNTP the time at the SNTP server's clock.
  • Page 100: Http

    Section 3-10 HTTP Item Contents Default Retry Timer Set the time to elapse before retrying when a connec- tion to the SNTP server fails. This setting does not (10 s) normally need to be changed. Time Lag This sets in the CPU Unit's clock data the time differ- +0:0 Adjustment ence made up from the SNTP server's clock data.
  • Page 101 Section 3-10 HTTP...
  • Page 102: Ethernet Unit Memory Allocations

    SECTION 4 Ethernet Unit Memory Allocations This section describes the words allocated in the CIO Area and the DM Area for Ethernet Units. CIO Area Allocations ......... . . DM Area Allocations .
  • Page 103: Cio Area Allocations

    Section 4-1 CIO Area Allocations CIO Area Allocations The various kinds of data are stored in the offset positions shown in the fol- lowing 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 ×...
  • Page 104 Section 4-1 CIO Area Allocations Unit Control Bits (CPU Unit to Ethernet Unit) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Socket Force-close Switch Mail Send Switch Automatic Clock Adjustment Switch Switch Status Manipulated Unit operation...
  • Page 105 Section 4-1 CIO Area Allocations Status of UDP/TCP Sockets 1 to 8 (Ethernet Unit to CPU Unit) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 n+1 to n+16 Data Received Flag Opening Flag Results Storage Error Flag Receiving Flag TCP/UDP Open Flag...
  • Page 106 Section 4-1 CIO Area Allocations Opening Flag (Bit 00) 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 process- ing 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.
  • Page 107 Section 4-1 CIO Area Allocations 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.
  • Page 108 Section 4-1 CIO Area Allocations Accessing Memory (Sending Mail) (Bit 01) This bit turns ON while CPU Unit memory is being accessed to create a file to be attached using the mail send function, and it turns OFF when the file has been created.
  • Page 109 Section 4-1 CIO Area Allocations Error Status Manipulated by Unit operation DNS server error Unit ON when the following errors occur during DNS server operation: • An illegal server IP address is set. • A timeout occurs during communications with the server.
  • Page 110 Section 4-1 CIO Area Allocations Switch Status Manipulated Unit operation Reference UDP Open Request User UDP socket opened when switch is turned Operation Man- Switch ual, Construc- tion of Unit Unit turns OFF switch when open processing Applications, has been completed (i.e., when a connection SECTION 6 has been made).
  • Page 111: Dm Area Allocations

    Section 4-2 DM Area Allocations These bits show the status of FINS/TCP connections. Switch Status Manipulated Unit operation Reference FINS/TCP Connec- Unit Turned ON by the Unit when a connection is SECTION 6 tion No.1 established. FINS Commu- nications Ser- Unit Turned OFF by the Unit when the connection vice...
  • Page 112 Section 4-2 DM Area Allocations The meanings 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. Send Mail Status 1, 2 (Ethernet Unit to CPU Unit) Send Mail Status 1 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Status of Send Condition Setting 1...
  • Page 113 Section 4-2 DM Area Allocations TCP Socket No. (1 to 8): Number of Bytes Received (Ethernet Unit to CPU Unit) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 m+1 to m+8 Number of Bytes Received (0000 to 07C0 hex) For each TCP socket, the number of bytes of data in the reception buffer is stored in one word.
  • Page 114 Section 4-2 DM Area Allocations IP Address Display/Setting Area 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 m+98 m+99 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 0.0.0.0, this area (words m+98 and m+99) will act as an IP Address Display Area and 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...
  • Page 115: Auxiliary Area Data

    Section 4-3 Auxiliary Area Data Auxiliary Area Data The following table and descriptions cover the words and bits in the Auxiliary Area of PLC memory that are related to the Ethernet Unit. Read-only Bits/Words Word(s) Bit(s) Name Function Settings A202 A202.00 to Communications Bits A202.00 to A202.07 turn ON when a network...
  • Page 116 Section 4-3 Auxiliary Area Data Word(s) Bit(s) Name Function Settings A417 A417.00 to CPU Bus Unit Error, When an error occurs in a data exchange between 0: No error A417.15 Unit Number Flags the CPU Unit and a CPU Bus Unit, the CPU Bus 1: Error Unit Error Flag (A402.07) and the corresponding flag in A417 are turned ON.
  • Page 117 Section 4-3 Auxiliary Area Data...
  • Page 118: Determining Ip Addresses

    SECTION 5 Determining IP Addresses This section explains how to manage and use IP addresses. IP Addresses ..........5-1-1 IP Address Configuration .
  • Page 119: Ip Addresses

    Section 5-1 IP Addresses IP Addresses Ethernet networks use IP addresses for communications. IP addresses iden- tify 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. 5-1-1 IP Address Configuration IP addresses are made up of 32 bits of binary data divided into four 8-bit fields...
  • Page 120: Ethernet Unit Ip Address Settings

    Section 5-1 IP Addresses 5-1-3 Ethernet Unit IP Address Settings An IP address must be set even for the Ethernet Unit before Ethernet commu- nications can proceed. Either use the default for the Ethernet Unit's IP address, or else use a peripheral device to set it in the DM Area words allo- cated to the Unit as a CPU Bus Unit or in the CPU Bus Unit System Setup.
  • Page 121: Ip Addresses In Fins Communications

    Section 5-2 IP Addresses in FINS Communications component and host ID component. Because CIDR does not use a class, it is possible to divide the IP address space as desired, which enables efficient use of IP address space (i.e., number of hosts). For example, it is possible to build a horizontally distributed network exceeding 254 nodes by setting a net- work mask using CIDR even if class C (192.168, .
  • Page 122 Section 5-2 IP Addresses in FINS Communications • FINS/UDP port number: Either use the default FINS/UDP port number (9600) or set the number using the CX-Program- mer's Unit Setup. • FINS/TCP port number: Either use the default FINS/TCP port number (9600) or set the number using the CX-Program- mer's Unit Setup.
  • Page 123: Pairing Addresses In Internal Tables

    Section 5-2 IP Addresses in FINS Communications FINS header FINS data Remote node Internal table Remote port Remote FINS Remote IP number node number address (Example) Connection (Example) Application level FINS 192.168.250.1 9600 Node number 192.168.250.2 9600 192.168.250.254 9600 Transport level UDP port TCP port number...
  • Page 124 Section 5-2 IP Addresses in FINS Communications • Remote IP address: Local IP address network number + remote FINS node address • Remote UDP port number: UDP port number set for local Unit • Connection method: FINS/UDP With the static method, however, data in an internal table that has been gener- ated is not freely changed.
  • Page 125 Section 5-2 IP Addresses in FINS Communications Example When FINS Command is Sent FINS node number IP address table FINS node IP address number Node number in 153.214.0.62 IP address table 153.214.0.129 IP address 153.214.0.129 FINS command sent 153.218.51.8 When FINS Command is Received FINS node number Internal table Node number not...
  • Page 126 Section 5-2 IP Addresses in FINS Communications Example When FINS Command is Sent FINS node number IP address table FINS node IP address number Node number in 153.214.0.62 IP address table IP address 153.214.0.129 IP address method FINS command 153.218.51.8 sent Node number not Network number: xx.xx.00.00...
  • Page 127 Section 5-2 IP Addresses in FINS Communications Using the ETN11- For Ethernet Unit with unit version 1.4 or later, operating specifications can be compatible Mode made compatible with the CS1W-ETN11/CJ1W-ETN11 for all methods (auto- matic generation (dynamic), I/O address table, or combined). (Dynamic changes, however, are prohibited for the destination IP address in ETN11- compatible mode.) While in ETN11-compatible mode, the following operations will be performed the same as they are for the CS1W-ETN11/CJ1W-ETN11...
  • Page 128 Section 5-2 IP Addresses in FINS Communications FINS/TCP Communications Method Pairing in the FINS/TCP With the FINS/TCP method, communications are first established for each Method connection, and then remote FINS node addresses are mutually converted. (See note.) Then FINS message communications are executed. In this way, remote FINS node addresses and remote IP addresses are paired for each connection.
  • Page 129 Section 5-2 IP Addresses in FINS Communications Personal computer or Ethernet Unit (server) CPU Unit Ethernet Unit (client) (1) The connection is established. Local FINS node number B Local FINS node number A (2) The local device (such as a personal Local IP address S computer) sends notification that its Local IP address T...
  • Page 130: Application Examples

    Section 5-2 IP Addresses in FINS Communications 5-2-3 Application Examples Responding to Computers with Changed IP Addresses FINS/UDP With FINS/UDP, whether using the automatic conversion method (dynamic), Communications Method the IP address table method, or the combined method, remote FINS node addresses and remote IP addresses in the internal table are changed after FINS messages are received.
  • Page 131: Related Products And Communications/Setting Methods

    Section 5-2 IP Addresses in FINS Communications applications, such as mail servers, are normally allocated fixed IP addresses. Ethernet Units in PLC systems are also allocated fixed IP addresses. Simultaneously Running Multiple Applications on a Personal Computer In communications involving previous models, multiple communications appli- cations were configured on personal computers according to data accessing uses, and the fact that no more than one UDP port number for FINS commu- nications could be used on any given computer created a problem.
  • Page 132 Section 5-2 IP Addresses in FINS Communications Models Supporting Automatic Generation Method (Static) Product Model/Series/ Supports automatic Version generation method (static)? CS-series Ethernet 100BASE-TX CS1W-ETN21 Unit 10BASE-5 CS1W-ETN01 Yes: Simply called “auto- matic generation 10BASE-T CS1W-ETN11 method.” CJ-series Ethernet 100BASE-TX CJ1W-ETN21 Unit 10BASE-T...
  • Page 133: Private And Global Addresses

    Section 5-3 Private and Global Addresses Product Model/Series/ Supports combined Version method? Programmable Terminal NS Series No: Set manually. FINS communications are not Open Network Controller (ONC) possible with personal computers set automati- cally by DHCP. 5-2-5 Pairing IP Addresses and FINS Node Addresses The following table shows the methods for pairing IP address and FINS node addresses, and the relation between fixed and variable address, for both FINS/UDP and FINS/TCP.
  • Page 134 Section 5-3 Private and Global Addresses Intranet Personal computer, CX-Programmer, etc. Ethernet Firewall Private address IP router Private address Not output to Internet Internet Global address (required) Not output to Internet Intranet Global address IP router Private address Private address Personal computer, CX-Programmer, etc.
  • Page 135: Using A Private Address For The Ethernet Unit

    Section 5-3 Private and Global Addresses 5-3-2 Using a Private Address for the Ethernet Unit Intranet FINS communications CX-Programmer, etc. Socket FINS/TCP client computer Ethernet Communications in intranet Firewall IP router Sending mail Receiving mail Ethernet Unit: Private address Internet E-mail can be sent and received through the Internet.
  • Page 136 Private and Global Addresses Section 5-3 • With FINS/UDP, when the IP address (private address) of a computer serving as a DHCP client is changed, the Ethernet Unit's IP address con- version method will be the automatic generation method (dynamic), the combined method, or the IP address table method.
  • Page 137: Ethernet Unit With A Global Address

    Private and Global Addresses Section 5-3 5-3-3 Ethernet Unit with a Global Address Intranet CX-Programmer, etc. FINS/TCP client computer Ethernet Communications Firewall over Internet Private address IP router Not output to Internet Internet Global address (required) Not output to Internet Intranet Global address IP router...
  • Page 138 Section 5-3 Private and Global Addresses 3. Sending Mail • The PLC can send the Ethernet Unit's IP address to the SMTP server by mail via the intranet, even if it as a private address. • The TCP port number (default: 25) to be used for SMTP cannot be used if prohibited by a firewall in the communications path.
  • Page 139 Private and Global Addresses Section 5-3...
  • Page 140: Fins Communications

    FinsGateway ......... . . Communicating between OMRON PLCs ......
  • Page 141: Overview Of Fins Communications

    Ethernet Address The FINS communications service is a communications method based on UDP/IP, and it is supported by most OMRON Ethernet-related products. (In this manual it is called the FINS/UDP method.) In addition to supporting the FINS/UDP method, the CS1W-ETN21 and CJ1W-ETN21 support FINS com- munications using TCP/IP.
  • Page 142: Fins Communications Service Specifications For Ethernet

    Overview of FINS Communications Section 6-1 • When FINS nodes are connected on the same Ethernet segment: Use the FINS/UDP method between those nodes. Note FINS/UDP offers a slight advantage in performance. • When FINS nodes are connected over multiple IP network layers: Use the FINS/TCP method between those nodes.
  • Page 143: Fins/Udp Method

    Section 6-2 FINS/UDP Method FINS/UDP Method 6-2-1 Overview FINS/UDP Features The FINS/UDP method is a FINS communications method that uses the UDP/ IP protocol. UDP/IP is a connectionless communications protocol. When a message is sent from one node to another, the two nodes have an equal rela- tionship and there is no clear connection.
  • Page 144 Section 6-2 FINS/UDP Method UDP Port Numbers for The UDP port number is the number for UDP to identify the application layer FINS/UDP (i.e., the FINS communications service in this case). When communications are executed by UDP/IP, this port number must be allocated to the communi- cations service.
  • Page 145: Fins/Tcp Method

    Section 6-3 FINS/TCP Method FINS/TCP Method 6-3-1 Overview FINS/TCP Features The FINS/TCP method is a FINS communications method that uses the TCP/ IP protocol. TCP/IP is a connection-type communications protocol. Before a message is sent from one node to another, it is necessary to establish a vir- tual circuit, i.e., a connection.
  • Page 146 FINS/TCP Method Section 6-3 • Once a FINS/TCP connection (connection number, remote IP address) has been set in the Unit Setup, it can be dynamically changed from the ladder program using a FINS command (i.e., FINS/TCP CONNECTION REMOTE NODE CHANGE REQUEST). FINS/TCP Frame Format The following diagram shows the structure of a TCP packet sent over an Ethernet network.
  • Page 147 FINS/TCP Method Section 6-3 FINS/TCP Connection Status (Word n+23) While a connection with a remote node is established, the bit corresponding to the FINS/TCP connection status turns ON in the section of the CPU Bus Unit words allocated in the CIO Area. The bit turns OFF if the connection is termi- nated by a communications error or a FINS command (i.e., FINS/TCP CON- NECTION REMOTE NODE CHANGE REQUEST).
  • Page 148 Section 6-3 FINS/TCP Method Even if the connection is closed at the FINS/TCP client, requests continue to be made to the FINS/TCP server every few seconds to open a connection. Note After the Ethernet Unit is powered up or restarted, the IP address for the con- nection used as the FINS/TCP client is the remote IP address set under the FINS/TCP Tab in the Unit Setup.
  • Page 149: Creating Routing Tables

    Creating Routing Tables Section 6-4 Creating Routing Tables When the FINS communications service is used, routing tables must be cre- ated in advance. Routing tables are required in the following circumstances. • When communicating with a PLC or computer on another network (e.g., remote programming or monitoring using FINS messages or a CX-Pro- grammer) •...
  • Page 150: Connecting And Using A Peripheral Device For The Plc

    Section 6-4 Creating Routing Tables The following example shows routing tables for sending data from PLC #1 (the local node: network address 1, node address 1) to PLC #4 (the destination node: network address 3, node address 2). Node #2 PLC #3 Unit #0 PLC #4 (destination node)
  • Page 151: Routing Table Setting Examples

    Section 6-4 Creating Routing Tables 6-4-3 Routing Table Setting Examples ■ Example 1: Local Network Table for a PLC With Multiple Units Mounted This example shows the local network table settings for a PLC to which multi- ple CPU Bus Units are mounted. Ethernet network Controller Link network (Network #B)
  • Page 152 Creating Routing Tables Section 6-4 ■ Example 3: All Nodes This example uses the following configuration to show the routing tables for all nodes. Unit #5 Node #6 Network #10 Unit #4 Unit #3 Node #5 Node #4 Unit #7 Unit #2 Node #15 Node #3...
  • Page 153: Using Fins Applications

    Section 6-5 Using FINS Applications Using FINS Applications 6-5-1 CX-Programmer (CX-Server) The following examples show how to connect online from a CX-Programmer on an Ethernet network to a PLC on the Ethernet network. ■ System Configuration Example 1: No Routing In this example, an online connection is made by FINS/UDP to a PLC on an Ethernet network (PLC1 in the diagram below) from a CX-Programmer or CX- Integrator connected to the Ethernet network.
  • Page 154 Section 6-5 Using FINS Applications CX-Programmer's Unit Setup Setup Tab Item Setting Broadcast All ones (4.3BSD) FINS/UDP port Default (9600) IP address 0.0.0.0 (Use default IP address.) Subnet mask 0.0.0.0 IP address conversion Automatic generation method (dynamic) Baud rate Automatic detection IP router table None Example: Inputs to the CX-Programmer's Setup Window...
  • Page 155 Section 6-5 Using FINS Applications Example: Network Settings (Network Tab) Note When FinsGateway is selected as the network type, make sure that the frame length is set to 2,000 bytes max. Example: Network Settings (Driver Tab)
  • Page 156 Section 6-5 Using FINS Applications ■ System Configuration Example 2: Using Routing Tables In this example, an online connection is made via the Ethernet to a PLC on a Controller Link network (PLC 3 below) from a CX-Programmer or CX-Integra- tor connected to the Ethernet network.
  • Page 157: Finsgateway

    Section 6-5 Using FINS Applications • Local Network Table Unit number Local network number • Relay Network Table None Example: PLC 2 and PLC 3 Routing Table Settings • Local Network Table Unit number Local network number • Relay Network Table In order to relay from PLC2/3 to the final network number 1, it is necessary to relay via node address 1 (i.e., the Controller Link Unit) on relay network number 2.
  • Page 158 Section 6-5 Using FINS Applications • Network Tab • Network number Set the network number for the personal computer (Ethernet port). • Local node address Set the personal computer (Ethernet port) node address (1 to 254) on the Ethernet network. •...
  • Page 159 Section 6-5 Using FINS Applications • UDP Nodes Tab: Automatic Generation Method (Dynamic or Passive) • UDP Nodes Tab: IP Address Table Method or Combined Method Click the Add Button, and then set the IP address table in the following Ether- net Node Definition Dialog Box.
  • Page 160 Section 6-5 Using FINS Applications • Node address: Set the remote FINS node address. • IP address: Set the remote IP address. • TCP Nodes Tab Click the Add Button, and then set the IP address table in the following Ether- net Node Definition Dialog Box.
  • Page 161 Section 6-5 Using FINS Applications • Node address: Set the remote FINS node address. • IP address: Set the remote IP address. • Destination port number: Set the FINS/TCP port number for the remote node. Normally the PLC's default setting of 9600 should be specified.
  • Page 162: Communicating Between Omron Plcs

    Section 6-6 Communicating between OMRON PLCs CX-Programmer's Unit Setup Setup Tab Item Setting Broadcast All ones (4.3BSD) FINS/TCP port Default (9600) IP address 0.0.0.0 (Use default IP address.) Subnet mask 0.0.0.0 Baud rate Automatic detection IP router tables None FINS/TCP Tab Not set.
  • Page 163: Plc Communications Data Areas

    Section 6-6 Communicating between OMRON PLCs Item Specifications Data contents The following data is sent and received with the execution of each instruction. SEND(090): Sends request for remote node to receive data, and receives response data. RECV(098): Sends request for remote node to send data, and receives response data.
  • Page 164: Using Send(090), Recv(098), And Cmnd

    Section 6-6 Communicating between OMRON PLCs 6-6-3 Using SEND(090), RECV(098), and CMND(490) Make the settings shown below when using the SEND(090), RECV(098), and CMND(490) instructions in the user’s ladder-diagram program in the PC. SEND(090) The SEND(090) instruction sends the data in n number of words, starting from the beginning word S at the local node, to the words starting from the begin- ning word D at the remote destination node (node address N).
  • Page 165 Section 6-6 Communicating between OMRON PLCs RECV(098) With the RECV(098) instruction, the data in m number of words, starting from the beginning word S at the remote node (node address M) is received at the words starting from the beginning word D at the local node.
  • Page 166 Communicating between OMRON PLCs Section 6-6 CMND(490) The CMND(490) instruction sends n bytes of command data, starting from the beginning word S at the local node, to the node at node address N. the data in m number of words, starting from the beginning word S at the remote node (node address M) is received at the words starting from the beginning word D at the local node.
  • Page 167 Communicating between OMRON PLCs Section 6-6 Commands Addressed to CS/CJ-series CPU Units The following table provides a list of FINS commands that can be processed by a CS/CJ-series CPU Unit. For details, refer to the CS/CJ-series Program- mable Controllers Communications Commands Reference Manual (W342).
  • Page 168: Writing Programs

    Section 6-6 Communicating between OMRON PLCs Usage Command Name Function code File memory FILE NAME READ Reads file memory data. SINGLE FILE READ Reads a specified length of file data from a specified position within a single file. SINGLE FILE WRITE...
  • Page 169 Communicating between OMRON PLCs Section 6-6 Communications Execution Port Enabled Flag condition Input A remains ON from start to completion of commu- KEEP(011) A nications instruction. Reset B Creates operand and control data in a given Operand, area. control data...
  • Page 170 Section 6-6 Communicating between OMRON PLCs Communications Port The status of a SEND(090), RECV(098), and CMND(490) instruction after Completion Codes execution is reflected as a communications port completion code, in one word (two bytes) of data as shown in the following table. (The value is 0000 during instruction execution.) The recorded status is saved until execution of the next...
  • Page 171 Section 6-6 Communicating between OMRON PLCs Example Communications Port Enabled Flag Communications instruction: Instruction 3 Instruction 1 Instruction 2 being executed. being executed. SEND(090), RECV(098), CMND(490) being executed. Communications Port Error Flag 0000 0000 0000 Communications Port Completion Code Completion...
  • Page 172: Program Example

    Communicating between OMRON PLCs Section 6-6 6-6-5 Program Example Execution condition (See note.) 0000.00 A202.07 1200.02 When the Communications Port Enabled Flag for port 7 KEEP is ON, and RECV(098) is not being executed, the send 120000 execution program will start when execution condition CIO 0000.00 turns ON.
  • Page 173 Section 6-6 Communicating between OMRON PLCs (Continued from previous page.) Execution condition (See note.) When the Communications Port Enabled Flag for port 7 0000.01 A202.07 1200.00 is ON, and SEND(090) is not being executed, the trans- KEEP mission execution program will start when execution 120002 condition CIO 0000.01 turns ON.
  • Page 174: Transmission Delays

    Section 6-6 Communicating between OMRON PLCs 6-6-6 Transmission Delays The methods of computing the maximum time required from execution of the SEND(090), RECV(098), and CMND(490) instructions until processing is completed are described in this section. SEND(090) The transmission delay for the SEND(090) instruction can be calculated using the following equation, which is illustrated in the following diagram.
  • Page 175 Section 6-6 Communicating between OMRON PLCs CPU Bus Unit Service Processing Time (Local Node) The processing time will be as follows, depending on the CPU processing mode settings at the CPU Unit: CPU execution mode Processing time considerations Normal Mode...
  • Page 176 Section 6-6 Communicating between OMRON PLCs CPU Bus Unit Service Processing Time (Remote Node) The processing time will be as follows, depending on the CPU processing mode settings at the CPU Unit. CPU processing mode Processing time considerations settings Normal Mode...
  • Page 177 Section 6-6 Communicating between OMRON PLCs RECV(098) The transmission delay for the RECV(098) instruction can be calculated using the equation illustrated in the following diagram. RECV(098) executed in user program CPU Bus Unit CPU Bus Unit Service Cycle (local node)
  • Page 178 Section 6-6 Communicating between OMRON PLCs CPU Bus Unit Service Processing Time (Local Node 1) The processing time will be as follows, depending on the CPU processing mode settings at the CPU Unit: CPU processing mode Processing time considerations settings...
  • Page 179 Section 6-6 Communicating between OMRON PLCs CPU Bus Unit service processing time (remote node) The processing time will be as follows, depending on the CPU processing mode settings at the CPU Unit. CPU processing mode Processing time considerations settings Normal Mode...
  • Page 180: Precautions On High Traffic In Fins Communications

    Section 6-7 Precautions on High Traffic in FINS Communications nodes, traffic through the Ethernet Unit (e.g., socket servicing, FTP server communications, etc.), and the system configuration. Example Calculations The following example shows calculations for receiving 256 words between two PLC nodes using RECV(098). Calculations are shown in the following table: Conditions Local node CPU cycle time:...
  • Page 181 Section 6-7 Precautions on High Traffic in FINS Communications For example, suppose that approximately 20 ms are required to process a sin- gle FINS frame (i.e., 20 ms from the time that the command is received at the Ethernet Unit until a response is sent). If 100 or more FINS frames (com- mands) are received at once from multiple communicating nodes, it will take approximately 2 seconds to send a response to the last command.
  • Page 182: Fins Commands Addressed To Ethernet Units

    SECTION 7 FINS Commands Addressed to Ethernet Units This section describes the FINS commands that can be sent to an Ethernet Unit and the responses that are returned by the Ethernet Unit. Command Codes and Response Codes ......7-1-1 Command Code List .
  • Page 183: Command Codes And Response Codes

    Section 7-1 Command Codes and Response Codes Command Codes and Response Codes 7-1-1 Command Code List The command codes listed in the following table can be sent to an Ethernet Unit. Command code Name Page RESET CONTROLLER DATA READ CONTROLLER STATUS READ INTERNODE ECHO TEST BROADCAST TEST RESULTS READ BROADCAST DATA SEND...
  • Page 184: Socket Applications

    Section 7-2 Socket Applications The MRES codes are shown in the following table along with the results they indicate. Refer to 8-4-7 Troubleshooting with Response Codes for details on response codes including the SRES. MRES Execution results Normal completion Local node error Remote node error Unit error (controller error) Service not supported...
  • Page 185: Plc Memory Areas

    Section 7-2 Socket Applications Parameters Specifies the parameters for the command code. Parameters depend on the command being executed; for details, refer to the following pages. 7-2-2 PLC Memory Areas The memory areas of the PLC that can be specified for results storage when executing commands from the PC are listed in the table below.
  • Page 186: Command/Response Reference

    Section 7-3 Command/Response Reference Command/Response Reference This section describes the FINS commands that can be sent to Ethernet Units and the responses to each command. The command, response, and (where applicable) the results storage blocks are given with the commands in graphic form as shown in the following dia- gram.
  • Page 187: Controller Data Read

    Section 7-3 Command/Response Reference 7-3-2 CONTROLLER DATA READ Reads the following data from the Ethernet model, version, IP address, sub- net mask, FINS UDP port number, mode settings, Ethernet address. Command Block 05 01 Command code Response Block 05 01 20 byte 20 byte 4 byte...
  • Page 188: Controller Status Read

    Section 7-3 Command/Response Reference FFINS/TCP Port Number Setting 0: Default (9600) 1: Unit Setup value Baud Rate setting 0: Automatic detection 1: 10Base-T SNTP Server Specification Method 0: IP address 1: Host name SMTP Server Specification Method 0: IP address 1: Host name POP Server Specification Method 0: IP address...
  • Page 189 Section 7-3 Command/Response Reference Parameters Error Flags (Response) Indicates the operating status and errors that occurred when the Ethernet Unit was started. Bit 02: IP address error Bit 03: IP address table error Bit 04: IP router table error Bit 05: DNS server error Bit 06: Routing table error Bit 11: SNTP server error Bit 12: SMTP server error...
  • Page 190: Internode Echo Test

    Section 7-3 Command/Response Reference Address Disagreement The address conversion method was set for automatic generation, but the node address and the last byte of the local IP address do not agree, or other host sections are 0. EEPROM Error An error occurred in the EEPROM memory in the Ethernet Unit. Total Number of Packets The total number of packets received by the Ethernet Unit is returned.
  • Page 191: Broadcast Test Results Read

    Section 7-3 Command/Response Reference Parameters Test Data (Command, This command specifies the data to be sent to the specified nodes. Up to Response) 1,998 bytes can be specified. The response sends back data identical to the data specified in the command. An abnormality is assumed if the data returned in the response differs from the test data sent.
  • Page 192: Error Log Read

    Section 7-3 Command/Response Reference Command Block 08 03 1,460 bytes max. Command Test data code Parameters Test Data (Command) This command specifies the data to be sent to the specified nodes. Up to 1,460 bytes can be specified. Precautions No response is made to this command. When using this command, set the FINS header parameters (or the control data for the CMND(194) instruction) as follows: Destination node address:...
  • Page 193: Error Log Clear

    Section 7-3 Command/Response Reference Error Log Data The specified number of error log records from the beginning record number (Response) is returned sequentially. The total number of bytes in the error log is calculated as the number of records x 10 bytes/record. Each error log record thus com- prises 10 bytes, configured as follows: 1st byte 10th byte...
  • Page 194: Udp Open Request

    Section 7-3 Command/Response Reference 7-3-9 UDP OPEN REQUEST Requests processing to open a socket. Command Block 27 01 Results storage area Command code Local UDP port number UDP socket number Socket option Response Block 27 01 Command Response code code Results Storage Format Results storage response code...
  • Page 195: Udp Receive Request

    Section 7-3 Command/Response Reference Response code Description 1002 Command too small. 1100 UDP socket number is out of range. Local UDP port number is 0. 1101 The variable type for the results storage area is out of range. 1103 Non-zero bit address specified for the results storage area. 220F Specified socket is already open or is being closed.
  • Page 196 Command/Response Reference Section 7-3 Results Storage Area The area in which the results of the command execution are stored. The first (Command) byte specifies the memory area and data type (variable type). The 2nd to 4th bytes specify the beginning address of the results storage area. Refer to page 160 for details about the variable types and addresses that can be spec- ified.
  • Page 197: Udp Send Request

    Command/Response Reference Section 7-3 7-3-11 UDP SEND REQUEST Requests that data be received by a UDP socket. Command Block 27 03 1984 bytes max. Command Results storage area Destination IP address Destination Number of Send data code bytes sent UDP socket number port number Socket option Response Block...
  • Page 198: Udp Close Request

    Section 7-3 Command/Response Reference Response code Description 1003 The number of bytes sent does not match the sent data length. 1100 UDP socket number or number of bytes sent is out of range. The destination IP address is 0. Local UDP port number is 0. 1101 The variable type for the results storage area is out of range.
  • Page 199: Passive Tcp Open Request

    Command/Response Reference Section 7-3 Parameters Socket Option (Command) The socket option specified as 1 byte. The setting is not valid for this com- mand. Set to 0. UDP Socket Number The UDP socket number to be closed specified as 1 byte between 1 and 8. (Command) Results Storage Area The area in which the results of the command execution are stored.
  • Page 200 Section 7-3 Command/Response Reference Results Storage Format Response Remote IP address Remote code port number Parameters Socket Option (Command) The socket option is specified in one byte. Keep-alive specification 0: Keep-alive disabled 1: Keep-alive enabled Linger specification 0: TCP connection will be closed by sending FIN data to manage closing. 1: TCP connection will be closed immediately by sending RST data.
  • Page 201 Section 7-3 Command/Response Reference Timeout Value (Command) The maximum control time between receiving the open request and storing the result. If this set time limit is exceeded, the code for a timeout error will be set as the results storage response code. The value is set in units of 0.1 s. The timeout time is unlimited if the value is set to 0.
  • Page 202: Active Tcp Open Request

    Command/Response Reference Section 7-3 Response code Description 0049 Duplicated port numbers (EADDRINUSE). 004A (see note) An error occurred (ECONNREFUSED). 004B (see note) A communication error occurred with the remote node (ECONNRESET). 004E (see note) A parameter error occurred at the remote IP address (ENE- TUNREACH).
  • Page 203 Section 7-3 Command/Response Reference Keep-alive specification 0: Keep-alive disabled 1: Keep-alive enabled Linger specification 0: TCP connection will be closed by sending FIN data to manage closing. 1: TCP connection will be closed immediately by sending RST data. Note (1) Starting with unit version 1.5, it is possible to specify the linger option. (2) If the linger option is not specified and a TCP connection is closed, FIN data will be sent and then approximately 1 minute will be used to confirm the transmission and perform other closing management with the remote...
  • Page 204 Section 7-3 Command/Response Reference Response Codes Response code Description 0000 Normal 0105 Local IP address setting error 0302 CPU Unit error; execution not possible. 1001 Command too large 1002 Command too small 1100 TCP socket number is out of range. Remote IP address or the remote TCP port number is 0.
  • Page 205: Tcp Receive Request

    Section 7-3 Command/Response Reference 7-3-15 TCP RECEIVE REQUEST Requests that data be sent from a TCP socket. Command Block 27 12 Command Results storage area Number of Timeout code reception bytes value TCP socket number Socket option Response Block 27 12 Command Response code...
  • Page 206: Tcp Send Request

    Section 7-3 Command/Response Reference Response Codes Response code Description 0000 Normal 0105 Local IP address setting error 0302 CPU Unit error; execution not possible. 1001 Command too large 1002 Command too small 1100 TCP socket number or number of reception bytes is out of range.
  • Page 207 Section 7-3 Command/Response Reference Command Block 27 13 1,984 bytes max. Data sent Command Results storage area Number of code bytes sent TCP socket number Socket option Response Block 27 13 Command Response code code Results Storage Format Response Number of code bytes sent Parameters...
  • Page 208: Tcp Close Request

    Section 7-3 Command/Response Reference Response code Description 2211 High traffic at Unit; cannot execute service. 2240 Socket service mode is incorrect; cannot execute service. (With unit version 1.5 or later, the high-speed socket service option was enabled and a socket service was used with a CMND(490) instruction.) Results Storage Area Response Codes Response code...
  • Page 209: Ping

    Section 7-3 Command/Response Reference Parameters Socket Option (Command) The socket option specified as 1 byte. The setting is not valid for this com- mand. Set to 0. TCP Socket Number The TCP socket number to be closed specified as 1 byte between 1 and 8. (Command) Results Storage Area The area in which the results of the command execution are stored.
  • Page 210: Fins/Tcp Connection Remote Node Change Request

    Section 7-3 Command/Response Reference Response Block 27 20 Command Response code code Parameters Destination IP Address The IP address (in hexadecimal) of the destination node for the PING com- (Command) mand echo request packet. Timeout Value The wait time for the echo reply packet. The value is set in seconds. The tim- (Command) eout time is set at 20 seconds if the value is specified as 0.
  • Page 211: Fins/Tcp Connection Status Read

    Section 7-3 Command/Response Reference Response Block 27 30 Command Response code code Parameters FINS/TCP Connection No. Specifies, in two bytes, the FINS/TCP connection number (1 to 16) for which (Command) the change is to be made. Remote IP Address Specifies the remote node’s IP address (must be non-zero) in hexadecimal. (Command) Remote Port Number Specifies the remote TCP port number (must be non-zero) with this com-...
  • Page 212: Ip Address Table Write

    Section 7-3 Command/Response Reference Parameters FIFINS/TCP Connection Command: Specifies, in two bytes, the FINS/TCP connection number (1 to No. (Command, 16) for which the status is to be read. Response) Response: Specifies the FINS/TCP connection number (1 to 16) for which the status was read.
  • Page 213 Section 7-3 Command/Response Reference Command Block 27 50 6 bytes 6 bytes Command Number IP address IP address code of records table records table records Response Block 27 50 Command Response code code Parameters Number of Records The number of records to write is specified in hexadecimal between 0000 and (Command) 0020 (0 to 32 decimal) in the command.
  • Page 214: Ip Address Write

    Section 7-3 Command/Response Reference 7-3-22 IP ADDRESS WRITE Write the local IP address and the subnet mask in the CPU Bus Unit System Setup. Command Block 27 57 Command IP address Subnet mask code Response Block 27 57 Command Response code code Parameters...
  • Page 215 Section 7-3 Command/Response Reference Command Block 27 60 Command Number of code records Response Block 27 60 6 bytes 6 bytes Command Response Maximum Number Number IP address IP address code code number of stored of records table records table records of stored records records...
  • Page 216: Ip Router Table Read

    Section 7-3 Command/Response Reference Response Codes Response code Description 0000 Normal 1001 Command too large 1002 Command too small 2307 IP address conversion method is set to the automatic genera- tion method. 7-3-24 IP ROUTER TABLE READ Reads the IP router table. Command Block 27 61 Command...
  • Page 217: Protocol Status Read

    Section 7-3 Command/Response Reference Router IP Address The IP address (in hexadecimal) of a router connected to a network specified with IP addresses. Precautions If the IP router table contains fewer records than the number specified in the number of records parameter, all the records contained in the IP router table when the command is executed will be returned and the command execution will end normally.
  • Page 218 Section 7-3 Command/Response Reference 6. The number of IP packets discarded because the IP header length was larger than the overall packet length value in the packet header. 7. The number of fragmented packets received. 8. The number of received fragmented IP packets discarded because a queue for reassembly could not be secured.
  • Page 219 Section 7-3 Command/Response Reference 5. The number of received ICMP packets discarded because the type-indica- tion code was out of range. 6. The number of received ICMP packets discarded because the overall packet length value in the packet header was smaller than the minimum ICMP packet length.
  • Page 220 Section 7-3 Command/Response Reference 6. The number of times protocol control blocks or other actively allocated structures were released. 7. The number of segments for the round-trip time (time from segment trans- mission to ACK). 8. The number of times the round-trip time was changed. 9.
  • Page 221: Memory Status Read

    Section 7-3 Command/Response Reference 6. The number of packets discarded because the TCP header and IP header could not be stored in the first short buffer. 7. The number of resent packets received. 8. The number of bytes in the resend packets. 9.
  • Page 222 Section 7-3 Command/Response Reference Command Block 27 63 Command code Response Block 27 63 92 bytes Command Response Memory status code code Parameters Memory Status A total of 23 data items in six areas are returned in the following order. Each (Response) item consists of 4 bytes.
  • Page 223: Socket Status Read

    Section 7-3 Command/Response Reference a. The number of times an attempt was made to secure a short buffer without WAIT when there were no short buffers available. b. The number of times an attempt was made to secure a short buffer with WAIT when there were no short buffers available.
  • Page 224: Address Information Read

    Section 7-3 Command/Response Reference Remote IP Address (4 bytes) The remote IP address allocated to the socket. Remote Port Number (4 bytes) The remote port number allocated to the socket. TCP Transitions (4 bytes) The TCP connection status is returned as one of the numbers shown in the following table.
  • Page 225: Ip Address Read

    Section 7-3 Command/Response Reference Parameters Number of Addresses (Response) The number of pairs of FINS node addresses and IP addresses being returned. The Ethernet Unit is always 0001 (1 decimal). Address Information Pairs of FINS node addresses and IP addresses. Each pair requires 6 bytes and has the following configuration.
  • Page 226 Section 7-3 Command/Response Reference IP Address (Response) The local IP address set in the CPU Bus Unit System Setup for the Ethernet Unit is returned in order starting from the leftmost bytes in hexadecimal. If the local IP address set in the allocated words in the DM Area is enabled, 0.0.0.0 is returned.
  • Page 227 Section 7-3 Command/Response Reference...
  • Page 228: Troubleshooting

    SECTION 8 Troubleshooting This section describes information and procedures that can be used to troubleshoot problems that sometimes occur with Ethernet Unit and Ethernet communications. The Ethernet Unit makes up part of a network. Repair a defective Ethernet Unit as soon as possible as it can have a negative effect on the entire network.
  • Page 229: Troubleshooting With Indicators

    Section 8-1 Troubleshooting with Indicators Troubleshooting with Indicators The indicators on the Ethernet Unit can be used to troubleshoot some error. 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. HOST Probably cause Correction...
  • Page 230: Error Status

    Section 8-2 Error Status HOST Probably cause Correction Flash- The IP address is set incorrectly. Correct the IP address. Do not set any of the following IP addresses. • Host IDs that are all 0 or all 1. • Network IDs that are all 0 or all 1. •...
  • Page 231: Error Log

    Section 8-3 Error Log Error Status Manipulated by Unit operation DNS server error Unit ON when the following errors occur during DNS server operation: • An illegal server IP address is set. • A timeout occurs during communications with the server.
  • Page 232: Error Log Error Codes

    Section 8-3 Error Log 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.
  • Page 233 Section 8-3 Error Log Error Meaning Detailed error code Correction code PROM 1st byte 2nd byte 0103 Resend count exceeded (send Commands Check transceiver at remote node. --- failed) Bit 15: Bits 08 to 14: SNA 0105 Node address setting error (send Set the IP address correctly.
  • Page 234 Section 8-3 Error Log Error Meaning Detailed error code Correction code PROM 1st byte 2nd byte 0300 Parameter error; packet discarded Commands Check the command format and Bit 15: set the correct command data. Bits 08 to 14: SNA Bits 00 to 07: SA1 Responses Bit 15: Bits 08 to 14: DNA...
  • Page 235 Section 8-3 Error Log Error Meaning Detailed error code Correction code PROM 1st byte 2nd byte 03C2 FINS/TCP packet discarded 01 to 10: Have the FINS/TCP connection Reopened status checked when a Connection because SEND(090), RECV(098), or number remote node CMND(490) instruction is exe- closed cuted in the ladder program.
  • Page 236 Error Log Section 8-3 Error Meaning Detailed error code Correction code PROM 1st byte 2nd byte 03C4 Server connection error 00: DNS 01: Specified Take either of the following mea- host does not sures. 01: SMTP exist • Correct the settings for each 02: POP3 02: No ser- server.
  • Page 237 Error Log Section 8-3 Error Meaning Detailed error code Correction code PROM 1st byte 2nd byte 0601 CPU Bus Unit error Arbitrary Restart the CPU Unit. If the prob- Saved lem persists, replace the Ethernet Unit. 0602 CPU Bus Unit memory error 01: Read 06: Error log Restart the CPU Unit.
  • Page 238: Troubleshooting Procedures

    Section 8-4 Troubleshooting Procedures Troubleshooting Procedures The following procedures can be used to troubleshoot various problems in system operation. 8-4-1 Startup Problems Startup Problems occurred. Set the node Is the node address address set between RUN indicator lit? ERH indicator lit? ERC indicator lit? between 01 and 01 and FE Hex?
  • Page 239: Fins Communications Problems (Send(090)/Recv(098)/Cmnd(490))

    Troubleshooting Procedures Section 8-4 8-4-2 FINS Communications Problems (SEND(090)/RECV(098)/ CMND(490)) FINS Communications Problems occurred. Refer to 8-4-7 Troubleshooting with Response Codes and remove any causes of the problem discovered there before proceeding with this procedure. Make sure that the FINS network address is not set to 0 Is the control data for the Ethernet Unit and check the network address, for the instruction set...
  • Page 240: Udp Socket Problems

    Section 8-4 Troubleshooting Procedures 8-4-3 UDP Socket Problems General Problems General Problems Go through the procedure in 8-4-2 FINS Communications Problems (SEND(090)/RECV(098)/ CMND(490)) before starting this procedure. Go to 8-4-7 Troubleshooting with Is the response Response Codes. code a value other than 0000? Go to 8-5 Results Storage Area Response Codes.
  • Page 241 Section 8-4 Troubleshooting Procedures Reception Problems Reception Problems occurred. Is reception Is the remote Adjust the remote node to process send data. processing node not processing to finishing? send data? Read controller status using the FINS command READ CONTROLLER STATUS. There may be noise affecting the network.
  • Page 242 Troubleshooting Procedures Section 8-4 Transmission Problems Transmission Problems occurred. Is send Return to the procedure processing not for general problems. finishing? Read protocol status using the FINS command READ PROTOCOL STATUS. The UDP socket specified by the Have any failures destination UDP port number in the to reach the destination send parameters is not opening at...
  • Page 243: Tcp Socket Problems

    Section 8-4 Troubleshooting Procedures 8-4-4 TCP Socket Problems General Problems General Problems Go through the procedure in 8-4-2 FINS Communications Problems (SEND(090)/RECV(098)/ CMND(490)) before starting this procedure. Go to 8-4-7 Troubleshooting with Is the response code a Response Codes. value other than 0000? Go to 8-5 Results Storage Area Response Codes.
  • Page 244 Section 8-4 Troubleshooting Procedures Opening Problems Opening Problems occurred. Are you attempting an active open? Use an active open at the Is the passive open remote node. not finishing? Is the response Read socket status using code in the results storage the FINS command READ area a value other SOCKET STATUS.
  • Page 245 Section 8-4 Troubleshooting Procedures Reception Problems Reception problems occurred. Is the remote Is reception processing node not processing Adjust the remote node to process send data. not finishing? to send data? Read memory status using the FINS command READ MEMORY STATUS. There may be too much load on the Ethernet Unit.
  • Page 246: Ftp Service Problems

    Troubleshooting Procedures Section 8-4 8-4-5 FTP Service Problems Connection Problems Connection problem occurred. Are you unable The FTP server is connected to another client. to connect to the Is the FTP indicator lit? Wait until the client has finished. Ethernet Unit's FTP server? Are the parameter Correct the computer settings.
  • Page 247 Troubleshooting Procedures Section 8-4 File Transfer Problems File transfer problem occurred. Return to the previous procedure. Are you not connected to the FTP server? Is the current Make MEMCARD or EM the current directory (execute directory MEMCARD or EM? cd /MEMCARD or cd /EM ). Is the file you are Can you Designate a file actually in the file system.
  • Page 248: Network Connection Problems

    Section 8-4 Troubleshooting Procedures 8-4-6 Network Connection Problems Network connection problem occurred. Go through the procedure in Startup Problems before starting this procedure. • Firmly secure the cable. Is the twisted-pair Is the LNK indicator cable secured? lit? • Use straight cable. Is the twisted-pair cable between the Ethernet Unit and the hub straight...
  • Page 249 Troubleshooting Procedures Section 8-4 Mail Not being Sent S T A R T The mail transmission function cannot be used because no IP address or host name is set for the SMTP server. Is the HOST indicator Using the CX-Programmer, make the SMTP settings in the lit? System Setup.
  • Page 250 Section 8-4 Troubleshooting Procedures Mail Not being Received S T A R T The mail reception function (and response mail transmission) cannot be used because no IP address or host name is set for Is the HOST indicator the POP3/SMTP server. lit? Using the CX-Programmer, make the SMTP and POP settings in the System Setup.
  • Page 251 Section 8-4 Troubleshooting Procedures Clock Not being Automatically Adjusted S T A R T The automatic clock adjustment function cannot be used because no IP address or host name is set for the SNTP Is the HOST indicator server. lit? Using the CX-Programmer, make the SNTP settings in the System Setup.
  • Page 252: Troubleshooting With Response Codes

    Troubleshooting Procedures Section 8-4 8-4-7 Troubleshooting with Response Codes You can troubleshoot the errors in FINS communications from the response codes when the SEND(090), RECV(098), or CMND(490) instructions have been used. For the storage areas of the response codes refer to information on page 143 under 6-6-4 Writing Programs.
  • Page 253 Section 8-4 Troubleshooting Procedures Main code Sub-code Check point Probable cause Remedy 03: Communi- 01: Communica- ERC indicator on Error occurred in the communi- Take corrective action, referring cations con- tions controller the Controller cations controller, ERC indica- to troubleshooting procedures in troller error error tor is lit.
  • Page 254 Section 8-4 Troubleshooting Procedures Main code Sub-code Check point Probable cause Remedy 11: Parame- 00: Parameter Parameters in The parameters in the com- Check the parameters. ter error error command data mand data are incorrect. The UDP/TCP socket number Be sure the socket number is was not within the proper between 1 and 8.
  • Page 255 Section 8-4 Troubleshooting Procedures Main code Sub-code Check point Probable cause Remedy 22: Status 0F: Service in Socket status The same socket service is Use the socket status flag in PC error (operat- progress, cannot area already in progress at the memory to be sure that socket ing mode dis- perform operation...
  • Page 256: Results Storage Area Response Codes

    Section 8-5 Results Storage Area Response Codes Network Relay Errors For network relay errors using SEND(090) or RECV(098), check the path of the command using the routing tables and the nature of the error using the response code to eliminate the cause of the error. For network relay errors using CMND(490), the location of the relay error is recorded in the second through third words of the response, as shown below.
  • Page 257 Section 8-5 Results Storage Area Response Codes Response UNIX error Description Probable remedy code message 003F EISCONN Socket is already connected (con- Close the local socket and try reopening it. nection attempted to open socket) 0040 ENOTCONN Socket is not connected (send attempted to closed socket) 0041 EALREADY...
  • Page 258 Section 8-5 Results Storage Area Response Codes Response UNIX error Description Probable remedy code message 0081 (None) Closed by close command during No action is necessarily called for. socket servicing 0082 (None) Connection with remote node not The remote IP address and TCP port number achieved for passive TCP open settings differ from those of the remote socket request...
  • Page 259 Section 8-5 Results Storage Area Response Codes...
  • Page 260: Ethernet Network Parameters

    Appendix A Ethernet Network Parameters Parameter Value Description TCP send buffer 4,096 bytes Maximum capacity of the TCP send buffer TCP receive buffer 4,096 bytes Maximum capacity of the TCP receive buffer UDP send buffer 9,000 bytes Maximum capacity of the UDP send buffer UDP receive buffer 9,016 bytes Maximum capacity of the UDP receive buffer...
  • Page 261 Ethernet Network Parameters Appendix A...
  • Page 262: Buffer Configuration

    Appendix B Buffer Configuration UDP socket (See note 1.) reception request buffers (8 x 9,016 max.) TCP socket (See note 1.) reception request buffers (8 x 4,096 max.) IP packet input queue (50 max. x 1,500 bytes) FTP service reception buffer (4,096 bytes) FINS reception buffer (16,383...
  • Page 263 Buffer Configuration Appendix B Network Memory Most of the buffers used for communications servicing by the Ethernet Unit are administered in a buffer config- uration called network memory. Network memory consists of 248K bytes of memory divided into short and long buffers.
  • Page 264: Tcp Status Transitions

    Appendix C TCP Status Transitions The TCP socket status can be confirmed using the socket status data returned for the FINS command SOCKET STATUS READ (2764). CLOSED ACTIVE OPEN snd SYN CLOSE Passive OPEN LISTEN CLOSE rcv SYN SEND snd SYN, ACK snd SYN rcv SYN RECEIVED...
  • Page 265 TCP Status Transitions Appendix C...
  • Page 266: Ascii Characters

    Appendix D ASCII Characters Bits 1 to 4 Bits 5 to 7 Binary 0000 0001 0010 0011 0100 0101 0110 0111 0000 Space 0001 0010 ” 0011 0100 0101 & 0110 0111 ’ 1000 1001 1010 1011 1100 < 1101 1110 >...
  • Page 267 ASCII Characters Appendix D...
  • Page 268: Maintenance

    Appendix E Maintenance The Ethernet Unit makes up part of a network. Repair a defective Ethernet Unit as soon as possible as it can have a negative effect on the entire network. We recommend that customers keep one or more spare Ethernet Units to allow immediate recovery of the network.
  • Page 269 Maintenance Appendix E...
  • Page 270: Inspections

    Appendix F Inspections Carry out regular inspections to ensure the Ethernet Unit is functioning perfectly. Items Most of the parts that make up an Ethernet Unit are semiconductor components. None of the parts in the Unit will wear out after a specific lifetime, but some parts may deteriorate due to extreme operating condition. Therefore, it is important to inspect the Unit regularly.
  • Page 271 Inspections Appendix F...
  • Page 272: Ethernet Unit Web Function

    Appendix G Ethernet Unit Web Function Web Function Ethernet Units with Unit Ver. 1.3 or later can use a Web browser from a personal computer or other device to easily make the Ethernet Unit’s system settings and monitor statuses. Web Function List The information displayed on the window from the Web browser for the Ethernet Unit is as follows: Unit Setup Functions Menu item...
  • Page 273 Ethernet Unit Web Function Appendix G Menu item Parameter item Corresponding CX-Programmer function Unit Setup window- POP Tab IP Address (or Host name) Unit Setup window- POP Tab - IP Address or Host name Port No. Unit Setup window- POP Tab - Port No. Mail account Unit Setup window- POP Tab - Account Name Mail password...
  • Page 274 Ethernet Unit Web Function Appendix G Menu item Parameter item Corresponding CX-Programmer function Receive Mail Unit Setup window- Receive Mail Tab Mail Address Protection Setting Unit Setup window- Receive Mail Tab - Protect using mail address Attached File Enable Settings Unit Setup window- Receive Mail Tab - Receive file with specified extension only Command Enable Setting Unit Setup window- Receive Mail Tab - Receive specified commands only...
  • Page 275 Ethernet Unit Web Function Appendix G 1. Connect to the Ethernet Unit from the Web browser. In this example, the URL is specified as http://192.168.250.1/0 using the Ethernet Unit’s default IP address. 2. Select Settings from the menu on the left side of the window to display the Settings Menu. 3.
  • Page 276 Ethernet Unit Web Function Appendix G 4. Input the default password (“ETHERNET” all in upper case) and click the Login Button. When login is successful, the following setting window will be displayed. 5. Select HTTP from the menu to display the HTTP setting items. The following window shows the default settings.
  • Page 277 Ethernet Unit Web Function Appendix G 6. Make the required settings (i.e., the password in this example). To prevent incorrect password entry, set the same password in the WEB Password field and WEB Password (Confirm) field. 7. After entering the correct password, click the Set Button followed by the Regist Button. The Set Button is used to transfer the entered values from the personal computer, and temporarily register them in the Ethernet Unit.
  • Page 278: Index

    Index Numerics connections installation 100M indicator precautions twisted-pair CJ-series CS-series cascade connections Account Name field CJ-series applications precautions xxiii CS-series ARP communications ChangeMode command ASCII characters CIO Area Attached file name field allocations Auto Adjust Time Tab CJ1W-ETN11 Auto allocated FINS node field comparison automatic compatibility...
  • Page 279 Index precautions CONTROLLER DATA READ data areas Controller Link FINS communications CONTROLLER STATUS READ Data Received Flag Conversion field dedicated control bits Counter Area DHCP client CPU Bus Unit Error Flag dimensions CPU Bus Unit Error, Unit Number Flags CJ-series CPU Bus Unit Initializing Flags CS-series CPU Bus Unit Number Duplication Flags...
  • Page 280 Index error codes memory areas error log node addresses clearing overview reading port numbers error status response codes flags response monitor time FINS communications responses response codes retries short packets socket numbers status specifications unit numbers TCP/IP UNIX error messages testing troubleshooting Ethernet communications...
  • Page 281 Index Sending Flag IP Address Table field TCP/UDP Open Flag IP ADDRESS TABLE READ FTP communications IP addresses FTP indicator allocating configuration FTP server dynamic troubleshooting setting FTP Status Flag IP communications IP addresses reading from Units reading tables Holding Area IP router tables HOST indicator reading...
  • Page 282 Index MailLogRead command application examples echo test main response code See also MRES POP server maintenance POP Tab media access method POP3 communications CJ-series POP3 server CS-series Port No. field memory areas port numbers See also data areas UDP port Memory Card reading from Unit MEMORY STATUS READ...
  • Page 283 Index precautions xxiv signals Racks precautions xxiv mounting Ethernet Units SMTP communications radioactivity xxiii SMTP server RD indicator SMTP Tab Receive file with specified extension only field SNTP communications Receive Mail Tab SNTP server Receive Request Switch socket option Receiving Flag Socket Service Request Switches RECV(098) instruction socket services...
  • Page 284 Index SRES timers stack connections transmission delays startup distance procedure CJ-series static electricity xxiii CS-series precautions media status CJ-series reading memory status CS-series reading protocol status path reading socket status CJ-series STD extension CS-series Sub-net Mask field troubleshooting subnet masks FINS communications reading from Unit FTP server...
  • Page 285 Index Use POP before SMTP field Visual BASIC Visual C++ weight CJ-series CS-series wiring cables precautions word addresses Word value change field Work Area...
  • Page 286: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W420-E1-06 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
  • Page 287 Revision History Revision code Date Revised content January 2006 The following changes were made throughout the manual: added CJ1G-CPU@@P, changed "CX-Net" to "CX-Integrator", and changed "CX-Programmer" to "CX-One". Page xv: Removed manuals and added others and changed details for manuals W446 and W336.
  • Page 289 Buyer indemnifies Omron against all related costs or expenses. rights of another party. 10. Force Majeure. Omron shall not be liable for any delay or failure in delivery 16. Property; Confidentiality. Any intellectual property in the Products is the exclu-...
  • Page 290 OMRON ELETRÔNICA DO BRASIL LTDA • HEAD OFFICE São Paulo, SP, Brasil • 55.11.2101.6300 • www.omron.com.br OMRON EUROpE B.V. • Wegalaan 67-69, NL-2132 JD, Hoofddorp, The Netherlands. • Tel: +31 (0) 23 568 13 00 Fax: +31 (0) 23 568 13 88 • www.industrial.omron.eu Cat.

Table of Contents