Home
CS1D-ETN21D Operation Manual
Contents
1. Application level FINS Nodemunben Ll we Transport level UDP upp TCP top port Application level FINS gt s ze iT K pP N Node number Internet level IP P n IP address Transport level Physical level Ethernet UDP port TCP p r Ethernet address UDP __number TCP number N 7 x Internet level R o gt ys nternet leve a 4 IP address y The remote node s IP address UDP TCP X method UDP port number and TCP port Physical level Ethernet s Pi number are calculated from the node Ethernet address a number in the FINS message and an r ot Ethernet frame is generated FINS header FINS data Ethernet V2 75 IP Addresses in FINS Communications Section 5 2 5 2 2 Pairing Addresses in Internal Tables FINS UDP Communications Methods Automatic Generation When the Ethernet Unit is turned ON or restarted the following values are set Dynamic for addresses in the internal table e Remote IP address Local IP address network number remote FINS node address e Remote UDP port number UDP port number set for local Unit e Connection method FINS UDP With the dynamic method data in an internal table that has been generated can be dynamically converted according to FINS messages received from remote nodes This is enabled when the remote node is a device such as a personal comput
2. CIO Area Allocations Section 4 1 Service Status Ethernet Unit to CPU Unit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 id A RO aE L Duplex Status Link Status Status Manipulated Unit operation Reference Not used Duplex Status Pri ON when operating as Primary Unit mary Secondary in Duplex Mode OFF when operating as Secondary Unit in Duplex Mode Duplex Status Net ON when participating in network in work Participation Duplex Mode OFF when not participating in net work but set in Duplex Mode Duplex Status ON when operating in Duplex Mode Mode OFF when operating Simplex Mode Link Status ON while a link is established with the hub OFF when the link with the hub is terminated Not used Duplex Status Primary Secondary Bit 11 This bit is ON if the Ethernet Unit is set in Duplex Mode and operating as the Primary Unit It is OF if the Unit is set in Duplex Mode and operating as the Secondary Unit The DPL indicator on the Ethernet Unit shows this status as follows e Lit Operating as Primary Unit in Duplex Mode Bit 11 ON e Flashing Operating as Second Unit in Duplex Mode Bit 11 OFF Duplex Status Network Participation Bit 12 This bit is ON if the Ethernet Unit is set in Duplex Mode and is participating in the network It is OFF is the Unit is not participating in the network Duplex Status Mod
3. CS1D CPU Unit FinsGateway can be used as middleware when constructing communications applications on a personal computer for a FINS network using Visual C or Visual BASIC The CX Programmer and CX Net can also be connected online through FinsGateway When FINS UDP is used in the FINS communi cations service all versions of FinsGateway can be used When FINS TOP is used in the FINS communications service only FinsGate way Version 2003 or higher can be used When installing two Ethernet cards in the computer to use the duplex network functions an Ethernet Unit ETN_UNIT that supports the duplex network functions must be included in the FinsGateway Version 2003 FinsGateway Version 2003 or later must be used in order to connect the CX Programmer or CX Net online through FINS TCP System Configuration Section 1 3 10 Personal computer running Windows User created software CX Programmer FinsGateway H Windows Ethernet Unit that supports redundant networking peeecogpe CS1D Ethernet Unit nnna CS1D CPU Unit Specifications Section 1 4 1 4 Specifications 1 4 1 General Specifications CS series CS1D Ethernet Unit Item Specifications Model number CS1D ETN21D Type 100Base TX Can be used as 10Base T Applicable PLCs CS series CS1D PLCs
4. doondo CS1D CPU Unit 4 Ethernet Cards for Computers 1 3 2 Devices Required for Constructing a Network The basic configuration for a 100Base TX Ethernet System consists of one hub to which nodes are attached in star form using twisted pair cable The devices shown in the following table are required to configure a network with 100Base TX type CS1D ETN21D Ethernet Units so prepare them in advance Network device Contents 1 CS series CS1D These Ethernet Units are Communications Units that Ethernet Units connect a CS series CS1D PLC to 100Base TX Ethernet CS1D ETN21D networks They can also be used as 10Base T 2 Twisted pair cable This is twisted pair cable for connecting 100Base TX type Ethernet Units to the hub with an RJ45 Modular Connec tor at each end Use a category 3 4 5 or 5e UTP unshielded twisted pair or STP shielded twisted pair cable 3 Hub This is a relay device for connecting multiple nodes in a star LAN 4 Ethernet cards for Install an Ethernet card in the computer when necessary computers e g when creating a duplex Ethernet network Recommended Hubs For details on recommended devices for constructing a network refer to 2 5 Network Installation 1 3 3 Setup Area and Related Peripheral Devices Making I O Table Settings Make the necessary I O table settings for the CS1D ETN21D Ethernet Unit as with the CX Programmer a CPU Bus Unit Make the settings wi
5. 000 137 7 2 4 NETWORK STATUS READ 000 000 0005 139 7 2 5 INTERNODE ECHO TEST 00 00 0000 140 7 2 6 BROADCAST TEST RESULTS READ 141 7 2 7 BROADCAST DATA SEND 00 00 00 0000202 141 7 2 8 ERRORLOGREAD 0 0 0 eee eee 141 7 2 9 ERROR LOG CLEAR oo eke take eae aoe ks 143 T210 PING Hig kgs i 2A SRR RR BEL Ohi See ew ARES 143 7 2 11 FINS TCP CONNECTION REMOTE NODE CHANGE REQUEST 14 7 2 12 FINS TCP CONNECTION STATUS READ 145 7 2 13 IP ADDRESS TABLE WRITE 004 146 7 2 14 IP ADDRESS WRITE 0 eee eee ee eee 147 7 2 15 IP ADDRESS TABLE READ 0 0 0 148 7 2 16 IP ROUTER TABLE READ 0000 149 7 2 17 PROTOCOL STATUS READ 00 0000 0000 151 7 2 18 MEMORY STATUS READ 0 0 0 00 000 020 155 7 2 19 SOCKET STATUS READ 0 0 00 00 cee eee ee 157 7 2 20 ADDRESS INFORMATION READ 04 158 7 2 21 IP ADDRESS READ 0 0 00 0c eee eee 159 133 Command Codes and Response Codes Section 7 1 7 1 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 MRC SRC RESET CONTROLLER DATA READ CONTROLLER STATUS READ NETWORK STATUS READ INTERNODE ECHO TEST BROADCAST TEST RESULTS READ BROADCAST
6. TCP Status Response Three types 46 items of TCP status information occupying 4 bytes each are returned in the following sequence Each value is returned as an 8 digit hexa decimal value 1 Connection Information 60 Bytes Fifteen items are returned in the following sequence 1 2 3 1 The number of times active connections were correctly established 2 The number of times a SYN packet was received while waiting to establish a passive connection 3 The number of times active or passive connections were correctly estab lished 4 The number of times an established connection was cut off 5 The number of times the connection wait status was cut off 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 The number of times a delayed acknowledgement ACK was sent If the order of the received segments is reversed ACK is sent with a packet of data separate from ACK response to input data etc or is immediately sent with the ACK for other data 10 The number of times the connection was cut off because no ACK was re turned after several resend attempts 11 The number of times no ACK was returned within the resend timer set time The resend timer sets the maximum time limit between the data being out put and ACK be
7. Are the FINS network addresses of the local and remote nodes different Set both nodes to the same FINS network address Do not attempt to broadcast to a node with a different Y p network number You can broadcast only to nodes on the same IP network Are you attempting a broadcast transmission Are the routing tables set improperly Y Set routing tables at the local node target node and any relay nodes Are you attempting to communicate with a PLC on another network Go to Network Connection Problems E N D 172 Troubleshooting Procedures Section 8 4 8 4 3 Network Connection Problems Go through the procedure in Startup Problems before starting this procedure e Firmly secure the cable Is the twisted pair cable secured Is the LNK indicator lit e Use straight cable Is the twisted pair Cable between the Ethernet Uni and the hub straight cable Y Execute the ping e Replace first the twisted pair cable then the hub command for all nodes and then the Ethernet Unit in order connected to the network A Only SD indicator e Power may not be being supplied to the hub Did all nodes is flashing fail to respond to ping command e The twisted pair cable for that node may be Y disconnected e The remote node may not support ICMP Did a particular node fail to respond to ping command e Connect by FTP
8. CJ1G H CPU CJ1G CPU Programmable Con trollers Program ming Manual Describes programming tasks file memory and other functions for the CS series and CJ series PLCs Use together with the Programmable Controllers Opera tion Manual W339 for CS series PLCs and W393 for CJ series PLCs CS1G H CPU CS1G H CPU CJ1G H CPU CJ1G CPU Programmable Con trollers Instructions Reference Manual Describes the ladder diagram programming instructions supported by CS series and CJ series PCs Use together with the Programmable Controllers Operation Manual W339 for CS series PLCs and W393 for CJ series PLCs and Programmable Controllers Programming Manual W394 Manual number Model WS02 CX Name CX Programmer Operation Ver 3 Manual Contents Provides information on how to use the CX Programmer a Windows based programming device and CX Net a 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 gramming CQM1H PROO1 CQM1 PROO1 C200H PRO27 CS1W KS001 Programming Con soles Operation Manual Provides infor
9. Click the Add Button and then set the IP address table in the following Ether net Node Definition Dialog Box 109 Using FINS Applications Section 6 5 x Node Address fi User defined E Type Name M y IP Address fio 3 ev fo Secondary fio ca e7 o TCP Settings TCP Port Numbe 9600 keep alive B e Node address Set the remote FINS node address e IP address Set the remote IP address e Destination port number Set the FINS TCP port number for the remote node Normally the PLC s default setting of 9600 should be specified e Keep alive setting Sets the keep alive function Normally this should be selected Duplex Setup Tab when Using Duplex Networks ETN_UNIT Properties x About Network Settings Communication Unit Settings UDP Nodes TCPNodes Duplex Settings Network status Network Number fo Local Node Address 100 Communication Unit No fi 8 Secondary Network Card IPAddress 10 3 67 175 DHCP TRUE 3Com 3C90x Ethernet Adapter x UDP Port Numt Jse00 Options Cancel Apply Use duplex Set Duplex Unit operation when using a duplex Ether net network Network Number Set the secondary network address Local node address Set the node addresses on the duplex Ethernet net work 1 to 124 Use the address setting for the Primary Unit Communications Unit No Set the Secondary Unit address in decimal 16 to 31 Use one higher than the addr
10. Network Participation Earlier Ethernet Unit System 1 2 3 4 Primary Colt 2 Weel Secondary O1O0 O0 _ 16 Nomenclature and Functions Section 1 6 1 6 Nomenclature and Functions This section describes Ethernet Unit component names settings and LED indicators 1 6 1 Component Names CS series Ethernet Units CS1D ETN21D 100Base TX Front l I ETN21D cs Indicators ESA Lh Display the operating status of the Unit SD m TCP RD mu LNK a DPL UNIT NO Unit Number Switch Used to set the Ethernet Unit s unit number in one digit hexadecimal Node Address Switches Used to set the Ethernet Unit s FINS node number in two digits hexadecimal 100BASE TX 10BASE T Ethernet Connector Used to connect the Ethernet twisted pair cable Each communications device connected to the Ethernet network is allocated a unique Ethernet address For the Ethernet Unit this Ethernet address is shown on the right side of the Unit as a 12 digit hexadecimal number omron CS1D ETN21D ETHERNET UNIT Lot No OMRON Corporation MADE IN JAPAN Ethernet Address Ethernet address 12 digits 17 Nomenclature and Functions Section 1 6 Note 1 The Ethernet address can also be checked using the FINS command CONTROLLER DATA READ For details refer to 7 2 2 CONTROLLER DATA READ on page 136 2 An IP address label
11. Reception processing time response 256 x 0 003 0 704 1 472 1 5 ms CPU Bus Unit service cycle local node 2 10 ms CPU Bus Unit service processing time local node 2 0 4 ms Total 10 0 44 054 0 1 0 74 154 06 1 1 0 3 1 5 10 0 4 40 6 ms 6 7 Network Status Performance Network status is periodically broadcast on the network to monitor the partici pation of the nodes on the network Total Network Status Send Time Network Participation Status Node 3 BB Line 11 2 3 l J Primary OIX rO 7 Secondary Ololol Network data v Primary network Network data Network Participation Status Line 1 2 3 7 Primary J x Oj Secondary O O O Network data Secondary network Network data Network data Network Participation Status Line 1 2 3 Primary x x x Secondary oOlolol Network status is sent to nodes in ascending order of node numbers The time required for the network status to be sent once each to all nodes in the network is the sum of the time for each node participating in the network This value can be calculated as follows 129 Precautions on High Traffic in FINS Communications Section 6 8 Node Separation Detection Time Note Total network status send time N
12. 0 0 0 0 00005 113 6 6 2 PLC Communications Data Areas 000000 114 6 6 3 Using SEND 090 RECV 098 and CMND 490 115 6 6 4 Writing Programs 0 0 0 eee ee ee eee 119 6 6 5 Program Example in2 o5 co ssiae baa ode a alee ae aL R 123 6 6 6 Transmission Delays Ignoring Network Delays 125 6 7 Network Status Performance 0 0 0 eee eee 129 6 8 Precautions on High Traffic in FINS Communications 130 89 Overview of FINS Communications Section 6 1 6 1 Overview of FINS Communications 6 1 1 Communications On an Ethernet Network Data is sent and received as UDP IP packets or TCP IP packets on an Ether net network PLC or host computer Packet FINS command Ethernet Packet FINS response PLC In the FINS communications service both an IP address for IP the Internet layer and a FINS node address for FINS the application layer are used for the remote device Also 9600 is used as the default setting for the local UDP or TCP port number i e the transport layer for identifying the application layer i e the FINS communications service Another number can be set for the FINS UDP port from the Setup Tab in the Unit Setup For details on pairing FINS node addresses with IP addresses and UDP TCP port numbers refer to 5 2 P Addresses in FINS Communications FINS Application Layer NodalNlmber UDP TCP Tr
13. 6 4 1 Routing Table Overview The routing tables describe the transmission path for FINS messages when the FINS communications are used It consists of two tables A local network table and a relay network table Local Network Table The local network table is a table describing the correspondences among unit numbers of the Communications Units and Boards mounted to each node Set different network addresses for the primary and secondary networks When setting the Secondary Unit in the local network table set a unit number that is one number higher than the number set the rotary switches on the Unit plus one For the Primary Unit set the unit number that is set the rotary switches Example Unit 04 Unit 05 Unit 06 Unit 07 Local Network Table Local network Unit number CLLCLELCE JI address 1 04 Td lolol x 3 06 VAAN Network 1 4 97 Network 2 Network 3 Network 4 Note 1 The unit number is set 0 to F 1 to 15 by the rotary switch on the front of the Ethernet Unit 2 The network address is the number of the network 1 to 127 to which the Communications Unit or Board is connected It is set when the local net work table is created 98 Creating Routing Tables Relay Network Table PLC 1 local node iia 1 Section 6 4 A relay table is a table that shows the nodes to which data should be sent first in order to send data to a network that is not connected to t
14. A43400 to A43415 Duplex Communi cations Detection Error Flag When there is a problem in the Communications Units set for duplex operation the corresponding flag in A434 is turned ON The possible causes are a missing Communications Unit a Communications Unit that does not support duplex operation or an incorrectly set unit number Bits 00 to 15 correspond to unit numbers 0 to F Bit 00 to 15 0 to F unit number OFF No error ON Error A43500 to A43515 Duplex Communi cations Verification Error Flag When the settings are not the same for Communica tions Units set for duplex operation the correspond ing flag in A435 is turned ON Refer to the operation manual for the relevant Communications Unit for details on settings Bits 00 to 15 correspond to unit numbers 0 to F Bit 00 to 15 0 to F unit number OFF No error ON Error A43600 to A43615 Duplex Communi cations Switchover Flag non fatal com munications error When there is an error in the Primary Communica tions Unit the corresponding flag in A436 is turned ON The Secondary Communications Unit will con tinue communications Bits 00 to 15 correspond to unit numbers 0 to F Bit 00 to 15 O to F unit number OFF No error ON Error 68 A43700 to A43715 Duplex Communi cations Unit Standby Error Flag non fatal communi cations error When there is an error in the Secondary Communi cations Unit the co
15. Go to Network Connection Problems 171 Troubleshooting Procedures Section 8 4 8 4 2 FINS Communications Problems SEND 090 RECV 098 CMND 490 FINS Communications Problems occurred Refer to 8 5 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 s the control data for the instruction set incorrectly for the Ethernet Unit and check the network address node number and unit address Ts a CMND 194 instruction being addressed to the local node e g for socket services Are different UDP port numbers set for FINS communications for both the local node and the Set the same port number for both nodes IP routing must be used if the net ID of the IP address of the local node and remote node is difference Set the IP address of Y the remote node in the local IP address table Is the IP address of the remote node missing from the IP address table Are the local and remote nodes both on the same network Note The automatic generation setting cannot be used alone Set the network number of the remote node in the IP router table Is the IP address of the remote node missing from the IP router table Set the IP address of the remote node in the IP address table or use automatic address conversion
16. xvi PRECAUTIONS This section provides general precautions for using the CS1D ETN21D CS1D 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 1 Intended Audiences sativa od ve tsa a ake Jaa et Ae eae deere a xviii 2 General Precautions seio derece niee ated aa ari a oei oiie aoa xviii 3 Safety Precautions rss seth Fis wi aie gate a R E E sce lente ee xviii 4 Operating Environment Precautions 0 00002 eee eee XIX 5 Application Precautions 0 0 0 ee eee eee XIX 6 Conformance to EC Directives 2 0 0 0 runerne ee ee Xxi 6 1 Applicable Directives 0 00 0 eee eee eee xxi 6 2 CONCEPtS eci ests n E EES E E A A aa xxi xvii Intended Audience 1 2 3 xviii Intended Audience This manual is intended for the following personnel who must also have knowledge of electrical systems an electrical engineer or the equivalent e Personnel in charge of installing FA systems e Personnel in charge of designing FA systems e Personnel in charge of managing FA systems and facilities General Precautions N WARNING The user must operate the product according to the performance specifica tions described in the operation manuals Before using the product under conditions wh
17. 22 oC PROGRAM AREA FILE TRANSFER Transfers or compares data between the UM User Memory area and the file memory 22 15 CREATE DELETE DIRECTORY Creates or deletes a directory Debugging 23 01 FORCED SET RESET Force sets or force resets bits or releases force set status 23 02 FORCED SET RESET CANCEL Cancels all bits that have been force set or force reset 6 6 4 Writing Programs Programs incorporating the SEND 090 RECV 098 and CMND 490 instructions are generally created using the Communications Port Enabled Flag and the Communications Port Error Flag as input conditions CS CJ series CPU Units have eight communications ports Only one instruction can be executed at any given port at one time however so the program must not overlap the use of any of the ports A program example is provided below Communications port Ethernet Unit CPU Unit tna H H Instruction 2 HI nstruction sH pah HH Instruction 5 pirar HIH Instruction 7 O HH Instruction 8 There are eight communications ports so up to eight communications instructions can be executed at a time The number of messages that can be sent or received with a single CPU Bus Unit service though is not more than two each for the CPU Unit to the Ethernet Unit and for the Ethernet Unit to the CPU Unit 119 Communicating between OMRON PLCs Section 6 6 E
18. 5 1 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 called octets These four octets provide the network number net ID and host number host ID The network number identifies the network and the host number identifies the node or host on the network The network numbers in an IP address are divided into three classes A B and C so that the address system can be selected according to the scale of the network Classes D and E are not used The configuration of the IP address for each of these classes is shown in the following diagram Bit 31 23 0 Class A 0 Network number 7 bits Host number 24 bits Bit 31 15 0 Class B 1 0 Network number 14 bits Host number 16 bits Bit 31 7 0 ClassC 1 110 Network number 21 bits Host number 8 bits Bit 31 0 ClassD 1 1 1 0 Multicast address Cannot be used Bit 31 0 ClassE 1 1 1 1 Identification address Cannot be used The number of networks in each class and the number of nodes possible on the network differ according to the class Number of networks Number of hosts 2 4_9 max 16 777 214 max 216_2 max
19. Bits 0 to 7 Nodes 193 to 208 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 169 Error Log Section 8 3 Error Meaning Detailed error code Correction EE code 1st byte 2nd byte PROM Nodes 209 to 224 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 225 to 240 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 241 to 254 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Note 1 The time information in the CPU Unit is used in the CPU Bus Units 2 If the time information cannot be read from the CPU Unit the time stamp in the error log will be all zeros This can occur due to CPU Unit startup error unit number errors CPU error and model number errors If the time is read out from a Programming Device the time will be shown as all ze ros in the year 2000 3 The battery must be installed in the CS CJ series CPU Unit the power turned ON and then the time set before the clock in the CPU Unit can be used The time will not be set correctly in the error log unless the clock time is set correctly 4 An error record is not created in EEPROM when a CPU Bus Unit memory error occurs 170 Troubleshooting Procedures Section 8 4 8 4 Troubleshooting Procedures The following procedures can be used to troubleshoot various problems in syste
20. FINS node number A FINS node number B 96 Connection established Connection established Local node No sent ENS node number A Sent Remote node No received Remote node No received Passive open Connection request CS Connection established I FINS node numbers exchanged Normal data communications FINS node number B sent Local node No sent After a connection has been established as a FINS TCP server it is termi nated in the following ways e When the connection is closed by the client e When a FINS command to close the connection FINS TCP CONNEC TION REMOTE NODE CHANGE REQUEST is sent by the client e When there is no response from the client when the keep alive function is in effect After a connection has been established as a FINS TCP client it can be termi nated in the following ways e If the connection is closed by the server e If there is no response from the client when the keep alive function is in effect FINS TCP Method Note Procedure for Using FINS TCP Note Section 6 3 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 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 To dynamically change the remote IP address i
21. MULTIPLE MEMORY AREA READ Reads the contents of specified non consecutive I O memory area words MEMORY AREA TRANSFER Copies the contents of consecutive I O memory area words to another I O memory area Parameter area access PARAMETER AREA READ Reads the contents of consecutive parameter area words PARAMETER AREA WRITE Writes the contents of consecutive parameter area words PARAMETER AREA FILL CLEAR Writes the same data to the specified range of parameter area words Program area access PROGRAM AREA READ Reads the UM User Memory area PROGRAM AREA WRITE Writes to the UM User Memory area PROGRAM AREA CLEAR Clears the UM User Memory area Operating mode changes RUN Changes the CPU Unit s operating mode to RUN or MONITOR STOP Changes the CPU Unit s operating mode to PROGRAM Machine configura tion reading CPU UNIT DATA READ Reads CPU Unit data CONNECTION DATA READ Reads the model numbers of the device corresponding to addresses Status reading CPU UNIT STATUS READ Reads the status of the CPU Unit CYCLE TIME READ Reads the maximum minimum and average cycle time Time data access CLOCK READ Reads the present year month date minute second and day of the week CLOCK WRITE Changes the present year month date minute second or day of the week Message display MESSAGE READ C
22. Secondary Unit node address 1 Secondary Unit IP address 192 168 251 1 Secondary Unit Unit number 11 Primary Unit node address 2 Primary Unit IP address 192 168 250 2 Primary Unit Unit number 0 Secondary Unit node address 2 Secondary Unit IP address 192 168 251 2 Secondary Unit Unit number 0 hernet port Primary Network number 1 Target PLC1 Secondary Network number 2 FINS TCP method CX Programmer s Change PLC Dialog Box PLC name PLC1 Network classification FinsGateway Network Tab FINS destination Network number 1 Node address 2 Frame length 2 000 bytes Response monitor time 2 seconds CX Programmer s Unit Setup Setup Tab 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 Baud rate Automatic detection IP router tables None FinsGateway ETN_UNIT Setup Network Settings Tab Network number 1 Local node address 1 Communication unit number 10 111 Using FINS Applications Section 6 5 Communication Unit Settings Tab FINS IP address con Automatic generation Static version Does not support DHCP client UDP port number 9600 Duplex Settings Tab Use duplex Select this option Network Number 2 Local node address 1 Communications Unit No 11 UDP port number Default 9600 Network status interval ti
23. Is the remote node functioning as an FTP client e If the following parameters are counted the corresponding communications services may not be possible with the remote node IP status 2 3 5 6 All communications services ICMP status 5 6 7 8 ping TCP status 3 reception status 4 5 6 FTP TCP sockets UDP status 1 2 3 FINS communications UDP socket Execute FINS PROTOCOL STATUS READ e If the following parameters are counted the load at the Ethernet Unit may be too high Adjust the user applications IP status 4 8 9 E N D 173 Troubleshooting with Response Codes Section 8 5 8 5 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 119 under 6 6 4 Writing Programs The table below lists response codes main and sub codes returned after execution of FINS commands the probable cause of errors and recom mended remedies The response codes provided here are for the Ethernet Unit Refer to the FINS Command Reference Manual W227 or the operation manuals for the relevant Unit for further information on response codes The 6th 7th and 15th bits of the response codes have specific functions The 6th bit will be ON when a non fatal error has occurred in the P
24. Local Network Table No Local CPU Bus network Unit 1 A a 2 B b m Example 2 Three Interconnected Networks This example shows the relay network table settings for three different inter connected networks Relay Network Table End Rel No network renwal Node PLC 1 1 B A b Node a e Network A PLC 2 Nodi 1 C B e sion PLC 3 1 A B a Network B onde a 2 Cc B e PLC 4 NGS HE 1 A F a Network C 1 A C i 2 B C f In the table for PLC 3 for example if network A is taken as the end net work then network B becomes the relay network and node c becomes the relay node If network C is taken as the end network then network B still becomes the relay network and node e becomes the relay node 100 Creating Routing Tables Section 6 4 m Example 3 All Nodes This example uses the following configuration to show the routing tables for all nodes Unit 5 Unit 5 Node 6 Node 6 E E T T NIN Network 10 Primary Network 11 Secondary C E E PLC S EIE PLC LIT T 5 L T T 3 KININ KININ NUnit 3 N Unit 4 e Set same values Node 4 Node 5 F Unit 4 Nda a Node 5 Unit 2 Unit 7 Node 3 Node 15 Network 20 Network 30 S S c PLC C PLC PLC PLC L 4 L 5 L amp L 37 K K K K f t f i Unit 0 Unit 1 Unit 5 Uni
25. MainRack Slot 00 CS1D Ethernet Unit ED is will begin Hot Swap heck that any machines connected to the unit are not oing to run and press the Start Hot Swap button 4 Click the Start Hot Swap Button in the dialog box and then click the OK Button in the following dialog box Replacing an Ethernet Unit PLC 10 Table Section 2 12 5 Confirm that the RUN indicator goes out on the Ethernet Unit The Online 8 MainRack Slot 00 CS1D Ethernet Unit ED is will finish Hot Swap stall a Unit and press the End Hot Swap button Running Hot Swap Start Hot Swap Replacement Dialog Box should change at this time as shown below Remove the communications cable from the Ethernet Unit and remove the Unit from the Backplane Mount the new Ethernet Unit to the Backplane and connect the communi cations cable Click the Stop Hot Swap Button in the Hot Swap Dialog Box Check to be sure the RUN indicator on the new Ethernet Unit lights and that communications are actually restarted The Online Replacement Dia log Box should change at this time as shown below MainRack Slot 00 CS1D Ethernet Unit ED is will begin Hot Swap heck that any machines connected to the unit are not oing to run and press the Start Hot Swap button 49 Replacing an Ethernet Unit Section 2 12 50 SECTION 3 CX Programmer Unit Setup This section describes how to install the
26. Read the I O tables from the PLC and select the Rack to which the CS1D Ethernet Unit is mounted T PLC IO Table NewPLG1 loj x File Options Help 7 CS1D H CPU65 EAT TG000T Main Rock 7 00 1500 CS1D Ethernet Unit ED 40 g 01 1525 CS1D Ethernet Unit ED 4 7 02 0000 Empty Slot 71 03 0000 Empty Slot 7 04 0000 Empty Slot 7 05 0000 Empty Slot 7 06 0000 Empty Slot g 07 0000 Empty Slot 7 08 0000 Empty Slot 7 09 0000 Empty Slot 0000 Rack 01 lt 0000 Rack 02 lt 0000 Rack 03 0000 Rack 04 0000 Rack 05 0000 Rack 06 0000 Rack 07 H E H CSID H CPU65 Program 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 T PLC IO Table NewPLGI 3 iol x Eile Options Help 7 CS1D H CPU65 q 0000 Main Rack 40 0000 Rack 01 0000 Rack 02 0000 Rack 03 E A 0000 Rack 04 F 0000 Rack 05 E t 0000 Rack 06 E 0000 Rack 07 J GEES see C200H Spt Unit 7 01 1525 CS1D Ethernet CS CJ Spt Unit gt 02 0000 Empty Slot 16pt Unit 7 03 0000 Empty Slot 32pt Unit gt 7 04 0000 Empty Slot 48pt Unit 7 05 0000 Empty Slot 64pt Unit ff 06 0000 Empty Slot 96pt Unit gt 7
27. We recommend allocating fixed IP addresses in computers connected to the duplex Ethernet networks If a protocol such as DHCP is being used which changes IP addresses it is difficult to switch to the secondary network when a failure occurs Connecting within the Same Segment Use the UDP IP version of the FINS communications service i e FINS UDP FINS UDP is supported by many OMRON products and is compatible with earlier Ethernet Units CS1W ETNO1 ETN11 and CJ1W ETN11 The CX Programmer can be connected and used with FINS UDP even if personal computer middleware FinsGateway is not used FinsGateway any version can also be used together with the CX Programmer Ethernet Unit Function Guide Section 1 1 Connecting the CX Programmer and a PLC Online in a Non duplex Ethernet Network Connecting through Multiple Segments Use the TCP IP version of the FINS communications service i e FINS TCP FINS TCP is a new function supported by these Ethernet Units CS1D ETN21 D It provides automatic recovery at the TCP IP layer from communications errors such as packet loss that occur during multilevel routing To use the CX Programmer with FINS TCP use FinsGateway version 2003 or higher as personal computer middleware Using Media with Unreliable Connections Such as a Wireless LAN Use the TCP IP version of the FINS communications service i e FINS TCP FINS TCP is a new function supported by these Ethernet Units CS1W
28. command SOCKET STATUS READ 2764 180 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 Passive OPEN LISTEN rev SYN snd SYN ACK snd SYN SYN rcv SYN RECEIVED snd ACK rcv ACK of SYN rev SYN ACK snd ACK ESTABLISHED CLOSE rcv FIN snd FIN snd ACK CLOSED WAIT rcv FIN CLOSE rev ACK of FIN snd ACK snd FIN FIN WAIT 2 CLOSING LAST ACK rcv ACK of FIN Timeout 2MSL i TIME WAIT CLOSED rev FIN rcv ACK of FIN snd ACK 181 TCP Status Transitions Appendix C 182 Bits 1 to 4 Appendix D ASCII Characters Bits 5 to 7 Binary 0011 0100 Hex 3 4 TIQ FO AQ O 0 TK P Q R S T U V Ww X Y Z A 3 WITT NIS x SES SP oP oO st o o al ml ol ol wl bl olol ol a al oln alo olzizirixl irlo mnim ol olose O3 183 ASCII Characters Appendix D 184 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 net
29. ever are not necessarily the settings actually used for operation The settings that are actually used for operation can be confirmed using CONTROLLER DATA READ page 136 and ADDRESS INFORMATION READ page 158 27 67 Command code Command Response Number of IP address Subnet mask code code addresses FINS node number Number of Addresses Response The number of sets of FINS node addresses IP addresses and subnet masks being returned The Ethernet Unit is always 0001 1 decimal FINS Node Address Response Node address set on the Ethernet Unit hexadecimal 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 Subnet Mask Response The subnet mask set in the CPU Bus Unit System Setup for the Ethernet Unit is returned in order starting from the leftmost bytes in hexadecimal 159 Command Response Reference Section 7 2 Response Codes 0000 Normal 1001 Command too large 160 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
30. 0 65535 UserDefined FinsUdpPortNo N Y Use N Don t use FinsTcpPortNo 0 0 65535 UserDefined FinsTcpPortNo N Y Use N Don t use AddressConvertionMode 1 1 Auto Dynamic 2 Auto Static 3 TableUsed 4 Mixed Broadcast N Y All 0 4 2BSD N All 1 4 3BSD Baudrate N _ Y 10Base T N Auto detect TcplpKeep aliveTime 0 0 65535 min NetworkStatus Secondary NetworkStatusUdpPortNo 0 0 65535 UserDefined NetStatUdpPortNo N Y Use N Don t use IntervalTime 0 0 255 WatchTime 0 0 255 lpAddressTable Secondary Example IpTbIXX XXX XXX XXX XXX XXX 1 FINS node address 1 254 2 IP address 0 0 0 0 255 255 255 255 IpTbIO1 0 0 0 0 0 IpTbI02 0 0 0 0 0 IpTbIO3 0 0 0 0 0 IpTbI04 0 0 0 0 0 IpTbI05 0 0 0 0 0 IpTbIO6 0 0 0 0 0 IpTbIO7 0 0 0 0 0 IpTbIO08 0 0 0 0 0 IpTbIO9 0 0 0 0 0 lIpTbl10 0 0 0 0 0 IpTbli1 0 0 0 0 0 IpTbl12 0 0 0 0 0 IpTbl13 0 0 0 0 0 IpTbl14 0 0 0 0 0 lIpTbl15 0 0 0 0 0 IpTbl16 0 0 0 0 0 IpTbl17 0 0 0 0 0 IpTbl18 0 0 0 0 0 195 Using a Memory Card Text File to Set Up an Ethernet Unit Appendix G No Contents IpTbI19 O 0 0 0 0 IpTbI20 0 0 0 0 0 lpTbl21 0 0 0 0 0 lpTbl22 0 0 0 0 0 IpTbI23 0 0 0 0 0 IpTbI24 0 0 0 0 0 IpTbI25 0 0 0 0 0 IpTbI26 0 0 0 0 0 IpTbI27 0 0 0 0 0 IpTbI28 0 0 0 0 0 IpTbI29 0 0 0 0 0
31. 0 IpTbI32 0 0 0 0 0 lpRouterTable Primary Example RtTbIXX XXX XXX XXX XXX XXX XXX XXX XXX 1 IP network address 0 0 0 0 255 255 255 255 2 Router IP address 0 0 0 0 255 255 255 255 RtTbl01 0 0 0 0 0 0 0 0 RtTbl02 0 0 0 0 0 0 0 0 RtTblIO3 0 0 0 0 0 0 0 0 RtTbl04 0 0 0 0 0 0 0 0 RtTblo5 0 0 0 0 0 0 0 0 RtTblIO6 0 0 0 0 0 0 0 0 RtTblO7 0 0 0 0 0 0 0 0 RtTbl08 0 0 0 0 0 0 0 0 FinsTCPConnection Primary Example FinsTcpXX X XXX XXX XXX XXX XXX X X 3 4 5 1 Mode S FINS TCP server C FINS TCP client 2 IP address 0 0 0 0 255 255 255 255 IP router table Description 191 Using a Memory Card Text File to Set Up an Ethernet Unit Appendix G No Contents Description 3 Auto allocated fins node No 1 254 4 keep alive Y Valid keep alive N Not valid keep alive UselpAddressToProtect N_ Y Protect N Not Protect Protects IP addresses Server Only FinsTcp01 S 0 0 0 0 239 Y FINS TCP connection settings FinsTcp02 S 0 0 0 0 240 Y FinsTcp03 S 0 0 0 0 241 Y FinsTcp04 S 0 0 0 0 242 Y FinsTcp05 S 0 0 0 0 243 Y FinsTcp06 S 0 0 0 0 244 Y FinsTcp07 S 0 0 0 0 245 Y FinsTcp08 S 0 0 0 0 246 Y FinsTcp09 S 0 0 0 0 247 Y FinsTcp10 S 0 0 0 0 248 Y FinsTcp11 S 0 0 0 0 249 Y FinsTcp12 S 0 0 0 0 250 Y FinsTcp13 S 0 0 0 0 251 Y F
32. 0 0 0 252 Y FinsTcp15 S 0 0 0 0 253 Y FinsTcp16 S 0 0 0 0 254 Y Settings The settings required for duplex operation are explained here Other settings are left at their defaults 1 2 3 1 Insert the Memory Card with the corrected setup file into the CPU Unit If the MCPWR indicator on the CPU Unit lights the Memory Card has been mounted correctly 2 Turn ON the Memory Card Unit Setup Setting Bit allocated to the Primary Unit bit 14 in CIO 1500 25 x unit number using a Programming Console or other means The BUSY indicator on the CPU Unit will light while the set tings are being made 3 The BUSY indicator on the CPU Unit will go out and the Memory Card Unit Setup Setting Bit allocated to the Primary Unit bit 14 in CIO 1500 25 x unit number will turn OFF automatically when the backup has been com pleted 4 Check the results of the setting operation in the Error Information in CIO 1518 25 x unit number 15 1413121110 9 8 7 6 5 43 2 1 0 n 18 Bit 12 Memory Card Unit Setup Setting Error Flag Bit 13 Memory Card Unit Setup Setting Error Flag 5 Ifan error bit has been turned ON check the error code in CIO 1519 25 x unit number When the Memory Card Unit Setup Setting Error Bit Is ON e The line number of the setting with the error in the setup file is stored in hexadecimal 197 Using a Memory Card Text File to Set Up an Ethernet Unit A
33. 07 0000 Empty Slot 128pt Unit 7 08 0000 Empty Slot CS CJ GPU SIO Unit gt g 09 0000 Empty Slot CS CJ SIO Unit C200H High Speed Counter Unit C200H Numerical Control Unit N C200H SIOU C200H ASCI Unit A SYSMAG BUS Master gt Interrupt Unit 8 Bit Interrupt Unit 16 Bit PG Link Unit LK401 CS1D F Software Switches Unit Setup Unit Manufacturing information Unit Error Log G200H SIOU Setup Hot Swap Delete At the point where the Ethernet Unit is mounted and the I O tables has just been created the default values are in effect for all of the settings Basic Settings Section 2 10 5 Make the required settings i e the IP address in this case CS1D Ethernet Unit CPU Bus Unit 2 x File Options Help Setup FINS TOP m Broadcast FINS UDP Port FINS TCP Port Network Status UDP Port com Default 600 Default 9600 Default 9602 C C User defined C User defined C User defined 0 p p MIP Address Conversion Baud Rate TCP IP keep alive 0 0 0 0 Auto dynamic Auto Do m C Auto Static 10BASE T 0 default 1200 Sub net Mask __ C Mixed atta fo 0 0 o C Table used Send Network Status _ IP Address Table _ _ IP Router Table Interval time fo ms TER na AST Insert Delete Insert Delete 0 default 2 Watch time jo ms D default 60 SI
34. 1 and 8 Set the Local UDP port number correctly A correct memory area code has not been used or EM Area is not available Check the command s memory area code in the Results Storage Area and set the appropriate code The first word is in an inaccessible area or the bit number is not 00 Set a first word that is in an accessible area The bit number must be 00 for Ethernet Units The address set in the command is not correct Correct the address in the command data being sure that the start address plus the num ber of words does not exceed accessible mem ory The response frame is too long Correct the number of data elements or other parameters in the command data for which the response is being returned Parameters are set incorrectly in the com mand data Check the command data and correct any parameters that are incorrect 21 Cannot write With respect to a FINS node address that could not be dynamically changed a FINS message was received from an IP address that differed from the Unit Setup Referring to SECTION 5 Determining IP Addresses correct the relationships between IP addresses and FINS node addresses 175 Troubleshooting with Response Codes Section 8 5 Main code 22 Status error operating mode disagreement Sub code Probable cause The same socket service is already in progress at the specified socket number Remedy Use the socke
35. 12 Memory Card Unit Setup ON Unit ON if there is an error is the setup file on the Memory setting error Card OFF Unit OFF when the Unit is set correctly or when the Memory Card Unit Setup Error Clear Bit is turned ON 13 Memory Card Unit Setup ON Unit ON if there is an access error when setting the Unit access error using a text file on a Memory Card When this bit turns ON an error code will be stored in the Memory Card Unit Setup Error Code storage word OFF Unit OFF when the Unit is set correctly or when the Memory Card Unit Setup Error Clear Bit is turned ON 14 Address disagreement ON Unit ON if the remote IP address is set to automatic genera tion but the local IP address host number and FINS node address do not agree OFF Unit OFF under all other circumstances 15 EEPROM error ON Unit ON if an error has occurred in the EEPROM memory OFF Unit OFF when the EEPROM memory is normal 8 3 Error Log Logged Errors Error Log Table Error Log Location 164 The Ethernet Unit provides an error log that records errors that have occurred during Ethernet Unit operation The contents of the error log can be read or cleared from a Programming Device such as the CX Programmer or it can be read or cleared using FINS commands from a workstation or computer See 7 2 8 ERROR LOG READ and 7 2 9 ERROR LOG CLEAR The following errors are recorded in the error log e Errors in network operation e Errors in data transfers e Error in the CPU
36. 2 7 3 Procedure for Creating I O Tables 000 0 36 2 8 Enabling Duplex Communications 00 00 20 e eee eee 37 2 9 Unit Setup Procedure 0 ee eee 39 2210 Basic Seun BS ii ero sia ea ker awh eee Sait aed eM LR Peas Hee 41 2 11 Communications Test 0 0 eee cee eee 45 2 11 1 Using Indicators 0 0 e E eee 45 2 11 2 PING Command 0 0 eee eee eee 46 2 12 Replacing an Ethernet Unit 0 0 00 cee eee eee eee 47 21 Overview of Startup Procedure 2 1 2 1 1 Duplex Ethernet Networks Overview of Startup Procedure Determine the following for the Primary Unit and the Secondary Unit e Local IP address e Address conversion method CONE Set the unit numbers on the rotary switch on the front of the Ethernet Units e Primary Unit 0 to E e Secondary Unit Primary Unit s number 1 Enable using Duplex Communications Units in the PLC Setup before setting the rotary switches Note Always set the unit number of the Secondary Unit to one higher than the unit number of the Primary Unit The following procedure will not be valid if any other number is set Y Set the node addresses on the rotary switches on the front of the Ethernet Units This is a FINS network setting e Primary Unit 1 to 254 e Second Unit Set the same address as the Primary Unit Mount the Units to the PLC It s normally easier to mount the Primary Unit
37. 3 2 Item Send Network Status Watch time Contents Specify the time to determine if a node has left the network i e if status is not received after the time set here passes from when the network status is sent The default setting can normally be used Change the setting when it s necessary to adjust the network load e Default 50 ms e User defined Setting range 1 to 255 ms Default Default 50 ms Conversion Select any of the following as the method for finding and converting IP addresses from FINS node addresses Enabled for FINS UDP only e Automatic generation dynamic e Automatic generation static e IP address table method e Combined method Auto dynamic Baud Rate Select the Ethernet baud rate for the Ethernet Unit Select either automatic detection or 10Base T For 100Base TX select automatic detection TCP IP KEEP ALIVE function Set the Liveness Checking Interval When socket services using either FINS TCP or TCP IP are used the connection will be terminated if there is no response from the remote node either a server or client within the time set here Enabled for socket services using FINS TCP or TCP IP only Setting range 0 to 65 535 minutes This setting applies to the KEEP ALIVE setting for each connection set with the FINS TCP tab 0 120 minutes IP Address Table Set the IP address table that defines the relationship between FINS node addresse
38. Always use the procedure given in 2 3 Switch Settings to set the unit number Duplex operation will not be possible for the Ethernet Units if this procedure is not used 3 Always create the I O tables before enabling duplex communications in the PLC Setup Duplex operation will not be possible if duplex communi cations are enabled before creating the I O tables 2 7 2 Connecting Programming Devices to the PLC Applicable Programming Devices Connecting Programming Devices To create the I O tables connect a Programming Device such as a CX Pro grammer or Programming Console to the PLC The following Programming Devices can be used with CS series CS1D PLCs Programming Console Model number Key Sheet required Recommended cable required C200H PRO27 E CS1W KS001 E CS1W CN224 cable length 2 0 m CS1W CN624 cable length 6 0 m CQM1 PROO1 E CS1W CN114 cable length 0 1 m CQM1H PROO1 E CX Programmer and CX Net Version 4 0 or higher Model number WS02 CXPC1 EV4 The operations are explained here using a Programming Console For details regarding the CX Programmer and the CX Net refer to the CX Programmer User s Manual CX Net is software that comes with CX Programmer and is automatically installed when CX Programmer is installed To connect a Programming Console attach a CS CJ series Key Sheet and then connect the Console to the CPU Unit s peripheral port It cannot be con nected to the RS 232C
39. FINS Communications Service e A device such as a personal computer with a FINS application including a CX Programmer can connect online and communicate over the Inter net with an Ethernet Unit that has a global address 87 Private and Global Addresses Section 5 3 e FINS TCP is recommended as the FINS communications service method FINS TCP is more reliable than FINS UDP in terms of communications errors involving IP routers e The IP address table method is used as the Ethernet Unit s IP address conversion method e The TCP port number to be used for FINS TCP cannot be used if prohib ited by a firewall in the communications path Note Network Security and Firewalls Setting a global IP address for an Ethernet Unit involves network security con siderations It is recommended that the user contract with a communications company for a dedicated line rather than using a general line such as a blue band Also be sure to consult with a network specialist and consider security measures such as a firewall Once a firewall has been set up by a communications company on the other hand there may be some applications that cannot be used Be sure to check first with the communications company 88 SECTION 6 FINS Communications This section provides information on communicating on Ethernet Systems and interconnected networks using FINS commands The information provided in the section deals only with FINS communications in reference
40. IP address table is normal Not used Routing table error ON if the routing table information is incorrect OFF when the routing table is normal Not used Memory Card Unit Setup setting error ON when there is an error in a setting for the Memory Card Unit Setup function OFF when the setup is performed correctly or the error is cleared with the Memory Card Unit Setup Error Clear Bit Memory Card Unit Setup file access error ON when there is an access error for the Memory Card Unit Setup function An error code will be stored in the Memory Card Unit Setup Error Code if this error occurs OFF when the setup is performed correctly or the error is cleared with the Memory Card Unit Setup Error Clear Bit Address disagreement ON if the remote IP address is set to automatic genera tion but the local IP address host number and FINS node address do not agree OFF under all other circumstances EEPROM error ON if an error has occurred in the EEPROM memory 62 OFF when the EEPROM memory is normal CIO Area Allocations Error Ethernet Unit to CPU Unit Section 4 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 O0 n 19 When the Memory Card Unit Setup Setting Error Bit Is ON The line number of the setting with the error in the setup file is stored in hexa decimal When the Memory Card Unit Setup Access Error Bit Is ON One of the following error codes is
41. IP addresses are restricted by the router from being sent outside the LAN Generally as shown below global addresses in the intranet are allocated only to IP routers such as broadband routers interfacing with the Internet All other nodes in the intranet including the Ethernet Unit are allocated private Private and Global Addresses Section 5 3 Intranet Personal computer CX Programmer etc Ethernet Firewall I Private address IP router aN i5 A Not output to Internet Internet Global address A gt required A Intranet i Not output to Internet eS E E EE E E DS Bre ies Se aer Global address l IP router Private address Private address Personal computer CX Programmer etc Firewall Ethernet Communications Services A global address is required for the Ethernet Unit s IP address when the fol That Require Global lowing communications services are used over the Internet Addresses for Ethernet re s Units e FINS communications services e File transfers e Socket services When mail is sent or received over the Internet the Unit s IP address can be a private address 85 Private and Global Addresses Section 5 3 5 3 2 Using a Private Address for the Ethernet Unit Intranet FINS communications FTP Socket CX Programmer etc FINS TCP cli
42. IpTbI30 0 0 0 0 0 IpTbI31 0 0 0 0 0 IpTbI32 0 0 0 0 0 lpRouterTable Secondary Example RtTbIXX XXX XXX XXX XXX XXX XXX XXX XXX 1 IP network address 0 0 0 0 255 255 255 255 2 Router IP address 0 0 0 0 255 255 255 255 RtTblO1 0 0 0 0 0 0 0 0 RtTbl02 0 0 0 0 0 0 0 0 RtTbI03 0 0 0 0 0 0 0 0 RtTbl04 0 0 0 0 0 0 0 0 RtTbI05 0 0 0 0 0 0 0 0 RtTbI06 0 0 0 0 0 0 0 0 RtTblO7 0 0 0 0 0 0 0 0 RtTbl08 0 0 0 0 0 0 0 0 FinsTCPConnection Secondary Example FinsTcpXX X XXX XXX XXX XXX XXX X X 1 3 4 5 1 Mode S FINS TCP server C FINS TCP client 2 IP address 0 0 0 0 255 255 255 255 3 Auto allocated fins node No 1 254 4 keep alive Y Valid keep alive N Not valid keep alive UselpAddressToProtect N_ Y Protect N Not Protect Server Only FinsTcp01 S 0 0 0 0 239 Y FinsTcp02 S 0 0 0 0 240 Y 196 Using a Memory Card Text File to Set Up an Ethernet Unit Appendix G No Contents FinsTcp03 S 0 0 0 0 241 Y FinsTcp04 S 0 0 0 0 242 Y FinsTcp05 S 0 0 0 0 243 Y FinsTcp06 S 0 0 0 0 244 Y FinsTcp07 S 0 0 0 0 245 Y FinsTcp08 S 0 0 0 0 246 Y FinsTcp09 S 0 0 0 0 247 Y FinsTcp10 S 0 0 0 0 248 Y FinsTcp11 S 0 0 0 0 249 Y FinsTcp12 S 0 0 0 0 250 Y FinsTcp13 S 0 0 0 0 251 Y FinsTcp14 S 0
43. Mount the Units to the PLC Refer to 2 4 Mounting to a PLC y a A Connect to the network using twisted pair cable Refer to 2 6 Connecting to the Network Turn ON the power supply to the CPU Unit To connect without any other settings y Use the default IP address which is as follows 192 168 250 node_address To set as desired Setting is possible with either the CX Programmer or a text file from a Memory Card To set only the IP address or to set using only a Programming Console Setting is possible with either the CX Programmer or a Programming Console See note 2 See note 1 Refer to IP Address under 2 10 Basic Settings Place the CX Programmer via Ethernet Create the I O tables using the CX Programmer or a Programming Console Create the I O tables using the CX Programmer or a Programming Console y y y Create the I O tables using the CX Programmer Set the IP address in the DM Area Set the IP address in the Unit Setup for words allocated to the Ethernet Unit the Ethernet Unit Refer to IP Address under 2 10 Basic Settings and to v 4 2 DM Area Allocations See note 3 Create routing tables with the CX i Programmer i See note 2 O ye r Make the other settings from the CX Programmer such as the IP router table Setting is also possible using a text
44. Normal Node address setting error Local IP address setting error CPU Unit error execution not possible Command too large Command too small Connection number not set from 1 to 16 7 2 13 IP ADDRESS TABLE WRITE Writes the IP address table Command Number IP address TTT IP address code of records table records table records Command Response code code Command Block Response Block 146 Command Response Reference Section 7 2 Parameters Number of Records Command IP Address Table Records Command Precautions Response Codes The number of records to write is specified in hexadecimal between 0000 and 0020 0 to 32 decimal in the command If this value is set to 0 the IP address table will be cleared so that no records are registered Specify the IP address table records The number of records specified must be provided The total number of bytes in the IP address table records is cal culated as the number of records x 6 bytes record The configuration of the 6 bytes of data in each record is as shown in the following diagram 1 6 bytes A FINS node IP address number FINS Node Address Node address for communications via the FINS command hexadecimal IP Address IP address used by TCP IP protocol hexadecimal The new I O address table records will not be effective until the PC is restarted or the Ethernet Unit is reset An error response will be returned if the IP addres
45. Programmer the CX Net or a Programming Console is required 4 The CX Net is required 2 2 Main Points in Creating a Duplex Ethernet Network POINT 1 Initially set the unit number of the Secondary Unit to one higher than that of the Primary Unit Note POINT 2 Set the same node address for both the Primary Unit and Secondary Unit POINT 3 Enable Duplex Communications in the PLC Setup Before creating the I O tables set the unit number of the Secondary Unit to one higher than that of the Primary Unit and maintain this setting until duplex communications have been enabled in the PLC Setup After enabling duplex communications in the PLC Setup set the Primary Unit and Secondary Unit to the same unit number Primary Second Unit Unit Unit No A Unit No A 1 Example 0 Example 1 The unit number that was set for the Secondary Unit before enabling duplex communications cannot be used after duplex communications have been enabled in the PLC Setup For example if the Primary Unit is initially set to unit number 1 and the Secondary Unit is initially set to unit number 2 unit number 2 cannot be used for the Secondary Unit after enabling duplex com munications The same node address is set for the Primary Unit and Secondary Unit from the beginning and does not need to be changed Primary Secondary Unit Unit Node address A Node address A Example 14 Example 14 After creating the I O tables e
46. Unit Unit number A Do not change Example 0 Change unit number from A 1 to A Example Change from 1 to 0 Note 1 Always use the procedure given in 2 3 Switch Settings to set the unit number Duplex operation will not be possible for the Ethernet Units if this procedure is not used 2 Always create the I O tables before enabling duplex communications in the PLC Setup Duplex operation will not be possible if duplex communi cations are enabled before creating the I O tables POINT 5 If the unit If the unit number of the Primary Unit or Secondary Unit is changed redo the number of the Primary duplex setup procedure from the point where the unit number of the Second Unit or Secondary Unit is changed redo the duplex setup procedure 2 3 Switch Settings 2 3 1 CS series CS1D Ethernet Units Setting the Unit Number ary Unit is set one higher than that of the Primary Unit When using Duplex Ethernet Units always use the following procedure to set Unit swtiches 26 Switch Settings Section 2 3 1 2 3 1 Before creating the I O tables and before enabling duplex communications in the PLC Setup set the unit number of the Secondary Unit to one higher than that of the Primary Unit Primary Secondary Unit Unit UNIT UNIT No No Unit number A Unit number A 1 Example 0 Example 1 2 Create the I O tables Enable duplex communications in the PLC Setup 4 Set the unit number of
47. Unit 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 e Main error code See table later in this section e Detailed error code See table later in this section e Time stamp from the clock in the CPU Unit When an error is detected the error codes and time stamp are recorded in the error log in RAM inside the Ethernet Unit Serious errors are also recorded in EEPROM The maximum number of errors that can be saved to EEPROM is 64 for the CS Series The errors recorded in EEPROM will be saved even if the Unit is restarted or power is turned OFF When the Ethernet Unit is started the contents of the error log in EEPROM is copied to RAM When a FINS command is used to read the error log the log held in RAM is read When a FINS command is used to clear the error log the logs held in both RAM and EEPROM are cleared Error Log Section 8 3 FINS Commands for Error The following FINS commands can be used to read or clear the error log Logs Refer to SECTION 7 FINS Commands Addressed to Ethernet Units Command Function code ERROR LOG READ ERROR LOG CLEAR 8 3 1 Error Log Error Codes The error codes are described in the following table The detailed error code will provide detailed informatio
48. When FINS UDP FINS commands are sent from individual appli cations to the Ethernet Unit the respective remote IP addresses and remote port numbers in the internal table are dynamically changed With this method as well FINS nodes are allocated individually for each appli cation on the computer and the respective FINS TCP port numbers that are used are also allocated individually Each application is positioned with a FINS TCP client and requests the opening of a connection with the Ethernet Unit s FINS TCP server When the connection is established the respective remote IP address and remote port number in the internal table are dynami cally changed 81 IP Addresses in FINS Communications Section 5 2 5 2 4 Related Products and Communications Setting Methods Models Supporting Automatic Generation Method Dynamic Product CS1D Ethernet Unit 100Base TX Model Series Version CS1D ETN21D Supports combined method Yes CS series Ethernet Unit 100Base TX CS1W ETN21 Yes 10BASE 5 CS1W ETNO1 10Base T CS1W ETN11 No Set by automatic generation method or combined method Com munications are not pos sible with personal computers with variable IP addresses CJ series Ethernet Unit 100Base TX CJ1W ETN21 Yes 10Base T CJ1W ETN11 CV CVM1 series Ethernet Unit 10BASE 5 CV500 ETNO1 FinsGateway Version 4 xx or earlier No Set by automatic
49. a complete ARP table entry with an Ethernet address is not referred to for 20 minutes it is removed from the table An incomplete ARP table entry no response yet returned to the ARP request is removed from the table after 3 minutes Window size initial value of maxi mum window size 4 096 bytes The initial value of the maximum capacity used to control the conver gence of TCP sockets Actually the node negotiates with the remote node and uses the smaller of the values for the two nodes The window size will fluctuate with the available space in the TCP reception buffers of the remote node when processing communications Fragment size 1 500 bytes Data packets are fragmented into 1 500 byte IP packets UDP data is separated into 1 472 byte fragments before sending Segment size 1 024 bytes TCP data is separated into 1 024 byte units unless the segments are dif ferent in which case it will be separated into 536 byte units TTL Time to Live 30 Decremented each time an IP router is passed 177 Ethernet Network Parameters Appendix A 178 CPU Unit Appendix B Buffer Configuration 4 FINS processing 2 020 bytes buffers 192 x a UDP socket reception request buffers 8 x 9 016 max TCP socket reception request buffers 8 x 4 096 max FTP service reception buffer 4 096 bytes FINS recep
50. addresses Primary Unit 192 168 250 node_address Secondary Unit 192 168 251 node_address These default addresses can be used to connect via Ethernet Refer to the manual for the CX Programmer for instructions on connecting with a serial cable Refer to 6 5 Using FINS Applications for instructions on connecting the CX Programmer to the PLC via the Ethernet Unit 2 Double click the Settings Icon from the Project Window or use the pop up menu to open the settings 37 Enabling Duplex Communications Section 2 8 2 PLC Settings NewPLC1 File Options Help Startup CPU Settings Timings SIOU Refresh Unit Settings Host Link Port Peripheral Port Peripheral Service calel Startup Hold Mode B C Program IOM Hold Bit Monitor C Run Use programming console r Execution Setting J7 Start running program when initialising Unit Inner board recognition J Start peripheral service when Inner board is being recognised OS1D H OPUG5 Program 3 Click the Comms Unit Duplex Tab and select the CS1D Communications Unit with the unit number of the Primary Ethernet Unit ings NewPLO1 Eile Options Help SIOU Refresh Unit Settings Host Link Port Peripheral Port Peripheral Service Comms Unit Duplex GPU Duplex 41 gt Active Standby Primary Secondary Select communications units to be duplicated Select CS1D communications units to be Max 3 units can b
51. addresses and remote IP addresses in the internal table are changed after FINS messages are received Therefore even when a FINS command has been received from a personal computer a DHCP client computer for which the IP address is dynamically changed a response can still be sent back to the computer the DHCP client computer from which the command origi nated Personal computer client IP address changed acquired from DHCP server when connected FINS command sent IP address FINS command Ethernet Ethernet Unit with fixed IP address IP address FINS response Response sent back to changed IP address IP Addresses in FINS Communications Section 5 2 FINS TCP Communications Method Note With FINS TCP FINS node addresses and IP addresses in the internal table are changed with each connection that is established Therefore even when a FINS command has been received from a personal computer a DHCP client computer for which the IP address is dynamically changed a response can still be sent back to the computer the DHCP client computer from which the command originated Personal computer client IP address changed acquired from DHCP server when connected FINS command sent IP address FINS command Ethernet Ethernet Unit FINS TCP server with fixed IP address IP address FINS response ees Respo
52. by a CX Net connected to the PLC They cannot be created using a Programming Console For details on how to con nect and use the CX Net refer to the CX Programmer Ver 3 Operation Manual W414 CX Net is automatically installed when CX Programmer is installed 1 When routing tables are transferred from the CX Net to the PLC the CPU Bus Unit is reset so that the routing tables that have been created can be read and enabled Before transferring the routing tables make sure that the devices in the system will not be adversely affected by resetting the CPU Bus Unit 2 To transfer routing tables for multiple nodes to a PLC in one batch connect the CX Net to a PLC with only one Communications Unit mounted Routing tables cannot be transferred to other nodes from a PLC with multiple Com munications Units mounted 3 Routing tables can only be transferred as a batch to multiple nodes within the same network as the PLC to which the CX Net is connected 99 Creating Routing Tables Section 6 4 6 4 3 Routing Table Setting Examples m Example 1 Local Network Table for a PLC With Multiple Communication Units Mounted This example shows the local network table settings for a PLC to which multi ple Communication Units CPU Bus Units are mounted Controller Link network Network B Ethernet network Network A Unit a Unit b PS Power Supply Unit CPU CPU Unit ETN Ethernet Unit CLK Controller Link Unit
53. com munica tions service Automatic IP address acquisi tion DHCP cli ent by personal computer Previous models Section 1 7 New models A computer automatically acquiring IP addresses can send commands to the PLC and receive responses UDP IP By automatic generation dynamic IP address conversion method TCP IP Automatic FINS communi cations with per sonal computers without fixed node addresses Possible with Automatic allocation by Ethernet Unit Client FINS automatic node address allocation function TCP IP only Handling TCP IP With FINS communications both UDP IP and TCP IP possible Simultaneous connection of multiple applica tions in a per sonal computer Possible with both UDP IP and TCP IP Mail functions E mail attachments with I O memory data are possible for the mail send function SMTP client function file attachment function With the mail receive function commands can be received from the PLC POPS client function mail receive func tion Not Possible FTP server function Large files in file memory can be accessed uploaded or downloaded using FTP com mands from FTP client soft ware Not Possible Socket services function Possible Not Possible Automatic clock information adjustment CPU Unit built in clock can be adjusted from SNTP server SNTP client function Not Possible SECTION 2 Installati
54. control operations such as the reading and writing of I O memory between PLCs mode changes and file memory operations For example it is possible to connect online via Ethernet from FINS communi cations applications such as the CX Programmer and to perform remote pro gramming and monitoring See note FinsGateway Version 2003 or higher is required to use TCP IP 13 Overview of Communications Functions Section 1 5 US CS1D Ethernet Unit The FINS gateway function enables access to PLCs on not only the same Ethernet network but on various other networks including SYSMAC LINK and Controller Link 1 5 2 Creating a Duplex Network Creating a Duplex Ethernet Network Redundant FINS Communications Monitoring the Entry Withdrawal of Nodes 14 Two CS1D ETN21D Ethernet Units can be used in a CS1D PLC as a set with one used in the main system Primary Unit and primary network and the other used in the redundant system Secondary Unit and secondary network Primary Unit Secondary Unit Primary Unit Secondary Unit AS A xX JS CS1D Ethernet Unit CS1D Ethernet Unit The network status information is periodically delivered between nodes in a broadcast transmission and the entry withdrawal status of the nodes is moni tored The entry withdrawal status information is used in the FINS message communications automatic switching function Consequently the range of the duplex Ethernet network is limi
55. data Command Response Reference Section 7 2 7 2 6 BROADCAST TEST RESULTS READ Reads the results number of times data received of the broadcast test 08 02 Command code OMA oo Command Response Times Command Block Response Block code code received Parameters Times Received The number of times the data has been received normally during the broad Response cast send test is returned as a hexadecimal number The number of times received is cleared each time the result is read Response Codes 0000 Normal 1001 Command too large 7 2 7 BROADCAST DATA SEND Sends test data simultaneously to all nodes on the network Command Block 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 FF broadcast data Destination unit address FE Ethernet Unit Response no response flag 1 no response 7 2 8 ERROR LOG READ Reads the error log 141 Command Response Reference Command Block Response Block Parameters Beginning Record Number Command Number of Records Command Response Maximum Number of Stored Records Response Number of Stored Records Respo
56. details refer to the CPU Unit operation manual 125 Communicating between OMRON PLCs Section 6 6 126 Note 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 Set time for peripheral servicing Default 4 of CPU Unit cycle time For details refer to the CPU Unit operation manual Transmission Processing Time Number of words sent x 0 002 0 550 ms Transmission Delay The transmission delay time will be as given below depending on the baud rate set for the Ethernet Unit There may be additional delays depending on devices such as hubs in the network configuration Delay time 100Base TX Number of words sent x 0 0013 0 0118 ms 10Base T Number of words sent x 0 0019 0 0157 ms Reception Processing Time Number of words sent x 0 003 0 704 ms CPU Bus Unit Service Cycle Remote Node CPU Unit cycle time For details refer to the CPU Unit operation manual CPU Bus Unit Service Processing Time Remote Node Set time for peripheral servicing Default 4 of CPU Unit cycle time For details refer to the CPU Unit operation manual The transmission processing time may be longer than calculated depending on actual operating conditions This could be the result of several factors such as the network load line traffic
57. e during CPU Unit opera tion execute the CMND 490 instruction in the ladder program and send a FINS command FINS TCP CONNECTION REMOTE NODE CHANGE REQUEST command code 27 30 hexadecimal to the Ethernet Unit 1 Make the basic settings Refer to Section 2 Startup Procedure in the Operation Manual Construction of Networks L Make the settings in the Unit Setup With the CX Programmer connected online select the Ethernet Unit in the CX Programmer s I O Table Window Right click and select Unit Setup Then make the following settings in the Unit Setup Window Setup Tab e FINS TCP port Default 9600 FINS TCP Tab e Remote IP addresses when client Note When functioning as a server set the permitted client IP addresses only when protection is in effect e Automatically allocated FINS node addresses Note The functions of these items are described in detail in the Operation Man ual Construction of Applications FINS Communications Service Normally the defaults should be used e Keep alive setting Note Normally this should be selected to be used e IP addresses protection setting Note Check this only for protection as the server Make the routing table settings and transfer them to each PLC See note Set the routing tables with CX Net and transfer it to each PLC Create a ladder program that includes the SEND 090 RECV 098 and CMND 490 instructions Routing tables are required in the
58. edgements ACK 21 The number of window advertisement packets received Three items of UDP information occupying 4 bytes each are returned in the following sequence Each value is returned as an 8 digit hexadecimal value 1 The number of packets discarded because the size of the first short buffer was smaller than the minimum size 28 of the IP header and UDP header when the packet was stored 2 The number of packets discarded due to an incorrect checksum in the UDP header 3 The number of packets discarded because the IP overall length in the IP header was shorter than the UDP overall length in the UDP header All the above values are set to O if network operation stops due to incorrect settings in the system setup Counting will be stopped when a count reaches the maximum value The maximum values are as follows IP ICMP or UDP status 7FFFFFFF 2 147 483 647 decimal TC status FFFFFFFF 4 294 967 295 decimal Response code Description Normal Command too large 7 2 18 MEMORY STATUS READ Command Block Response Block Reads the status of the Ethernet Units network memory The network mem ory contains 248K bytes that are used as required as for communications buffers for communications servicing The network memory consists of 1 472 short buffers 128 bytes each and 64 long buffers 1 024 bytes each Refer to Appendix B Buffer Configuration Command code Command Response Memory status code cod
59. effect on the entire network We recommend that customers keep one or more spare Ethernet Units to allow immediate recovery of the network 8 1 Troubleshooting with Indicators 0 0 0 0 eee eee eee ee 162 82 FIror Status seat p eed ae AE EEE E R bee eraun Aye EER eee Pace eal ewe ty 163 8 3 Error Log srar e ase diss dng eee A A REA ei eile dad aed 164 8 3 1 Error Log Error Codes 0 0 00 00 cece eee ee eee 165 8 4 Troubleshooting Procedures 0 00 eee eee 171 8 4 1 Startup Problems 0 0 0 0 cee eee eee ees 171 8 4 2 FINS Communications Problems SEND 090 RECV 098 CMND 490 02000005 172 8 4 3 Network Connection Problems 00005 173 8 5 Troubleshooting with Response Codes 0 00002 cee eee 174 161 Troubleshooting with Indicators Section 8 1 8 1 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 Not lit Not lit Not lit Probably cause Power is not being supplied to the CPU Unit or the power supply voltage is too low Correction Supply power Make sure that the correct voltage is being supplied The Ethernet Unit is faulty Replace the Ethernet Unit The CPU Unit or Backplane is faulty Replace the
60. error detected are short packet errors alignment errors CRC errors frame length errors received frame 1 515 bytes or more and communications controller overflow errors The total number of packets sent by the Ethernet Unit is returned The total number of packet errors detected while the Ethernet Unit was send ing is returned The number of packets damaged by 16 collisions with data from other nodes during Ethernet Unit transmissions Command Response Reference Section 7 2 Precautions Counting of the total number of packets received total number of receive errors total number of packets sent total number of errors sent and total number of send collisions is discontinued when the counted value reaches the maximum value Response Codes 0000 Normal 1001 Command too large 7 2 4 NETWORK STATUS READ Reads the Ethernet network status 06 02 Command code AAA Command Response Duplex Participation code code status information Command Block Response Block Parameters Duplex Status Response The local duplex status is returned as follows Bit 01 Primary Secondary Bit 02 Network Participation Status Bit 03 Mode The cause of each error is listed below Primary Secondary 0 Secondary Unit 1 Primary Unit Network Participation Status 0 Not participating in network 1 Participating in network Mode 0 Simplex network mode 1 Duplex network mode Participation Status The s
61. first and then the Secondary Unit Y Connect to the network using twisted pair cable Connect to both the primary and secondary network y Turn ON the power supply to the CPU Unit Section 2 1 Refer to SECTION 5 Determining IP Addresses Refer to 2 3 Switch Settings Refer to 2 3 Switch Settings Refer to 2 4 Mounting to a PLC Refer to 2 6 Connecting to the Network To connect without any other settings y Use the default IP addresses which are as follows Primary Unit 192 168 250 node_address Secondary Unit 192 168 250 node_address To set only the IP address or to set using only a Programming Console Setting is possible with either the CX Programmer or a Programming Console See note 1 To set as desired Setting is possible with either the CX Programmer or a text file from a Memory Card See note 2 Refer to P Address under 2 10 Basic Settings y y y Place the CX Programmer via Create the I O tables using the CX Create the I O tables using the CX Ethernet Programmer or a Programming Console Programmer or a Programming Console y y y Create the I O tables using the CX Set the IP address in the DM Area Set the IP address in the Unit Setup for Programmer words allocated to the Ethernet Unit the Ethernet Unit See note 3 Refer to IP Address under 2 10
62. generation method or combined method Com munications are not pos sible with personal computers with variable IP addresses Version 2003 or higher Yes Programmable Terminal NS Series Open Network Controller ONC Models Supporting Automatic Generation Method Static Product CS1D Ethernet Unit 100Base TX Model Series Version CS1D ETN21D No Set manually so that automatic settings can be used with the automatic generation method Supports combined method Yes CS series Ethernet Unit 100Base TX CS1W ETN21 Yes 10BASE 5 CS1W ETNO1 10Base T CS1W ETN11 Yes Simply called auto matic generation method CJ series Ethernet Unit 100Base TX CJ1W ETN21 Yes 10Base T CJ1W ETN11 CV CVM1 series Ethernet Unit 10BASE 5 CV500 ETNO1 FinsGateway Version 4 xx or earlier Yes Simply called auto matic generation method Version 2003 or higher Yes Programmable Terminal NS Series Open Network Controller ONC 82 No Set manually so that automatic settings can be used with the automatic generation method IP Addresses in FINS Communications Models Supporting IP Address Table Method Product CS1D Ethernet Unit 100Base TX Model Series Version CS1D ETN21D CS series Ethernet Unit 100Base TX CS1W ETN21 10BASE 5 CS1W ETNO1 10Base T CS
63. is provided with the Unit Writing the IP address and the subnet mask on this label and then attaching it to the front of the Unit allows the IP address and subnet mask to be easily confirmed Example IP ADDRESS 133 113 0 42 SUBNET MASK 255 255 255 0 Attach the label to the front of the Ethernet Unit between iP ADDRESS the node number switches 133 113 0 42 and the Ethernet connector SUBNET MASK 255 255 255 0 100BASE TX 10BASE T 1 6 2 Indicators The status of the indicators show the operating status of the Ethernet Unit as shown below CS1D ETN21D 100Base TX ETN21D cS Indicator Status Meaning Not lit Operation stopped Hardware error Lit Normal operation 100M Not lit 10 Mbps 10Base T Transfer speed Lit 100 Mbps 100Base TX ERC Not lit Unit normal Ethernet Unit error Lit Node address not between 1 and 254 A hardware e g internal memory error has occurred 18 Comparison with CSIW ETN21 Section 1 7 Indicator Color Status Meaning ERH Red Not lit CPU Unit normal CPU Unit error Lit An error has occurred at the CPU Unit There is an error in the I O table unit number unit setup or routing table settings An illegal IP address has been set With automatic address gener ation the rightmost two digits of the IP address do not match the node address Flashing A file access error
64. min max The hold timer is used for active open processing of TCP sockets An ETIMEDOUT error will occur if connection is not completed within 758 Resend timer Initial value 1s Maximum value 64s The resend timer is used to monitor completion of reception of arrival confirmations when transferring data via socket services including FTP server and mail transfer TCP sockets If the timer setting is exceeded before arrival confirmation is received data is resent Resends are per formed from the first timeout 1 s through the 12th timeout 64 s An ETIMEDOUT error will occur after the 12th timeout Continue timer Initial value 5s Maximum value 60s The continue timer starts if preparations have been completed to send data but the send window is too small either O or too small to send the data and the remote node has not requested that communications be restarted Confirmation of the window size is requested from the remote node when the continue timer times out The initial value of the timer is 5 s and confirmation processing will continue consecutively with increas ingly longer times until the maximum time of 60 s is reached 2MSL timer 60 s The 2MSL timer starts at the TCP socket that first closes the socket and will run for 60 s in the TIME_WAIT status IP reassemble timer 12s A fragmented IP packet is discarded if it cannot be reassembled within 12 seconds ARP timer 20 min 3 min If
65. n 23 fo FINS TCP Connection Status oo Ethernet Unit to CPU Unit FINS Communications f n 24 Not used The software switches in the CX Programmer can also be used to check the status of the CS1D Ethernet Unit The following tabs are displayed on the CX Programmer for CS1D Ethernet Unit software switches e Service status link status duplex status e Error information other than for the Memory Card Unit Setup e FINS TCP connection status e Network participation status This section describes the meaning of each item Refer also to the page indi cated above for communications services for further information on applica tion methods 58 CIO Area Allocations Section 4 1 Unit Control Bits CPU Unit to Ethernet Unit 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Memory Card Unit Setup Error Clear Bit Memory Card Unit Setup Set Bit Memory Card Unit Setup Backup Bit 15 Switch Status Manipulated Unit operation Reference by Not used Memory Card Unit Turn ON to clear errors for the Mem Appendix G Using a Setup Error Clear ory Card Unit Setup function Memory Card Text File Bit Will turn OFF when errors have to Set Up an Ethernet been cleared Unit Memory Card Unit Turn ON to set up the Unit using the Setup Set Bit Memory Card Unit Setup function Will turn OFF when setup has been completed Memory Card Unit Turn ON to back Unit settings for the Setup Backup Bit Memory Card Unit Setup function
66. occurred when making settings from a text file stored in the Memory Card SD Yellow Not lit Not sending data ready to send Send Data Lit Sending data RD Yellow Not lit Not receiving data ready to receive Receive Data Lit Receiving data LNK Yellow Not lit Link not established between hubs Link status Lit Link established between hubs TCP Yellow Not lit None of the eight TCP sockets provided for socket services is in TCP socket in use use Lit At least one of the eight TCP sockets provided for socket services is in use DPL Yellow Not lit Duplex redundant network operation stopped Duplex network opera Lit Duplex network is operating through the Primary Unit tion Flashing Duplex network is operating through the Secondary Unit 1 7 Comparison with CS1W ETN21 Model number Previous models CS1W ETN21 CJ1W ETN21 New models CS1D ETN21D Duplex redundant network operation Redundant FINS message communica tions Not Possible Possible PLC maintenance via the Internet net from a personal computer t Can send commands including FINS commands by e mail over the Inter o the PLC using the mail receive function function Possible with the mail receive Not Possible Server specification client function Specification by IP address or by host name using the DNS Not Possible 19 Comparison with CSIW ETN21 Communi cations ser vice 20 FINS
67. of the CPU Unit will light and CPU operation will stop 0 No duplication 1 Duplication A41700 to A41715 CPU Bus Unit Error Unit Number Flags When an error occurs in a data exchange between the CPU Unit and a CPU Bus Unit the CPU Bus Unit Error Flag A40207 are turned ON Bits 00 to 15 correspond to unit numbers 0 to F The ERR ALM indicator on the front of the CPU Unit will flash but CPU operation will continue 0 No error 1 Error A42700 to A42715 CPU Bus Unit Set ting Error Unit Number Flags When a CPU Bus Unit Setting Error occurs A40203 and the corresponding flag in A427 are turned ON Bits 00 to 15 correspond to unit numbers 0 to F The ERR ALM indicator on the front of the CPU Unit will flash but CPU operation will continue 0 No setting error 1 Setting error 67 Auxiliary Area Data Section 4 3 Word s A02700 to A02715 E Duplex Ethernet Settings Communications Unit Duplex Opera tion Flag Function When the Unit is performing duplex operation the corresponding flag in A027 is turned ON Bits 00 to 15 correspond to unit numbers 0 to F Bit 00 to 15 0 to F unit number Settings OFF Not duplex operation ON Duplex operation A31603 Duplex Communi cations Error Flag Bit A31603 turns ON when there is an error in any of the Duplex Communications Units Refer to A434 to A437 for details on the error OFF No error ON Error
68. other items with locking devices are locked in place e When transporting the Unit use special packing boxes and protect it from being exposed to excessive vibration or impacts during transportation e Check the user program for proper execution before actually running it on the Unit Not checking the program may result in unexpected operation Conformance to EC Directives 6 e Observe the following precautions when wiring the communications cable e Separate the communications cables from the power lines or high ten sion lines e Do not bend the communications cables past their natural bending ra dius e Do not pull on the communications cables e Do not place heavy objects on top of the communications cables e Always lay communications cable inside ducts e Use appropriate communications cables e Before touching a Unit be sure to first touch a grounded metallic object in order to discharge any static build up Not doing so may result in malfunc tion or damage e Confirm that no adverse effect will occur in the system before attempting any of the following Not doing so may result in an unexpected operation e Changing the operating mode of the PLC including the setting of the startup mode e Force setting force resetting any bit in memory e Changing the present value of any word or any set value in memory 6 Conformance to EC Directives 6 1 Applicable Directives e EMC Directives e Low Voltage Directive 6 2
69. port 2 7 3 Procedure for Creating I O Tables 36 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 In this example a Programming Console is used for creating the I O tables For an explanation of how to create I O tables using a CX Programmer refer to the CX Programmer User s Manual Enabling Duplex Communications Section 2 8 Use the following procedure to create the I O tables Initial screen Password o or ji Save or clear the CPU Bus Unit System Setup 2 8 Enabling Duplex Communications To use Duplex Ethernet Units duplex communications must be enable in the PLC Setup for the Ethernet Units registered in the I O tables The PLC Setup can be set with CX Programmer version 4 0 or higher The CX Programmer procedure for enabling duplex communications is given below Note Before creating the I O tables always set the unit number of the Secondary Unit to one higher than that of the Primary Unit 1 2 3 1 Place the CX Programmer online with the PLC Use one of the following methods to connect the CX Programmer to the PLC e Used a serial cable to connect the computer running CX Programmer to the peripheral port or RS 232C port on the CPU Unit e Connect the computer and PLC Unit Ethernet When Ethernet Unit information is registered in the PLC s I O tables the Ethernet Units will operate using the default IP
70. quench Routing redirect Undefined always 0 Echo Undefined always 0 Time exceeded Parameter problem Time stamp Time stamp reply Information request Information request reply Address mask request Address mask reply The number of received ICMP packets discarded because the type indica tion code was out of range 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 The number of received ICMP packets discarded because of an incorrect checksum value in the packet header The number of received ICMP packets discarded because the ICMP head er length value in the packet header did not match the lengths of individual header types The number of responses returned to received ICMP packets requiring a response Total number of inputs of each packet type during ICMP input The 19 sta tistical values are returned in the order shown below Contents are defined for 13 types only all other types contain 0 Command Response Reference Section 7 2 7 Echo reply Undefined always 0 Destination unreachable Source quench Routing redirect Undefined always 0 Echo Undefined always 0 Time exceeded Parameter problem Time stamp Time stamp reply Information request Information request reply Address mask request Address mask reply
71. set for duplex operation in the same network and check the communications path Units cables and hub SD and RD Indicators Not Lit The Ethernet Unit is not set for duplex operation Refer to 2 1 1 Duplex Ether net Networks and set up duplex operation 2 11 2 PING Command PING Command Overview Using the PING Command from the Ethernet Unit Using the PING Command from the Host Computer 46 If the basic settings in particular the IP address and subnet mask have been made correctly for the Ethernet Unit then it should be possible to communi cate with nodes on the Ethernet This section describes how to use the PING command to perform communi cations testing between Ethernet Units The PING command sends an echo request packet to a remote node and receives an echo response packet to confirm that the remote node is commu nicating correctly The PING command uses the ICMP echo request and responses The echo response packet is automatically returned by the ICMP The PING command is normally used to check the connections of remote nodes when configuring a network The Ethernet Unit supports both the ICMP echo request and reply functions 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 PLC Remote Node host computer or Ethernet Unit TCP UDP 5 E D ICMP ip x iu j Et
72. tables 38 Unit Setup Procedure Section 2 9 2 9 Unit Setup Procedure Use the CX Programmer Ver 4 0 or higher for the CS1D Ethernet Unit Setup and follow the procedure described below 1 2 3 1 Connect the CX Programmer online The CX Programmer can be connected to the PLC in either of the following ways a Connect the personal computer to the PLC by serial cable through ei ther a peripheral port or RS 232C port b Connect the personal computer to the PLC by Ethernet When Ethernet Unit is registered in the I O tables in the CPU Unit the Ethernet Unit will operate using the default IP address Primary Unit 192 168 250 node_number Secondary Unit 192 168 251 node_number This default IP address can be used initially to connect online For details on connecting the CX Programmer to the PLC by serial cable refer to the CX Programmer operation manual For details on connecting the CX Programmer to the PLC by Ethernet re fer to 6 5 Using FINS Applications Use the mouse to select O table in the Project Window Either double click or right click to display the Properties Menu and select Open The I O Table Window will then be displayed ix File Options Help CS1D H GPU65 44 IT Main Rack 4 0000 Rack 01 0000 Rack 02 0000 Rack 03 0000 Rack 04 0000 Rack 05 0000 Rack 06 0000 Rack 07 CSID H GPU65 Program 4 39 Unit Setup Procedure Section 2 9 3
73. the IP address and the FINS node address for the Ethernet Unit according to the following equation If the setting does not con form to this equation a setting error will be generated and the ERH indicator will flash FINS node address IP address host number IP Address Table Method and Combined Method With these methods the IP address and the FINS node address for the Ether net Unit have no particular relationship Set both the FINS node address and the IP address so that they are not duplicated in the network Sending Ethernet Unit When the Ethernet Unit sends a FINS message it must determine the remote FINS Messages node s IP address UDP port number and TCP port number The relation ships between all addresses such as remote FINS node addresses and IP addresses are managed by an internal table at the Ethernet Unit Remote FINS node Remote IP address Connection Remote port address Example number Example 192 168 250 1 192 168 250 2 192 168 250 254 When the Ethernet Unit is turned ON or restarted the internal table is gener ated automatically from the various settings that have been made Depending on the setting method used data such as remote IP addresses are changed dynamically Dynamic changes can be prohibited FINS header FINS data Remote node
74. to 7F Hex 1 to 127 15 11 87 0 i Destination Unit address 00 Hex CPU Unit L Response monitor time 0000 Hex 2 s 10 to 1F Hex Unit 0 to 15 0001 to FFFF Hex 0 1 to 6 553 5 s E1 Hex Inner Board in units of 0 1 s FE Hex Unit connected to network Remote node number M send source 00 to 7E Hex 0 to 126 The range of node addresses is different for networks other than Ethernet Note Messages may not always arrive at the destination node for the message ser vice It is possible for messages to be lost due to noise or when the communi cations path automatically switches to the secondary network To handle such problems when using a message service resend the message from the node sending the command Refer to the separation detection time for the other node described in 6 7 Network Status Performance when setting the response monitor time A setting of 1 5 times the separation detection time for other nodes is recommended for the response wait time The data will be sent again automatically as specified by the resend count with the SEND RECV and CMND instructions so set the resend count to at least 1 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 addre
75. 0000 FF FF FF 00 gt 4 gt 4 gt Network number Subnet number Host number Set the same Subnet Mask value for all of the nodes on that subnetwork If no subnetworks are used there is no need to set Subnet Masks In that case the following Subnet Mask values will be used depending on the IP address class Class Subnet Mask value 255 0 0 0 255 255 0 0 255 255 255 0 73 IP Addresses in FINS Communications Section 5 2 5 2 IP Addresses in FINS Communications 5 2 1 Specifying Nodes in FINS Communications Services With FINS communications services on an Ethernet network IP addresses UDP port numbers and TCP port numbers are paired with FINS node addresses to specify nodes on the network Application level FINS Node number Transport level UDP TCP UDP port number TCP port number Internet level Must be allocated Physical level Ethernet pm Y TTT TTT r Remarks The ARP Address Ethernet address Resolution Protocol communications protocol is selected automatically here Note Use the Node No rotary switch on the front of the Ethernet Unit to set the FINS node address Allocating Addresses to Ethernet Units Ethernet Unit FINS The IP address FINS UDP port number and FINS TCP port number set for Message Reception the Ethernet Unit are mainly used when receiving FINS communications mes sages Applica
76. 0Base TX PHOE SWITCH 5 port hub NIX 5TX Note Suitable for FA CON TACT environments Allied RH509E CenterCOM FS705EL Allied Telesis Telesis 5 port hub 0120 86 0442 Note Suitable for OA in Japan only environments 10Base T Allied RH509E 9 port hub Allied Telesis Telesls Note Suitable for OA 0120 86 0442 environments in Japan only MR820TLX _ 9 port hub with 10Base 5 backbone port Note Suitable for OA environments Twisted pair 100Base TX cable Fujikura F LINK E STP shielded twisted 0 5mm x 4P pair cable Category 5 5e Note Impedance is lim ited to 100 Q Fujikura CTP LAN5 UTP unshielded twisted 0 5mm x 4P__ pair cable Category 5 5e 10Base T Fujikura F LINK E STP shielded twisted 0 5mm x 4P pair cable Category 3 4 5 5e Note Impedance is lim ited to 100 Q Fujikura CTP LAN5 UTP unshielded twisted 0 5mm x 4P pair cable Category 3 4 5 5e Connectors STP Plug Modular Panduit MPS588 plug Corp UTP Plug Panduit Corp 31 Network Installation Section 2 5 2 5 3 Precautions Precautions on Laying Twisted pair Cable Basic Precautions e Press the cable connector in firmly until it locks into place at both the hub and the Ethernet Unit e After laying the twisted pair cable check the connection with a 10Base T cable tester Environment Precautions e The UTP cable
77. 1W ETN11 CJ series Ethernet Unit 100Base TX CJ1W ETN21 10Base T CJ1W ETN11 CV CVM1 series Ethernet Unit 10BASE 5 CV500 ETNO1 FinsGateway Version 4 xx or earlier Version 2003 or higher Section 5 2 Supports combined method Programmable Terminal NS Series Open Network Controller ONC Models that Can Use the Combined Method Product CS1D Ethernet Unit 100Base TX Model Series Version CS1D ETN21D No Set manually FINS communications are not possible with personal computers set automati cally by DHCP Supports combined method CS series Ethernet Unit 100Base TX CS1W ETN21 10BASE 5 CS1W ETNO1 No 10Base T CS1W ETN11 No CJ series Ethernet Unit 100Base TX CJ1W ETN21 10Base T CJ1W ETN11 No CV CVM1 series Ethernet Unit 10BASE 5 CV500 ETNO1 No FinsGateway Version 4 xx or earlier No Version 2003 or higher Yes Programmable Terminal NS Series Open Network Controller ONC No Set manually FINS communications are not possible with personal computers set automati cally by DHCP 83 Private and Global Addresses 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 T
78. 254 2 IP address 0 0 0 0 255 255 255 255 IpTbIO1 0 0 0 0 0 IpTbIO2 0 0 0 0 0 IpTbIO3 0 0 0 0 0 IpTbI04 0 0 0 0 0 IpTbIO5 0 0 0 0 0 IpTbIO6 O 0 0 0 0 IpTbIO7 0 0 0 0 0 IpTbIO8 O 0 0 0 0 IpTbIO9 O 0 0 0 0 IpTbI10 0 0 0 0 0 IpTbl11 0 0 0 0 0 IpTbl12 0 0 0 0 0 Description indicates comments Duplex communications setting Y Duplex N Simplex IP address Subnet mask FINS UDP port user definition value FINS UDP port user definition default or user defined selection FINS TCP port user definition value FINS TCP port user definition default or user defined selection IP address conversion method Broadcast method Baud rate TCP IP keep alive UDP port for network status value UDP port for network status default or user defined selection Network status send interval Network status watch time IP address table Using a Memory Card Text File to Set Up an Ethernet Unit Appendix G No Contents IpTbI13 0 0 0 0 0 IpTbI14 0 0 0 0 0 IpTbI15 0 0 0 0 0 IpTbI16 0 0 0 0 0 lIpTbl17 0 0 0 0 0 IpTbI18 0 0 0 0 0 IpTbI19 0 0 0 0 0 IpTbI20 0 0 0 0 0 IpTbI21 0 0 0 0 0 IpTbI22 0 0 0 0 0 IpTbI23 0 0 0 0 0 IpTbI24 0 0 0 0 0 IpTbI25 0 0 0 0 0 IpTbI26 0 0 0 0 0 IpTbI27 0 0 0 0 0 IpTbI28 0 0 0 0 0 IpTbI29 0 0 0 0 0 IpTbI3O 0 0 0 0 0 IpTbI31 0 0 0 0
79. 5 2 Router IP address 0 0 0 0 255 255 255 255 RtTblO1 0 0 0 0 0 0 0 0 RtTbl02 0 0 0 0 0 0 0 0 RtTbI03 0 0 0 0 0 0 0 0 RtTbl04 0 0 0 0 0 0 0 0 RtTbI05 0 0 0 0 0 0 0 0 RtTbIO6 0 0 0 0 0 0 0 0 RtTblO7 0 0 0 0 0 0 0 0 RtTbI08 0 0 0 0 0 0 0 0 FinsTCPConnection Primary Example FinsTcpXX X XXX XXX XXX XXX XXX X X 1 3 4 5 1 Mode S FINS TCP server C FINS TCP client 2 IP address 0 0 0 0 255 255 255 255 3 Auto allocated fins node No 1 254 4 keep alive Y Valid keep alive N Not valid keep alive UselpAddressToProtect N_ Y Protect N Not Protect Server Only FinsTcp01 S 0 0 0 0 239 Y FinsTcp02 S 0 0 0 0 240 Y FinsTcp03 S 0 0 0 0 241 Y FinsTcp04 S 0 0 0 0 242 Y FinsTcp05 S 0 0 0 0 243 Y FinsTcp06 S 0 0 0 0 244 Y FinsTcp07 S 0 0 0 0 245 Y FinsTcp08 S 0 0 0 0 246 Y FinsTcp09 S 0 0 0 0 247 Y FinsTcp10 S 0 0 0 0 248 Y FinsTcp11 S 0 0 0 0 249 Y FinsTcp12 S 0 0 0 0 250 Y FinsTcp13 S 0 0 0 0 251 Y FinsTcp14 S 0 0 0 0 252 Y FinsTcp15 S 0 0 0 0 253 Y 194 Using a Memory Card Text File to Set Up an Ethernet Unit Appendix G No Contents FinsTcp16 S 0 0 0 0 254 Y System Secondary IpAddress 0 0 0 0 0 0 0 0 255 255 255 255 SubNetMask 0 0 0 0 0 0 0 0 255 255 255 255 FinsUdpPortNo 0
80. 65 534 max 28_2 max 254 max The 32 bits of an IP address are divided into four sections of eight bits each and expressed as a punctuated number IP addresses are represented by the decimal equivalent of each of the four octets in the 32 bit address each sepa rated by a period For example the binary address 10000010 00111010 00010001 00100000 would be represented as 130 58 17 32 Note The same network number must be set for every node on the same Ethernet network 5 1 2 Allocating IP Addresses A unique IP address must be allocated to nodes on each network or on multi ple interconnected networks IP Internet Protocol is a standard communica tions protocol used throughout the world and is designed to enable communications between any Ethernet nodes regardless of the networks on which they exist To achieve this network numbers are allocated by the Net work Solutions InterNIC Registration Services to ensure that all Ethernet 72 IP Addresses Section 5 1 networks have unique numbers regardless of where they exist The local sys tem administrator is left the responsibility of allocating unique host numbers locally You therefore should obtain a network number from the InterNIC Reg istration Services to ensure uniqueness and allow for future network expan sions if required 5 1 3 Ethernet Unit IP Address Settings An IP address must be set for the Ethernet Unit before Ethernet communica tions can proc
81. ACK FIN sent and completed Awaiting ACK 00 00 00 09 FIN WAIT 2 Close completed and ACK received Awaiting FIN 00 00 00 OA TIME WAIT After closing pauses twice the maximum segment life 2MSL All the above values are set to O if Ethernet communications functions are stopped due to improper settings in the system setup Response Codes 0000 Normal 1001 Command too large 7 2 20 ADDRESS INFORMATION READ Reads FINS node addresses and IP addresses 27 65 Command Block uN Command code Response Block aAA Command Response Number Address code code of addresses information 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 Response Pairs of FINS node addresses and IP addresses Each pair requires 6 bytes and has the following configuration 158 Command Response Reference Section 7 2 Response Codes 1 6 T FINS node IP address number FINS Node Address Node address set on the Ethernet Unit hexadecimal IP Address IP address set on the Ethernet Unit hexadecimal 0000 Normal 1001 Command too large 7 2 21 IP ADDRESS READ Command Block Response Block Parameters Reads the local IP address and subnet mask in the CPU Bus Unit System Setup and the FINS node address The values read with this command how
82. Basic Settings and to y4 2 DM Area Allocations v Refer to IP Address under 2 10 Basic Settings and to Appendix 7 Setting Up an Ethernet Unit To next page Using a Memory Card Text File Overview of Startup Procedure Section 2 1 From previous page Enable duplex communications for the Primary Ethernet Unit by selecting its unit number on the Comms Unit Duplex Tab Page of the CX Programmer and transfer the setting to the Unit Setting is also possible with a Programming Console or by using a text file in a Memory Card Y See note 2 Turn OFF the power supply y Change the unit number of the e Confirm that the DPL indicator on the Primary Unit is lit Secondary Unit e Confirm that the DPL indicator on the Secondary Unit is flashing e Secondary Unit e f the Secondary Unit is set to the default IP address it will automatically Same as the Primary Unit change to the following value at this point 192 168 251 node_address Turn ON the power supply See note 4 y Create routing tables with the CX Refer to 6 4 Creating Routing Tables Programmer Routing tables must be set when using a Duplex Ethernet Network See note 2 E EEA Yeici esse Make the other settings from the CX Programmer such as the IP router table Setting is also possible using a text file 1 ina Memory Card i Refer to SECTION 3 CX Programmer Unit Setup IP Router Table in 2 10 Basic Sett
83. C at the remote node the 7th bit will be ON when a fatal error has occurred in the PC at the remote node and the 15th bit will be ON when a network relay error has occurred First byte Second byte Bit 7 6 5 4 3 2 10765 43 210 Main response code MRES Sub response code SRES 1 PLC fatal error flag E 1 PLC non fatal error flag 1 Relay error flag Main code Probable cause 00 Normal com pletion 01 Local node Send error in local node was caused by Reduce the load traffic on the Ethernet Unit error lack of available space in internal buffers Check your user applications The network cannot be accessed because Correct the local IP address the IP address setting is not correct The internal buffers are full because there Correct the user application to reduce traffic at is too much traffic at the local node pre _ the Ethernet Unit venting data from being sent 02 Remote node IP address of remote node not set cor Set IP address of remote node into IP address error rectly in IP address table or IP router table table and if internetwork transmission is required into the IP router table No node with the specified unit address Check the remote node s unit address and make sure the correct one is being used in the control data Message packet was corrupted by trans Check the protocol and controller status by mission error reading them with FINS commands Increase the number of t
84. CP Communi cations method FINS UDP Method of pairing of IP addresses and FINS node addresses By pairing FINS node addresses with IP addresses in Ethernet IP address conversion IP address determination Automatic gen eration method static Client personal computer of PLC Section 5 3 Server PLC FINS node address Fixed IP address Fixed FINS node address IP address Automatic gen eration method dynamic Fixed Fixed or variable IP address table method Fixed Fixed or variable Combined method Fixed Fixed or variable FINS TCP 5 3 Private and Global Addresses 5 3 1 84 By automatic conver sion of FINS node addresses at Ether net Unit and remote node and then sending and receiv ing data Automatic Connection method auto matic FINS node address conversion Private and Global Addresses Fixed or can be allo cated auto matically when not determined Fixed or variable There are two kinds of IP addresses private and global e Global addresses These are IP addresses that connect directly to the Internet Allocated by application to NIC each address is unique in the world and as many as 4 3 million can be allocated worldwide e Private addresses addresses These are IP addresses for Intranet LAN use and cannot connect directly to the Internet Frames that include private
85. CPU Unit or the Back plane The mounting screws on the Ethernet Unit are loose Tighten the mounting screws to the specified torque Not lit Not lit The node address is set outside the cor rect range on the rotary switches Set the node address to between 01 and FE Hex The Ethernet Unit is faulty Restart the PLC If the problem per sists replace the Ethernet Unit Not lit Not lit The unit number on the Ethernet Unit is not set correctly on the rotary switch Correct the unit number setting The I O tables are not registered in the CPU Unit Register the I O tables The same unit number is being used on another Unit as well Correct the unit number The CPU Unit is faulty Restart the CPU Unit If the problem persists replace the CPU Unit Not lit There is no communications link with the hub If power is not turned ON to the hub turn it ON If there is crossed cable between the Ethernet Unit and the hub use straight cable There is a mistake in the Unit Setup or routing tables Read the error history and correct the data that is causing the error If the problem persists replace the CPU Unit Memory in the CPU Unit is faulty Restart the CPU Unit If the problem persists replace the CPU Unit The CPU Unit is faulty Restart the CPU Unit If the problem persists replace the CPU Unit There is a mistake in the settings for a
86. 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 Whether the products conform to the standards in the system used by the customer however must be checked by the customer EMC related performance of the OMRON devices that comply with EC Direc tives will vary depending on the configuration wiring and other conditions of the equipment or control panel on which the OMRON devices are installed The customer must therefore perform the final check to confirm that devices and the overall machine conform to EMC standards Note Applicable EMS Electromagnetic Susceptibility and EMI Electromagnetic Interference Standards in the EMC Electromagnetic Compatibility stan dards are as follows Unit Board EMS EMI CS1D ETN21D EN61000 6 2 EN61000 6 4 Radiated emission 10 m regulations 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 xxi Conformance to EC Directives xxii SECTION 1 Features and System Configuration This section introduces the features describes the system configuration and Unit parts and provides Unit specifications l 1 Etherne
87. Console 36 Programming Devices connecting 36 CX Net 36 CX Programmer 36 Programming Console 36 PROTOCOL STATUS READ 151 protocols 12 ARP 12 FINS 13 FTP 13 ICMP 12 IP 12 reading status 151 TCP 13 UDP 13 Index R Racks mounting Ethernet Units 29 radioactivity xix RD indicator 19 RECV 098 instruction 13 116 relay tables 99 RESET 135 response codes 174 FINS commands 134 Routing Table Area 9 routing tables creating 98 local network table 98 relay network table 99 setting examples 100 RUN indicator 18 troubleshooting 162 S safety precautions xviii SD indicator 19 SEND 090 instruction 13 115 transmission delay 125 service status 61 Setup Tab 52 shock resistance CS series 11 short circuits precautions XX signals precautions xx SOCKET STATUS READ 157 181 sockets reading status 157 TCP sockets status 181 testing communications 143 software configuration 12 specifications Ethernet Units CS series 11 FINS communications 113 SRES 134 stack connections 33 startup procedure 22 static electricity xix precautions xxi status reading memory status 155 reading protocol status 151 reading socket status 157 storage temperature CS series 11 Sub net Mask field 52 subnet masks 43 73 reading from Unit 136 sub response code 134 See also SRES switches Socket Service Request Switches 63 SYSMAC BUS 2 114 SYSMAC LINK 114 s
88. Cs words are automatically allocated in the CIO Area and DM Area according to the unit numbers that are set For details refer to SECTION 4 Ethernet Unit Memory Allocations Setting the Node Address Note Relation to IP Addresses 28 With the FINS communications service when there are multiple Ethernet Units connected to the Ethernet network the Ethernet Units are identified by node addresses Use the node address switches NODE NO to set the node address between 01 and FE hexadecimal 1 to 254 decimal Do not set a number that has already been set for another node on the same network When using Duplex Ethernet Units set the same node address for the Pri mary Unit and Secondary Unit If a pair of Duplex Units are set to different node addresses and then duplex communications are enabled in the PLC Setup a Duplex Verification error non fatal will occur and the ERR ALM indi cator will flash Refer to 2 8 Enabling Duplex Communications for the proce dure to enable duplex communications If the same node address is used for two different Ethernet Units on the same Ethernet line with Duplex Ethernet Units the node that attempts to enter the network last will not function in the network participation status which is vital to duplex network operation and it will not participate in the network 01 to FE 1 to 254 decimal The left switch sets the sixteens digit most significant digit and the right switch sets the one
89. D H CPU65 Program 6 Transfer the settings to the PLC Click on Yes in the following dialog box PLC 10 Table B N Are you sure you want to transfer data to the PLC 7 In order for the Ethernet Unit Setup to go into effect the Unit must be re started Click on Yes in the following dialog box PLC 10 Table AN Do you want to reset the CPU SIOU 8 Check the Ethernet Unit s LED indicators After the RUN indicator has turned OFF and then turned ON again the Ethernet will recognize the new settings i e the IP address in this case 2 10 Basic Settings The following items comprise the basic settings in the Ethernet Unit 100Base TX setup Each item is described in detail below e IP address e Subnet mask e Broadcast settings e Baud rate e TCP IP keep alive e IP router table 41 Basic Settings Section 2 10 E IP Address For the IP address set the Ethernet Unit s local IP address 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 Before setting the IP address refer to SECTION 5 Determining IP Addresses There are several ways to set IP addresses Default Settin The Ethernet Unit operates using the default IP address when the Unit is mounted to the PLC and initially regis
90. DATA SEND ERROR LOG READ ERROR LOG CLEAR PING FINS TCP CONNECTION REMOTE NODE CHANGE REQUEST FINS TCP CONNECTION STATUS READ IP ADDRESS TABLE WRITE IP ADDRESS WRITE CJ Series only IP ADDRESS TABLE READ IP ROUTER TABLE READ PROTOCOL STATUS READ MEMORY STATUS READ SOCKET STATUS READ ADDRESS INFORMATION READ IP ADDRESS READ 7 1 2 Response Code List Response codes are 2 byte codes which indicate the results of command execution They are returned in the response following the command code The first byte of a response code is the MRES main response code which categorizes the results of command execution The second byte is the SRES sub response code which specifies the results MRC Main request code Command Response SRC Sub request code code code MRES Main response code Ji SRES Sub response code MRC SRC MRES SRES The MRES codes are shown in the following table along with the results they indicate Refer to 8 5 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 134 Command Response Reference Section 7 2 MRES Execution results Service not supported Routing error Command format error Parameter error Status error O
91. ETN21 and CJ1W ETN21 It provides automatic recovery at the TCP IP layer from communications errors such as packet loss resulting from unreliable connections To use the CX Programmer with FINS TCP use FinsGateway version 2003 or higher as personal computer middleware Connecting from a Personal Computer with a Dynamic Private IP Address Depending on whether or not the connection will be within the same segment either use an IP address conversion method for dynamic IP addresses in the UDP IP version of the FINS communications service or use the TCP IP ver sion of the FINS communications service It is possible to connect online to a PLC using the CX Programmer from a computer serving as a temporarily connected node or a permanent DHCP cli ent To use the CX Programmer with FINS TCP use FinsGateway version 2003 or higher as personal computer middleware Connecting within the Same Segment Use the UDP IP version of the FINS communications service i e FINS UDP FINS UDP is supported by many OMRON products and is compatible with earlier Ethernet Units CS1W ETNO1 ETN11 and CJ1W ETN11 The CX Programmer can be connected and used with FINS UDP even if personal computer middleware FinsGateway is not used FinsGateway any version can also be used together with the CX Programmer Connecting through Multiple Segments Use the TCP IP version of the FINS communications service i e FINS TCP FINS TCP is a new func
92. Ethernet Unit and make the initial settings required for operation IL VSCtp c is ei een thes od Whee Ao anh A O A a A 52 3 2 RINS T CP ss c 8 8 wide Stes eta meme Be Ghee ee hey eae 53 51 Setup Section 3 1 3 1 Setup CS1D Ethernet Unit CPU Bus Unit 2 x File Options Help Setup FINS TCP Broadcast _ FINS UDP Port m FINS TOP Port _ Network Status UDP Port Default 9600 Default 9600 Default 9602 C User defined C User defined C User defined 0 I 0 IP Address Conversion Baud Rate TCP IP keep alive 0 0 0 0 Auto dynamic Auto fo mn C uto Static C 10BASE T 0 default 1200 Sub net Mask C Mixed default 0 0 0 0 C Table used Send Network Status IP Address Table IP Router Table Interval time fo ms 7 r Insert elete Insert Delete 0 default 2 Watch time jo ms D default 609 Broadcast SID H CPU65 Program Contents Set the method for specifying IP addresses for broadcasting in FINS UDP e All 1 4 3BSD Broadcast with host number set to all ones e All O 4 2BSD Broadcast with host number set to all zeros Normally the default setting should be used Default All 1 4 3BSD IP Address Set the local IP address for the Ethernet Unit 0 0 0 0 FINS node address 192 168 250 Sub net Mask Set the subnet mask for the Ethernet Unit This is required if a method other than the IP address table
93. Ethernet Units for CS1D PLCs OPERATION MANUAL CS1D ETN21D 100Base TX Ethernet Units for CS1D PLCs Operation Manual Revised June 2008 Notice OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual The following conventions are used to indicate and classify precautions in this manual Always heed the information provided with them Failure to heed precautions can result in injury to people or dam age to property N DANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury Z N WARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury N Caution Indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury or property damage OMRON Product References All OMRON products are capitalized in this manual The word Unit is also capitalized when it refers to an OMRON product regardless of whether or not it appears in the proper name of the product The abbreviation Ch which appears in some displays and on some OMRON products often means word and is abbreviated Wd in documentation in this sense The abbreviation PLC means Programmable Controller PC is used however in some Program ming Device displays to mean Programmable Controller Visual Aid
94. FF by the Unit when the connection is terminated 64 DM Area Allocations Section 4 2 4 2 DM Area Allocations Note With Duplex Communications Units DM Area words are allocated to both the Primary Unit and Secondary Unit The various kinds of data are stored in the offset positions shown in the following diagram from the beginning word in the area for each Unit The beginning word m is calculated by the following equation First word m D30000 100 x unit number In the above formula use the unit number actually set on the Primary Unit and use one larger than the unit number set on the Secondary Unit Offset Bit a 15 08 07 00 Data direction m Not used m 97 E Ethernet Unit to CPU Unit or IP Address Display Setting Area CPU Unit to Ethernet Unit m 99 a aie a a a pT ac di IP Address Display Setting Area Note 15 14 13 12 11 109 8 7 6 5 4 3 2 1 0 m 98 1 i 2 l 3 l 4 m 99 5 6 7 8 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 00 00 00 00 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 Sys tem Setup will be read and stored here when the power is turned ON or the Unit restarted If the local IP address in the CPU Bus Unit System Setup is set to 00 00 00 00 the default setting
95. FINS TCP connection number 1 to 16 for which the status was read Connection Service Specifies the service that is being used for the FINS TCP connection as a Response number 0003 FINS TCP server 0004 FINS TCP client Local IP Address Specifies the IP address for the local node in hexadecimal Response Local TCP Port Number Specifies the TCP port number for the local node Response 145 Command Response Reference Section 7 2 Remote IP Address Specifies the IP address for the remote node in hexadecimal Response Remote TCP Port Number Specifies the TCP port number for the remote node Response TCP Transitions Specifies the TCP connection status using the following numbers Response For details on TCP status changes refer to Appendix C TCP Status Transi tions Number Status Meaning 00000000 CLOSED Connection closed 00000001 LISTEN Waiting for connection 00000002 SYN SENT SYN sent in active status 00000003 SYN RECEIVED SYN received and sent 00000004 ESTABLISHED Already established 00000005 CLOSE WAIT FIN received and waiting for completion 00000006 FIN WAIT 1 Completed and FIN sent 00000007 CLOSING Completed and exchanged FIN Awaiting ACK 00000008 LAST ACK FIN sent and completed Awaiting ACK 00000009 FIN WAIT 2 Completed and ACK received Awaiting FIN 0000000A TIME WAIT After closing pauses twice the maximum seg ment life 2MSL Response Codes
96. Flag will also turn ON lt Settings Error code hex 00 No error 80 Unit WDT error Other Not used 69 Auxiliary Area Data Section 4 3 Word s A26110 m Online Unit Replacement Information Online Unit Replacement Flag Function A26110 will turn ON when a Basic I O Unit Special I O Unit or CPU Bus Unit is being replace online on the CPU Rack Expansion Rack or Long distance Expansion Rack The I O tables cannot be created while this bit is ON and an I O table creation error will occur if an attempt is made to create the I O tables Settings OFF Not performing online replacement ON Performing online replacement A034 to A041 Read Wri A50100 to A50115 70 Online Unit Replacement Slot te Bits User Settings CPU Bus Unit Restart Bits The bit corresponding to the slot for which online replacement is being performed will turn ON A03400 to A03404 Slot number on CPU Rack 0 to 4 A03405 to A03407 Slot number on CPU Rack 5 to 7 Single CPU Systems only A03500 to A03508 Slot number on Expansion Rack 1 0 to 8 A03600 to A03608 Slot number on Expansion Rack 2 0 to 8 A04100 to A04108 Slot number on Expansion Rack 7 0 to 8 Description The CPU Bus Unit will be restarted when the corre sponding bit is turned ON Bits 00 to 15 correspond to unit numbers 0 to F Bit 00 to 15 O to F unit number The CPU Bus Unit Initializing Flags A30200
97. G Statistics 9 packets transmitted 9 packets received 0 packets loss round trip ms min avg max 0 1 16 Abnormal Execution ping 130 25 36 8 Executes PING command PING 130 25 36 8 56 data bytes sEnter 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 2 12 Replacing an Ethernet Unit This section describes how to replace a CS1D Ethernet Unit Refer to the operation manual for the respective Unit for the replacement procedures for CPU Units and other PLC Units Systems in Which the The CS1D Ethernet Unit has the following settings that must be made on the Power Can Be Turned OFF Ethernet Unit e Unit number rotary switch e Node address rotary switches The IP address and other settings are kept in non volatile memory in the CPU Unit 1 2 3 1 Turn OFF the power supply to the system 2 Remove the communications cable from the Ethernet Unit and remove the Unit from the Backplane 3 Set the unit number and node address on the new Ethernet Unit to the same values as on the Ethernet Unit being replaced 4 Mount the new Ethernet Unit to the Backplane and connect the communi cations cable 5 Turn ON the power supply to the system 47 Replacing an Ethernet Unit Section 2 12 Systems in Which th
98. Global Addresses Section 5 3 Note e 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 When FINS TCP is used IP addresses can be changed automatically Network Security and Firewalls Setting up an intranet through a global address involves network security con siderations Before doing so be sure to consult with a network specialist and consider installing a firewall Once a firewall has been set up by a communications company on the other hand there may be some applications that cannot be used Be sure to check first with the communications company 5 3 3 Ethernet Unit with a Global Address Intranet CX Programmer etc FINS TCP client computer Ethernet Communications over Internet Private address eh eee ee ee ee proc l ae Not output to Internet Internet Global address v required Intranet J4 Not output to Internet L_ Global address P eee Private address Private address Firewall in intranet Conditions for Using Communications Applications Communications Ethernet Communications applications can be used over the Internet under the follow ing conditions
99. INS commands and responses When CMND 490 is used how ever even if a FINS command has an abnormal completion it will not be reflected in the communications port completion code For details refer to Communications Port Error Flag and Completion Codes for CMND 490 below Bits 08 to 15 in the communications port completion code correspond to the first byte of the response code and bits 00 to 07 correspond to the second byte For details refer to 8 5 Troubleshooting with Response Codes Communications Port Error Flag and Completion Codes CMND 490 Errors that occur when CMND 490 is used generate a Communications Port Error Flag and are recorded in a communications port completion code only in the following cases e When a response timeout error has occurred e When the number of communications data bytes exceeds the maximum value for the Unit i e 2 000 bytes for the Ethernet Unit e When the actual number of response bytes is greater than the number of reception bytes that has been set The response is not stored in this case Errors other than these are recorded in the response codes of the responses stored from the beginning response storage word onwards Be careful of these because there are no Communications Port Error Flags and they are not recorded in a communications port completion code Timing of Communications Flag Changes e The Communications Port Enabled Flag remains OFF during communica tions and turns ON w
100. LEAR Reads and clears messages and reads FAL FALS messages Access rights ACCESS RIGHT ACQUIRE Acquires the access right as long as no other device holds it ACCESS RIGHT FORCED ACQUIRE Acquires the access right even if another device already holds it ACCESS RIGHT RELEASE Releases the access right that has been acquired Error log 118 ERROR CLEAR Clears errors or error messages ERROR LOG READ Reads the error log ERROR LOG POINTER CLEAR Clears the error log pointer Communicating between OMRON PLCs Section 6 6 Usage Command Name Function code MR SR File memory 22 01 FILE NAME READ Reads file memory data 22 02 SINGLE FILE READ Reads a specified length of file data from a specified position within a single file 22 03 SINGLE FILE WRITE Writes a specified length of file data from a specified position within a single file 22 04 FILE MEMORY FORMAT Formats initializes the file memory 22 05 FILE DELETE Deletes specified files stored in the file memory 22 07 FILE COPY Copies files from one file memory to another file memory in the same sys tem 22 08 FILE NAME CHANGE Changes a file name 22 OA MEMORY AREA FILE TRANSFER Transfers or compares data between the I O memory area and the file memory 22 0B PARAMETER AREA FILE TRANSFER Transfers or compares data between the parameter area and the file memory
101. Output Units as possible The coaxial cable must also be placed as far away from the Contact Output Units and their wiring as possible Contact outputs Contact Output Unit A Ethernet Unit hub 33 Connecting to the Network Hub Measures Section 2 6 Attach several ferrite cores designed for EMI countermeasures on the trans ceiver cable or twisted pair cable near the hub The transceiver must also be placed as far away from the Contact Output Units and their wiring as possible Ethernet Unit Ferrite core Hub Z I Twisted pair cable 2 6 Connecting to the Network 2 6 1 34 Ethernet Connectors The following standards and specifications apply to the connectors for the Ethernet twisted pair cable e Electrical specifications Conforming to IEEE802 3 standards Connector structure Connector pin RJ45 8 pin Modular Connector conforming to ISO 8877 Signal name Transmission data Signal direction Output Transmission data Output Reception data Input Not used Not used Reception data Input Not used 1 2 3 4 5 6 7 8 Not used x O Q ox Frame ground Connecting to the Network Section 2 6 2 6 2 Connecting the Cable N Caution Turn OFF the PLC s power supply before connecting or disc
102. PU Bus Unit Setting Error Unit Number Flags 67 CPU Bus Unit System Setup Area 8 CPU Bus Units flags 66 Restart Bits 70 CQM1 PROOI1 E 36 crimp terminals xx CS1W CN114 36 CS1W CN2724 36 CS1W CN624 36 CS1W KS001 E 36 current consumption CS series 11 CX Net 9 36 creating routing tables 99 CX Programmer 36 connecting to PLC 3 102 from personal computer 4 5 through multiple segments 4 5 using wireless LAN 4 5 within same segment 3 creating routing tables 99 199 Ethernet Unit Setup 39 D dimensions 12 CS series 11 DM Area 114 allocations 65 Driver Tab 103 E EC Directives xxi echo response packet 46 electromagnetic fields xix EM Area 114 EMC Directives xxi EMI countermeasures 34 EMI Standard xxi EMS Standard xxi ERC indicator 18 troubleshooting 162 ERH indicator 19 troubleshooting 162 ERROR LOG CLEAR 143 ERROR LOG READ 141 errors alignment 138 controller status 137 139 error codes 165 error log 164 clearing 143 reading 141 error status 163 flags FINS communications 137 response codes 174 short packets 138 status 62 63 163 unit numbers 67 Ethernet communications 12 addresses reading from Unit 136 parameters 177 Ethernet Connector 17 34 Ethernet Unit Setup 39 Ethernet Units mounting 29 200 Index reading status 155 replacing 185 resetting 135 F FINS communications 13 commands 134 135 from PLCs 113 send
103. Port 5 ON Execution disabled Port 4 not being executed Port 3 Port 2 Port 1 Port 0 Communications Port Port 7 0 Normal completion Error Flag Port 6 1 Abnormal completion Port 5 Port 4 Port 3 Port 2 Port 1 Port 0 Note With CS CJ series PLCs communications ports 0 to 7 are also used for exe cuting the PCMR 260 PROTOCOL MACRO instruction or Simple Backup Function so these flags are used in common for SEND 090 RECV 098 CMND 490 and PCMR 260 While PCMR 260 is being executed SEND 090 RECV 098 and CMND 490 cannot be executed at the same communications port 120 Communicating between OMRON PLCs Section 6 6 Communications Port Completion Codes The status of a SEND 090 RECV 098 and CMND 490 instruction after 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 instruction Word Contents Communications Port 0 Completion Code Communications Port 1 Completion Code Communications Port 2 Completion Code Communications Port 3 Completion Code Communications Port 4 Completion Code Communications Port 5 Completion Code Communications Port 6 Completion Code Communications Port 7 Completion Code The meanings of the communications port completion codes are the same as those for F
104. TABLE command only 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 First byte Second byte Bt 7 6 5 4 3 210 7 6 5 4 3 21 0 First word 1 1 1 Command code 7 6 5 43 2107 6 5 43 21 0 Second word 1 Main response code MRES S b response code SRES R Relay error flag 7 6 5 4 3 2 1 0 E 1 PLC non fatal error flag 1 PLC fatal error flag Third word Error network address 7 6 5 43 21 0 Error node address Parameter TCP send buffer Appendix A Ethernet Network Parameters 4 096 bytes Description 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 FINS receive buffer 16 383 bytes Maximum capacity of the FINS receive buffer RAW send buffer 2 048 bytes Maximum capacity of the RAW send buffer RAW receive buffer 2 048 bytes Maximum capacity of the RAW receive buffer Hold timer 75 s 12
105. Tab in the Unit Setup At the Ethernet Unit a UDP IP frame received with a FINS UDP port number is recognized as a FINS frame Procedure for Using FINS UDP 1 Make the basic settings Refer to SECTION 2 Startup Procedure in the Operation Manual Construction of Networks L Make the settings in the Unit Setup With the CX Programmer connected online select the Ethernet Unit in the CX Programmer s I O Table Window Right click and select Unit Setup Then make the following settings in the Unit Setup Window Setup Tab e Broadcast e FINS UDP port Default 9600 e IP address table for the IP address table method only L Make the routing table settings and transfer them to each PLC See note Set the routing tables with CX Net and transfer it to each PLC L Create a ladder program that includes the SEND 090 RECV 098 and CMND 490 instructions Note Routing tables are required in the following situations e When communicating with a PLC or computer on another network e g remote programming or monitoring using FINS messages or a CX Pro grammer e When multiple Communications Units are mounted to a single PLC i e CPU Unit e When routing tables are used for one or more other nodes on the same network It is not necessary to set routing tables if one Communications Unit is mounted to the PLC and the nodes are connected as one network 93 FINS TCP Method Sec
106. Unit Service Cycle Local Node 1 CPU Unit cycle time For details refer to the CPU Unit operation manual CPU Bus Unit Service Processing Time Local Node 1 Set peripheral servicing time Default 4 of CPU Unit cycle time For details refer to the CPU Unit operation manual Transmission Processing Time Command Command 0 550 ms Response Number of words sent x 0 002 0 550 ms Transmission Delay Command The transmission delay time will be as follows depending on the baud rate set for the Ethernet Unit There may be additional delays depending on devices such as hubs in the network configuration Baud rate Delay time 100Base TX Command 0 0118 ms Response Number of words sent x 0 0013 0 0118 ms 10Base T Command 0 0157 ms Response Number of words sent x 0 0019 0 0157 ms Reception processing time command Command 0 704ms Response Number of words sent x 0 003 0 704 ms CPU Bus Unit Service Cycle Remote Node CPU Unit cycle time For details refer to the CPU Unit operation manual CPU Bus Unit Service Processing Time Remote Node Set time for peripheral servicing Default 4 of CPU Unit cycle time For details refer to the CPU Unit operation manual CPU Bus Unit Service Cycle Local Node 2 CPU Unit cycle time For details refer to the CPU Unit operation manual CPU Bus Unit Service Processing Time Local Node 2 Se
107. Unit classification CS series CPU Bus Unit Mounting location CPU Rack or Expansion Rack Number of Units that can be mounted 4 max including Expansion Racks Or 4 sets using 2 Units as 1 set for redundant networking including Expansion Racks Transfer specifica tions Media access method CSMA CD Modulation method Baseband Transmission paths Star form Baud rate 100 Mbit s 100Base TX 10 Mbit s 10Base T Transmission media Unshielded twisted pair UDP cable Unshielded twisted pair UDP cable Categories 5 5e Categories 3 4 5 5e Shielded twisted pair STP cable Shielded twisted pair STP cable Categories 100 Q at 5 5e Categories 100 Q at 3 4 5 5e Transmission dis tance 100 m distance between hub and node Number of cascade connections 2 Current consumption Unit 380 mA max at 5 V DC Vibration resistance Conforms to JIS 0040 10 to 57Hz 0 075 mm amplitude 57 to 150 Hz acceleration 9 8 m s in X Y and Z directions for 80 minutes each sweep time 8 minutes x 10 sweeps 80 minutes Shock resistance Conforms to JIS 0041 147m s2 3 times each in X Y and Z directions Ambient operating temperature 0 to 55 C Ambient humidity 10 to 90 with no condensation Atmosphere Must be free of corrosive gas Ambient storage temperature 20 to 75 C Weight 200 g max Dimen
108. Will turn OFF when backup has been completed Memory Card Unit Setup Error Clear Bit Bit 13 Errors that have occurred for the Memory Card Unit Setup function will be cleared when bit 13 is turned ON This bit will turn OFF automatically when the errors have been cleared Do not attempt to change the status of this bit until it turns OFF automatically Memory Card Unit Setup Set Bit Bit 14 The Ethernet Unit will be set up using the text file on the Memory Card when bit 14 is turned ON This bit will turn OFF automatically when the setup has been completed Do not attempt to change the status of this bit until it turns OFF automatically Memory Card Unit Setup Backup Bit Bit 15 The Ethernet Unit setup will be backed up to a text file on the Memory Card when bit 15 is turned ON This bit will turn OFF automatically when the backup has been completed Do not attempt to change the status of this bit until it turns OFF automatically 59 CIO Area Allocations Section 4 1 Network Participation Status Ethernet Unit to CPU Unit Word 13 12 The numbers in the body of the following table are the node address The sta tus of the corresponding bit for each address indicates the following OFF ON 11 Node not participating in network Node participating in network Not used 10 09 08 07 06 05 04 03 02 01 00 60
109. ability it is neces sary to program special measures into the user applications 6 TCP Transmission Control Protocol Performs communications after establishing a connection i e a virtual cir cuit with the destination node providing a highly reliable communications service 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 8 Network Status Generator A proprietary OMRON protocol that monitors the entry withdrawal of nodes in a duplex Ethernet system 1 5 Overview of Communications Functions 1 5 1 FINS Communications Service Basic Functions Note 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 Ethernet UDP or TCP FINS J CS1D CPU Unit Ethernet Unit Ethernet Unit User program SEND 090 RECV 098 or CMND 490 instruction Executing from the host computer FINS commands with UDP IP or TCP IP headers enables various
110. according to FINS messages received from remote nodes This can be used effectively when the remote node is a device such as a personal computer and IP addresses are dynamically changed by a method such as DHCP Example When FINS Command is Sent FINS node number IP address table nee IP address number Node number in it 153 214 0 IP address table 8 53 214 0 62 20 153 214 0 129 PP address 153 214 0 129 23 153 218 51 8 FINS command sent When FINS Command is Received FINS node number Node number not Internal table in IP address table H IP address 153 218 51 10 Changed FINS response returned The combined method combines the IP address table method and the auto matic generation method dynamic First the IP address table is referenced Then if the applicable FINS node address is found the corresponding IP address is read If the FINS node address is not found the IP address is calculated using the automatic genera tion method dynamic The internal table will be as follows FINS Node Address Registered to IP Address Table The following address is registered to the internal table e Remote IP address IP address registered to IP address table e Remote UDP port number UDP port number set for local Unit 77 Section 5 2 IP Addresses in FINS Communications Note e Connection method FINS UDP e FINS Node Address Not Registered to IP Address Table The following address is regis
111. address port number zo Command Response code code Specifies in two bytes the FINS TCP connection number 1 to 16 for which the change is to be made Specifies the remote node s IP address must be non zero in hexadecimal Command Response Reference Section 7 2 Remote Port Number Specifies the remote TCP port number must be non zero with this com Command mand Response Codes Normal Node address setting error Local IP address setting error CPU Unit error execution not possible Command too large Command too small Connection number not set from 1 to 16 Remote IP address set to 0 Remote TCP port number set to 0 Connection already established with specified remote node Specified connection number not set as FINS TCP client in Unit Setup Remote node change processing for specified connection number aborted because change request received during pro cessing 7 2 12 FINS TCP CONNECTION STATUS READ Reads the FINS TCP connection status aa ane Command FINS TCP code connection No Command Block Response Block Command Response FINS TCP Connection Local IP address Local TCP Remote IP Remote TCP TCP transition code code connection service port number address port number No Parameters FIFINS TCP Connection Command Specifies in two bytes the FINS TCP connection number 1 to he cae 16 for which the status is to be read esponse a p Response Specifies the
112. adioactivity e Locations close to power supplies 5 Application Precautions Observe the following precautions when using the Ethernet Unit N WARNING Always heed these precautions Failure to abide by the following precautions could lead to serious or possibly fatal injury e Always connect to a ground of 100 or less when installing the Units Not connecting to a ground of 100 or less may result in electric shock xix Application Precautions 5 e 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 e Mounting or dismounting I O Units CPU Units Memory Packs or Master Units e Assembling the Units e Setting DIP switches or rotary switches e Connecting cables or wiring the system Z Caution Failure to abide by the following precautions could lead to faulty operation of xx the Ethernet Unit or the system or could damage the Ethernet Unit Always heed these precautions e Fail safe measures must be taken by the customer to ensure safety in the event of incorrect missing or abnormal signals caused by broken signal lines momentary power interruptions or other causes e Interlock circuits limit circuits and similar safety measures in external cir cuits i e not in the Programmable Controller must be provided by the customer e Always use the power supp
113. age Communications FINS message communications are compatible and interchangeable with ear lier non duplex Ethernet Units Expandable number of nodes up to 254 nodes max e FINS UDP protocol which uses UDP IP e FINS TCP protocol which uses TCP IP Up to 16 simultaneous connec tions are allowed and the keep alive function is supported Network Connection to Controller Link It is also possible to interconnect the Ethernet information network with the Controller Link control network using the FINS communications service func tions This feature allows a PLC in the Ethernet network to monitor a PLC in the Controller Link network Conversely a PLC in the Controller Link network can read or write data in a PLC in the Ethernet network Full Set of Troubleshooting Functions A variety of functions are available so that network problems can be identified and corrected quickly e Self diagnostic functions at startup e Check connections with other nodes using the PING command e Check connections with other nodes using the internode test e Error log function records error information when errors occur e E mail notification of error events e Online replacement of Units System Configuration Section 1 3 1 3 System Configuration 1 3 1 System Configuration 2 Twisted pair cable 3 Hub 1 CS1D Ethernet Unit CX Programmer ae ie 100Base TX CX Net FinsGateway 100 m max
114. air or modify any Units Any attempt to do so may result in malfunction fire or electric shock Execute online editing only after confirming that no adverse effects will be caused by extending the cycle time Otherwise the input signals may not be readable Operating Environment Precautions 4 e Emergency stop circuits interlock circuits limit circuits and similar safety measures must be provided in external control circuits A 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 4 Operating Environment Precautions A Caution Do not operate the control system in the following locations e Locations subject to direct sunlight e Locations subject to temperatures or humidity outside the range specified in the specifications e Locations subject to condensation as the result of severe changes in tem perature e Locations subject to corrosive or flammable gases e Locations subject to dust especially iron dust or salts e Locations subject to exposure to water oil or chemicals e Locations subject to shock or vibration N Caution Take appropriate and sufficient countermeasures when installing systems in the following locations e Locations subject to static electricity or other forms of noise e Locations subject to strong electromagnetic fields e Locations subject to possible exposure to r
115. an be used at a time and they are identified by connection numbers 1 to 16 The Ethernet Unit can thus simultaneously execute the FINS communications service by TCP with up to 16 remote nodes Default Use IP address to protect The following settings can be made for each connection number FINS TCP Mode When this option is selected if the Ethernet Unit is set for use as a server and if a connection number other than 00 00 00 00 is set for a destination IP address any connection request from other than the number set for that IP address will be denied Select this option to prevent faulty operation by FINS commands from specific nodes from affecting the PLC Contents For each connection number this setting specifies the Ethernet Unit for use as either a server or a cli ent e 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 Connection num bers are used in ascending order and allocated to clients in the order connections are made e When the Ethernet Unit is used as a client The Ethernet Unit establishes a connection with the server set as the destination IP address Once the connection has been established FINS TCP is used for FINS communications Default Server IP Address 54 e When the Ethernet Unit is used as a server If the option is selected to use IP addresses t
116. and too long send failed Header error send failed Internal buffers full packet dis carded Illegal packet discarded Local node busy send failed Unexpected routing error No setting in IP address table packet discarded Service not supported in current mode packet discarded Internal send buffer full packet discarded Maximum frame size exceeded routing failed 1st byte Commands Bit 15 Bits 08 to 14 Bits 00 to 07 Responses Bit 15 Bits 08 to 14 Bits 00 to 07 2nd byte Check transceiver at remote node Set the IP address correctly Check the connection to the remote node Check the unit address at the remote node Troubleshoot the error in the CPU Unit using the PLC operation manual Set the destination address in the routing tables Set the local node remote node and relay nodes in the routing tables Create the routing tables correctly Reconstruct the network or cor rect the routing tables so that commands are sent to within a 3 level network range Check the command format and set the correct command data Check the command format and set the correct command data Change the network so that traffic is not concentrated Check for nodes sending illegal packets Change the network so that traffic is not concentrated Check the routing tables Set the remote node in the IP addr
117. ansport Layer UDP Port No TCP Port No Internet Layer IP Address Ethernet Physical Layer 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 CS1D ETN21D CS1W ETN21 and CJ1W ETN21 support FINS communications using TCP IP In this manual this is called the FINS TCP method 90 Overview of FINS Communications Section 6 1 6 1 2 Using the FINS UDP and FINS TCP Methods It is recommended that FINS UDP and FINS TCP be used as follows e When using a duplex Ethernet network Use the FINS UDP method for Duplex Ethernet Units e When remote devices do not support the FINS TCP method Use the FINS UDP method for FINS communications with those devices e 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 e When FINS nodes are connected over multiple IP network layers Use the FINS TCP method between those nodes Note FINS TCP offers superior communications quality e When the quality of connections is unreliable as with wireless LAN Use the FINS TCP method between those nodes Note FINS TCP offers superior communications quality 6 1 3 FINS Communications Service Specifications for Ethernet Item S
118. ary Unit IP address 192 168 250 2 Primary Unit Unit number 0 Secondary Unit node address 2 Secondary Unit IP address 192 168 251 2 Secondary Unit Unit number 0 Ethernet port Primary Network address 1 Secondary Network address 2 FINS UDP method Target PLC1 CX Programmer s Change PLC Dialog Box Settings for target PLC PLC1 s Change PLC Dialog Box Setting PLC name PLC1 Network classification Ethernet Network Tab FINS transmission source address 0 FINS destination Network number 0 Node address 2 Frame length 2 000 bytes Response monitor time 2 seconds Driver Tab Workstation node address 1 Automatic generation method Not selected IP address 192 168 250 2 Pri mary Unit IP address Port number 9600 CX Programmer s Unit Setup Setup Tab 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 103 Using FINS Applications Section 6 5 Example Inputs to the CX Programmer s Setup Window Example Change PLC Settings Change PLC Example Network Settings Network Tab Network Settings Ethernet pr ra 7 prz Hode rit fe 0 Link Unit Number Networks Wperating Leve Host Fa 104 Using FINS Applicati
119. ation items are returned in the following sequence ONO Nn 10 11 12 13 14 15 16 17 The total number of packets received The number of packets received continuously The number of bytes received continuously The number of received packets discarded due to an incorrect checksum The number of packets discarded because the TCP header was smaller than the minimum size for a TCP header or was larger than the IP packet The number of packets discarded because the TCP header and IP header could not be stored in the first short buffer The number of resent packets received The number of bytes in the resend packets The number of duplicated resend packets received The number of bytes in the duplicated resend packets received The number of out of range data packets received Always 0 The number of bytes in the out of range data packets received Always 0 The number of packets where the data was larger than the window The number of bytes in the packets where the data was larger than the win dow The number of packets received after closing The number of window probe packets received The number of resent ACK packets received Command Response Reference Section 7 2 UDP Status Response 1 2 3 Precautions Response Codes 18 The number of ACK packets received with no data set 19 The number of ACK packets received 20 The number of ACK packets received for received transmission acknowl
120. ations Method Pairing in the FINS TCP Method Note 78 With the FINS TCP method communications are first established for each 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 Therefore with the FINS TCP method there is no need to set IP address conversions i e pairing FINS node addresses with IP addresses as with FINS UDP All that is required is to use the CX Programmer s Unit setup to set the remote IP address for each connection The internal table is changed after connections are established IP Addresses in FINS Communications Section 5 2 Internal Processing The Ethernet Unit executes the following processing when the FINS TCP method is used Local Device Is FINS TCP Client 1 2 3 1 4 5 Connections are established in TCP IP protocol with the IP addresses set at the Unit i e the IP address for each connection No The remote node i e the server is notified of the FINS node address for the local device Notification is received from the remote node i e the server of the re mote node s FINS node address The Ethernet Unit changes the internal table FINS node address IP ad dress and TCP port number FINS messages can then be sent and received Local Device Is a FINS TCP Server 1 2 3 1 Persona
121. ations for 100Base TX Ethernet Units including functions for send ing receiving mail socket service automatic clock adjust ment FTP server functions and FINS communications CS1W ETNO1 CS1W ETN11 CJ1W ETN11 Ethernet Units Oper ation Manual Describes the installation and operation of the 10Base 5 and 10Base T Ethernet Units CS1G H CPU CS1G H CPU CS1W SCU21 CS1W SCB21 41 CJ1G H CPU CJ1G CPU CJ1W SCU41 H Communications Commands Refer ence Manual Describes the C series Host Link and FINS communica tions commands used when sending communications commands to CS series and CJ series CPU Units CS1D CPU CS1D CPU CS1D DPL1 CS1D PA207R Duplex System Operation Manual Provides an outline of and describes the design installa tion maintenance and other basic operations for a Duplex System based on CS1D CPU Units CS1G H CPU CS1G H CPU Programmable Con trollers Operation Manual Provides an outline of and describes the design installa tion maintenance and other basic operations for the CS series PLCs Information is also included on features system configuration wiring I O memory allocations and troubleshooting Use together with the Programmable Controllers Pro gramming Manual W394 CS1G H CPU CS1G H CPU
122. ators The LNK indicator will light when communications are possible between the Ethernet Unit and hub This indicator can thus be used to determine if there are any faults or faulty connections in the Units cables and hub Once the LNK indicator is lit the 100M indicator can be used to determine the baud rate The default setting of the baud rate of the Ethernet Unit is set to automatically detect the network baud rate If 100Base TX is detected the 100M indicator will light If 10Base T is detected the 100M indicator will not light The Ethernet Unit can be set either to detect the baud rate or to use 10Base T The DPL indicator will light when the Ethernet Unit is set for duplex communi cations Use it to confirm this duplex settings DPL Indicator Lit The Ethernet Unit is set as the Primary Unit for duplex operation DPL Indicator Not Lit The Ethernet Unit is set as the Secondary Unit for duplex operation DPL Indicator Flashing The Ethernet Unit is set for non duplex operation If Ethernet Units are being used for a duplex network network status will be broadcast periodically The SD and RD indicators will flash when network sta tus is broadcast SD and RD Indicators Flashing The Ethernet Unit is participating normally in the network 45 Communications Test Section 2 11 SD Indicator Flashing RD Indicator Not Lit The Ethernet Unit is not participating normally in the network Check for other Ethernet Units
123. ays Ignoring Network Delays esti mate the total processing time for all of the FINS frames processed at that node 3 Set the timeout value for all of the SEND 090 RECV 098 and CMND 490 FINS commands at all the remote nodes to at least 1 5 times the total processing time for all of the FINS frames 4 As much as possible implement communications traffic testing up to the point of actual system operation If any problem occurs adjust the traffic 5 Ifacommercially available protocol analyzer can be used then the actual FINS frame processing time i e the time from when a command is re ceived at the Ethernet Unit until a response is sent can be measured un der high traffic conditions and the communications traffic can be further adjusted as required 131 Precautions on High Traffic in FINS Communications Section 6 8 132 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 7 1 Command Codes and Response Codes 0 000000 e eee eee 134 7 1 1 Command Code List 0 0 00 ee ee 134 7 1 2 Response Code List 0 0 0 0 0 e eee eee eee 134 7 2 Command Response Reference 0 0 0 eee eee eee 135 7 2 RESEP geek bs esa eae aa thet RAS es git oe ne 8 ad 135 7 2 2 CONTROLLER DATA READ 00000000000 136 7 2 3 CONTROLLER STATUS READ
124. ber of Errors Sent Response Total Number of Send Collisions Response 138 Section 7 2 10 9 8 7 6 5 4 3 2 1 0 Bit 02 IP address error Bit 03 IP address table error Bit 04 IP router table error Bit 06 Routing table error Bit 12 Memory Card Unit Setup Setting error Bit 13 Memory Card Unit Setup file access error Bit 14 Address disagreement Bit 15 EEPROM error The cause of each error is listed below IP Address Error All bits for the network number or host number are set to 0 or 1 IP Address Table Error More than 32 records exist in the IP address table IP Router Table Error More than 8 records exist in an IP router table Routing Table Error Local network table contains 0 or more than 16 records Relay network table contains more than 20 records Memory Card Unit Setup Setting Error There is an error in a setting in the Unit Setup file on the Memory Card Memory Card Unit Setup Access Error There was an error in accessing the Unit Setup file on the Memory Card 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 The total number of packets received by the Ethernet Unit is returned The total number of errors detected while the Ethernet Unit was receiving is returned The types of
125. ce sockets all open sockets for sockets services FTP server or mail transmission are closed immediately before resetting Response Codes 1001 Command too large 7 2 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 05 01 Command code Command Block Response Block Command Response Model Version IP address Subnet FINS UDP Mode Ethernet address code code mask port number setting Parameters Model Version The CS1D Ethernet Unit mode and version are returned as ASCII characters Response occupying 20 bytes each i e 20 characters each If all bytes are not used the remaining bytes will be all spaces ASCII 20 Hex Example Model CS1D ETN21D Version V1 00 IP Address Subnet Mask The Ethernet Unit s IP address and subnet mask are returned as 4 bytes Response each FINS UDP Port Number The Ethernet Unit s UDP port number for FINS is returned as 2 bytes Response Mode Setting Response The mode setting in the system setup is returned Broadcast address setting IP address conversion method UDP port No setting for FINS TCP port No setting for FINS TCP Transmission speed setting 136 Command Response Reference Section 7 2 Ethernet Address Response Response Codes Broadcast Address Setting 0 Broadcast with host number set to all ones 4 3BSD specifications 1 Broadcast with
126. convenient to prepare in advance as may node text files as possible in the root folder 198 Numerics 100M indicator 18 A applications precautions xix ARP communications 12 ASCII characters 183 Auto allocated FINS node field 55 Auxiliary Area 114 baud rate CS series 11 setting 44 Baud Rate field 53 bits addresses 66 error status 62 63 163 service status 61 status of UDP TCP sockets 61 BROADCAST DATA SEND 141 Broadcast field 52 broadcast setting 44 broadcast test command 141 reading results 141 BROADCAST TEST RESULTS READ 141 buffers 155 177 configuration 179 C C200H PRO27 E 36 cables communications xxi connections 35 installation 33 precautions 32 twisted pair 7 CS series 11 cascade connections 32 CS series 11 CIO Area 114 Index allocations 58 CMND 490 instruction 13 117 commands FINS commands 134 communications cables xxi Communications Port Enabled Flags 66 119 Communications Port Error Flags 119 connectors recommended models 31 Contact Output Units installation 33 interference with Ethernet 33 precautions 33 CONTROLLER DATA READ 136 CONTROLLER STATUS READ 137 139 Conversion field 53 Counter Area 114 CPU Bus Unit Error Flag 67 CPU Bus Unit Error Unit Number Flags 67 CPU Bus Unit Initializing Flags 66 CPU Bus Unit Number Duplication Flags 67 CPU Bus Unit Restart Bits 70 CPU Bus Unit Setting Error Flag 67 C
127. crews to a torque of 0 4 N m CPU Backplane for Duplex CPU System CS1D BC052 CPU 5 slots CS1D Bl092 Expansion Backplane for Online Unit Replacement Can mount to any position with 8 slots Up to four Units or four pairs of Duplex Units can be mounted to the slots shown in the diagrams on the left Can mount to any position with 9 slots 9 slots Note The CS1D ETN21D CS1D Ethernet Unit s maximum current consumption is 380 mA Make sure that the total current consumption of all the Units con nected to the same CPU Backplane or Expansion Backplane does not exceed the output capacity of the Power Supply Unit 2 4 2 Mounting to a CS1D Single CPU System Note Ethernet Units can be mounted to any slots in either a CS1D Single CPU Sys tem CPU Rack or an Expansion CPU Rack for Online Unit Replacement Up to four CS1D Ethernet Units or four pairs of Duplex CS1D Ethernet Units can be mounted to a single PLC If it is mounted in combination with other CPU Bus Units e g Controller Link Units the maximum total number of CPU Bus Units that can be mounted is 16 Tighten PLC Backplane mounting screws to a torque of 1 2 N m and the Unit s screws to a torque of 0 8 N m 29 Network Installation Section 2 5 CPU Backplane for Single CPU System CS1D BC082S D gt roan Can mount to any position w
128. ctions 1 2 3 1 2 3 The procedure for setting FINS TCP connections involves the items described below The settings are made individually for each connection numbers 1 to 16 under FINS TCP settings in the Unit Setup Local Device Is Server 1 Set the server 2 Set IP addresses for connected devices If the option for protection by IP addresses is checked set the IP address es for clients where connections are permitted This can be omitted 3 Automatic FINS node address allocation If the client generally a personal computer supports FINS TCP and if it is to be used without setting a FINS node address the value set here from 239 to 254 can be allocated to the client Functions related to these settings are explained in detail in the Operation Manual Construction of Applications Creating Host FINS Communication Applications The default settings should normally be used Local Device Is a Client 1 Set the client 2 Set the IP addresses for the connection destination Set the IP address for the remote Ethernet Unit i e the server connected by FINS TCP This setting must be made if this Ethernet Unit is to be used as a FINS TCP client 5 2 3 Application Examples Responding to Computers with Changed IP Addresses FINS UDP Communications Method 80 With FINS UDP whether using the automatic conversion method dynamic the IP address table method or the combined method remote FINS node
129. d of records table records table records of stored records records The number of records to read is specified between 0000 and 0008 0 to 8 decimal in the command If this value is set to 0 the number of stored records will be returned but the IP router table records will not be returned The response returns the actual number of records read The maximum number of records that can be stored in the IP router table is returned The maximum number of stored records is fixed at 0008 8 records The number of IP router table records stored at the time the command is exe cuted is returned in hexadecimal The number of IP router table records specified in the number of records parameter is returned The total number of bytes in the IP router table records is calculated as the number of records x 8 bytes record The configuration of the 8 bytes of data in each record is shown below 1 8 bytes SS IP Network address Router IP address Network ID IP Network Address The network ID from the IP address in hexadecimal The network ID part cor responding to the address class determined by the leftmost 3 bits set here is enabled Refer to page 13 Router IP Address The IP address in hexadecimal of a router connected to a network specified with IP addresses 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 comma
130. ddress Local IP address IP address FINS command Ethernet P address FINS response 76 IP Addresses in FINS Communications Section 5 2 IP Address Table Method Combined Method With this method FINS node addresses are converted to IP addresses based on a correspondence table IP address table that is preset in the Unit setup The IP address table is set using the CX Programmer in P Address Table under Settings in the Unit Setup It can be registered for nodes in different segments and with different network numbers The internal table will be as follows FINS Node Address Registered to IP Address Table The following address is registered to the internal table e Remote IP address IP address registered to IP address table e Remote UDP port number UDP port number set for local Unit e Connection method FINS UDP FINS Node Address Not Registered to IP Address Table The following address is registered to the internal table e Remote IP address 0 0 0 0 e Remote UDP port number UDP port number set for local Unit e Connection method FINS UDP With the IP address table method records of FINS nodes registered to the IP address table are not changed dynamically For all others node the data from FINS nodes registered with a remote IP address of 0 0 0 0 can be dynami cally changed when the Unit is turned ON or restarted
131. diagram program in the PC SEND 090 ail 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 Local node Destination node number N 15 0 Number of words n 15 0 gt s Ed S Local node beginning word D Destination beginning word C First word of control data below 15 0 ol oo aa aaa il Number of words n 0001 to 03DE Hex 1 to 990 words 15 11 87 0 culo 0 pr l Destination network number 0 Hex Local network Of to 7F Hex 1 to 127 87 0 T T ee 2 Destination unit address 00 Hex CPU Unit 10 to 1F Hex Unit 0 to 15 E1 Hex Inner Board FE Hex Destination node number N 00 to 7E Hex 0 to 126 C 4 L Number of retries 0 to F Hex 0 to 15 retries Communications port number 0 to 7 Response 0 Required 1 Not required L Response monitor time 0000 Hex 2 s 0001 to FFFF Hex 0 1 to 6 553 5 s in units of 0 1 s Unit connected to network The same data can be broadcast to all nodes on the network by setting the destination node number to FF Hex The range of node addresses is different for networks other than Ethernet Note Messages may not always arrive at the destination node for the message ser vice It is pos
132. displayed Network Tab This is the primary network unit setting window ETN_UNIT Properties x UDP Nodes TCP Nodes Duplex Settings Network status About Network Settings Communication Unit Settings Network Number fol Local Node Address 100 Communication Unit No 17 Cancel Apply e Network number Set the network number of the primary network for the personal computer Ethernet port e Local node address Set the personal computer Ethernet port node address 1 to 254 on the Duplex Ethernet network e Communication unit number Set the unit number of the Primary Unit in decimal 16 to 31 for the personal computer Ethernet port 107 108 Using FINS Applications Section 6 5 Communications Unit Tab This is the setting window for the Primary Communications Unit x UDP Nodes TCP Nodes Duplex Settings Network status About Network Settings Communication Unit Settings UDP Port Number a600 m Primary Network Card IPAddress 10 3 67 175 DHCP TRUE 3Com 3C90x Ethernet Adapter x M FINS IP Conversion i c Automatic Generation Static Do not support DHCP client IP Table Automatic Generation IP Address Table J Generate node address from IP address Cancel Apply e UDP port number Set the local UDP port number for the personal com puter Ethernet port The default is 9600 e Priority Network Card Select the Network Card for t
133. e 155 Command Response Reference Section 7 2 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 1 2 3 1 Short Buffer Application Two items are returned 8 bytes a The number of short buffers currently being used b The number of short buffers in the system fixed at 1 472 decimal 2 Short Buffer Application by Type Thirteen items are returned 52 bytes a The number of short buffers used for storing communications data b The number of short buffers used for protocol headers TCP UDP IP ICMP ARP c The number of short buffers used in socket structures d The number of short buffers used as protocol control blocks e The number of short buffers used for routing tables f Not used always 0 g Not used always 0 h The number of short buffers used for IP fragment re assembly queue headers i The number of short buffers used for storing socket addresses j Not used always 0 k The number of short buffers used for storing socket options The number of short buffers used for storing access rights m The number of short buffers used for storing interface addresses 3 Long Buffer Application Two items are returned 8 bytes a The number of long buffers currently being used b The number of long buffers in the system fixed at 64 decimal 4 Not Used Always 0 4 bytes 5 Network Memory Application Two ite
134. e Bit 13 This bit is ON if the Ethernet Unit is set in Duplex Mode and OFF if the Unit is set in Simplex Mode The DPL indicator on the Ethernet Unit shows this status as follows Not lit Operating in Simplex Mode Bit 13 OFF Link Status Bit 14 This bit is ON if a link has been established with the hub It is OFF if there is no link established with the hub 61 CIO Area Allocations Error Status Ethernet Unit to CPU Unit 15 n 18 E following diagram 14 13 12 11 10 Section 4 1 The status of errors that occur at the Ethernet Unit is reflected as shown in the Bit 02 IP address setting error Bit 03 IP address table error Bit 04 IP router table error Bit 06 Routing table error Bit 12 Memory Card Unit Setup setting error Bit 13 Memory Card Unit Setup file access error Bit 14 Address disagreement Bit 15 EEPROM error Status Manipulated by Not used Unit operation IP address setting error ON if any of the following conditions apply to the IP address e All bits in the host ID are 0 or 1 e All bits in the network ID are 0 or 1 e All bits in the subnet ID are 1 e The IP address begins with 127 0x7F OFF when the IP address is normal IP address table error ON if the IP address table information is incorrect OFF when the IP address table is normal IP router table error ON if the IP router table information is incorrect OFF when the
135. e Power Can Not Be Turned OFF 1 2 3 48 6 Check to be sure the RUN indicator on the new Ethernet Unit lights and that communications are actually restarted 1 To minimize the time required for Unit replacement set the unit number and node address on the new Ethernet Unit to the same values as on the Ethernet Unit being replaced in advance 2 Go online from the IO Table Window in CX Programmer version 4 0 or higher and select the Ethernet Unit in the IO Table Window T PLC IO Table NewPLC1 5 x File Options Help CS1D H GPU65 q 0000 Main Rack HE00 1500 CS1D Ethernet Unit ED 0 g 01 1525 CS1D Ethernet Unit ED 4 7 02 0000 Empty Slot 7 03 0000 Empty Slot 7 04 0000 Empty Slot 7 05 0000 Empty Slot 7 06 0000 Empty Slot 7 07 0000 Empty Slot 7 08 0000 Empty Slot g 09 0000 Empty Slot 0000 Rack 01 0000 Rack 02 H t 0000 Rack 03 0000 Rack 04 J amp 0000 Rack 05 0000 Rack 06 lt 0000 Rack 07 CSID H GPU65 Program 4 3 Right click and select Hot Swap from the following pop up menu Vo YVI MY NL G200H High Speed Counter Unit C200H Numerical Control Unit N G200H SIOU C200H ASCI Unit A SYSMAG BUS Master Interrupt Unit 8 Bit Interrupt Unit 6 Bit PC Link Unit LK401 Software Switches Unit Setup Unit Manufacturing information Unit Error Log C2004 SIO JU Setup
136. e Correction EE code 1st byte 2nd byte PROM Participating nodes decreased Number of Inspect the separated node local node separated separated cables and hub nodes Participating nodes decreased Number of local node not separated separated nodes Separated nodes when participat Nodes 1 to 16 correspond to ing nodes decreased bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 17 to 32 correspond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 33 to 48 correspond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 49 to 64 correspond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 65 to 80 correspond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 81 to 96 correspond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 97 to 112 correspond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 113 to 128 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 129 to 144 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 145 to 160 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 161 to 176 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2 Bits 0 to 7 Nodes 177 to 192 corre spond to bits 00 to 15 Byte 1 Bits 0 to 15 Byte 2
137. e Definition Dialog Box Node address 2 IP address 192 168 250 2 TCP port number 9600 Keep alive Selected yes 6 6 Communicating between OMRON PLCs FINS commands can be sent from the user s ladder diagram program in the PLC by using the SEND 090 RECV 098 and CMND 490 instructions SEND 090 Writes I O data from the local node to another node RECV 098 Reads I O data from another node to the local node CMND 490 Issues FINS commands for controlling operations such as send ing and receiving I O memory data to and from other nodes reading informa tion regarding other nodes and so on 6 6 1 Communications Specifications The following table shows the specifications for PLC communications using the SEND 090 RECV 098 and CMND 490 instructions Item Specifications Destination 1 1 SEND 090 RECV 098 CMND 490 instructions 1 N SEND 090 CMND 490 instructions broadcasting Data length SEND 090 990 words 1 980 bytes max broadcasting 727 words 1 454 bytes RECV 098 990 words 1 980 bytes max CMND 490 1 990 bytes max broadcasting 1 462 bytes after FINS com mand code 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 CMND 490 Sends any FINS c
138. e enabled by using this table e IP address conversion using the FINS UDP method e Automatic FINS node address conversion after a connection is established using the FINS TCP method e Automatic client FINS node address allocation using the FINS TCP method e Simultaneous connection of multiple FINS applications 91 FINS UDP Method 6 2 FINS UDP Method 6 2 1 Overview FINS UDP Features FINS UDP Frame Format 92 Section 6 2 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 If using TCP is like making a tele phone call then UDP is more like delivering a memo by hand Although the UDP protocol is fast data communications are less reliable than with TCP In particular when sending large amounts of data involving significant routing the user must program measures such as retries into applications in order to improve reliability Data transmission 1 Data transmission 2 Data transmission 3 Data is sent in one direction with no confirmation of whether the data was received Because there are few procedures involved data can be sent at high speed but with less reliability than with TCP The FINS UDP method has the following features e Because FINS UDP is a connectionless protocol there is no limit t
139. e select duplicated Only primary side J Communications Unit Communications Unit 1 m Communications Unit 2 m Communications Unit 3 7 Communications Unit 4 m Communications Unit 5 m Communications Unit 6 yj 51D Communications Unit 0 M CS1D Communications Unit 1 7 CS1D Communications Unit 2 7 CS1D Communications Unit 3 M CS1D Communications Unit 4 A 051D Communications Unit 5 7 CS1D Communications Unit 6 7 CS1D Communications Unit 7 gt m Communications Unit 7 gt OS1D H OPU5 Program 4 Transfer the PLC Setup to the PLC Click the Yes Button in the following dialog box AN Are you sure you want to download these settings to the PLC You may need to reset the PLC to effect some setting changes 5 Turn OFF the power supply to the PLC 6 Set the unit number of the Secondary Unit to the same number as that of the Primary Unit 7 Turn ON the power to the PLC Note 1 Before creating the I O tables always set the unit number of the Second ary Unit to one higher than that of the Primary Unit 2 Always use the procedure given in 2 3 Switch Settings to set the unit number Duplex operation will not be possible for the Ethernet Units if this procedure is not used 3 Always create the I O tables before enabling duplex communications in the PLC Setup Duplex operation will not be possible if duplex communi cations are enabled before creating the I O
140. ed 0 default 1203 0 0 0 0 Table used Send Network Status IP Address Table IP Router Table Interval time fo ms z z Feat Delete D default 2 Watch time fo ms 0 default 60 CS1D H GPU65 Program 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 When the IP address is set by the CX Programmer and the defaults are used for all other Unit settings the settings will be as shown below IP address Set by CX Programmer Subnet mask Uses value corresponding to IP address class 4 3BSD specifications Broadcast settings Baud rate Auto TCP IP keep alive 120 minutes IP router table Not set IP routing not supported E Subnet Mask For the subnet mask all bits corresponding to the bits in the IP address used as either the net number or the subnet number are set to 1 and the bits corre sponding to the host number are set to 0 These settings must be made when using an address conversion method other than the IP address table method 43 Basic Settings Section 2 10 If no subnet mask is set or if an illegal value is set the following values will be used depending on the IP address class Class Subnet mask 255 0 0 0 255 255 0 0 255 255 255 0 With the default setting 0 0 0 0 a subnet mask corresponding to the IP address class is used E Broadcas
141. eed Ethernet communications cannot proceed if the IP address is not set correctly 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 allocated to the Unit as a CPU Bus Unit or in the CPU Bus Unit System Setup For details refer to 2 8 Enabling Duplex Communications 5 1 4 Subnet Masks Operation and management of a network can become very difficult if too many nodes are connected on a single network In such a case it can be help ful to configure the system so that a single network is divided up into several subnetworks Internally the network can be treated as a number of subnet works but from the outside it acts as a single network and uses only a single Network ID To establish subnetworks the Host ID in the IP address is divided into a Sub net ID and a Host ID by using a setting called the Subnet Mask The Subnet Mask indicates which part of the Host ID is to be used as the Subnet ID All bits in the Subnet Mask that correspond to the bits in the IP address used either as the Network ID or Subnet ID are set to 1 and the remaining bits which correspond to the bits in the IP address actually used for the Host ID are set to 0 The following example shows the Subnet Mask for an 8 bit Subnet ID used in a class B IP address Bit 31 15 0 Class B 1 0 Network ID 14 bits Host ID 16 bits Subnet mask 1111111111111111 111111110000
142. en 185 F Unspecuons syr se ost ey eee Bee 4 beeen bas Wo peas Seta eek geen 187 G Using a Memory Card Text File to Set Up an Ethernet Unit 0 00 189 UNO ei el Gas Ke 8 oe OS wee SS TaOPT ies ee ease LOD Revision History es00 0 4 sasecae ine caverasis vas tawess 205 viii About this Manual This manual describes the installation and operation of the CS1D ETN21D Ethernet Unit for CS1D PLCs 100Base TX and includes the sections described below Please read this manual carefully and be sure you understand the information provided before attempting to install or operate the CS1D Ethernet Unit Be sure to read the precautions provided in the following section Precautions provides general precautions for using the CS1D ETN21D CS1D Ethernet Units 100Base TX Section 1 introduces the features describes the system configuration and Unit parts and provides Unit specifications Section 2 explains how to install the Ethernet Unit and make the initial settings required for operation Section 3 provides information for setting communications using CX Programmer Section 4 describes the words allocated in the CIO Area and the DM Area for Ethernet Units Section 5 explains how to manage and use IP addresses Section 6 provides information on communicating on Ethernet Systems and interconnected networks using FINS commands Section 7 describes the FINS commands that can be sent to an Ethernet Unit and the responses
143. ent computer Firewall Sending mail Receiving mail 2 Intranet Ethernet Unit Private address Internet E mail can be sent and received through the Internet i l ee FINS communications IP router FTP i i Socket CX Programmer etc FINS TCP client computer Firewall i l l Communications in Intranet I i Ethernet i l l l l l l l l l l l Communications l in Intranet l Ethernet Unit Private address Ethernet Unit Private address l EESE S E E ees oes ee E S S J Conditions for Using When the Ethernet Unit has a private address communications applications Communications can be used under the following conditions Applications FINS Communications Service e FINS communications service is enabled only between Ethernet Units with private addresses on the intranet A device such as a personal computer with a FINS application including a CX Programmer cannot connect online and communicate over the Internet with an Ethernet Unit that has a private address FINS communi cations over the Internet are also not possible between Ethernet Units with private addresses Either FINS TCP or FINS UDP can be used for the FINS communications service e With FINS UDP all of the Ethernet Unit IP address conversion methods can be used 86 Private and
144. er and IP addresses are dynamically changed by a method such as DHCP Ethernet Unit CPU Unit Personal computer ial Remote FINS node number Change Local FINS node number 21 Must be fixed registration Automatic generation Local FINS node number es dynamic setting A an be cnangea Internal table Local IP address 3 i Remote IP address Local IP address IP address FINS command Ethernet IP address FINS response For the remote IP address a response is returned to the changed IP address Automatic Generation With the static method as well the following values are set for addresses in Static the internal table when the Ethernet Unit is turned ON or restarted e Remote IP address Local IP address network number remote FINS node address e Remote UDP port number UDP port number set for local Unit e Connection method FINS UDP With the static method however data in an internal table that has been gener ated is not freely changed Ethernet Unit CPU Unit Remote FINS node number Personal computer Local FINS node number Must be fixed Automatic generation static setting Internal table Local FINS node number ry A Must be fixed Y Local IP address z y Y Remote IP a
145. eriod of one year or other period if specified from date of sale by OMRON OMRON MAKES NO WARRANTY OR REPRESENTATION EXPRESS OR IMPLIED REGARDING NON INFRINGEMENT MERCHANTABILITY OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE OMRON DISCLAIMS ALL OTHER WARRANTIES EXPRESS OR IMPLIED LIMITATIONS OF LIABILITY OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS 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 INNO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY REPAIR OR OTHER CLAIMS REGARDING THE PRODUCTS UNLESS OMRON S ANALYSIS CONFIRMS THAT THE PRODUCTS WERE PROPERLY HANDLED STORED INSTALLED AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION ABUSE MISUSE OR INAPPROPRIATE MODIFICATION OR REPAIR xiii 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 applicab
146. ess field 52 54 IP Address Table field 53 IP ADDRESS TABLE READ 148 IP addresses allocating 72 configuration 72 setting 42 IP communications 12 IP addresses reading from Units 136 reading tables 148 IP router tables reading 149 status 151 IP Router Table field 53 IP ROUTER TABLE READ 149 IP router tables 44 K keep alive field 55 keep alive setting 44 L limit circuits xx LNK indicator 19 locking devices precautions xx Low Voltage Directive xxi M main response code 134 See also MRES maintenance 185 media access method CS series 11 MEMORY STATUS READ 155 mode settings reading from Unit 136 modulation method CS series 11 mounting Racks 29 MRES 134 N Network Tab 103 networks network memory 155 180 No field 54 node addresses setting 28 Node Number Switches 17 noise Xix Contact Output Units 33 201 202 O online editing xviii operating environment ambient humidity CS series 11 ambient temperature CS series 11 precautions xix P PCMR 260 instruction 120 PING 46 143 application examples 47 echo test 46 port numbers UDP port reading from Unit 136 power supply xix precautions xx precautions xvii applications xix Contact Output Units 33 general xviii inspections 187 189 installation 29 30 operating environment xix power supply xx replacing Units 185 safety xviii wiring 35 Programming
147. ess of the Primary Unit UDP port number Set the local UDP port number for the personal com puter Ethernet port The default is 9600 Secondary network card Select the Network Card for the secondary network Network status interval time Set the time interval for sending network status via the network status send service The default is 2 ms Network status watch time Set the monitoring time for detecting a node not partici pating in the network when receiving status in response to the network status send service The default is 50 ms Network status UDP port Set the UDP port number that is used to send network number status The default is 9602 110 Using FINS Applications Section 6 5 3 Starting FinsGateway ETN_UNIT Service Select ETN_UNIT from Services under the Basic Tab in the FinsGateway Setup Window and then click the Start Button m System Configuration Example 3 Connecting the CX Programmer Online Via a Duplex Ethernet Network The following conditions must be met to connect online from a CX Program mer CX Net on the duplex Ethernet network to a PLC PLC 1 below on the duplex Ethernet network Conditions e Duplex Ethernet network e FINS UDP method e IP address conversion Automatic generation method dynamic CX Programmer CX Net IP address conversion Primary Unit node address 1 i Automatic generation method dynamic Primary Unit IP address 192 168 250 1 Ethernet Unit Primary Unit Unit number 10
148. ess table Select the IP address table or both methods for the address con version method Change the network so that traffic is not concentrated Reduce the size of events 166 Logic error in setting table 01 Data link table 02 Network parameters 03 Routing tables 04 Unit Setup 05 CPU Bus Unit Words CIO DM Recreate the data specified by the 2nd byte of the detailed error code Section 8 3 Parameter error packet discarded 1st byte Commands Bit 15 Bits 08 to 14 Bits 00 to 07 Responses Bit 15 Bits 08 to 14 Bits 00 to 07 2nd byte OFF SNA SA1 ON DNA DA1 Check the command format and set the correct command data Error Log Error Meaning Detailed error code Correction EE code PROM FINS TCP setting error 01 to 10 Connection number 01 Automati cally allo cated FINS node address duplication 02 Destina tion IP address error 03 Destina tion port number error Refer to 1 5 1 FINS Communica tions Service in this manual and the Operation Manual Construc tion of Applications Creating FINS Applications and set the FINS TCP settings correctly 167 Error Log Section 8 3 Error Meaning Detailed error code Correction EE code PROM FINS TCP packet discarded 1st byte 01 to 10 Connection number 2nd byte 02 Reopened because remote node closed 03 Reopened because o
149. eturns eight types of information in records of 32 bytes each A maximum of 62 records can be returned The format of each record is shown below Protocol 4 bytes The protocol used for the socket is returned as a number 00 00 00 06 TCP 00 00 00 11 UDP Receive Queue 4 bytes The number of bytes in the reception queue Send Queue 4 bytes The number of bytes in the send queue Local IP Address 4 bytes The local IP address allocated to the socket Local Port Number 4 bytes The local port number allocated to the socket 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 157 Command Response Reference Precautions TCP Transitions 4 bytes The TCP connection status is returned as one of the numbers shown in the following table Refer to Appendix C TCP Status Transitions for a diagram of transitions Number 00 00 00 00 Stage CLOSED Section 7 2 Status Closed 00 00 00 01 LISTEN Waiting for connection 00 00 00 02 SYN SENT SYN sent in active status 00 00 00 03 SYN RECEIVED SYN received and sent 00 00 00 04 ESTABLISHED Already established 00 00 00 05 CLOSE WAIT Received FIN waiting to close 00 00 00 06 FIN WAIT 1 Completed and FIN sent 00 00 00 07 CLOSING Completed and exchanged FIN Awaiting ACK 00 00 00 08 LAST
150. etwork status send time Network sta tus send interval tem SSC SC Network status send time 0 550 ms Network status send interval Set in Unit Setup If after a node has once participated in the network a response is not received from the node after network status has been sent to all nodes three times it is assumed that the node has been separated from the network The time required to detect that a node has been separated from the network can be calculated as follows Node separation detection time Total network status send time Network status wait time x 3 tem Sidi SOS Total network status send time As described above Network status send interval Set in Unit Setup 1 All FINS messages sent to a node while it is separated will be lost 2 Consider the node separation detection time when setting the response monitor time for FINS messages sent for the SEND RECV and CMND instructions The response monitoring time should generally be set to 1 5 times the node separation detection time 3 If the response monitoring time is too long reconsider the network status send interval and network status wait time 6 8 Precautions on High Traffic in FINS Communications 130 When applications are constructed using FINS communications services communications errors from multiple response timeouts may occasionally occur due to high traffic depending on the system configuration and the appli ca
151. f reception error 04 Reopened because of transmission error 05 Reopened because RST received from remote node 06 Reopened because of no keep alive response Have the FINS TCP connection status checked when a SEND 090 RECV 098 or CMND 490 instruction is exe cuted in the ladder program 07 Illegal FINS TCP procedure Refer to Operation Manual Con struction of Applications Creating FINS Applications and correct the remote node application on a per sonal computer 08 Insuffi cient mem ory during server pro cessing 09 Insuffi cient mem ory during client pro cessing OA Insuffi cient mem ory during node switch ing There is too much load traffic on the Ethernet Unit Correct the sys tem so that traffic is not concen trated FINS UDP packet discarded 01 to FE Transmission source node address The automatic generation static method was used as the IP address conversion method so remote IP address information in internal memory could not be changed CPU Bus Unit error Arbitrary Restart the CPU Unit If the prob lem persists replace the Ethernet Unit Saved 168 CPU Bus Unit memory error 01 Read error 02 Write error 06 Error log Restart the CPU Unit If the prob lem persists replace the Ethernet Unit Saved except for error log Error Log Section 8 3 Error Meaning Detailed error cod
152. file in a Memory Card pee yoo Check the status of communications using the SD and RD indicators or PING command Note Refer to IP Address under 2 10 Basic Settings and to Appendix 7 Setting Up an Ethernet Unit Using a Memory Card Text File Required only for the following e Using the FINS communications service e Using the SEND RECV or CMND instruction on a PLC with more than one Communications Unit Refer to SECTION 3 CX Programmer Unit Setup IP Router Table in 2 10 Basic Settings and Appendix 7 Setting Up an Ethernet Unit Using a Memory Card Text File Refer to 6 4 Creating Routing Tables Refer to 2 11 Communications Test 1 Used mainly when setting the IP address using only a Programming Con sole i e setting it in the words allocated in the DM Area When using this method the IP address in the Unit Setup must be at the default value of 00 00 00 00 If any other value is set in the Unit Setup it will be given priority over the setting in the DM Area and the setting in the DM Area will be changed Main Points in Creating a Duplex Ethernet Network Section 2 2 2 Setting is possible with CX Programmer version 4 0 or higher or a Mem ory Card text file A Memory Card text file is normally used when CX Pro grammer version 4 0 or higher is not available Refer to Appendix G Using a Memory Card Text File to Set Up an Ethernet Unit for details 3 A PLC Programming Device such as the CX
153. following situations e When communicating with a PLC or computer on another network e g remote programming or monitoring using FINS messages or a CX Pro grammer e When multiple Communications Units are mounted to a single PLC i e CPU Unit e When routing tables are used for one or more other nodes on the same network It is not necessary to set routing tables if one Communications Unit is mounted to the PLC and the nodes are connected as one network 97 Creating Routing Tables Section 6 4 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 cases e When using a duplex Ethernet network e When communicating with a PLC or personal computer on another net work e g remote programming or monitoring using FINS messages or a CX Programmer using a non duplex Ethernet network e When more than one Communications Unit is mounted to a single PLC i e CPU Unit using a non duplex Ethernet network e When routing tables are used for one or more other nodes on the same network using a non duplex Ethernet network Routing tables are not required in the following case When one Communications Unit is mounted to the PLC and all nodes are connected as one network The routing tables are required not only for nodes communicating via the FINS communications service but also for all relay nodes on the network
154. for a FINS message is withdrawn from the net work the CS1D CPU Unit and CS1D Ethernet Unit will automatically switch to the secondary node as the destination node for the message Node 3 Q amp j a Secondary Network 2 Node 2 withdrawn from primary network 3 Send through secondary Unit 1 First send throug primary Unit Node 1 It is possible for FINS messages to be lost when operation switches to the secondary system Use timeout monitoring and retry functions in the applica tion in order to prevent lapses in FINS message communications Earlier models of Ethernet nodes are not equipped with the function that sends and receives the network status information Consequently the earlier Ethernet nodes are always withdrawn from the network from the viewpoint of the duplex Ethernet nodes The earlier nodes are not recognized in either the primary or secondary network so in this case FINS messages specified in the primary network are not automatically switched and are sent in the primary network Since the messages are still sent in the primary network non duplex Ethernet nodes can be combined with duplex Ethernet nodes in the primary network 15 Overview of Communications Functions Section 1 5 Primary Network Secondary Network 3 Continue sending 2 Node 4 is not in through primary the primary or secondary
155. g range at bottom of page Page 53 Changed setting range at top of page Page 139 Corrected response block data in middle of page and mode settings at bottom of page Page 140 Corrected byte numbers at top of page 205 Revision History 206
156. he CPU Bus Units actually installed differ from the Units registered in the I O tables The ERR ALM indicator on the front of the CPU Unit will flash but CPU operation will continue The unit number of the CPU Bus Unit involved is stored in word A427 Settings 0 No setting error 1 Setting error A40207 CPU Bus Unit Error Flag Non fatal error Bit A40207 is turned ON when an error occurs during the transmission of data between the CPU and CPU Bus Units The ERR ALM indicator on the front of the CPU Unit will flash but CPU operation will continue The Unit where the error occurred will stop The unit number of the CPU Bus Unit involved is stored in word A417 0 No unit number error 1 Unit number error A40300 to A40308 Memory Error Location When a memory error occurs the Memory Error Flag A40115 is turned ON and one of the following flags is turned ON to indicate the memory area where the error occurred A40300 User program A40304 PLC Setup A40305 Registered I O Tables A40307 Routing Table A40308 CPU Bus Unit Settings The ERR ALM indicator on the front of the CPU Unit will light and CPU operation will stop 0 Normal 1 Error A41000 to A41015 CPU Bus Unit Num ber Duplication Flags The Duplication Error Flag A40113 will be turned ON when a CPU Bus Unit s unit number has been duplicated Bits 00 to 15 correspond to unit numbers 0 to F The ERR ALM indicator on the front
157. he local node It shows the correspondence between the address of the final destination net work and the network address and node address of the first relay point of the path to reach there When internetwork communications are carried out the end network can be reached by following the relay points Use only the primary network address for the destination network address and the relay network address setting for a duplex network Do not use the secondary network in the relay network table 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 pte Node 2 3 Unit 0 a relay node m PLC 4 destination node PLC 2 relay node Node 1 Node 3 A Node 2 ai 1 Node 2 ode 1 Network 1 PLC 1 relay network table To go to network 3 J 4 Network 2 iNetwork 3 PLC 2 PLC 3 End network relay network table local network table Local End Rela Rela Unit adores number 2 Ir To go to network 3 The network is the same To go to network 3 first go to node 2 at network 2 first go to node 3 at according to the local SO 90 to node 2 at network 3 network 1 network table go through unit number 1 of the local CPU Rack 6 4 2 Connecting and Using a Peripheral Device for the PLC Note Routing tables must be created
158. he primary network e FINS IP address conver Set the IP address conversion method sion UDP Nodes Tab Automatic Generation Method Dynamic or Passive ETN_UNIT Properties x About Network Settings Communication Unit Settings UDP Nodes TCP Nodes Duplex Settings Network status Network Number 0 Network Type Ethernet User defined IP address Model Automatically Conversion 4 Add Delete 0K Cancel Apply Using FINS Applications Section 6 5 UDP Nodes Tab IP Address Table Method or Combined Method x About Network Settings Communication Unit Settings UDP Nodes TCP Nodes Duplex Settings Network status Network Number 0 Network Type Ethernet User defined IP address gt i Add Delete Properties Explore cre eon Click the Add Button and then set the IP address table in the following Ether net Node Definition Dialog Box x Node Address ft Userdefined Type Name as IP Address fio po fer Jo Secondary fo fs fer fo TEF Settings TCP Port Numbe fa eep alive ja e Node address Set the remote FINS node address e IP address Set the remote IP address TCP Nodes Tab xi About Network Settings Communication Unit Settings UDP Nodes TCP Nodes Duplex Settings Network status Network Number 0 Network Type Ethernet User defined IP address Status 4 Add Delete Properties crea eon
159. header length was larger than the overall packet length value in the packet header The number of fragmented packets received The number of received fragmented IP packets discarded because a queue for reassembly could not be secured The number of fragmented IP packets discarded because they could not be reassembled within 12 seconds after being received Always 0 The number of packets addressed to other networks that have been dis carded Always 0 Refer to 7 2 18 MEMORY STATUS READ for details on the short buffer 151 Command Response Reference ICMP Status Response 152 1 2 3 Section 7 2 Ten types 46 items of ICMP status information occupying 4 bytes each are returned in the following sequence Each value is returned as an 8 digit hexa decimal value 1 The number of times the ICMP error routine was called The ICMP error routine uses ICMP packets to inform the source about errors The routine is called when an illegal packet is received error in IP option processing or error in relay processing or if the object port does not exist when using UDP Always 0 Always 0 Total number of outputs of each packet type during ICMP output The 19 statistical values are returned in the order shown below Contents are de fined for 13 types only all other types contain 0 Only 0 3 14 16 and 18 are counted by the Ethernet Unit Echo reply Undefined always 0 Destination unreachable Source
160. hee ee E EA Gaerne 94 6 4 Creating Routing Tables ceca tie k a Pano oP Le tala Pei hae ed ee ae 98 6 5 Using FINS Applications cs ees se ti ad eo he ee INE ae ee ke ete ho 102 6 6 Communicating between OMRON PLCs 0 0 0 113 6 7 Network Status Performance asasaran anneanne 129 6 8 Precautions on High Traffic in FINS Communications 0000000000 eee 130 SECTION 7 FINS Commands Addressed to Ethernet Units 133 7 1 Command Codes and Response Codes 0 0 0 134 7 2 Command Response Reference 0 0 cece eee eee ees 135 SECTION 8 Troubleshooting 4 544 4 604004 sasuses ie eseeeteseidedas L61 8 1 Troubleshooting with Indicators 0 0 2 cece een eee 162 822 EMOP Status ose sie bbe Se Hee be HERS DAR GF ds PRENSA ELS G ee CD ae bet E 163 823 Error BOG cage canes nae eg OR 4268 8 5 SAGO REE Oe Be bia DAES ES SRS ee tees hates 164 8 4 Troubleshooting Procedures 0 00 cece etna 171 8 5 Troubleshooting with Response Codes 0 0 0 cee cece tenes 174 Appendices A Ethernet Network Parameters 0 cece cece eee e nee n nen eens 177 B Buffer Configurationy i cest eccita eet ats eee Ea pa das bos Ae ae biel as 179 C TEP Status Transitions neia e git eed hese ea CGA wa eA ee ae eee EOS 181 D ASCH Characters aeea 2 o Fa ge en Menge E taie ate a E a Bose Cad BSE MEAS 183 E Maintenance 2 0 4 cia li iiss dae ee ei en eed AEA 5 a ibe eh aw eat
161. hen they are completed regardless of whether or not an error occurs e The Communications Port Error Flag retains its status until the next trans mission or reception e The Communications Port Error Flag turns OFF with the execution of the next communications instruction even if there was an abnormal comple tion 121 Communicating between OMRON PLCs Section 6 6 Example eats 1 Communications Port Enabled Flag 0 E Communications instruction instruction 1 l instruction 2 Instructions SEND 090 RECV 098 CMND 490 i being executed peing executed being executed Communications Port Error Flag i Communications Port Completion Code 0000 0000 0000 Completion 0202 0000 Normal completion 0000 Normal completion Unit address setting error 122 Communicating between OMRON PLCs Section 6 6 6 6 5 Program Example Execution condition See note 000000 A20207 120002 I 120001 120000 120000 A20207 See note an 120000 A21907 IK Continued on next page n MOV 21 000A D00000 MOV 21 0002 D00001 MOV 21 0400 D00002 MOV 21 0705 D00003 MOV 21 0064 D00004 XFER 70 000A 0000 D00010 SEND 90 D00010 D00020 D00000 DIFU 13 120001 When the Communications Port Enabled Flag for port 7 is ON and RECV 098 is not being executed the send execution program will s
162. hernet y Echo response Echo request The Ethernet Unit automatically returns the echo response packet in response to an echo request packet sent by another node host computer or other Ethernet Unit An echo request packet can be sent to another node by issuing the FINS command to execute the PING command from the PLC Refer to page 143 for details on the PING command The PING command can be executed from the host computer to send an echo request packet to an Ethernet Unit The method for using the PING com mand from a UNIX computer is given next E Method Input the following at the host computer prompt ping P_address host_name Replacing an Ethernet Unit Section 2 12 The destination is specified by its IP address or host name If the host name is used the host name must be defined in file etc hosts Note The PING command is not supported by some host computers E Application Examples These examples show sending the PING command to the node at IP address 130 25 36 8 The in the example represents the host computer prompt User inputs are underlined Comments are placed after semicolons Normal Execution ping 130 25 36 8 Executes PING command PING 130 25 36 8 56 data bytes 64 bytes from 130 25 36 8 icmp_seq 0 time 0 ms 64 bytes from 130 25 36 8 icmp_seq 0 time 0 ms 64 bytes from 130 25 36 8 icmp_seq 0 time 0 ms sEnter Ctrl C Key to cancel 130 25 36 8 PIN
163. host number set to all zeroes 4 2BSD specifications IP Address Conversion Method Setting 00 01 Automatic generation method 10 IP address table reference method 11 Combined method IP address table reference automatic generation FINS UDP Port Number Setting 0 Default 9600 1 Unit Setup value FINS TCP Port Number Setting 0 Default 9600 1 Unit Setup value Baud Rate setting 0 Automatic detection The Ethernet address of the Ethernet Unit is returned The Ethernet address is the address marked on the label on the side of the Ethernet Unit Response code Description Normal Command too large 7 2 3 CONTROLLER STATUS READ Command Block Response Block Parameters Error Flags Response Reads the controller status 06 01 Command code 06 01 aa 2 byte 4 byte 4 byte 4 byte 4 byte 4 byte e nn eo ee oe ee ee OO ee ee as Command Response Error flags Totalnumber Total number Total number Total number Total number f code code ol of of of of packets received receive errors packets sent errors sent send collisions Indicates the operating status and errors that occurred when the Ethernet Unit was started Bits will turn ON to indicate errors that have occurred 137 Command Response Reference 14 13 12 15 Total Number of Packets Received Response Total Number of Receive Errors Response Total Number of Packets Sent Response Total Num
164. ich are not described in the manual or applying the product to nuclear control systems railroad systems aviation systems vehicles combustion systems medical equipment amuse ment machines safety equipment and other systems machines and equip ment that may have a serious influence on lives and property if used improperly consult your OMRON representative Make sure that the ratings and performance characteristics of the product are sufficient for the systems machines and equipment and be sure to provide the systems machines and equipment with double safety mechanisms This manual provides information for programming and operating the Unit Be sure to read this manual before attempting to use the Unit and keep this man ual close at hand for reference during operation 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 Safety Precautions N WARNING Z N WARNING N WARNING A Caution Do not attempt to take any Unit apart while the power is being supplied Doing so may result in electric shock Do not touch any of the terminals or terminal blocks while the power is being supplied Doing so may result in electric shock Do not attempt to disassemble rep
165. imary network and a redundant system Secondary Unit and secondary network Monitoring the Entry Withdrawal of Nodes Network status information is delivered periodically between the communicat ing nodes to monitor the entry and withdrawal of nodes in the network The entry withdrawal status can be read as the network participation status using the ladder program or the CX Programmer Features Section 1 2 Automatic Switching of FINS Message Communications The Secondary Unit will be used when the Primary Unit can t be used for some reason failure of the Unit disconnected cable online unit replacement etc If FINS message applications have been created that communicate through the primary network the CS1D CPU Unit and CS1D Ethernet Unit will automatically switch to the Secondary Unit as the destination node for mes sages It is possible for FINS messages to be lost when operation switches to the Secondary Unit but a lapse in message communications can be avoided by using timeout monitoring and retry functions in the FINS message applica tion Connecting with Earlier Non duplex Ethernet Devices FINS Messages It is possible to use non duplex Ethernet nodes in a duplex Ethernet network Normally non duplex Ethernet nodes are connected to the primary network The communications path is not redundant between non duplex Ethernet nodes so the automatic switching function cannot be used between these nodes FINS Mess
166. ing 113 data contents 113 data length 113 destination 113 echo test 46 overview 13 port numbers 113 response codes 134 174 response monitor time 113 responses 135 retries 113 specifications 91 113 TCP IP 4 5 testing 143 troubleshooting 172 UDP IP 3 5 FINS TCP 4 5 91 94 communications 96 connection numbers 95 connection status 96 features 94 frame format 95 procedure 97 TCP port number 95 FINS TCP Mode field 54 FINS TCP Port field 52 FINS TCP Tab 53 FINS UDP 3 5 91 92 frame format 92 procedure 93 UDP port numbers 93 FINS UDP Port field 52 FinsGateway 9 107 flags Communications Port Enabled Flags 66 Communications Port Error Flags 66 CPU Bus Unit Error Flag 67 CPU Bus Unit Error Unit Number Flags 67 CPU Bus Unit Initializing Flags 66 CPU Bus Unit Number Duplication Flags 67 CPU Bus Unit Setting Error Flag 67 CPU Bus Unit Setting Error Unit Number Flags 67 Error Flags 137 FTP communications 13 H Holding Area 114 hub 7 31 connections cascade 32 stack 33 installation 34 precautions 32 T O allocations 114 CIO Area 58 DM Area 65 I O tables creating 36 ICMP communications 12 status 152 indicators 18 troubleshooting 162 inspections 187 189 installation cables connections 35 Contact Output Units 33 location xix precautions 30 interlock circuits xx INTERNODE ECHO TEST 140 internode test command 140 IP Addr
167. ing returned 153 Command Response Reference 154 1 2 3 1 2 3 12 13 14 15 Section 7 2 The number of times no window advertisement is received within the time set on the duration timer The duration timer sets the maximum time limit for a window advertisement to be received if the transmission window is smaller than necessary and the resend timer is not set If no window ad vertisement is received within the time limit the number of segments per mitted by the transmission window are sent If the transmission window is set to 0 a window probe 1 octet of data is sent before the timer restarts The number of times no segment was sent or received within the time set on the hold timer The number of times the hold packet is resent Always 0 The number of times the hold packet is sent without response before the connection is cut off 2 Send Information 40 Bytes Ten information items are returned in the following sequence CAN Oa rwoN 10 The total number of packets sent The number of data packets sent The number of data bytes sent The number of data packets resent The number of data bytes resent The number of ACK packets sent The number of window probes 1 octet of data sent The number of emergency data packets sent Always 0 The number of window advertisement packets sent The number of control packets SYN FIN RST sent 3 Receive Information Twenty one inform
168. ing tables aren t registered com pletely Set routing tables at the local node remote node and any relay nodes Routing table error Set the routing tables correctly The maximum number of relay nodes 2 was exceeded in the command Redesign the network or reconsider the routing table to reduce the number of relay nodes in the command Communications are possible on three network levels including the local net work 10 Command for mat error The command is longer than the max per missible length Check the command format of the command and set it correctly Be sure broadcast transmis sions don t exceed 1 473 bytes The command is shorter than min permis sible length Check the command format of the command and set it correctly The designated number of data items dif fers from the actual number in the com mand data Check the number of items and the data and make sure that they agree Data for another node on the same net work was received from the network An attempt was made to send response data for a broadcast address Check the header parameters in the command data and be sure the correct command format is being used 11 Parameter error The parameters in the command data are incorrect The UDP TCP socket number was not within the proper range The local UDP port number might be set to 0 Check the parameters Be sure the socket number is between
169. ings and Appendix 7 Setting Up an Ethernet Unit i Using a Memory Card Text File Check the status of communications Refer to 2 11 Communications Test using the SD and RD indicators or PING command Note 1 Used mainly when setting the IP address using only a Programming Con sole i e setting it in the words allocated in the DM Area When using this method the IP address in the Unit Setup must be at the default value of 00 00 00 00 If any other value is set in the Unit Setup it will be given priority over the setting in the DM Area and the setting in the DM Area will be changed 2 Setting is possible with CX Programmer version 4 0 or higher or a Mem ory Card text file A Memory Card text file is normally used when CX Pro grammer version 4 0 or higher is not available Refer to Appendix G Using a Memory Card Text File to Set Up an Ethernet Unit for details 3 A PLC Programming Device such as the CX Programmer the CX Net or a Programming Console is required 4 The CX Net is required 23 Overview of Startup Procedure Section 2 1 2 1 2 Non duplex Ethernet Networks 24 e Local IP address e Address conversion method Determine the following for each Ethernet Unit Refer to SECTION 5 Determining IP Addresses y Set the unit number e Unit number 0 to F y Refer to 2 3 Switch Settings Set the node address e Node address 1 to 2 Refer to 2 3 Switch Settings y
170. insTcp14 S 0 0 0 0 252 Y FinsTcp15 S 0 0 0 0 253 Y FinsTcp16 S 0 0 0 0 254 Y Setting Notation The settings required for duplex operation are explained here Other settings are left at their defaults The setting for duplex operation is made by changing the contents of the text file using a text editor Set line number 2 to Duplex Y To change any other settings refer to the comments after in the text file and edit the contents according to them Do not make more than the required changes and leave all lines and comments as given in the example The settings on lines 4 to 113 are repeated for the Secondary Unit in the same file It s most convenient to copy the lines for the Primary Unit after setting them and then just paste them for the Secondary Unit and then correcting Primary to Secondary in the Secondary Unit settings The contents of the text file is given below Contents Duplex Duplex Y__ Y Duplex N Not Duplex System Primary IpAddress 0 0 0 0 0 0 0 0 255 255 255 255 SubNetMask 0 0 0 0 0 0 0 0 255 255 255 255 FinsUdpPortNo 0 0 65535 AN OOA ON UserDefined FinsUdpPortNo N Y Use N Don t use FinsTcpPortNo 0 0 65535 UserDefined FinsTcpPortNo N Y Use N Don t use AddressConvertionMode 1 1 Auto Dynamic 2 Auto Static 3 TableUsed 4 Mixed BroadCast N _ Y All 0 4 2BSD N All 1 4 3BSD Boudrate N _ Y 10Base T N Auto detec
171. is mask are written to the CPU Bus Unit System Setup for the Ethernet Unit The new local IP address and subnet mask settings will not be effective until the PC is restarted or the Ethernet Unit is reset 7 2 15 IP ADDRESS TABLE READ Command Block Response Block 148 Reads the IP address table Command Number of code records ais ia ete el ge ve AA Command Response Maximum Number Number IP address IP address code code number of stored of records table records table records of stored records records Command Response Reference Parameters Number of Records Command Response Maximum Number of Stored Records Response Number of Stored Records Response IP Address Table Records Response Precautions Response Codes 7 2 16 Command Block Section 7 2 The number of records to read is specified between 0000 and 0020 0 to 32 decimal in the command If this value is set to 0 the number of stored records is returned but the IP address table records are not returned The response returns the actual number of records read The maximum number of records that can be stored in the IP address table is returned The maximum number of stored records is fixed at 0020 32 records The number of IP address table records stored at the time the command is executed is returned as a hexadecimal number The number of IP address table records specified in the number of records parame
172. is not shielded and the hub is designed for use in OA environments In environments subject to noise construct a system with shielded twisted pair STP cable and hubs suitable for an FA environ ment e Do not lay the twisted pair cable together with high voltage lines e Do not lay the twisted pair cable near devices that generate noise e Do not lay the twisted pair cable in locations subject to high temperatures or high humidity e Do not lay the twisted pair cable in locations subject to excessive dirt and dust or to oil mist or other contaminants Hub Installation e Do not install the hub near devices that generate noise ERY ronment Procautions e Do not install the hub in locations subject to high temperatures or high humidity e Do not install the hub in locations subject to excessive dirt and dust or to oil mist or other contaminants Hub Connection Methods If more hub ports are required they can be added by connecting more than one hub There are two possible connection methods for hubs Cascade and stacked Cascade Connections e Connect two hubs to each other as follows Connect an MDI port to an MDI X port with a straight cable connect two MDI ports with a cross cable and connect two MDI X ports with a cross cable Note It is very difficult to distinguish cross cables and straight cables by appear ance Incorrect cables will cause communications to fail We recommend using cascade connections with straight cable
173. ith 8 slots oak Up to four Unit or four pairs of Expansion Backplane for Online Unit Replacement Duplex Units can be mounted to CS1D Blo92 the slots shown in the diagrams on the left o Can mount to any g position with 9 slots al 9 slots PS Power Supply Unit CPU CPU Unit Note The CS1D ETN21D CS1D Ethernet Units maximum current consumption is 380 mA Make sure that the total current consumption of all the Units con nected to the same CPU Backplane or Expansion Backplane does not exceed the output capacity of the Power Supply Unit 2 5 Network installation 2 5 1 Basic installation Precautions e Take the greatest care when installing the Ethernet System being sure to follow ISO 8802 3 specifications You must obtain a copy of these specifi cations and be sure you understand them before attempting to install an Ethernet System Unless you are already experienced in installing com munications systems we strongly recommend that you employ a profes sional to install your system e Do not install Ethernet equipment near sources of noise If noise prone environments are unavoidable be sure to take adequate measures against noise interference such as installing network components in grounded metal cases using optical links in the system etc 30 Network Installation Section 2 5 2 5 2 Recommended Products The following products are recommended for use with the CS1D ETN21D CS1D Ethernet Unit Specifications Inquires 10
174. l Normally inspect once or twice per year Choose the inspection period according to the severity of the operat ing conditions New installation should be inspected more frequently until they are judged to be stable Inspection Items Correct any of the items in the table below not conforming to the specified standard Details Standard Environment Temperature around Unit 0 to 55 C Humidity around Unit 10 to 90 with no condensation Accumulated dust No accumulated dust Ethernet Unit firmly attached No looseness Transceiver cable connector fully pushed in No looseness Condition of transceiver cable No visible abnormality Twisted pair cable connector fully pushed in No looseness Condition of twisted pair cable No visible abnormality Tools Required for Inspection The following tools are needed to inspect the Ethernet Unit Standard Tools e Flat blade and Phillips screwdrivers e Tester or digital voltmeter e Industrial alcohol and a clean cloth Tools Required Under Special Circumstances e Synchroscope e Pen oscilloscope e Thermometer and hygrometer 187 Inspections Appendix F 188 Appendix G Using a Memory Card Text File to Set Up an Note Requirements Procedure Backup 1 2 3 Ethernet Unit Settings for the CS1D Ethernet Unit are normally made with CX Programmer version 4 00 or higher Instead of the CX Programmer a text file on a Memory Card can also be used to make
175. l computer or Ethernet Unit client Local FINS node number A A Local IP address T A 1 The connection is established 2 The local device such as a personal computer sends notification that its 7 FINS node number is A A request to open a connection is received in TCP IP protocol from the re mote device i e the client either a personal computer or an Ethernet Unit and the connection is established Notification is received from the remote node i e the client of the remote node s FINS node address The local device provides notification of the local FINS node address The Ethernet Unit changes the internal node correspondence table FINS node address IP address and TCP port number FINS messages can then be sent and received Ethernet Unit server CPU Unit Local FINS node number B A Y Local IP address S IP address FINS node number transmission gt Ethernet IP address FINS node number transmission j d The FINS node number 3 The Ethernet Unit sends notification that its FINS node number is B is converted for each connection number 4 The internal node correspondence table is changed 5 It then becomes possible to send and receive FINS messages 79 IP Addresses in FINS Communications Section 5 2 Setting FINS TCP Conne
176. le third party certification documents identifying ratings and limitations of use that apply to the products This information by itself is not sufficient for a complete determination of the suitability of the products in combination with the end product machine system or other application or use The following are some examples of applications for which particular attention must be given This is not intended to be an exhaustive list of all possible uses of the products nor is it intended to imply that the uses listed may be suitable for the products e Outdoor use uses involving potential chemical contamination or electrical interference or conditions or uses not described in this manual e Nuclear energy control systems combustion systems railroad systems aviation systems medical equipment amusement machines vehicles safety equipment and installations subject to separate industry or government regulations e Systems machines and equipment that could present a risk to life or property Please know and observe all prohibitions of use applicable to the products NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM PROGRAMMABLE PRODUCTS OMRON shall not be responsible for the user s prog
177. ly voltages specified in the operation manuals An incorrect voltage may result in malfunction or burning e Take appropriate measures to ensure that the specified power with the rated voltage and frequency is supplied Be particularly careful in places where the power supply is unstable An incorrect power supply may result in malfunction e Install external breakers and take other safety measures against short cir cuiting in external wiring Insufficient safety measures against short cir cuiting may result in burning e Make sure that all the Backplane mounting screws terminal block screws and cable connector screws are tightened to the torque specified in the relevant manuals Incorrect tightening torque may result in malfunction e Leave the label attached to the Unit when wiring Removing the label may result in malfunction if foreign matter enters the Unit e Remove the label after the completion of wiring to ensure proper heat dis sipation Leaving the label attached may result in malfunction e Use crimp terminals for wiring Do not connect bare stranded wires directly to terminals Connection of bare stranded wires may result in burning e Double check all wiring and switch settings before turning ON the power supply Incorrect wiring may result in burning e Wire all connections correctly e Mount Units only after checking terminal blocks and connectors com pletely e Make sure that the terminal blocks expansion cables and
178. m operation 8 4 1 Startup Problems Set the node address to Is the node address set between 01 and FE Hex RUN indicator lit ERH indicator lit between 01 and FE Hex Y Replace the Ethernet Unit Make sure that sufficient power is supplied to the CPU Unit Power supplied to CPU Unit Make sure that Unit is firmly Ethernet Unit Y p mounted and tighten the loose on Rack mounting screws firmly or lock the sliders into place e Do the RUN and ERH indicators not light if another CPU Unit is mounted to the Rack Replace the CPU Unit that didn t work N Replace the Ethernet Unit Is the same node number used by another Unit N p Create the I O tables in the CPU Unit Is the same unit number used by another CPU Bus Unit ERH indicator not lit y Set the unit numbers correctly Y Restart the CPU Unit If the error persists replace the CPU Unit Has a CPU Unit error Qccurred in the CPU Unit N Correct the IP address in the System Setup and read out the Y controller status using the READ CONTROLLER STATUS command in FINS communications and correct any problems indicated ERH indicator not flashing Make sure that the node number and the last byte of the IP address are the same and set other host IDs to 0 or change the address conversion method to use and IP address table or combined methods
179. mains ON from the start of RECV 098 execution until completion Control Data Creation Word Contents Meaning D0005 00 10 Number of reception words 16 D0006 00 03 Source network number 3 D0007 20 00 Source node number 32 Source unit address 0 Response required Communications port No used 7 D0008 07 05 l Number of retries 5 D0009 Response monitor time Default A total of 16 words of data beginning from word A100 at network number 3 node number 32 unit address 0 the PC is received at word CIO 2000 onwards of the local node Reset Input Creation Reception Error Display Reception Data Processing If there is no reception processing completion error the 16 words of data received from word CIO 2000 on wards is stored at D00040 onwards With CS CJ series PCs the Communications Port Enabled Flags at bits 0 to 7 in word A202 turn OFF even when the PCMR 260 instruction is being executed using the ports corresponding to those flags 2 Before using the sample program as is confirm that the memory areas words and bits used in the sample program are not already being used in the user program or by Special I O Units 124 Communicating between OMRON PLCs Section 6 6 6 6 6 Transmission Delays Ignoring Network Delays The methods of computing the maximum time required from execution of the SEND 090 RECV 098 and CMND 490 instructions until proces
180. mation on how to operate the Programming Console 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 gramming CS1W SCB21 41 CS1W SCU21 CJ1W SCU41 Serial Communica tions Boards and Serial Communica tions Units Operation Manual Accessing the PLC connected to the CX Programmer via Ethernet or the host computer or other device connected to the Serial Communications Board or Unit Describes the use of Serial Communications Units and Boards including details on hardware software and standard system protocols N WARNING Failure to read and understand the information provided in this manual may result in per sonal injury or death damage to the product or product failure Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations given xi Read and Understand this Manual Please read and understand this manual before using the product Please consult your OMRON representative if you have any questions or comments Warranty and Limitations of Liability WARRANTY OMRON s exclusive warranty is that the products are free from defects in materials and workmanship for a p
181. me Default 2 ms Network status wait time Default 50 ms Network status UDP port Default 9602 number m System Configuration Example 4 Connecting the CX Programmer Online Using FINS TCP In this example an online connection is made by FINS TCP to a PLC on an Ethernet network PLC1 in the diagram below from a CX Programmer CX Net connected to the Ethernet network Conditions e FINS TCP method CX Programmer CX Net Node number 1 Ethernet Unit IP address 192 168 250 1 IP address conversion Automatic generation method dynamic Ethernet Unit node number 2 Ethernet Unit IP address 192 168 250 2 Ethernet port Ethernet Network number none FINS TCP method CX Programmer s Change PLC Dialog Box Settings for target PLC PLC1 s Change PLC Dialog Box Setting PLC name PLC1 Network classification FinsGateway Network Tab FINS destination Network number 0 Node address 2 Frame length 2 000 bytes Response monitor time 2 seconds CX Programmer s Unit Setup Setup Tab 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 112 Communicating between OMRON PLCs Section 6 6 Setting Baud rate Automatic detection IP router tables None FINS TCP Tab Not set All defaults are used FinsGateway ETN_UNIT Setup TCP Nodes Tab Ethernet Nod
182. mer connection use FinsGateway Version 2003 or later as the computer s middleware and install the Ethernet Unit driver ETN_UNIT for the duplex Ethernet network Use the UDP IP version of the FINS communications service hereafter referred to as FINS UDP as the communications method When there is a failure in part of the primary network s communications path in the FINS com munications service the system automatically switches to the secondary net work path to replace the failed part of the primary network only It is possible that communications data will be lost until communications are rerouted over the failed part of the primary network but this data will be sent again by the CX Programmer s timeout and retry functions Applications can be constructed using the SEND RECV and CMND ladder programming instructions Use the UDP IP version of the FINS communications service hereafter referred to as FINS UDP as the communications method When there is a failure in part of the primary network s communications path in the FINS com munications service the system automatically switches to the secondary net work path to replace the failed part of the primary network only It is possible that communications data will be lost until communications are rerouted over the failed part of the primary network but this data will be sent again if the correct timeout and retry function settings are made in the SEND RECV and CMND instructions
183. mer s Change PLC Dialog Box Settings for target PLC PLC3 s Change PLC Dialog Box Setting PLC3 PLC name Network classification Ethernet 105 Using FINS Applications Section 6 5 Settings for target PLC PLC3 s Change PLC Dialog Box Setting Network Tab FINS transmission source address FINS destination Network number address Node address Frame length 2 000 bytes Response monitor time 2 seconds Driver Tab Workstation node address 1 Automatic generation method Not selected IP address 192 168 250 2 Pri mary Unit IP address Port number 9600 CX Programmer s Unit Setup Setup Tab Same as for System Configuration Example 1 Routing Table Settings and Transfer to Each PLC Set the routing tables with CX Net and transfer them 1 Using CX Net connect online and select Routing table Settings Then create FINS local routing tables a local network table and a relay network table Example PLC 1 Routing Table Settings e Local Network Table Unit number Local network number 1 for Primary Unit 2 for Secondary Unit 3 for Controller Link e Relay Network Table None Example PLC 2 and PLC 3 Routing Table Settings e Local Network Table Unitnumber Local network number C e 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 Ethernet Unit on relay netwo
184. method is used for address conversion 0 0 0 0 default net mask for IP address set ting FINS UDP Port Specify the local UDP port number to be used for the FINS communica tions service The UDP port number is the number used for UDP identi fication of the application layer i e the FINS communications service in this case e Default 9600 e User defined Setting range 1 to 65535 9 600 FINS TCP Port Specify the local TCP port number to be used for the FINS communica tions service The TCP port number is the number used for TCP identifi cation of the application layer i e the FINS communications service in this case e Default 9600 e User defined Setting range 1 to 65535 Network Status UDP port Specify the local UDP port number to be used to send network status The UDP port number is the number used for UDP identification of the application layer i e the network status send service in this case e Default 9602 e User defined Setting range 1 to 65535 Note Do not set the same port number as set for the FINS UDP port default 9600 Send Network Status Interval time 52 Specify the interval for the network status send service to send network status The default setting can normally be used Change the setting when it s necessary to adjust the network load e Default 2 ms e User defined Setting range 1 to 254 ms Default 2 ms FINS TCP Section
185. ms are returned 8 bytes a The number of bytes used in K bytes b The percentage used 6 Memory Exhaustion Log 12 bytes Counts for the following values indicate a high load on the Ethernet Unit These high loads may be caused by problems in communications partic ularly FINS communications and UDP sockets If these values are consis tently high check your applications 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 c The number of times an attempt was made to release and secure a short buffer already being used by another socket when there were no short buffers available Precautions All the above values are set to O if Ethernet communications functions are stopped due to improper settings in the system setup These values are cleared when the Ethernet Unit is started or reset Values will be counted only until the maximum values are reached 156 Command Response Reference Section 7 2 Response Codes 0000 Normal 1001 Command too large 7 2 19 SOCKET STATUS READ Reads the Ethernet Unit network socket status 27 64 Command Block UHH Command code Response Block 27 64 ee 32 bytes 32 bytes Command Response Socket status 7777777777777 Socket status code code Parameters Socket Status Response R
186. n kora ia Meh nd Me eh ee had Ware oe eae ees 39 2 10 BaSIC SCtuN SS ss onre nro rnt e E OLR Ga Maes ware aN Beas Aes ly aed wig ee ete oe 41 2 11 Communications Testare esni ae i ia EEEE E EEE EE EN YEO Y 45 2 12 Replacing an Ethernet Unit 0 0 0 0 eee eee 47 SECTION 3 CX Programmer Unit Setup cccecceeeeeeeee SI 32 Setpi eit they ee ht CR Sh et ee eh hast Re eat aie tae B24 52 3 2 FINS TCP ei 08 et i ive dee ee ge eee ee ee eae tees 53 SECTION 4 Ethernet Unit Memory Allocations 22 57 A 1 CIO Area Allocations sereas i enm ea Sie wat oe ea rae ple soe oY ceeds oe eb Se ae Pee 58 A 2 DM Area A locations 22 cfe eats ocd sos ta hg aca os at ene Masten a de hee ad er Bee Wee 65 4 3 Auxiliary Area Data isis nE a ate cote ot See Sasha pln E nek gear eg ah a ceed 66 vii TABLE OF CONTENTS SECTION 5 Determining IP Addresses cceeeeeeceeeeee 71 2 Le LIP AGGIESSES cts Soc St Tha th Rah Sobek a en Soke I el A Epo BK ot SA ee bad 72 5 2 IP Addresses in FINS Communications 0 00 00 eee eee eee eee 74 5 3 Private and Global Addresses 0 0000 ccc ccc ee ee eee eee eee eens 84 SECTION 6 FINS Communications cccccccccccccccceese 89 6 1 Overview of FINS Communications 0 0 0 ee cc eee eee 90 0 2 JFINS U DP Method iien ce is Gear tesa ded E AA EA ow awe Gp adhe 4 E tanto 92 623 FINSTER Method i see inter bee aa eed a ace eats PPRA a g
187. n on an error Meaning Detailed error code Correction ist byte 2nd byte Watchdog timer error in CPU Unit 00 00 Replace the CPU Unit Saved CPU Unit service monitor error Monitor time ms Check the operating environment Saved Other CPU error Bit 11 Unit not in Registered Create the I O tables Saved I O Tables Other bits are reserved for system use CPU Unit initialization error 00 00 Replace the CPU Unit Saved Insufficient System Setup Area 00 00 Reduce the number of CPU Bus Saved Units Event timed out MRC SRC Replace the CPU Unit Saved CPU Unit memory error 01 Read 03 Routing 01 Recreate the data specified by Saved error table the 2nd byte of the detailed error 02 Write 04 Setup code error error 02 Clear memory using proce 05 CPU Bus dure in the PLC operation manual Unit Words CIO DM CPU Unit protected 00 Remove protection from CPU Unit Saved memory 165 Error Log Section 8 3 Error Meaning Detailed error code Correction EE code PROM Resend count exceeded send failed Node address setting error send failed Remote node not in network send failed No Unit with specified unit address send failed CPU Unit error send failed Destination address not in routing tables send failed No routing table entry send failed Routing table error send failed Too many relay points send failed Comm
188. nable duplex communications by selecting the unit number of the Primary Ethernet Unit on the Comms Unit Duplex Tab Page of the CX Programmer CS1D Communications Unit L 25 Switch Settings J PLC Settings PLOOO1 File Options Help Section 2 3 15 x SIOU Refresh Unit Settines Host Link Port Peripheral Port Peripheral Service Comms Unit Duplex GPU Duplex 4 gt Active Standby units can be select g Communications Unit 0 Communications Unit 1 Communications Unit 2 Communications Unit 3 Communications Unit 4 Communications Unit 5 Communications Unit 6 Communications Unit 7 OOOOOoO0O Select communications units to be duplicated Max 3 Primary Secondary Select CS1D communications units to be duplicated Only primary side Wj 0510 Communications Unit 0 mM GS1D Communications Unit 1 7 CS1D Communications Unit 2 7 051D Communications Unit 3 m CS1D Communications Unit 4 m CS1D Communications Unit 5 m CS1D Communications Unit 6 CS1D H GPU6S Offline After making the above setting transfer the settings to the Unit POINT 4 After enabling After enabling duplex communications change the unit number of the Sec duplex communications ondary Unit to the same unit number as the one set for the Primary Unit change the unit number of the Secondary Unit to the unit number set for the Primary Unit Primary Secondary Unit
189. nd is executed will be returned and the command execution will end normally Response code Description Normal Command too large Command too small Command Response Reference Section 7 2 7 2 17 PROTOCOL STATUS READ Reads the Ethernet Unit protocol status 27 62 Command code Command Block Response Block Parameters IP Status Response 1 2 3 Note Command Response IP status ICMP status TCP status UDP status code code Twelve types of IP status information occupying 4 bytes each are returned in the following sequence Each value is returned as an 8 digit hexadecimal value 1 2 10 11 12 Total number of IP packets received The number of IP packets discarded due to an error with the checksum in the packet header The number of IP packets discarded because the received packet was larger than the overall packet length value in the packet header The number of IP packets discarded because the minimum size of the IP header data could not be stored in the first short buffer See note when an attempt was made to store the packet The number of packets discarded for one of the following reasons e The IP header length value in the IP header was smaller than the smallest size of the IP header e The size of the first short buffer See note was smaller than the IP header length value in the IP header when storing the packet The number of IP packets discarded because the IP
190. necting within the Same Segment duplex Ethomot Network Use the UDP IP version of the FINS communications service i e FINS UDP Construct applications using the SEND RECV and CMND instructions in the ladder program FINS UDP is supported by many OMRON products and is compatible with earlier Ethernet Units CS1W ETNO1 ETN11 and CJ1W ETN11 In comparison to FINS TCP FINS UDP s protocol processing is simpler and has some performance advantages Another feature of FINS UDP is the sup port of broadcast transmissions On the other hand applications such as retry routines must be created for FINS UDP Connecting through Multiple Segments Use the TCP IP version of the FINS communications service i e FINS TCP Construct applications using the SEND RECV and CMND instructions in the ladder program 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 1 2 Features Constructing Duplex Ethernet Networks Duplex FINS Communications The CS1D ETN21D supports duplex Ethernet networks which could not be created with earlier Ethernet Unit models Duplex Ethernet networks provide the following functions Duplex Ethernet Networks Duplex FINS Communications Two CS1D ETN21D Ethernet Units can be mounted in a CS1D PLC to create a main system Primary Unit and pr
191. nformation can be used in troubleshooting errors Word CIO 1500 25 x unit number 18 The status of errors that occur at the Ethernet Unit is reflected as shown in the following diagram Bit 02 IP address setting error Bit 03 IP address table error Bit 04 IP router table error Error Status Ethernet Unit to CPU Unit 15 n 18 14 13 12 11 10 Bit 06 Routing table error Bit 12 Memory Card Unit Setup setting error Bit 13 Memory Card Unit Setup access error Bit 14 Address disagreement Bit 15 EEPROM error Status Manipulated by Not used a IP address setting error ON if any of the following conditions apply to the IP address e All bits in the host ID are 0 or 1 e All bits in the network ID are 0 or 1 e All bits in the subnet ID are 1 e The IP address begins with 127 0x7F OFF when the IP address is normal ON if the IP address table information is incorrect OFF when the IP address table is normal ON if the IP router table information is incorrect OFF when the IP address table is normal Unit operation IP address table error IP router table error 163 Error Log Section 8 3 Bit Error Status Manipulated by Unit operation 5 Not Used 6 Routing table error ON Unit ON if the routing table information is incorrect OFF Unit OFF when the routing table is normal 7 to 11 Not used
192. ng port number Bits 00 to 07 correspond to communications ports 0 to 7 Settings 0 Network communi cations running 1 No network com munications running A203 to A210 Communications Port Completion Codes These words contain the completion codes for the corresponding port numbers when network instructions SEND RECV CMND or PMCR have been executed Words A203 to A210 correspond to communications ports 0 to 7 0000 No error Not 0000 Error code A21900 to A21907 Communications Port Error Flags Bits A21900 to A21907 turn ON when an error occurred during execution of a network instruction SEND RECV CMND or PMCR Bits 00 to 07 correspond to communications ports 0 to 7 0 Normal end 1 Error end A30200 to A30215 66 CPU Bus Unit Initializing Flags Bits A30200 through A30215 turn ON while the corresponding CPU Bus Units Units 0 through 15 respectively are initializing The bits will turn ON either when power is turned ON or when a CPU Bus Unit Restart Bit A50100 to A50115 is turned ON Bits 00 to 15 correspond to unit numbers 0 to F Bit 00 to 15 0 to F unit number 0 Not initializing 1 Initializing System will automatically turn the flag OFF when ini tialization has been completed Auxiliary Area Data Section 4 3 Word s Bit s A40203 Name CPU Bus Unit Set ting Error Flag Non fatal error Function Bit A40203 is turned ON when t
193. nse Error Log Data Response Precautions 142 Section 7 2 lA geen anmet Command Beginning Number code record of number records ar eel tk ed v gt ee AAAA Command Response Maximum Number Number Error log data Error log data code code number of stored of of stored records records records The first record to be read The first record number can be specified in the range between 0000 and 003F 0 to 63 decimal where 0000 is the oldest record The number of records to read is specified between 0001 and 0040 1 to 64 decimal in the command The response returns the actual number of records read The maximum number of records that can be stored in the error log Care is required as the error log differs according to the type of PC or CPU Bus Unit In an Ethernet Unit the maximum number of stored records is fixed at 40 64 decimal The number of records stored at the time the command is executed is returned The specified number of error log records from the beginning record number 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 Error code Detailed Minutes Second Day Hour Year Month information Error Code Detailed Information Details of the error stored in the record Refer to 8 5 Troubleshooting with Response Codes fo
194. nse sent back to changed IP address Automatic IP Address Setting by DHCP Service DHCP service is a method whereby a DHCP server collectively manages all of the IP address in a network Nodes that are functioning as clients acquire IP addresses from the DHCP server whenever the system is started Therefore at a personal computer using the DHCP service IP addresses may be different with each system startup DHCP service is mainly used for automatic settings in devices such as per sonal computers that are used for client applications Nodes used for server 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 FINS UDP Communications Method FINS TCP Communications Method 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 This Ethernet Unit provides a practical solution with an internal table that pairs remote nodes applications with FINS node addresses enabling dynamic changes FINS nodes are allocated individually for each application on the computer and the respective FINS UDP port numbers that are used are also allocated individually
195. o pro tect set the IP addresses as required at clients from which connection is permitted If not set for those connections the default setting of 0 0 0 0 can be used e When the Ethernet Unit is used as a client Set the IP address for the remote Ethernet Unit i e the server that is to be connected by FINS TCP It is required that an IP address be set for the remote Ethernet Unit FINS TCP Section 3 2 Item Auto allocated FINS node Contents If the client normally a personal computer applica tion supports FINS TCP and if FINS node addresses are not fixed the client will take 0 as its node address Then when a FINS command arrives the number set here from 239 to 254 will automatically be allocated as the client s FINS node address For details on automatic allocation of FINS node addresses refer to the Operation Manual Construc tion of Applications Default From 239 to 254 for con nection num bers 1 to 16 keep alive For each connection number set whether or not the remote node connection check function is to be used for the FINS TCP server and client If the keep alive box is checked here then when the remote node goes without responding for longer than the watch set in the Setup the connection will be terminated If a remote node turns OFF without warning the connection will remain open indefi nitely so this option should be used whenever pos sible For detail
196. o the number of corrections e FINS UDP can be used for broadcasting e When data is sent via an IP network with multiple layers such as the Internet communications reliability drops The following diagram shows the structure of a UDP packet used for sending and receiving data on an Ethernet network Ethernet Ver 2 iP UDP FINS frame FCS UDP packet As the diagram shows a nested structure is used with the FINS UDP method i e Ethernet Ver 2 IP frame UDP frame and FINS frame A UDP data sec tion FINS frame that exceeds 1 472 bytes is split into packets for transmis sion The split UDP data is then joined automatically at the UDP IP protocol layer There is normally no need to pay attention at the application layer to this split but it may not be possible to send 1 472 byte UDP packets over an IP network with multiple layers When using the FINS communications service in a system such as this select the FINS TCP method FINS UDP Method UDP Port Numbers for FINS UDP Section 6 2 The UDP port number is the number for UDP to identify the application layer 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 The default setting for the FINS UDP local UDP port number i e the Ether net Unit s UDP port number is 9600 To set another number make the setting for the FINS UDP port using the Setup
197. ocessing time command CPU Bus Unit ig Service processing time local node2 i CPU data set Reception i y processing time processing time response Transmission Delays f response Transmission processing time response CPU Bus Unit i service processing time remote node CPU Bus Unit Maximum transmission delay Service Cycle remote node Maximum transmis sion delay time CPU Bus Unit Service Cycle local node 1 CPU Bus Unit service processing time local node 1 Transmission processing time command Transmission delay command Reception processing time command CPU Bus Unit Service Cycle remote node CPU Bus Unit service processing time remote node Transmission processing time response Transmission Delays response Reception processing time response CPU Bus Unit Service Cycle local node 2 CPU Bus Unit service processing time local node 2 The following delays comprising the maximum transmission delay time occur when operation switches automatically to the secondary system following a failure in the primary network path Automatic switching delay time CPU Bus Unit Service Cycle local node CPU Bus Unit service processing time local node CPU Bus Unit Service Cycle remote node X 2 CPU Bus Unit service processing time remote node X 2 127 Communicating between OMRON PLCs Section 6 6 128 Note CPU Bus
198. ommand and receives response data Communications Ports 0 to 7 Eight transmissions can occur simultaneously port number Response moni 0000 tor time 2 s default 0001 to FFFF 0 1 to 6 553 5 s in 0 1 s increments specified by user Number of retries O to 15 retries 113 Communicating between OMRON PLCs Section 6 6 Note 1 The maximum data length is limited to 512 bytes for data exchange be tween the PLC and SYSMAC LINK Systems or the PLC and SYSMAC BUS 2 Remote I O Systems 2 When broadcasting do not require a response Use the FINS UDP method for broadcasting 6 6 2 PLC Communications Data Areas The following table shows the I O data areas involved when SEND 090 and RECV 098 are used CIO Area CIO 0000 to CIO 6143 Work Area W000 to W511 Holding Area H000 to H511 Auxiliary Area A000 to A959 See note 1 Timer Area TIMO000 to 4095 Counter Area CNT0000 to 4095 DM Area D00000 to D32767 EM Area E00000 to E32767 See note 2 Note 1 Data cannot be written to words A000 to A447 in the Auxiliary Area 2 A maximum of 13 banks in the EM Area can be used For details regarding the EM Area refer to the operation manual for the PLC that is used 114 Communicating between OMRON PLCs Section 6 6 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
199. on and Initial Setup This section explains how to install the Ethernet Unit and make the initial settings required for operation 2 1 Overview of Startup Procedure 0 02 eee eee eee 22 2 1 1 Duplex Ethernet Networks 0 0 0 e eee eee eee 22 2 1 2 Non duplex Ethernet Networks 2 0 0 e eee ee eee 24 2 2 Main Points in Creating a Duplex Ethernet Network 25 2 3 Switch Settings ss io ree uoi eaoaai aa E nate ed dae eee beds 26 2 3 1 CS series CS1D Ethernet Units 0 0 00 26 2 4 Mounting toa PLC gnsd esa rer d TEENE aoe E LATAE aha ehh d ga rates 29 2 4 1 Mounting to a CS1D Duplex CPU System 29 2 4 2 Mounting to a CS1D Single CPU System 29 2 5 Network Installation 0 0 0 eee eee eee 30 2 5 1 Basic Installation Precautions 00 0000 0000 30 2 5 2 Recommended Products 00 0 0 e eee eee eee 31 2 5 3 PrecalitiONS er eero ee ed pee ea ee Oe be eee 32 2 5 4 Using Contact Outputs Common to All Units 33 2 6 Connecting to the Network 0 0 0 cee eee eee 34 2 6 1 Ethernet Connectors 0 00 02 cece eee ee eee 34 2 6 2 Connecting the Cables erros socis ioi a i ra a E 35 2 7 Creating I O Tables cresi oeeie seoda Gi ea a a wb ee ee ee 36 2 7 1 I O Table Overview 0 0 0 ccc eee ee 36 2 7 2 Connecting Programming Devices to the PLC 36
200. onnecting twisted pair cable N Caution Allow enough space for the bending radius of the twisted pair cable as shown in below 35mm omron yA L B 1 2 3 1 Lay the twisted pair cable 2 Connect the cable to the hub Be sure to press in the cable until it locks into place A simple installation example for these first two steps is provided in an appendix at the end of this manual Request cable installation from a qualified professional 3 Connect the cable to the connector on the CS1D Ethernet Unit Be sure to press in the cable until it locks into place RJ45 Modular Connector Ethernet Unit 35 Creating I O Tables Section 2 7 2 7 Creating I O Tables 2 7 1 I O Table Overview Note I O tables are used to identify Units mounted to the PLC and to allocate I O to them With CS series CS1D PLCs whenever there is a change to the Unit configuration it is necessary to create I O tables and register the Units to the CPU Unit The I O tables can be created in the following ways e Using the CX Programmer offline e Using the CX Programmer online with the Units mounted to the PLC e Using the Programming Console with the Units mounted to the PLC 1 Before creating the I O tables always set the unit number of the Second ary Unit to one higher than that of the Primary Unit 2
201. ons Section 6 5 Example Network Settings Driver Tab Network Settings Ethernet x Network Driver Workstation Node Number Auto detect MIP Address Port Number 192 168 2350 J 3600 Cancel Help m System Configuration Example 2 Going between Networks The following conditions must be met to connect online from a CX Program mer CX Net on the primary network of a duplex Ethernet network to a PLC PLC 3 below on a Controller Link network via a PLC PLC 1 below ona duplex Ethernet network Conditions e Protocol FINS UDP e IP address conversion Automatic generation method dynamic CX Programmer CX Net Controller Link Unit Node address 1 IP address 192 168 250 1 Ethernet Unit IP address conversion Automatic generation method dynamic Gateway between networks PLC1 Primary Unit node address 2 Primary Unit IP address 192 168 250 2 Primary Unit Unit number 0 Secondary Unit node address 2 Secondary Unit IP address 192 168 251 2 Secondary Unit Unit number 0 Controller Link Unit node address 1 Controller Link Unit Unit number 2 Secondary network address 2 Routing according to routing table Routing to final network address 2 Controller Link Unit Controller Link Unit requires relaying through node Target PLC address 2 of relay network address 1 Ethernet Unit Controller Link network address 2 CX Program
202. owing diagram shows an example of an overall system configuration Ethernet Units as a set in a CS1D PLC 1 Creating a Duplex Ethernet Network Primary Unit Secondary Unit CS1D Ethernet Unit 2 Connecting the CX Programmer to the PLCs online via Ethernet x i CX Programmer Ver 4 0 or later FINS message communications 4 FinsGateway 2003 CS1D Ethernet unit a S NS series PT 4 FINS message communications lt Network status pn FINS message communications Primary Unit Secondary Unit CS1D Ethernet Unit 3 Sending and receiving data via Ethernet between OMRON PLCs Non duplex Ethernet Network Individual Ethernet Network Primary Network CS1D Ethernet Unit A non duplex Ethernet network ETN21D Ethernet Unit in a CS1D PLC 2 Connecting the CX Programmer to the PLCs online via individual Ethernet Cx Programmer Ver 4 0 or later lt gt FINS message communications e d FinsGateway 2003 CS1D Ethernet unit FINS message communications ah Earlier model Ethernet Unit PLC 4 Communicating with devices that connect to individual Ethernet Units such as earlier Ethernet Units can be created by mounting one CS1D NS series PT 4 FINS message communications FINS me
203. pecifications Number of nodes 254 Message length 2 012 bytes max Number of buffers 192 Protocol name FINS UDP method FINS TCP method Protocol used UDP IP TCP IP The selection of UDP IP or TCP IP is made by means of the FINS TCP Tab in the CX Pro grammer s Unit Setup Number of connections 16 Port number 9600 default Can be changed 9600 default Can be changed Protection No Yes Specification of client IP addresses when Unit is used as a server Other Items set for each connection e Server client specification e Remote IP address specification When client Specify remote Ethernet Unit server IP address When server Specify IP addresses of clients permitted to con nect e Automatic FINS node address allocation Specify automatic allocation of client FINS node addresses e Keep alive Specify whether remote node keep alive is to be used TCP IP Setting e Remote node keep alive time Items set for each UDP port e Broadcast e P address conversion Internal table This a table of correspondences for remote FINS node addresses remote IP addresses TCP UDP and remote port numbers It is created automatically when power is turned ON to the PLC or when the Ethernet Unit is restarted and it is automatically changed when a connection is established by means of the FINS TCP method or when a FINS command received The following functions ar
204. perating environment error Unit error 7 2 Command Response Reference 7 2 1 RESET Command Block Response Block Note This section describes the FINS commands that can be sent to Ethernet Units and the responses to each command Command Name The command name is provided as the heading of each section Function The function of the command is given after the command name Command Block The format of the command and command code are given Each square in the command format represents one byte Response Block The format of the response is given Each square in the response format rep resents one byte Parameters The meaning setting range and other information is provided on the parame ters Precautions Precautions for using the command are provided where applicable Response Codes The codes returned in response to executing the command are explained Except for special cases all send receive data is in hexadecimal format Resets the Ethernet Unit ee Command code osjo Command Response code code 135 Command Response Reference Section 7 2 Precautions No response will be returned if the command ends normally A response will be returned only if an error occurs In some cases send requests SEND 192 RECV 193 instructions made from the PLC to the Ethernet Unit just before execution of the RESET com mand may not be executed Except for the FINS communications servi
205. power button for the Memory Card on the CPU Unit The MCP WR indicator on the CPU Unit will go out When this indicator goes out re move the Memory Card 6 Check the text file created on the Memory Card on a Windows computer The text file name will be as follows ETN_ 1 2 3 4 INI 1 2 Node address 01 to FE hex 3 4 Unit address 10 to 1F hex The unit address is the unit number in hexadecimal plus 10 hex 7 The contents of the text file is given in the following table 189 Using a Memory Card Text File to Set Up an Ethernet Unit 190 Appendix G Note can be used for comments Contents Duplex Duplex N Y Duplex N Not Duplex System Primary IpAddress 0 0 0 0 0 0 0 0 255 255 255 255 SubNetMask 0 0 0 0 0 0 0 0 255 255 255 255 FinsUdpPortNo 0 0 65535 UserDefined FinsUdpPortNo N Y Use N Don t use FinsTcpPortNo 0 0 65535 UserDefined FinsTcpPortNo N Y Use N Don t use AddressConversionMode 1 1 Auto Dynamic 2 Auto Static 3 TableUsed 4 Mixed Broadcast N Y All 0 4 2BSD N All 1 4 3BSD Baudrate N Y 10Base T N Auto detect TcplpKeep aliveTime 0 0 65535 min NetworkStatus Primary NetworkStatusUdpPortNo 0 0 65535 UserDefined NetStatUdpPortNo N Y Use N Don t use 0 0 255 0 0 255 IntervalTime WatchTime lpAddressTable Primary Example IpTbIXX xxx XXX XXX XXX XXX 1 FINS node address 1
206. ppendix G When the Memory Card Unit Setup Access Error Bit Is ON e One of the following error codes is stored depending on the status of the Memory Card or setup file Error code Meaning Normal Execution is not possible because an operation is already being per formed More than one control bit for the Memory Card Unit Setup function has turned ON at the same time So such file Either the Memory Card or a setup file is missing Write protected via switch setting Too many files An attempt was made to create more than the regis tered number of files No file device A Memory Card is not inserted An access error occurred such as a damaged file device e g Mem ory Card e If the Memory Card Unit Setup Access Error Flag is ON the ERH indi cator will flash e To clear an error correct the problem and perform the setup procedure again or turn ON the Memory Card Unit Setup Error Clear Bit bit 13 of CIO 1500 25 x unit number 6 If there is not error the settings have been completed normally Turn OFF the power supply 7 Change the unit number of the Secondary Unit to the number one higher than that of the Primary Unit 8 Turn ON the power supply 9 Confirm that the DPL indicator is lit on the Primary Unit and lit on the Sec ondary Unit This completes the procedure Note The node address and unit address of the Primary Unit are given in the text file name on the Memory Card It is
207. r details Minute Second Day Hour Year Month Indicate the time at which the error stored in the record occurred If the error log contains fewer records than the number specified in the num ber of records parameter all records stored in the error log at the time the command is executed will be returned and the command executed will end normally Command Response Reference Section 7 2 Response Codes Response code Description Normal Command too large Command too small Beginning record number is out of range The number of read records is 0 7 2 9 ERROR LOG CLEAR Command Block Response Block Response Codes 7 2 10 PING Command Block Response Block Parameters Destination IP Address Command Clears the number of records stored in the Ethernet Unit error log 21 03 uy Command code yr Command Response code code 0000 Normal 1001 Command too large Equivalent processing to the UNIX computer PING command see below uu xev iunv e Command Destination IP address Timeout code value SS Command Response code code The IP address in hexadecimal of the destination node for the PING com mand echo request packet 143 Command Response Reference Section 7 2 Timeout Value Command Remarks Response Codes The wait time for the echo reply packet The value is set in seconds The time out time is set at 20 seconds if the value i
208. r to make the settings for a CS1D ETN21D Ethernet Unit It is also possible to make the settings for a CS1D ETN21D without the CX Programmer using a Programming Console and a text file stored in a Memory Card Refer to Appendix F Inspections for details on making settings from a text file in the Memory Card System Configuration Making Settings in the Routing Table Area with CX Net Middleware for FINS Communications Applications on a Personal Computer FinsGateway Section 1 3 Personal computer running Windows CX Programmer Unit Setup CS1D Ethernet Unit p CP it System Set MES M U Bus Un up Area C CS1D CPU Unit OMRON Communications Units use OMRON s original FINS network system Make the settings for the FINS network address and the relay path as required in the Routing Table Area allocated to the non volatile memory in the CPU Unit Use CX Net to make the settings CX Net is software that comes with the CX Programmer and is automatically installed when the CX Programmer is installed Each time the Ethernet Unit is turned ON or restarted it reads and uses the contents of the Routing Table Area as the settings for FINS network When using a duplex Ethernet network set different network addresses for the primary and Secondary Units Personal computer running Windows Routing table settings CS1D Ethernet Unit
209. ramming of a programmable product or any consequence thereof Xiv Disclaimers CHANGE IN SPECIFICATIONS Product specifications and accessories may be changed at any time based on improvements and other reasons It is our practice to change model numbers when published ratings or features are changed or when significant construction changes are made However some specifications of the products may be changed without any notice When in doubt special model numbers may be assigned to fix or establish key specifications for your application on your request Please consult with your OMRON representative at any time to confirm actual specifications of purchased products DIMENSIONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufacturing purposes even when tolerances are shown PERFORMANCE DATA 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 ERRORS AND OMISSIONS The information in this manual has been carefully checked and is believed to be accurate however no responsibility is assumed for clerical typographical or proofreading errors or omissions XV
210. ransmit retry attempts Response time out response watchdog Increase the value for the response monitor timer interval too short time in the control data The transmission frame may be corrupted Read out the error log and correct as required or the internal reception buffer full 03 Communica Error occurred in the communications con Take corrective action referring to troubleshoot tions controller troller ERC indicator is lit ing procedures in this section error CPU Unit error occurred in the PLC at the Check CPU Unit indicators at the remote node remote node and clear the error in the CPU Unit refer to the PC s operation manuals Unit number setting error Make sure the unit number is within the speci fied range and that the same unit number is not used twice in the same network 174 Troubleshooting with Response Codes Section 8 5 Main code 04 Not execut able Service not sup ported Sub code Probable cause An undefined command has been used Remedy Check the command code and be sure the command is supported by the Unit to which you are sending it A short frame 4 bytes is being used for the FINS header frame Check the FINS header frame length The Ethernet Unit does not support short headers 05 Routing error Remote node is not set in the routing tables Set the destination address in the routing tables Rout
211. rk Unit No No network network node 1 030 06 1 010 030 015 2 2 020 030 015 3 3 6 5 Using FINS Applications 6 5 1 Note 102 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 Section 6 5 The Secondary Unit is assigned a unit number one higher than the number actually set on it 1 The connection between the CX Programmer and the PLC will not be re dundant i e will not switch automatically if an error occurs if Ethernet is selected as the network type from the CX Programmer FinsGateway 2 To create a redundant connection select FinsGateway as the network type and install FinsGateway version 2003 or higher along with a duplex compatible driver ETN_UNIT on the personal computer Refer to 6 5 2 Using FINS Applications Section 6 5 m System Configuration Example 1 Within a Single Network The following conditions must be met to connect online from a CX Program mer CX Net on the primary network of the duplex Ethernet network to a PLC PLC 1 below on the duplex Ethernet network Conditions e Protocol FINS UDP e IP address conversion Automatic generation method dynamic CX Programmer CX Net Node address 1 Ethernet Unit IP address 192 168 250 1 IP address conversion Automatic generation method dynamic Primary Unit node address 2 Prim
212. rk num ber 3 Final network number Relay network number Relay node address 2 Save the routing table file File Save local routing table file 3 Select New from the Project Menu and save with a file name Then select Add Device from the Project Menu For each PLC register a PLC with a direct serial connection node address 0 and select it 4 With CX Net select Open from the PLC Menu 5 Select Routing table Setup read the saved file and select Options Transfer to PLC Click Yes to transfer the routing tables to the connected PLCs 106 Using FINS Applications 6 5 2 FinsGateway Section 6 5 FinsGateway Ver 2003 must be used to communicate using FINS TCP between applications serving as communications drivers and CS1D ETN21D CS1D Ethernet Units Communicating Using a Duplex Ethernet Network Install an Ethernet Unit ETN_UNIT driver that supports duplex network func tions in addition to FinsGateway version 2003 or higher Communicating Using FINS TCP Install FinsGateway version 2003 or higher Communicating Using Only FINS UDP on a Non duplex Ethernet Network Use FinsGateway version 3 L or lower if desired m Overview of Setup Methods 1 Starting FinsGateway Settings Select FinsGateway FinsGateway Setup to start the FinsGateway Setup 2 ETN UNIT Driver Setup 1 Double click on ETN_UNIT in the settings for the network and Unit The fol lowing ETN_UNIT Properties Window will be
213. rresponding flag in A437 is turned ON The Primary Communications Unit will continue communications Bits 00 to 15 correspond to unit numbers 0 to F Bit 00 to 15 0 to F unit number The bit will turn OFF when the Communications Unit with the error is replaced online OFF No error ON Error Section 4 3 Auxiliary Area Data Word s Bit s Name Function A042 to A049 Duplex Communi cations Switchover Cause When there is an error in a Communications Unit an 8 bit error codes will be stored in the bits corre sponding to the unit number shown below A04200 to A04207 O unit number A04208 to A04215 1 unit number A04300 to A04307 2 unit number A04308 to A04315 3 unit number A04400 to A04407 4 unit number A04408 to A04415 5 unit number A04500 to A04507 6 unit number A04508 to A04515 7 unit number A04600 to A04607 8 unit number A04608 to A04615 9 unit number lt L YS YS Ye Ye Ye YS YS A04700 to A04707 A unit number A04708 to A04715 B unit number A04800 to A04807 C unit number A04808 to A04815 D unit number 3 3I TS HS A04900 to A04907 E unit number A04908 to A04915 F unit number The bits for the Primary Unit correspond to the unit number set on the Unit The bits for the Secondary Unit correspond to the unit number one higher than the number set on the Unit If an error code is set the corresponding bit in A436 Duplex Communications Switchover
214. s The following headings appear in the left column of the manual to help you locate different types of information Note Indicates information of particular interest for efficient and convenient opera tion of the product 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc OMRON 2004 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permission of 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 Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the information contained in this publication TABLE OF CONTENTS PRECAUTIONS seeded iada vee eeu ees oie ede eseeen XVII 1 Intended Audience sai ots esters otis wed oak wes ERM Rea oa Whe el nasa gh ened Neale wade ate xviii 2 General Precautions aren neiti en wee Esi EAA A hale aE a Ear Oh are A xviii 3 Safety PrecauliOnsy secu Seek eee ed Ba E RE EE E E T EA e xviii 4 Operating Environment Precautions s
215. s refer to SECTION 6 FINS Communications Service in the Opera tion Manual Construction of Networks 55 FINS TCP Section 3 2 56 SECTION 4 Ethernet Unit Memory Allocations This section describes the words allocated in the CIO Area and the DM Area for Ethernet Units 4 1 ClO Area Allocations 0 0 00000 cee cece eee 58 4 2 DM Area Allocations cen ea a ccc cece eens 65 4 3 Auxiliary Area Data 2 255 8 r a aor i EE EA eee oe Ree a T ai 66 57 CIO Area Allocations Section 4 1 4 1 CIO Area Allocations With Duplex Communications Units CIO Area words are allocated to both the Primary Unit and Secondary Unit Information is stored in the allocated words at the offsets shown below from the first word allocated to each Unit The value of the first word n can be calculated as follows n CIO 1500 25 x Unit number See note Note In the above formula use the unit number actually set on the Primary Unit and use one larger than the unit number set on the Secondary Unit Bit Offset 15 8 7 0 Data direction Related communications services n Unit Control Switch CPU Unit to Ethernet Unit Memory Card Unit Setup n 1 Network Participation Status Ethernet Unit to CPU Unit Network Status Transmission n 16 n 17 Service Status Communications services n 18 Error Status All error conditions n 19 Memory Card Unit Setup Error Code Memory Card Unit Setup n20 0 Not used 0 n 22
216. s and IP addresses With FINS UDP this is enabled only when the IP address table method is set as the IP address conversion method IP Router Table Set when the Ethernet Unit is to communicate through the IP router with nodes on another IP network segment 3 2 FINS TCP CS1D Ethernet Unit CPU Bus Unit 2 x File Options Help Setup FINS TCP FINS TCP Connection Setup ___FINS TCP Mode IP Address Auto allocate keep alive FINS TOP Server 239 Va i FINS TCP Server a 340 Valid E FINS TCP Server 241 Valid FINS TOP Server 242 Valid FINS TOP Server 243 Valid FINS TOP Server 244 Valid FINS TOP Server 245 Valid FINS TOP Server 246 Valid FINS TOP Server 247 Valid 0 FINS TOP Server 248 Valid 1 FINS TOP Server 249 Valid 2 FINS TOP Server 250 Valid 3 FINS TGP Server 251 Valid 4 FINS TOP Server 252 Valid 5 FINS TOP Server EZES 253 Valid 6 FINS TGP Server Sa 254 Valid Use IP address to protect valid for FINS TCP Server CS1D H CPUB5 Program 53 Section 3 2 FINS TCP Edit FINS TCP Connection FINS TOP No 1 FINS TCP Mode Server C Client IP Address IV Auto allocated FINS node IV keep alive FINS TCP Connection Setup Contents 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 c
217. s conversion method in the system mode settings is set for automatic generation Response code Description Normal echo reply received from the remote node Command too large Command too small The number of records specified does not match the sent data length The number of records is not between 0 and 32 The FINS node address is not between 1 and 126 The IP address is 0 IP address conversion method is set for automatic generation 7 2 14 IP ADDRESS WRITE Command Block Write the local IP address and the subnet mask in the CPU Bus Unit System Setup Command IP address Subnet mask code 147 Command Response Reference Section 7 2 Response Block Parameters IP Address Command Subnet Mask Command Response Codes Precautions Command Response code code Specify the local IP address of the Ethernet Unit using 4 pairs of hexadecimal numbers in the range 00 00 00 00 to FFFFFFFF 0 0 0 0 to 255 255 255 255 decimal If 0 0 0 0 is specified the local IP address set in the allocated words in the DM Area is enabled Example 150 31 2 83 Specify the local IP address of the Ethernet Unit using 4 pairs of hexadecimal numbers in the range 00 00 00 00 to FFFFFFFF 0 0 0 0 to 255 255 255 255 decimal Example 255 255 255 255 FF FF FF 00 Response code Description Normal Command too large Command too small The local IP address and subnet mask set using th
218. s digit least significant digit The node address is factory set to 01 1 Turn OFF the power supply before setting the node address 2 Always set the same node address for the Secondary Unit and Primary Unit When using the automatic generation method either dynamic or passive for address conversion set the rightmost byte of the IP address set for the Ether net Unit to the same value as the node address If this is not possible either the IP address table method or the combined method must be used for address conversion For details refer to 5 2 IP Addresses in FINS Communi cations If the FINS communications service is not used on the Ethernet net work then it is all right to overlap with other Ethernet Units The setting however must be made within a range of 01 to FE If a value outside of this range is set the ERC indicator will light Mounting to a PLC Section 2 4 2 4 Mounting to a PLC 2 4 1 Mounting to a CS1D Duplex CPU System Note Ethernet Units can be mounted to any slots in either a CS1D Duplex CPU System CPU Rack or an Expansion CPU Rack for Online Unit Replacement Up to four CS1D Ethernet Units or four pairs of Duplex CS1D Ethernet Units can be mounted to a single PLC If it is mounted in combination with other CPU Bus Units e g Controller Link Units the maximum total number of CPU Bus Units that can be mounted is 16 Tighten PLC Backplane mounting screws to a torque of 0 9 N m and the Unit s s
219. s more reliable due to factors such as retry process ing at the TCP IP layer The FINS TCP method is thus better suited to dealing with communications errors in an IP network that spans several layers e Remote clients can be restricted by means of settings at the server i e the server can be protected from access by non specified IP addresses e Broadcasting cannot be used e TCP IP has various retry procedures and this tends to lower its perfor mance in comparison with UDP IP 94 FINS TCP Method FINS TCP Frame Format Section 6 3 e There is a limit to the number of connections that can be made i e 16 connections maximum and any given node can communicate only with up to 16 other nodes at a time e 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 The following diagram shows the structure of a TCP packet sent over an Ethernet network Ethernet Ver 2 ip tcp FINS TCP header FINS frame FCS TCP Port Number for FINS TCP FINS TCP Connection Numbers TCP packet As the diagram shows a nested structure is used with the FINS TCP method i e Ethernet Ver 2 IP frame TCP frame FINS TCP header frame and FINS frame A TCP data section FINS TCP header FINS frame that exceeds the segment size default 1 024 bytes with automa
220. s specified as 0 If the echo reply packet is not received within the set time limit the code for a timeout error will be set as the results storage response code PING Command The PING command runs the echoback test using the ICMP protocol When the PING command is executed an echo request packet is sent to the remote node ICMP Correct communications are confirmed when the returned response packet is received normally The echo reply packet is automatically returned by the remote node ICMP Response code Description Normal Timeout error Command too large Command too small Zero destination address PING command currently being executed High traffic at Unit cannot execute service 7 2 11 FINS TCP CONNECTION REMOTE NODE CHANGE REQUEST Note Command Block Response Block Parameters FINS TCP Connection No Command Remote IP Address Command 144 Requests a remote node change for the FINS TCP connection The default destination IP address in a connection in which the Ethernet Unit is used as a Client is the destination IP address set under the FINS TCP Tab in the Unit Setup By sending this command to the Ethernet Unit the destina tion IP address for the specified connection can be changed to another IP address Remote node changes can be made only for connection numbers specified as FINS TCP clients in the Unit Setup Command FINS TCP Remote IP Remote TCP code connection No
221. s that relay target segments when the Unit communicates via IP routers with nodes on other IP network segments 130 25 X X Network ID 130 26 X X Network ID 130 25 36 253 130 26 2 254 IP router 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 Four bytes are reserved for setting the IP network address so set the network number from the beginning and then set 00 in the remaining space 44 Communications Test Section 2 11 A maximum of eight settings can be registered The default is for nothing to be set Settings In this example setting for Node A refer to the diagram above a network with a Network ID of 130 26 XX is connected to an IP router with an IP address of 130 25 36 253 Insert Routers IP Address x IP Network Address 130 26 0 0 Routers IP Address 130 25 36 254 Cancel Only one default IP router can be set The default IP router is selected when no Network ID exists in the IP router table for the destination network number To set the default IP router set 0 0 0 0 for the IP address and set the default IP router s IP address for the router address 2 11 Communications Test 2 11 1 Using Indicators LNK Indicator 100M Indicator DPL Indicator SD and RD Indic
222. s whenever possible e With cascade connections up to 5 segments can be connected using up to 4 repeaters i e 4 hubs MDI ports MDI X port _ Straight cable cross Hub Cross cable Hub Hub Hub 0 en o F aam z mm Fn j me z mne Oo oo 0 ojo ojo ojo ojo alo p LA 32 Network Installation Section 2 5 Stack Connections e Connect the hubs using special cables or special racks e Normally there is no limit to the number of hubs in a stack and each stack is treated as one hub Some hubs however are limited in the number of hubs per stack TT Four stackable hubs Two stackable hubs a Stack cable 2 5 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 Mounting Location Mount or connect any Contact Output Units as far away from the CS1D Ethernet Unit as possible Contact Output Unit Ethernet Unit y i Contact outputs Cable Location Separate the transceiver cable or twisted pair cable connecting the CS1D Ethernet Unit as far from the wiring to the Contact
223. server DNS SMTP POPS or SNTP in the Unit Setup Read the error status and history and correct the data that is causing the error If the problem persists replace the CPU Unit 162 An error occurred in EEPROM Restart the PLC If the problem per sists replace the Ethernet Unit Error Status Section 8 2 RUN ERH Probably cause The IP address is set incorrectly Correction Correct the IP address Do not set any of the following IP addresses e Host IDs that are all O or all 1 e Network IDs that are all O or all 1 e Subnetwork IDs that are all 1 e Addresses beginning with 127 7F Hex The node address set on the rotary switch on the front of the Unit does not agree with the host ID in the IP address This probably can occur when the address conversion method is set for automatic address generation Make sure that the node address and the last byte of the IP address are the same and set other host IDs to 0 Change the address conversion method An access error occurred when setting the Unit using a text file on a Memory Card Check the error code remove the cause of the error and then set the Unit The error can be cleared by set ting the Unit correctly or by turning ON the Memory Card Unit Setup Error Clear Bit 8 2 Error Status The Ethernet Unit will output error status to the following word in the CIO Area of the CPU Unit This i
224. set in the CPU Unit Bus System Setup is stored in the allocated words in the DM Area Setting device Simple operation i e The CPU Unit Bus System Setup is used at its default settings Only the IP address is set Application Setting area Allocated words in the DM Area Programming Con sole CX Program mer can also be used Operation with the CPU Unit Bus System Setup set as desired CX Programmer CPU Unit Bus Sys tem Setup Note 1 If a value other than 00 00 00 00 is set as the local IP address in the CPU Bus Unit System Setup even if an IP address is set in the allocated words in the DM Area it will be overwritten with the setting in the CPU Bus Unit System Setup 2 It is not possible to set the following IP addresses If any of these values are set the ERH indicator will flash e IP addresses where all network number bits are 0 or 1 e IP addresses where all host number bits are 0 or 1 e IP addresses where all subnet number bits are 1 e IP addresses that start with 127 7F hex e g 127 35 21 16 4 3 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 A20200 to A20207 Communications Port Enabled Flags Function Bits A20200 to A20207 turn ON when a network instruction SEND RECV CMND or PMCR can be executed with the correspondi
225. sible for messages to be lost due to noise or when the communi cations path automatically switches to the secondary network To handle such problems when using a message service resend the message from the node sending the command Refer to the separation detection time for the other node described in 6 7 Network Status Performance when setting the response monitor time A setting of 1 5 times the separation detection time for other nodes is recommended for the response wait time The data will be sent again automatically as specified by the resend count with the SEND RECV and CMND instructions so set the resend count to at least 1 115 Communicating between OMRON PLCs Section 6 6 RECV 098 116 RECV 98 S D C 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 Local node Remote node number N 15 0 f Number m of words m S Remote node beginning word D Local beginning word C First word of control data below 15 0 15 10 87 3 o ede ea a cso T Number of reception words m L Aird retries 0001 to 03DE Hex 1 to 990 words Communications port number 0 to 7 15 11 87 o c 0 0 i Response ee ena 0 Required Destination network number 1 Not required 00 Hex Local network 01
226. sing 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 Max delay CPU Bus Unit service cycle local node CPU Bus Unit service processing time local node Transmission processing time Transmission Delays Reception processing time CPU Bus Unit service cycle remote node CPU Bus Unit service processing time remote node The following delays comprising the maximum transmission delay time occur when operation switches automatically to the secondary system following an error in the primary network path Automatic switching CPU Bus Unit service cycle local node delay time CPU Bus Unit service processing time local node SEND 090 executed in user program CPU Bus Unit service cycle local node CPU Bus Unit service processing time local node 1 Transmission processing time Y Transmission Delays Reception processing time CPU Bus Unit iy service cycle remote node i CPU Bus Unit service processing time remote node CPU data set y processing time remote node i Maximum transmission delay CPU Bus Unit Service Cycle 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 CPU Unit cycle time For
227. sions 35 x 130 x 101 mm W x H x D 11 Specifications Section 1 4 1 4 2 Dimensions CS1D ETN21D ETN21D Tas ma w EN ma ma y op Jio 130 100BASE TX 10BASE T 101 E gt Unit mm 1 4 3 Software Configuration The software supported by the Ethernet Unit runs in the layers shown in the following diagram The components that form the various layers are defined below the diagram CS series FINS communi CPU Unit cation service 7 FINS 8 Network Status Generato FINS UDP FINS TCP 5 UDP 6 TCP Ethernet 2 IP 3 ICMP 4 ARP Unit 1 Ethernet Ver 2 0 1 2 3 1 Ethernet Ver 2 0 The Version 2 0 Ethernet frame format is used for communications 2 IP Internet Protocol Transfers datagrams to destination nodes using IP addresses 3 ICMP Internet Control Message Protocol Supports IP communications by signalling errors in data transfers 4 ARP Address Resolution Protocol Determines the Ethernet address i e physical address by broadcasting based on the target IP address 12 Overview of Communications Functions Section 1 5 5 UDP User Datagram Protocol Performs data communications with datagram units Data resends priority control flow control and other measures to ensure communications reli ability are not performed for UDP communications so the transmitted data may not arrive at the destination node To increase reli
228. ss M is received at the words starting from the beginning word D at the local node Local node Destination node number N 15 0 Command Com Interpretation y Response Re d sponse D 1 data m qm bytes 2 CMND 490 S Beginning command storage word OD D Beginning response storage word C First word of control data below 15 0 T T T c L M Number of bytes of command data n 0000 to 07C6 Hex 1 to 1 990 bytes 15 0 Number of bytes of response data m 0000 to 07C6 Hex 1 to 1 990 bytes 15 11 87 i o 15 10 87 3 o C 2 0 0 i C 4 0 0 L Number of retri Destination network number umber ot retrles 3 00 Hex Local network ___ Oto F Hex 0 to 15 retries 01 to 7F Hex 1 to 127 Communications port number 0 to 7 15 87 o Response C 3 0 Required i 1 Not required Destination Unit address 00 Hex CPU Unit 15 10 87 3 0 10 to 1F Hex Unit 0 to 15 C45 E1 Hex Inner Board L 1 ii FE Hex Unit connected to network L Response monitor time 0000 Hex 2 s 0001 to FFFF Hex 0 1 to 6 553 5 s Destination node number N in units of 0 1 8 00 to 7E Hex 0 to 126 The same data can be broadcast to all nodes on the network by setting the destination node number to FF Hex The range of node addresses is different for networks other than Ethernet Messages may not always arrive at the destination node for
229. ssage communications CS1D Ethernet Unit 6 Sending and receiving data between OMRON PLCs via individual Ethernet network PLC YI FINS message communications ERUPE Earlier model Ethernet Unit PLG Section 1 1 FINS anm LAN Ej FINS FINS amm LAN FINS Ethernet Unit Function Guide Section 1 1 1 1 2 Determining the Objectives Connecting the CX Programmer to PLCs Online via Ethernet Creating a Duplex Ethernet Network Connecting the CX Programmer and a PLC Online in a Duplex Ethernet Network Communicating between OMRON PLCs in a Duplex Ethernet Network Communicating with Non duplex Ethernet Nodes such as Earlier Ethernet Units Use two CS1D Ethernet Units as a set The main Ethernet network is called the primary network and the Ethernet Unit connected to the primary network is called the Primary Unit The duplex Ethernet network is called the secondary network and the Ethernet Unit con nected to the secondary network is called the Secondary Unit Special communications data called the network status is broadcast at fixed intervals in order to manage the entry withdrawal of communications nodes in each network Nodes can be duplexed in the Ethernet network only if they are within the same segment and can send and receive the broadcast network status data To create a redundant CX Program
230. sssussu urera r rneer erreren errre xix 5 Application Preca tionS riese ier nse baie ers EE EERE E EAE E E EET E AEA xix 6 Conformance to EC Direcuvess eicc a AeA A AE E a e OR E T T E A he xxi SECTION 1 Features and System Configuration ssssssssesee n 1 1 Ethernet Unit Function Guide 0 0 eee eee eoret 2 122 Feat Sieen Re taste tek abe GA dee CA teach ich Saeed a haha eta ed 5 1 3 System Configuration 0 0 00 0 eect ete rreren 7 1 4 Sp cifications setinin n bg stse a a E a a debs eee a E a EEA 11 1 5 Overview of Communications Functions 20 0 0 cece een eens 13 1 6 Nomenclature and Functions 0 0 cece eee cent ence ene eeee 17 1 7 Comparison with CSIW ETN21 0 00 0 ec cee eee eee 19 SECTION 2 Installation and Initial Setup ccceeeeeeeee 21 2 1 Overview of Startup Procedure 2 0 ccc eee eee 22 2 2 Main Points in Creating a Duplex Ethernet Network 0 0 00 0000000008 25 2 3 Switch Settings 2 22 phccacues ors see die be aa vA ee Sea edi naan 26 2 4 Mounting to a PEC A Soria ien eta elke Wtea eile Meee Ante tensa eee ate Sets 29 2 5 Network Installation scs sertie ov tare eae ee ek dace ol ke pea ee E 30 2 6 Connecting to the Network 2 0 0 ec cee een e eee 34 2 7 Creating VO Tables sneru tec ese A ae ug ee ea Seu oe hd RRs lone Eas 36 2 8 Enabling Duplex Communications 0 0 0 c eee eee eee 37 29 Unit Setup Procedure irea
231. started or the power must be turned ON again to the PLC 15 14 13 12 1110 9 8 7 6 5 4 3 2 1 0 m 98 1 2 3 4 m 99 5 6 7 8 IP address 1 2 3 4 5 6 7 8 hexadecimal 42 Basic Settings Section 2 10 If only the IP address is set according to the IP Address Display Setting Area and the defaults are used for all other Unit settings the settings will be as shown below IP address Words allocated for CPU Bus Unit m 98 to m 99 Subnet mask Uses value corresponding to IP address class Broadcast settings 4 3BSD specifications Baud rate Auto TCP IP keep alive 120 minutes IP router table Not set IP routing not supported 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 CS1D Ethernet Unit GPU Bus Unit E 21 xl Eile Options Help Setup FINS TCP Broadcast 4 FINS UDP Port m FINS TCP Port 4 r Network Status UDP Port All1 3BSD Default 9600 Default 600 Default 9602 C All0 2BSD C User defined C User defined C User defined 0 0 IP Address Conversion Baud Rate TCP IP keep alive 10 3 61 1 Auto dynamic Auto Do m Auto Static 10BASE T ie a20 Sub net Mask C Mix
232. stored depending on the status of the Memory Card or setup file Error code Meaning Normal Execution is not possible because an operation is already being per formed More than one control bit for the Memory Card Unit Setup function has turned ON at the same time So such file Either the Memory Card or a setup file is missing Write protected via switch setting Too many files An attempt was made to create more than the regis tered number of files No file device A Memory Card is not inserted An access error occurred such as a damaged file device e g Mem ory Card 63 CIO Area Allocations Sec tion 4 1 FINS TCP Connection Status Ethernet Unit to 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CPU Unit pe These bits show the status of FINS TCP connections Switch Status Manipulated Unit operation Reference by FINS TCP Connec Turned ON by the Unit when a connection is SECTION 6 tion No 1 established FINS Commu nications Ser vice Turned OFF by the Unit when the connection is terminated FINS TCP Connec Turned ON by the Unit when a connection is tion No 2 established Turned OFF by the Unit when the connection is terminated to to FINS TCP Connec Turned ON by the Unit when a connection is tion No 15 established Turned OFF by the Unit when the connection is terminated FINS TCP Connec Turned ON by the Unit when a connection is tion No 16 established Turned O
233. t 192 Using a Memory Card Text File to Set Up an Ethernet Unit Appendix G No Contents TcplpKeep aliveTime 0 0 65535 min NetworkStatus Primary NetworkStatusUdpPortNo 0 0 65535 UserDefined NetStatUdpPortNo N Y Use N Don t use IntervalTime 0 0 255 WatchTime 0 0 255 IpAddressTable Primary Example IpTbIXX XXX XXX XXX XXX XXX 1 FINS node address 1 254 2 IP address 0 0 0 0 255 255 255 255 IpTbIO1 0 0 0 0 0 IpTbI02 0 0 0 0 0 IpTbIO3 0 0 0 0 0 IpTbI04 0 0 0 0 0 IpTbIO5 0 0 0 0 0 IpTbIO6 0 0 0 0 0 IpTbIO7 0 0 0 0 0 IpTbI08 0 0 0 0 0 IpTbIO9 0 0 0 0 0 IpTbI10 0 0 0 0 0 IpTbl11 0 0 0 0 0 IpTbl12 0 0 0 0 0 IpTbl13 0 0 0 0 0 IpTbl14 0 0 0 0 0 IpTbl15 0 0 0 0 0 IpTbl16 0 0 0 0 0 IpTbl17 0 0 0 0 0 IpTbl18 0 0 0 0 0 IpTbl19 0 0 0 0 0 IpTbI20 0 0 0 0 0 IpTbI21 0 0 0 0 0 IpTbI22 0 0 0 0 0 IpTbI23 0 0 0 0 0 IpTbI24 0 0 0 0 0 IpTbI25 0 0 0 0 0 IpTbI26 0 0 0 0 0 IpTbI27 0 0 0 0 0 IpTbI28 0 0 0 0 0 IpTbI29 0 0 0 0 0 IpTbI30 0 0 0 0 0 IpTbI31 0 0 0 0 0 193 Using a Memory Card Text File to Set Up an Ethernet Unit Appendix G No Contents IpTbI32 0 0 0 0 0 IpRouterTable Primary Example RtTbIXX XXX XXX XXX XXX XXX XXX XXX XXX 1 IP network address 0 0 0 0 255 255 255 25
234. t 6 Node 1 Node 2 Node 5 Node 10 101 Using FINS Applications PLC 1 Routing Table Local network table jay network table Local network table PLC 2 Routing Table Local CPU Bus End Relay Relay No network Unit No No network network node 1 010 05 1 020 010 004 2 030 10 005 3 3 Local CPU Bus No network Unit No network Relay node 1 010 03 3 020 02 Local network table PLC 3 Routing Table Relay network table 030 No Local CPU Bus End Ri Relay network Unit No M network network node 1 010 04 020 010 004 lt p o 6 2 3 030 07 3 PLC 4 Routing Table Local network table Relay network table Local CPU Bus End Relay Relay No network Unit No No network network node 1 020 00 1 010 020 003 2 2 030 020 003 3 3 PLC 5 Routing Table Local network table Relay network table Local CPU Bus End Relay Relay No network Unit No No network network node 1 020 01 1 010 020 003 2 2 030 020 003 3 3 PLC 6 Routing Table Local network table Relay network table No Local CPU Bus r End Relay Relay network Unit No 0 1 network network node 1 030 05 1 010 030 015 2 2 020 030 015 3 3 PLC 7 Routing Table Local network table Relay network table No Local CPU Bus End Relay Relay netwo
235. t Settings Set the method for specifying IP addresses when broadcasting Seting SCSCS S tots SSC d All 1 4 3BSD Broadcast with all ones for Host ID 4 3BSD specifications Default All 0 4 2BSD Broadcast with Host ID all zeros 4 2BSD specifications E Baud Rate Set the baud rate Setting o cones O Auto Default Automatically detects the baud rate between hubs Operates with 100Base TX full duplex whenever possible 10Base T Operates with 10Base T half duplex E TCP IP Keep alive Setting Set the Liveness Checking Interval This setting is enabled only when FINS TCP or TCP IP socket services are used When the keep alive function is used with FINS TCP or TCP IP socket ser vices the keep alive communications frame is used to check the status of the connection with the remote node either a server or client if there are no com munications during the time interval set here Up to nine checks are executed at 75 second intervals and if there is no response to any of them then the connection is terminated The original setting may not be appropriate for all control system applications When the prescribed value is used as is it may not be suitable for control sys tem applications Set the checking time as required for the system The set ting range is 0 to 65 535 minutes E IP Router Table An IP router table is a table of correspondences for finding IP addresses for the IP router
236. t Unit Function Guide 0 0 0 0 eee eee eee 2 1 1 1 Overall System Configuration Example 2 1 1 2 Determining the Objectives 00 0 0 000 0000 3 2 Features us do teh cet thats eet Meet tale ES he take abe 5 1 3 System Configuration 0 0 00 eee ec eee eee 7 1 3 1 System Configuration 00 0 0 eee eee eee 7 1 3 2 Devices Required for Constructing a Network 7 1 3 3 Setup Area and Related Peripheral Devices 7 1 4 Specifications wi sis oie eis io sa CS ag Sse ea ks Ve al lawn eae 11 1 4 1 General Specifications 00 0 0 e eee eee ee 11 1 4 2 DIMENSIONS e aa a eas E E See he O E 12 1 4 3 Software Configuration 00 0 0 rnnr 12 1 5 Overview of Communications Functions sssusa sesers surer 13 1 5 1 FINS Communications Service 0 000000 13 1 5 2 Creating a Duplex Network 00000000000 14 1 6 Nomenclature and Functions 0 00 c eee eee eee 17 1 6 1 Component Names ossi ieia ero iania eee eee 17 1 6 2 Indicators ineei oE eq eee A EE A E pee es 18 1 7 Comparison with CSIW ETN21 0 0 00 00 eee eee 19 Ethernet Unit Function Guide 1 1 1 1 1 Duplex Ethernet Network Ethernet Unit Function Guide using CS1D Ethernet Units A duplex Ethernet network can be created by mounting two CS1D ETN21D Overall System Configuration Example The foll
237. t Unit and FinsGate way Ver 2003 an unused TCP port is automatically detected and utilized At the Ethernet Unit a TCP IP frame that is received is recognized as a FINS frame according to the remote TCP port number in the frame FINS TCP allows up to 16 FINS TCP connections to be established simulta neously and these 16 connections are managed at the Ethernet Unit by con nection numbers When setting connections by means of the FINS TCP settings in the CX Programmer s Unit Setup set them individually using these connection numbers 95 FINS TCP Method Section 6 3 FINS TCP Connection Status Word n 24 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 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 n 24 Bit 15 corresponds to connection No 16 bit 00 to connection No 1 etc FINS TCP With FINS TCP FINS node addresses are exchanged immediately after a Communications connection is established This makes it possible to determine the FINS node Procedure addresses to which the 16 connection numbers and to manage them in an internal table Personal computer Ethernet Unit Client Server Example Example IP address C IP address S
238. t status flag in PC memory to be sure that socket service has finished before starting services again The specified socket is not open Open the socket For TCP sockets be sure to wait until connection is made The internal buffers are full because there is too much traffic at the local node pre venting data from being sent Correct the user application to reduce traffic at the Ethernet Unit A connection is already established with the specified remote node Correct the settings for the FINS TCP connec tion number the remote IP address and the remote port number The specified connection number is not set as a FINS TCP client in the Unit Setup Correct the settings for the Unit Setup the FINS TCP connection number the remote IP address and the remote port number While a remote node change was being processed for the specified connection number a request for a change was received and the processing was stopped Correct the settings for the FINS TCP connec tion number the remote IP address and the remote port number 23 Environment error no such Unit IP address conversion failed Check the IP address and subnet mask in the System Setup and be sure that settings are cor rect Network Relay Errors 176 IP address conversion is set for automatic conversion only Check the mode settings in the System Setup This error will be generated for the READ IP ADDRESS
239. t time for peripheral servicing Default 4 of CPU Unit cycle time For details refer to the CPU Unit operation manual The transmission processing time may be longer than calculated depending on actual operating conditions This could be the result of several factors such as the network load line traffic the node window sizes the Ethernet Unit load and the system configuration Network Status Performance Section 6 7 Example Calculation Receiving 256 Words Using RECV between Two PLCs The following table provides a guideline for the maximum transmission delay time under the following conditions Conditions Local node CPU cycle time 10 ms Local node CPU uniform peripheral servicing time Default 4 Remote node CPU cycle time 15 ms Remote node CPU uniform peripheral servicing time Default 4 Baud rate 100Base TX Item Calculations CPU Bus Unit service cycle local node 1 10 ms CPU Bus Unit service processing time local node 1 0 4 ms Transmission processing time command 0 550 ms 0 5 ms Transmission delay command 0 0118 ms 0 1ms Reception processing time command 0 704 ms 0 7 ms CPU Bus Unit service cycle remote node 15 ms CPU Bus Unit service processing time remote node 0 6 ms Transmission processing time response 256 x 0 002 0 550 1 062 1 1 ms Transmission delay response 256 x 0 0013 0 0118 0 3446 0 3 ms
240. tart when execution condition CIO 000000 turns ON Input CIO 120000 remains ON from the start of SEND 090 execution until completion Control Data Creation Word Contents Meaning D0000 00 OA Number of send words 10 D0001 00 02 Destination network number 2 D0002 04 00 Destination node number 4 Destination unit address 0 D0003 07 05 Response required Communications port No used 7 Number of retries 5 D0004 00 64 Response monitor time 10 s Send Data Creation Ten words of data from word CIO 0000 is stored from D00010 onwards Ten words of data from D00010 at the local node is sent to D00020 onwards at network number 2 node number 4 unit address 0 the PC Reset Input Creation Send Error Display 123 Communicating between OMRON PLCs Section 6 6 Continued from previous page Execution condition See note 000001 A20207 120000 m 120003 120002 MOV 21 0010 D00005 MOV 21 0003 D00006 MOV 21 2000 D00007 MOV 21 0705 D00008 MOV 21 0000 D00009 120002 A21907 em 120002 120003 A21907 m 120002 A20207 See note m XFER 70 Note 1 When the Communications Port Enabled Flag for port 7 is ON and SEND 090 is not being executed the trans mission execution program will start when execution condition CIO 000001 turns ON Input CIO 120002 re
241. tatus of participation in the duplex Ethernet network is returned As Response shown below 4 bits are used to give the participation status for each node address 139 Command Response Reference Section 7 2 Response Codes 3 2 A Participation Status for Each Node 7 6 5 4 Node address 1 Reserved always 0 ofofo Byte 2 Node address 3 Node address 2 OFF Not participating in network ON Participating in network Byte 3 Node address5 Node address 4 Byte 127 Node address 253 Node address 252 Byte 128 Reserved always 0 Node address 254 Byte 1 0000 Normal 1001 Command too large 7 2 5 INTERNODE ECHO TEST Command Block Response Block Parameters Test Data Command Response Precautions Response Codes 140 Runs the echo test between specified nodes Command Test data code 08 01 BE 1 998 bytes max Kma Command Response Test data code code This command specifies the data to be sent to the specified nodes Up to 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 The test destination node is the destination node specified in the CMND 194 instruction operands Always specify the unit address of the Ethernet Unit in the CMND 194 instruction Response code Description Normal Command too large Command too small No test
242. ted to nodes that can be reached by the broad cast transmissions The network cannot be duplicated beyond this range Network Participation f System 1 2z 3 Node 3 gt Primary O x o Secondary O O O ON NS Primary lt a Secondary Network Network status Network status Network Network status Network status Network status Network Participation Network Participation System 1 2 3 System 1 2 3 Primary Oo x lo Primary x Xx x Secondary om en he Secondary Olo Overview of Communications Functions Section 1 5 Automatic Switching of FINS Message Communications Connecting with Earlier Non duplex Ethernet Nodes FINS Messages The entry withdrawal status can be read as the network participation status using the ladder program or the CX Programmer The Secondary Unit will be used when the Primary Unit can t be used as the source of FINS messages for some reason failure of the Unit disconnected cable hot swapping of the Unit etc If FINS message applications have been created that communicate through the primary network the CS1D CPU Unit and CS1D Ethernet Unit will automatically switch to the Secondary Unit as the destination node for messages Node 3 mS 2 Send through Secondary Unit 1 Primary Unit is down Also if the destination node
243. ter is returned The total number of bytes in the IP address table records is calculated as the number of records x 6 bytes record The configu ration of the 6 bytes of data in each record is as shown in the following dia gram 1 6 bytes Ue or FINS node IP address number FINS Node Address Node address for communications via the FINS command in hexadecimal IP Address IP number used by TCP IP protocol in hexadecimal If the IP address table contains fewer records than the number specified in the number of records parameter all the records contained in the IP address table when the command is executed will be returned and the command execution will end normally An error response will be returned if the IP address conversion method in the system mode settings is set to the automatic generation method Response code Description Normal Command too large Command too small IP address conversion method is set to the automatic genera tion method IP ROUTER TABLE READ Reads the IP router table Command Number code of records 149 Command Response Reference Response Block Parameters Number of Records Command Response Maximum Number of Stored Records Response Number of Stored Records Response IP Router table Records Response Precautions Response Codes 150 Section 7 2 Command Response Maximum Number Number IP router ee IP router code code number of store
244. tered in the I O tables i e when the Unit settings have not been made and the IP Address Display Setting in the CPU Bus Unit Words Allocated in the DM Area is still all zeros The default IP address is determined as follows Duplex Ethernet Networks Default IP address 192 168 250 FINS node address Default IP address 192 168 251 FINS node address Non Duplex Ethernet Networks Default IP address 192 168 250 FINS node address The FINS node address is set by the rotary switch on the front of the Ethernet Unit If the defaults are used for the IP address and the Unit settings the set tings will be as shown below Item Operation status IP address 192 168 250 FINS node address Subnet mask 255 255 255 0 Class C mask Broadcast settings 4 3BSD Baud rate Auto TCP IP keep alive 120 min IP router table None IP router not enabled Setting the IP Address in the CPU Bus Unit Words Allocated in the DM Area This method sets the IP address in the IP Address Display Setting Area in the CPU Bus Unit Words Allocated in the DM Area when the IP address is not set in the Unit Setup When the IP address is set in the Unit Setup the IP Address Display Setting Area becomes the area for displaying the settings To make settings in the IP Address Display Setting Area use the CX Pro grammer or Programming Console to write the values In order for the new settings to go into effect either the Ethernet Unit must be re
245. tered to the internal table e Remote IP address Local IP address network number FINS node address e Remote UDP port number UDP port number set for local Unit e Connection method FINS UDP With the combined method records of FINS nodes registered to the IP address table are not dynamically changed For all others nodes the data from FINS nodes registered with a remote IP address of 0 0 0 0 can be dynamically changed when the Unit is turned ON or restarted according to FINS messages received from remote nodes This can be used effectively when the remote node is a device such as a personal computer and IP addresses are dynamically changed by a method such as DHCP Example When FINS Command is Sent FINS node number IP address table Teesi IP address Node number in IP address table 18 199 214 0 62 IP address 20 153 214 0 129 IP address method sent Node number not in IP address table Network number xx xx 00 00 T gt PP address Automatic FINS node number xx See note generation FINS command method sent Automatic When FINS Command is Received generation FINS node number eee Node number Int I tabl not in IP Peele address table 25 3 218 51 10 gt IP address 153 218 51 10 FINS response returned When an internal table IP address has been changed with the reception of a FINS command this is sent to the IP address in the internal table FINS TCP Communic
246. th a Programming Console or CX Pro or Programming Console grammer Version 4 0 or later the I O Table window System Configuration Making PLC Setup Settings with the CX Programmer or Programming Console Making Settings in the CPU Bus Unit System Setup Area with the CX Programmer Section 1 3 Personal computer running Windows CX Programmer I O Table Setup CS1D Ethernet Unit CS1D CPU Unit When using the CS1D ETN21D Ethernet Units in a duplex Ethernet network set the Ethernet Unit as a primary or Secondary Unit as a CPU Bus Unit Make the settings with a Programming Console or CX Programmer Version 4 0 or later the Comms Unit Duplex Tab of the PLC Setup Window Personal computer running Windows CX Programmer PLC Setup CS1D Ethernet Unit CS1D CPU Unit For the Ethernet Unit to function as a node on an Ethernet network make the settings as required in the CPU Bus Unit System Setup Area allocated in non volatile memory in the CPU Unit Use the CX Programmer to make the settings by connecting online from the I O Table Window selecting the Ethernet Unit and then selecting Unit Setup Each time the Ethernet Unit is turned ON or restarted it reads and uses the contents of the CPU Bus Unit System Setup Area as the settings for the com munications services Use the CX Programmer Version 4 0 or late
247. that are returned by the Ethernet Unit Section 8 describes information and procedures that can be used to troubleshoot problems that some times occur with Ethernet Unit and Ethernet communications Appendices provide information on Ethernet network parameters the buffer configuration TCP status transitions ASCII characters maintenance and inspections Ix Relevant Manuals The following table lists CS series manuals that contain information relevant to CS1D Ethernet Units CS1D ETN21D Ethernet Units Oper ation Manual this manual Contents Provides information on operating and installing 100Base TX Ethernet Units including details on basic settings and FINS communications Refer to the Communications Commands Reference Manual W342 for details on FINS commands that can be sent to CS series CPU Units when using the FINS communications service CS1W ETN21 CJ1W ETN21 Ethernet Units Oper ation Manual Construction of Net works this manual Provides information on operating and installing 100Base TX Ethernet Units including details on basic settings and FINS communications Refer to the Communications Commands Reference Manual W342 for details on FINS commands that can be sent to CS series and CJ series CPU Units when using the FINS communications service CS1W ETN21 CJ1W ETN21 Ethernet Units Oper ation Manual Construction of Applications Provides information on constructing host applic
248. the Secondary Unit to the same value as the Prima ry Unit Do not change the unit number of the Primary Unit w Primary Secondary Unit Unit i i No No Unit number A Change unit number from A 1 to A Do not change Example Change from 1 to 0 Example 0 Do not set the same unit number for more than one CPU Bus Unit mounted in the same PLC Use a small flat blade screwdriver to make the setting being careful not to damage the rotary switch The factory setting is 0 UNIT beg NO a Duplex Oto E Non duplex OtoF Note 1 Turn OFF the power supply before setting the unit number 2 If the unit number is being set for the first time or changed then I O tables must be created for the PLC 3 Always use the above procedure to set the unit number Duplex operation will not be possible for the Ethernet Units if this procedure is not used The unit number of the Secondary Unit must be one higher than that of the Primary Unit before duplex communications are enabled and the unit numbers must be the same after duplex communications are enabled 4 To change the unit number clear the I O table and then repeat the unit number setting procedure from the beginning 27 Switch Settings Section 2 3 5 Enabled duplex communications in the PLC Setup after creating the I O tables Duplex operation will not be possible if duplex communications are enabled before creating the I O tables 6 With CS series PL
249. the message ser vice It is possible for messages to be lost due to noise or when the communi cations path automatically switches to the secondary network To handle such problems when using a message service resend the message from the node sending the command Refer to the separation detection time for the other node described in 6 7 Network Status Performance when setting the response monitor time A setting of 1 5 times the separation detection time for other nodes is recommended for the response wait time The data will be sent again automatically as specified by the resend count with the SEND RECV and CMND instructions so set the resend count to at least 1 Note 117 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 CJU series Program mable Controllers Communications Commands Reference Manual W342 For details on FINS commands that can be processed by the Ethernet Unit refer to SECTION 7 FINS Commands Addressed to Ethernet Units I O memory area access Command code MR SR MEMORY AREA READ Function Reads the contents of consecutive I O memory area words MEMORY AREA WRITE Writes the contents of consecutive I O memory area words MEMORY AREA FILL Writes the same data to the specified range of I O memory area words
250. the node window sizes the Ethernet Unit load and the system configuration Example Calculations The following table provides a guideline for the maximum transmission delay time under the following conditions Conditions Local node CPU cycle time 10 ms Local node CPU uniform peripheral servicing time Default 4 Remote node CPU cycle time 5 ms Remote node CPU peripheral servicing time Default 4 Baud rate 100Base TX Item Calculation CPU Bus Unit service cycle local node 10 ms CPU Bus Unit service processing time 0 4 ms local node Transmission processing time 256 x 0 002 0 550 1 062 1 1 ms Transmission delay 256 x 0 0013 0 0118 0 3446 0 3 ms Reception processing time 256 x 0 003 0 704 1 472 1 5 ms Communicating between OMRON PLCs Section 6 6 Item CPU Bus Unit service cycle remote node Calculation 5ms CPU Bus Unit service processing time remote node 0 2 ms Total RECV 098 10 0 4 1 1 0 3 1 5 5 0 2 18 5 ms 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 Service Cycle local node CPU Bus Unit Service Cycle local node2 CPU Bus Unit V service processing time local node Transmission processing time command Transmission Delays command i Reception pr
251. the settings 1 Only the Unit Setup and the Duplex Communications Unit Settings in the PLC Setup can be made with a Memory Card text file 2 I O table and routing table settings cannot be made with a Memory Card text file Use any version of CX Programmer to create the I O tables and routing tables The following are required to use a Memory Card text file e Memory Card with at least 10 KB of available space e Programming Console or any version of CX Programmer e Windows computer and text editor First back up the Ethernet Unit settings on a Memory Card initially the default settings 1 Mount the CS1D Ethernet Units and other Units to the CS1D PLC and cre ate the I O tables Set the unit number of the Secondary Unit to one higher than the unit number of the Primary Unit 2 With the power supply still turned ON insert the Memory Card into the CPU Unit If the MCPWR indicator on the CPU Unit lights the Memory Card has been mounted correctly 3 Turn ON the Memory Card Unit Setup Backup Bit allocated to the Primary Unit bit 15 in CIO 1500 25 x unit number using a Programming Con sole or other means The BUSY indicator on the CPU Unit will light while the settings are being backed up 4 The BUSY indicator on the CPU Unit will go out and the Memory Card Unit Setup Backup Bit allocated to the Primary Unit bit 15 in CIO 1500 25 x unit number will turn OFF automatically when the backup has been com pleted 5 Press the
252. this value is read by the Ethernet Unit when the power is turned ON or the Unit restarted and is used as the local IP address If this setting and the IP address in the Unit Setup are both set to 00 00 00 00 the default IP address will be used The default IP addresses are as follows Primary Unit 192 168 250 node_address Secondary Unit 192 168 251 node_address Refer to SECTION 5 Determining IP Addresses for information on IP addresses The various settings for the IP address are used as follows e Default IP Address Used to initially connect to the Ethernet Unit Leave both the settings in the allocated DM Area words and the Unit Setup set to the default value 00 00 00 00 to use the default IP address e IP Address Setting in DM Area Use the IP address setting in the DM Area when other Units are to be left at the default settings This is the easiest way to set just one Unit This setting is normally made using a Programming Console e IP Address Setting in Unit Setup Used when setting other Units as well The Unit Setup is performed using the CX Programmer 65 Auxiliary Area Data Section 4 3 Remarks The setting in the allocated words in the DM Area is enabled only when the IP address in the CPU Unit Bus Sys tem Setup is set to 00 00 00 00 If the IP address in the CPU Unit Bus System Setup is set to a value other than 00 00 00 00 this value is stored in the allocated words in the DM Area The IP address
253. tic adjustment for optimum values between the nodes is split into TCP packets for transmission The split TCP data is then joined automatically at the remote node s TCP IP protocol layer The TCP IP protocol layer however cannot determine where the data has been split so the TCP data sections from multiple packets are all joined together Therefore when using the FINS TCP method FINS TCP headers must be added at the beginning of FINS frames in order to serve as FINS frame delimiters The length of the data in the following FINS frame is stored in the header allowing the frame to be separated out by the remote node With the Ethernet Unit and FinsGateway Ver 2003 the appropriate frames are separated out automatically so there is normally no need to be pay attention to it at the application layer The TCP port number is the number for TCP to identify the application layer i e the FINS communications service in this case When communications are executed using TCP IP this port number must be allocated for the com munications service The default setting for the FINS TCP local TCP port number i e the Ethernet Unit s TCP port number is 9600 To set another number make the setting for the FINS TCP port using the Setup Tab in the Unit Setup The FINS TCP port number set in the Unit Setup is used by the FINS TCP server s TCP socket The FINS TCP client s TCP socket uses any TCP port number that can be used at that node With the Etherne
254. tion buffer 16 383 see note 1 see note 1 N BaS Z TCP socket send request buffers 8 x 4 096 max pa UDP socket send request buffers 8 x 9 000 max SN bytes max ye FINS send buffer 9 000 bytes max AY FTP service send buffer 4 096 bytes IP packet output queue 50 max x 1 500 bytes p see note 2 see note 2 IP packet input queue 50 max x 1 500 bytes P Network memory 248K bytes Communications Network controller 179 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 The use of short and long buffers is determined by the status of the various services when the Ethernet Unit is running The capacity of all buffers cannot be used due to limits in the mounted memory capacity The status of the short and long buffers can be accessed by execution the FINS command MEMORY STATUS READ 2763 Note 1 Thestatus of UDP and TCP socket reception request buffers can be accessed by executing the FINS command SOCKET STATUS READ 2764 2 The status of UDP and TCP socket send request buffers can be accessed by executing the FINS
255. tion 6 3 6 3 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 Once a connection has been established com munications are quite reliable The arrival of data that is sent via the connection is confirmed by an acknowledgement ACK response and retries are executed automatically as required The FINS TCP method has been newly added to the CS1W ETN21 and CJ1W ETN21 Ethernet Units Note Do not use FINS TCP to communicate with nodes that switch automatically when using a duplex Ethernet network Otherwise the memory may be unex pectedly overwritten with old data This occurs because the recovery function at the TCP IP layer will resend previous communications frames from the Pri mary Unit to the network after a communications failure and recovery of the Primary Unit Node Client Node Server Request to establish a connection Connection established _ aS as Acknowledgement ae E An acknowledgement is received whenever a connection is established or data is sent so transmissions are more reliable but somewhat slower Compared to the FINS UDP method the FINS TCP method has the following characteristics e Data transmission i
256. tion level FINS Node HUnber k Transport level UDP mopo TCP TCP port number number ternet level IP In v IP address r Physical level Ethernet Ethernet address _ 7 Receives communications data se conforming to Ethernet address IP address UDP port number and FINS node number Ethernet V2 IP UDP FINS header FINS data e Ethernet address A fixed number is assigned to each Ethernet Unit and it cannot be changed e IP address Either use the defaut IP address 192 168 250 FINS_node number or set the address in the word allocated in the DM Area or in the Unit Setup from the CX Programmer e 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 e 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 e FINS node address Set the number using the NODE NO rotary switch on the front of the Ethernet Unit 74 IP Addresses in FINS Communications Section 5 2 Pairing IP Addresses with A particular IP address is allocated to each communications node including FINS Node Addresses at Ethernet Units The IP address must be paired with the FINS node address 1 Local Nodes to 254 by one of the following methods Automatic Generation Method Dynamic Static Set the relation between
257. tion programs This section describes precautions for systems with high traffic in FINS communications m Conditions for High Traffic High traffic may occur if FINS messages from multiple communicating nodes are concentrated at a single Ethernet Unit The Ethernet Unit and the CPU Unit may have insufficient processing capacity for the volume of FINS mes sages commands that are coming from the network 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 If a time out is set at the remote node for 2 seconds or less then a timeout will be gen erated A retry will begin due to the timeout and the traffic to the Ethernet Unit will thus be increased even further until ultimately the responses to all the nodes will be too slow At this point the system is overloaded m Avoiding Errors due to High Traffic To avoid high traffic from FINS communications the communications load must be kept down to a reasonable level To accomplish this follow the proce dure below 1 Specify the node where FINS frames seem to be concentrated Precautions on High Traffic in FINS Communications Section 6 8 2 Referring to 6 6 6 Transmission Del
258. tion 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 To use the CX Programmer with FINS TCP use FinsGateway ver sion 2003 or higher as personal computer middleware Using Media with Unreliable Connections Such as a Wireless LAN Use the TCP IP version of the FINS communications service i e FINS TCP 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 resulting from unreliable connections To use the CX Programmer with FINS TCP use FinsGateway version 2003 or higher as personal computer middleware Features Section 1 2 Connecting from a Personal Computer with a Dynamic Private IP Address Depending on whether or not the connection will be within the same segment either use an IP address conversion method for dynamic IP addresses in the UDP IP version of the FINS communications service or use the TCP IP ver sion of the FINS communications service It is possible to connect online to a PLC using the CX Programmer from a computer serving as a temporarily connected node or a permanent DHCP cli ent To use the CX Programmer with FINS TCP use FinsGateway version 2003 or higher as personal computer middleware Communicating between Con
259. to A30215 will turn ON when initialization of the Units begins and turn OFF when it is completed OFF Not performing online replacement ON Performing online replacement Settings OFF to ON Unit restarted Automatically turned OFF by system after restart processing has been completed SECTION 5 Determining IP Addresses This section explains how to manage and use IP addresses S21 TP Addresses 5 ais Baise kai es eR A SNA AA Be et Ao 72 5 1 1 IP Address Configuration 0 000 000 0002 72 5 1 2 Allocating IP Addresses 0 00 0 0 c ee eee eee ee 72 5 1 3 Ethernet Unit IP Address Settings 0 00 73 5 1 4 Subnet Masks 2 002 260 ceb cae ei edit bee eee eee bes 73 5 2 IP Addresses in FINS Communications 00 00 000008 74 5 2 1 Specifying Nodes in FINS Communications Services 74 5 2 2 Pairing Addresses in Internal Tables 76 5 2 3 Application Examples 00 0 eee eee 80 5 2 4 Related Products and Communications Setting Methods 82 5 2 5 Pairing IP Addresses and FINS Node Addresses 84 5 3 Private and Global Addresses 0 0 0 e eee eee 84 5 3 1 Private and Global Addresses 000000000005 84 5 3 2 Using a Private Address for the Ethernet Unit 86 5 3 3 Ethernet Unit with a Global Address 87 71 IP Addresses Section 5 1
260. to Ethernet Units FINS commands issued from a PLC are sent via the SEND 090 RECV 098 and CMND 490 instructions programmed into the user ladder diagram program Although an outline of these instructions is provided in this section refer to the CS CJ series Programmable Controllers Programming Manual W340 for further details on programming these instructions 6 1 Overview of FINS Communications 00 0002 eee ee eee 90 6 1 1 Communications On an Ethernet Network 90 6 1 2 Using the FINS UDP and FINS TCP Methods 91 6 1 3 FINS Communications Service Specifications for Ethernet 91 6 2 FINS UDP Method a a ia eee a wea SBA aN eA 92 6 221 OVERVICW oie eg EG Sete de pate piste ely Aaa tate tne 92 6 3 BINS TCP Method pisen eani cen E ees Were R ee Tas Sees K 94 62321 OVERVIEW igo is 5 oes Bs ee date ee Se es a ios ae 94 6 4 Creating Routing Tables 0 00 eee ee 98 6 4 1 Routing Table Overview 0 0 00 arrun ee eee 98 6 4 2 Connecting and Using a Peripheral Device for the PLC 99 6 4 3 Routing Table Setting Examples 0 0 0 100 6 5 Using FINS Applications 00 00 eee eee eee 102 6 5 1 CX Programmer CX Server 0 00 rannan 102 6 5 20 FinsGateway o erot rpo sewer sge ie N pee eee eee ae ee 107 6 6 Communicating between OMRON PLCs 0 0 0 00 0000008 113 6 6 1 Communications Specifications
261. work Replacing an Ethernet Unit Observe the following precautions when replacing the Ethernet Unit e Always turn OFF the power supply before replacing the Ethernet Unit e Check that the spare Ethernet Unit is operating normally before replacing a defective Unit with it e When returning a defective Unit for repairs provide as much written information as possible on the symp toms of the problem e If a problem occurs with poor contacts wipe the contacts with a clean cloth soaked with industrial alcohol Carefully remove any lint remaining on the contacts before replacing the Unit Settings after Replacing an Ethernet Unit After replacing an Ethernet Unit set the following to the same settings as were used on the previous Unit e Unit number e Node address Settings after Replacing a CPU The EEPROM in the PC s CPU holds the information listed below This information must be stored in any new CPU used to replace a defective one e Routing tables e System Setup for the Ethernet Unit 185 Maintenance Appendix E 186 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 Inspection Interva
262. xecution Communications condition Port Enabled Flag a s a S a KEEP 011 A Input A remains ON from start to completion of commu nications instruction Reset B Creates operand and control data in a given area T Operand control data created with MOV and XFER ommunications nstructions SEND Executes communications instructions RECV CMND Communications A Port Enabled Flag T JH DIFU 013 B Creates reset input Turns reset B ON after execution of communications in struction Communications A Port Error Flag mH a O Send Error Flag display Retry can be executed ne ae ne xecution Communications Exclusive control so execution is not simultaneous condition Port Enabled Flag A KEEP 011 C Use exclusive control so that no other communica H 1 tions instructions are started before execution of the above communications instruction is complete Reset D Continued in same way The execution status of the SEND 090 RECV 098 and CMND 490 instruc tions is always reflected by the communications flags i e the Communica tions Port Enabled Flag and the Communications Port Error Flag The CS CJ series CPU Units communications flags are allocated in the Auxiliary Area as shown in the following table Flag name Address Contents Bits Communications Port Port 7 OFF Execution enabled Enabled Flag Port 6 being executed
263. ystem configuration 7 examples 103 T TCP communications 13 sockets status 181 status 153 TCP indicator 19 TCP IP 4 5 91 TCP IP keep alive 44 53 terminal blocks xix Timer Area 114 timers 177 transmission delays 125 distance CS series 11 media CS series 11 path CS series 11 troubleshooting FINS communications 172 procedures 171 startup 171 using indicators 162 using response codes 174 Index twisted pair cables 7 precautions 32 recommended models 31 U UDP communications 13 UDPIIP 3 5 91 UDP TCP sockets status bits 61 Unit Number Switch 17 unit numbers setting 26 Use IP address to protect field 54 V vibration resistance CS series 11 Visual BASIC 9 Visual C 9 W weight CS series 11 wiring cables 35 precautions 35 word addresses 66 Work Area 114 WS02 CXPC1 EV3 36 203 Index 204 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No W430 E1 02 Revision code The following table outlines the changes made to the manual during each revision Page numbers refer to the previous version Revision code Revised content January 2004 Original production June 2008 Page xiii Added information on warranty and applicability Page xvii Added including the setting of the startup mode Page 32 Changed cable specification in figure Page 52 Changed settin
Download Pdf Manuals
Related Search
Related Contents
LOREX Technology LW2100 Series User's Manual Bunn 1.5 GPR-FF User's Manual Sermonizer User`s Manual OE-1&OB-1 ユニット 取扱説明書 Mobile Phone Monitor Software User`s Manual COLORANTS TRICHROMES (GOMORI) - Protocole - Sigma Guide des outils de SafeGuard Enterprise Copyright © All rights reserved.
Failed to retrieve file