Advantech EKI-1221, EKI-1222, EKI-1224 User guide

User Manual
EKI-1221, EKI-1222, EKI-1224
1/2/4-port Modbus Data Gateway
Copyright
The documentation and the software included with this product are copyrighted 2008 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable. How­ever, Advantech Co., Ltd. assumes no responsibility for its use, nor for any infringe­ments of the rights of third parties, which may result from its use.
Acknowledgements
Intel and Pentium are trademarks of Intel Corporation.
Microsoft Windows and MS-DOS are registered trademarks of Microsoft Corp. All other product names or trademarks are properties of their respective owners.
Product Warranty (2 years)
Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years from the date of pur­chase.
This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper installation. Advantech assumes no liability under the terms of this warranty as a consequence of such events.
If you think you have a defective product, follow these steps:
1. Collect all the information about the problem encountered. (For example, CPU
speed, Advantech products used, other hardware and software used, etc.) Note anything abnormal and list any onscreen messages you get when the problem occurs.
2. Call your dealer and describe the problem. Please have your manual, product,
and any helpful information readily available.
3. If your product is diagnosed as defective, obtain an RMA (return merchandize
authorization) number from your dealer. This allows us to process your return more quickly.
4. Carefully pack the defective product, a fully-completed Repair and Replacement
Order Card and a photocopy proof of purchase date (such as your sales receipt) in a shippable container. A product returned without proof of the purchase date is not eligible for warranty service.
5. Write the RMA number visibly on the outside of the package and ship it prepaid
to your dealer.
Part No. 2003122100 Edition 1
Printed in Taiwan August 2008
EKI-1221/1222/1224 User Manual ii
Declaration of Conformity
CE
This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information.
CE
This product has passed the CE test for environmental specifications. Test conditions for passing included the equipment being operated within an industrial enclosure. In order to protect the product from being damaged by ESD (Electrostatic Discharge) and EMI leakage, we strongly recommend the use of CE-compliant industrial enclo­sure products.
FCC Class A
Note: This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Opera­tion of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense.
Technical Support and Assistance
1. Visit the Advantech web site at www.advantech.com/support where you can find
the latest information about the product.
2. Contact your distributor, sales representative, or Advantech's customer service
center for technical support if you need additional assistance. Please have the following information ready before you call:
Product name and serial numberDescription of your peripheral attachmentsDescription of your software (operating system, version, application software,
etc.)
A complete description of the problemThe exact wording of any error messages
iii EKI-1221/1222/1224 User Manual
Safety Instructions
1. Read these safety instructions carefully.
2. Keep this User Manual for later reference.
3. Disconnect this equipment from any AC outlet before cleaning. Use a damp
cloth. Do not use liquid or spray detergents for cleaning.
4. For plug-in equipment, the power outlet socket must be located near the equip-
ment and must be easily accessible.
5. Keep this equipment away from humidity.
6. Put this equipment on a reliable surface during installation. Dropping it or letting
it fall may cause damage.
7. The openings on the enclosure are for air convection. Protect the equipment
from overheating. DO NOT COVER THE OPENINGS.
8. Make sure the voltage of the power source is correct before connecting the
equipment to the power outlet.
9. Position the power cord so that people cannot step on it. Do not place anything
over the power cord.
10. All cautions and warnings on the equipment should be noted.
11. If the equipment is not used for a long time, disconnect it from the power source
to avoid damage by transient overvoltage.
12. Never pour any liquid into an opening. This may cause fire or electrical shock.
13. Never open the equipment. For safety reasons, the equipment should be
opened only by qualified service personnel.
14. If one of the following situations arises, get the equipment checked by service
personnel:
The power cord or plug is damaged.Liquid has penetrated into the equipment.The equipment has been exposed to moisture.The equipment does not work well, or you cannot get it to work according to
the user's manual.
The equipment has been dropped and damaged.The equipment has obvious signs of breakage.
15. DO NOT LEAVE THIS EQUIPMENT IN AN ENVIRONMENT WHERE THE
STORAGE TEMPERATURE MAY GO BELOW -20° C (-4° F) OR ABOVE 60° C (140° F). THIS COULD DAMAGE THE EQUIPMENT. THE EQUIPMENT SHOULD BE IN A CONTROLLED ENVIRONMENT.
16. CAUTION: DANGER OF EXPLOSION IF BATTERY IS INCORRECTLY
REPLACED. REPLACE ONLY WITH THE SAME OR EQUIVALENT TYPE RECOMMENDED BY THE MANUFACTURER, DISCARD USED BATTERIES ACCORDING TO THE MANUFACTURER'S INSTRUCTIONS.
17. The sound pressure level at the operator's position according to IEC 704-1:1982
is no more than 70 dB (A).
DISCLAIMER: This set of instructions is given according to IEC 704-1. Advantech disclaims all responsibility for the accuracy of any statements contained herein.
EKI-1221/1222/1224 User Manual iv
Chapter 1 Introduction..........................................1
1.1 Overview ................................................................................................... 2
1.2 Features .................................................................................................... 2
1.3 Specifications ............................................................................................ 3
1.4 Package Check List .................................................................................. 4
Chapter 2 Getting Started.....................................5
2.1 Understanding EKI-1221/1222/1224......................................................... 6
2.1.1 Protocol Overview......................................................................... 6
Figure 2.1 Modbus System Architecture 1................................... 7
Figure 2.2 Modbus System Architecture 2................................... 7
2.1.2 Modbus RTU................................................................................. 8
2.1.3 Modbus ASCII............................................................................... 8
Table 2.1: Comparison of Modbus RTU and ASCII Modes......... 8
2.1.4 Modbus TCP ................................................................................. 8
2.2 Hardware................................................................................................... 9
2.2.1 LED Indicators .............................................................................. 9
Table 2.2: EKI-1221/1222/1224 LED Indicators.......................... 9
2.2.2 Dimensions (Units: mm).............................................................. 10
Figure 2.3 Front View of EKI-1221 ............................................ 10
Figure 2.4 Side View of EKI-1221.............................................. 10
Figure 2.5 Back View of EKI-1221............................................. 11
Figure 2.6 Top View of EKI-1221............................................... 11
Figure 2.7 Front View of EKI-1222 ............................................ 12
Figure 2.8 Side View of EKI-1222.............................................. 12
Figure 2.9 Back View of EKI-1222............................................. 13
Figure 2.10Top View of EKI-1222............................................... 13
Figure 2.11Front View of EKI-1224 ............................................ 14
Figure 2.12Side View of EKI-1224.............................................. 14
Figure 2.13Back View of EKI-1224............................................. 15
Figure 2.14Top View of EKI-1224............................................... 15
2.3 Connecting Hardware ............................................................................. 16
2.3.1 Choosing the Location ................................................................ 16
Figure 2.15Combine the Metal Mounting Kit .............................. 16
Figure 2.16DIN-rail Step 1 .......................................................... 17
Figure 2.17DIN-rail Step 2 .......................................................... 17
2.3.2 Connecting Power....................................................................... 18
Figure 2.18Power Connector ...................................................... 18
2.3.3 Connecting Serial Devices.......................................................... 18
Figure 2.19EKI-1221/1222/1224 Serial Port Pin Assignments... 18
2.3.4 Connecting to a Host or the Network .......................................... 18
Chapter 3 Configuration .....................................19
3.1 Installing the Configuration Utility............................................................ 20
3.2 Starting the Configuration Utility.............................................................. 23
3.3 Discovering Modbus Data Gateways ...................................................... 24
3.3.1 Auto Searching ........................................................................... 24
3.3.2 Clear Device List and Search Again ........................................... 27
3.3.3 Manual Appending ...................................................................... 27
3.4 Setting Ethernet Parameters................................................................... 28
3.5 Setting Serial Communication Parameters ............................................. 29
3.5.1 Basic Configuration..................................................................... 30
3.5.2 Operation Configuration.............................................................. 32
3.6 Function Accessible Setting .................................................................... 34
3.7 Monitoring Modbus Status ...................................................................... 35
i EKI-1221/1222/1224 User Manual
3.8 Administrator Setting............................................................................... 35
3.8.1 Import/Export Serial Port Setting ................................................ 36
3.8.2 Locate the Modbus Data Gateway ............................................. 36
3.8.3 Lock Device ................................................................................ 37
3.8.4 Restore to Factory Default Settings............................................ 38
3.8.5 Update Firmware ........................................................................ 39
EKI-1221/1222/1224 User Manual ii
Chapter 1

1 Introduction

1.1 Overview

Advantech’s EKI-1200 series of Modbus Data Gateways are a robust, feature-rich, and cost effective way to integrate of Ethernet and Serial Modbus devices. The EKI­1221/1222/1224 provides one, two or four serial ports, two switched Ethernet ports, a wide range of power inputs, and a compact slim design, making them an ideal solution for connecting multiple Modbus/RTU and Modbus/ASCII serial devices to Modbus TCP (Ethernet).
Originally developed for PLCs in industrial automation and manufacturing control applications, Modbus is one of the most popular open standard protocols in use today. The communication mode can be Modbus RTU/ASCII (Serial) or Modbus TCP (Ethernet). Many industrial devices use Modbus as their communication standard. However, the Ethernet-based Modbus protocol is different from the original serial­based protocols that a Modbus Data Gateway is needed to be a bridge for integration.
The two Ethernet ports allow the EKI-1221/1222/1224 to establish two separated Ethernet connections to two Ethernet domains or two Ethernet switches in the same domain. Through a dual Ethernet connection, the EKI-1221/1222/1224 greatly improves the device connectivity reliability, increase system stability, and simplify the redundant configuration.
The Modbus/RTU and Modbus/ASCII protocols define how a “master” device polls one or more “slave” devices and write real-time data over RS-232, RS-422, or RS­485 serial data communication. The EKI-1221/1222/1224 provides a feature that can allow users to select master or slave operation for each serial port. EKI-1221/1222/ 1224 not only allows Ethernet master can control serial slaves, but it can also allow serial masters to control Ethernet slaves. Further more, the EKI-1221/1222/1224 can allow both Ethernet and serial slaves to be controlled by both Ethernet and serial masters.
The EKI-1221/1222/1224 provides various operation modes: RTU Master, RTU Slave, ASCII Master, and ASCII Slave.

1.2 Features

Provides dual 10/100 Mbps auto-sensing Ethernet ports Compact design without any hardware configuration Integration of Modbus TCP and Modbus RTU/ASCII networks Supports baud rate up to 921.6 Kbps Support up to 16 connections and 32 requests simultaneously Supports 31 slaves per serial port Provides easy to use configuration utility Software selectable RS-232/422/485 communication Auto searching slave ID over configuration utility Surge protection for RS-422/485 line and power input Mounts on DIN-rail, wall, or panel
EKI-1221/1222/1224 User Manual 2

1.3 Specifications

LAN
Speed: 10/100 Mbps auto sensing No. of Ports: 2 Port Connector: RJ45 x 2 (with LED) Protection: Built-in 1.5 KV magnetic isolation
Serial Interface
Port Type: RS-232/422/485, software selectable No. of Ports:
EKI-1221: 1EKI-1222: 2EKI-1224: 4
Port Connector: DB9 (Male) Baud Rate: 50 bps to 921.6 Kbps Parity: None, Odd, Even, Space, Mark Data Bits: 7, 8 Stop Bits: 1, 2 Flow Control: RTS/CTS, XON/XOFF, DTR/DSR Signals:
RS-232: TxD, RxD, CTS, RTS, DTR, DSR, DCD, RI, GNDRS-422: TxD+, TxD-, RxD+, RxD-, GNDRS-485: Data+, Data-, GND
Protection: 15 KV ESD for all signals, enhanced protection for RS-422/485 lines
Chapter 1 Introduction
Software
Utility: Advantech Serial Device Server Configuration Utility OS Support: Windows 2000/XP/Vista (x86) Operation Mode: RTU Master, RTU Slave, ASCII Master, ASCII Slave
General
LED indicators:
System: Power1, Power2, System StatusLAN: Speed, Link/ActiveSerial: Tx, Rx
Power
Power input: 12 to 48 VDC x 2 Power connector: Terminal block Power Consumption:
EKI-1221: 2WEKI-1222: 2.5WEKI-1224: 4W
Power Line Protection: 1 KV burst (EN61000-4-4), 0.5 KV surge (EN51000-4-5)
3 EKI-1221/1222/1224 User Manual
Environmental
Operating Temperature: 0 to 60 °C (32 to 140 °F) Storage Temperature: -20 to 85 °C (-4 to 185 °F) Operating Humidity: 5 to 95 % RH
Regulatory Approvals
ECM: CE Class A, FCC Part 15 Subpart B Class A Safety: UL (UL60950-1)

1.4 Package Check List

One EKI Modbus Data Gateway Panel mounting bracket CD-ROM for configuration utility and user manual
EKI-1221/1222/1224 User Manual 4
Chapter 2

2 Getting Started

2.1 Understanding EKI-1221/1222/1224

Networks have become increasingly vital for industrial automation applications. Many control devices today do not have a network port and can only communicate with a dedicated local PC or control panel. Advantech’s revolutionary network-enabling technology is now allowing control devices with serial ports to connect to the Ethernet and share networks quickly and cost-effectively. The EKI-1221/1222/1224 is network-based, Modbus data gateway for integrating new and existing Modbus/RTU and Modbus/ASCII serial devices to newer TCP/IP networked-based devices. Manufacturers, system integrators, and end users can now take advantage of the EKI-1221/1222/1224 to create networked applications for remote managing and accessing data for their control devices that wasn’t possible before.

2.1.1 Protocol Overview

Originally developed for PLCs in industrial automation and manufacturing control application, Modbus has become one of the most popular open standard protocols in use today. When it comes to planning data communication for open, multi-vendor industrial control systems, Modbus is the first choice of end-users and integrators. Although it’s not the most powerful protocol available, its rare simplicity allows not only rapid implementation, but also remains flexible enough to be applied in virtually all industrial situations. The communication mode of Modbus can be ASCII, RTU, or TCP/IP. The EKI-1221/1222/1224 is used to support applications such as protocol conversion between serial (Modbus/ASCII or Modbus/RTU) and networked (Modbus/ TCP) Modbus devices or it can be used to bridge Modbus serial devices over TCP/IP network.
The Modbus/RTU and Modbus/ASCII protocols define how a “master” device polls one or more “slave” devices to read and write real-time data over RS-232, RS-422, or RS-485 serial data communication. The simplicity of Modbus/RTU not only allows rapid implementation, but can also remain flexible enough to be applied in virtually all industrial situations.
During Modbus network communication, the protocol determines how each controller will know its device address, recognize a message addressed to it, determine the kind of action to be taken, and extract any data or other information contained in the message. If a reply is required, the controller will construct the reply message and send it back using Modbus protocol.
The way controllers communicate with each other is by using a master-slave tech­nique, in which only one device (the master) can initiate queries. The other devices (the slaves) respond by supplying the requested data to the master, or by taking the action requested in the query. Typical master devices include host processors and programming panels. Typical slaves include programmable controllers.
It is the master that can address individual slaves and initiate a broadcast message to all slaves. On the other hand, slaves return a response to queries that are addressed to them individually. Responses are not returned to broadcast queries from the master.
EKI-1221/1222/1224 User Manual 6
The Modbus protocol has a definite format for the master’s query, which incorporates the device (or broadcast) address, a function code defining the requested action, any data to be sent, and an error-checking field. The slave’s response message, which is also constructed using Modbus protocol, contains fields confirming the action taken, any data to be returned, and an error-checking field. If an error occurred in receipt of the message, or if the slave is unable to perform the requested action, the slave will construct an error message and send it as its response.
The basic system architecture is as below:
Chapter 2 Getting Started
Figure 2.1 Modbus System Architecture 1
Figure 2.2 Modbus System Architecture 2
7 EKI-1221/1222/1224 User Manual

2.1.2 Modbus RTU

The Modbus/RTU protocol defines how a “master” device polls one or more “slave” devices to read and write data in real-time over RS-232, RS-422, or RS-485 serial data communication.
When using RTU mode, each 8-bit byte in a message contains two 4-bit hexadecimal characters. The main advantage of this mode is that its greater character density allows better data throughput than ASCII mode for the same baud rate. Neverthe­less, each message must be transmitted in continuous stream.

2.1.3 Modbus ASCII

When using ASCII mode, each 8-bit byte in a message is sent as two ACSII charac­ters. The primary advantage of this ASCII mode is that it allows time intervals of up to one second to occur between characters without causing an error.
Table 2.1: Comparison of Modbus RTU and ASCII Modes
Mode RTU ASCII
Coding System 8-bit binary.
Bits per Byte 1 start bit,
Error Check CRC LRC
Two hexadecimal character contained in each ASCII character of the message
8 data bits, 1 bit for even/odd parity; no bit for parity 1 stop bit if parity is used; 2 bits if no parity
Hexadecimal. One hexadecimal character contained in each ASCII character of the message
1 start bit , 7 data bits, 1 bit for even/odd parity; no bit for parity 1 stop bit if parity is used; 2 bits if no parity

2.1.4 Modbus TCP

As a new extension of Modbus/RTU, the Modbus/TCP protocol defines how Modbus/ RTU messages are encoded within and transported over TCP/IP-based networks. Modbus/TCP is just as simple to implement and flexible to apply as the original Mod­bus/RTU. The Modbus/TCP protocol is defined by its form of encapsulation for a Modbus request or response. That means the Modbus request or response data is encapsulated in TCP frame that has a six-byte header in Modbus/TCP protocol.
Modbus/TCP enables the use of Modbus messaging in an Intranet running the TCP/ IP protocols. Modbus/TCP is most commonly used for Ethernet attachment of PLC’s or I/O modules to other simple field buses or I/O networks.
EKI-1221/1222/1224 User Manual 8

2.2 Hardware

The following instructions will give the overview of EKI-1221/1222/1224 hardware and its installation.

2.2.1 LED Indicators

There are LEDs display the two sets of power status, system status, dual networks status, and serial communication status on the front panel of EKI-1221, EKI-1222, and EKI-1224. Each of them has its own specific meaning as below table.
Table 2.2: EKI-1221/1222/1224 LED Indicators
LED Name LED Color LED Description
P1 Green Power 1 is on.
Off Power 1 is off, or power error condition exists.
P2 Green Power 2 is on.
Off Power 2 is off, or power error condition exists.
Status Orange Blinking: System is ready.
Off System is not working.
Ethernet Orange Blinking: Ethernet port is transmitting or receiving data.
Green On: 100Mbps Ethernet connection.
Serial Orange Serial port is transmitting data.
Green Serial port is receiving data.
Off No data is transmitted or received through the serial port.
Chapter 2 Getting Started
Steady on: The device server has been located by utility’s locating the device function.
Steady on: Ethernet has the good link for 10Mbps or 100Mbps operations.
Off: 10Mbps Ethernet connection.
9 EKI-1221/1222/1224 User Manual
Loading...
+ 33 hidden pages