User Manual ADAM-4572, EKI-1221,EKI-1222, EKI-1224, EKI-1221D, EKI-1222D 1/2/4-port Modbus Gateway
Copyright The documentation and the software included with this product are copyrighted 2010 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.
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.
Safety Instructions 1. 2. 3. Read these safety instructions carefully. Keep this User Manual for later reference. 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 equipment and must be easily accessible. 5. Keep this equipment away from humidity. 6. Put this equipment on a reliable surface during installation.
Contents Chapter Chapter 1 Introduction..........................................1 1.1 1.2 1.3 Overview ................................................................................................... 2 Features .................................................................................................... 2 Package Check List .................................................................................. 3 2 Getting Started.....................................5 2.
2.4.2 2.4.3 2.4.4 2.4.5 Chapter Figure 2.30DIN-rail Step 1.......................................................... 27 Figure 2.31DIN-rail Step 2.......................................................... 27 Figure 2.32DIN-rail Adapter........................................................ 28 Figure 2.33DIN-rail Mounting ..................................................... 28 Connecting Power ...................................................................... 29 Figure 2.34Power Connector............
Chapter 1 Introduction 1
1.1 Overview Advantech’s ADAM-4572 and EKI-1221/1222/1224/1221D/1222D series of Modbus Gateways (the following manual will use EKI-122X series instead of complete model name) are a robust, feature-rich, and cost effective way to integrate of Ethernet and Serial Modbus devices.
ADAM-4572 1 x ADAM-4572 Modbus Gateway 1 x Document and software CD 1 x DIN-rail kit 1 x 30 cm 3P to DB9 cable for RS-232 connection EKI-1221D/1222D 1 x EKI-1221D or EKI-1222D Modbus Gateway 1 x 6P power connector 1 x Documents and software CD 1 x OPT1-DB9-AE (DB9 to terminal connector) 1 x DIN-rail kit 2 x Wall/panel mount kit Note! Please check above items, if any one of them is missing or damaged, contact your sales representative.
ADAM-4572 & EKI-122X Series User Manual 4
Chapter 2 Getting Started 2
2.1 Understanding Modbus Gateways 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 basic system architecture is as below: Chapter 2 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. Getting Started Figure 2.
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. Nevertheless, each message must be transmitted in continuous stream. 2.1.
2.2.1 EKI-1221/1222/1224 LAN Ethernet No. of Ports Protection 10/100 Mbps, RJ45 2 Built-in 1.5 KV magnetic isolation Signals RS-232 RS-422 RS-485 Protection RS-232/422/485 1, 2 or 4 D-Sub 9 male None, Even, Odd, Space, Mark 7, 8 1, 2 RTS/CTS, XON/XOFF 50 bps to 921.
2.2.2 EKI-1221D/1222D LAN Ethernet No. of Ports Protection 10/100Mbps, RJ45 2 Built-in 1.5 KV magnetic isolation Serial Interface Interface No. of Ports Connector Type Parity Data bits Stop bits Flow Control Speed Signals RS-232 RS-422 RS-485 Protection RS-232/422/485 EKI-1221D: 1 EKI-1222D: 2 D-Sub 9 male None, Even, Odd, Space, Mark 7, 8 1, 2 RTS/CTS, XON/XOFF 50 bps to 921.
LAN Ethernet Protection 10/100 Mbps, RJ45 Built-in 1.5 KV magnetic isolation Signals RS-232 RS-422 RS-485 Protection RS-232/422/485 1 Terminal block None, Even, Odd, Space, Mark 7, 8 1, 2 RTS/CTS, XON/XOFF 50 bps to 921.
2.3 Hardware The following instructions will give the overview of ADAM-4572 and EKI-122X series hardware and its installation. 2.3.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 ADAM-4572 and .EKI122X series. Each of them has its own specific meaning as below table. Table 2.
Chapter 2 2.3.2 Dimensions (Units: mm) EKI-1221: Getting Started Figure 2.3 Front View of EKI-1221 Figure 2.
Figure 2.5 Back View of EKI-1221 Figure 2.
Chapter 2 EKI-1222: Getting Started Figure 2.7 Front View of EKI-1222 Figure 2.
Figure 2.9 Back View of EKI-1222 Figure 2.
Chapter 2 EKI-1224: Getting Started Figure 2.11 Front View of EKI-1224 Figure 2.
Figure 2.13 Back View of EKI-1224 Figure 2.
Chapter 2 EKI-1221D: Getting Started Figure 2.15 Front View of EKI-1221D Figure 2.
Figure 2.17 Back View of EKI-1221D Figure 2.
Chapter 2 EKI-1222D: Getting Started Figure 2.19 Front View of EKI-1222D Figure 2.
Figure 2.21 Back View of EKI-1222D Figure 2.
Chapter 2 ADAM-4572 Getting Started Figure 2.23 Front View of ADAM-4572 Figure 2.
Figure 2.25 Bottom View of ADAM-4572 Figure 2.
In this instruction, it will explain how to find a proper location for your Modbus Gateways, and how to connect to the network, hock up the power cable, and connect to the ADAM-4572 and EKI-122X series. 2.4.1 Choosing the Location Panel/Wall Mounting The ADAM-4572 and EKI-122X serie can be attached to a wall using the included metal brackets. Each bracket comes with four screws. You can install the Modbus Gateways firmly via the components, please see the figures below. Figure 2.
Figure 2.28 ADAM-4572 Panel Mounting Bracket Dimensions Figure 2.
First, hang the Modbus Gateways to the DIN-rail with angle of inclination. See below figure. Chapter 2 DIN-rail Mounting The ADAM-4572, EKI-122X series can be mounted on a standard DIN-rail. The DINrail kit is screwed on the Modbus data gateway when out of factory. If the DIN-rail kit is not screwed on the ADAM-4572, EKI-122X series, please screw the DIN-rail kit on the Modbus data gateway first. Getting Started Figure 2.
Figure 2.32 DIN-rail Adapter Figure 2.
The EKI-122X series supports dual +12 to 48 VDC power inputs and a power-fail relay output. Following figure is the power terminal block pin assignments. Please refer it to connect to the proper power requirements and polarity. Chapter 2 2.4.2 Connecting Power Getting Started Figure 2.34 Power Connector You can connect an alarm indicator, buzzer or other signaling equipment through the power-fail relay output. The relay opens if power input V1 or V2 fails.
2.4.4 Connecting to a Host or the Network The EKI-122X series provides two RJ45 connectors with dual independent Ethernet networks, and supports 10/100 Mbps transmission speed. The ADAM-4572 and EKI122X Series will auto detect current transmission speed on the network and configure itself accordingly. For normal operation, the ADAM-4572 and EKI-122X Series can be connected to other hubs or switches through a twisted-pair straight through the Ethernet cable.
Chapter 2 Wiring for RS-485 Connection Wiring for RS-422 Connection Figure 2.38 Wiring RS-422 Connection 31 ADAM-4572 & EKI-122X Series User Manual Getting Started Figure 2.
ADAM-4572 & EKI-122X Series User Manual 32
Chapter 3 Configuration 3
3.1 Installing the Configuration Utility The following section will show you how to install Advantech Serial Device Server Configuration Utility, a tool to set up and monitor the Modbus Gateways. Note Be sure the Microsoft .NET Framework on your host PC is greater than version 2.0 . 1. Insert the Advantech IEDG Series Driver Utility CD-ROM into the CD-ROM drive (e.g. E:\) on the host PC. 2.
Chapter 3 5. Carefully read the Software License Agreement, and press "I Agree" to continue. Configuration 6. The InstallShield will specify a default installation path, C:\Program Files\Advantech eAutomation\Serial Device Server Configuration Utility.
7. After few minutes, a message will indicate that Configuration Utility is successfully installed, click “Finish” to exit the InstallShield.
Advantech provides an easy-to-use configuration utility to configure your Modbus Gateways through an Ethernet connection. For secure administration, it can also restrict the access rights for configuration to only one host PC to enhance network security. With this secure function enabled, other PCs will not have permission for configuration. After the installation program on the Advantech IEDG Series Driver Utility CD-ROM is finished, the serial device servers will be ready for use and configure.
3.3 Discovering Modbus Gateways 3.3.1 Auto Searching Advantech Serial Device Server Configuration Utility will automatically search all the EKI, ADAM and EDG series device servers on the network and show them on the Serial Device Server List Area of the utility. The Utility provides an auto-searching function to show your device(s) by simply executing the configuration utility program from the Start Menu.
Chapter 3 Select the device in this sub-tree. The first tab on the “Configuration Area” shows the summary of “Basic Information” included device type, firmware version, and device name, “Ethernet Information”, and “Serial Port Information”. In the serial port information frame, it displays the operation mode, status and connected host IP. Configuration Click on the “+” before the device name, and the utility will expand the communication interfaces on this Modbus data gateway.
ADAM-4572 & EKI-122X Series User Manual 40
You can click the “Clear Device List and Search Again” button on the Quick Tool Bar and the utility will clear all list device servers in the Serial Device Server List Area and re-search again. Don’t use this function frequently, or the warning message will be pop-up. and the util- 3.3.3 Manual Appending Using “Add IP address to Favorite” or “Search a Range of IP addresses” functions, you are allowed to add one device or group of devices to “Favorites”.
3.4 Setting Ethernet Parameters Click on the “+” before the model name (e.g. EKI-1224), and the utility will expand the tree structure to show the individual device name. And clink on the “+” before the device name, and utility will expand the communication interfaces on this Modbus data gateway. Select the Ethernet interface (Eth1 or Eth2, these are two individual Ethernet ports).
Note When you have finished the configuration of these settings for each category, please press the “Apply” button in order to make these settings effective on the Modbus data gateway. (Will reboot your Modbus gateway immediately) 3.5 Setting Serial Communication Parameters Click on the "+" before the model name (e.g. EKI-1224), and the utility will expand the tree structure to show the individual device name.
3.5.1 Basic Configuration Description: You can give a more detailed description on the function of the port for easier management and maintenance. Descriptions have a limit of 128 characters. Type: The EKI-122X series offers 3 kinds of serial interfaces, RS-232, RS-485 and RS-422. You can use any one of these serial interfaces according to your requirements.
Parity None Even or Odd Data bits 7 7 Stop bits 2 1 Parity None Even or Odd Data bits 8 8 Stop bits 2 1 Modbus/RTU Flow Control: The EKI-122X series provides four options: None, XOn/XOff, RTS/CTS, and DTR/ DSR. 45 ADAM-4572 & EKI-122X Series User Manual Configuration Modbus/ASCII Chapter 3 Parity, Data bits, Stop bits: The settings for these parameters depend on the protocol that is running on the connected Modbus device (i.e. Modbus/ASCII or Modbus/RTU).
3.5.2 Operation Configuration The Operation tab is for each serial port’s operation mode configuration. The operation mode determines whether the devices that are connected to the serial port will operate as a master or a slave, and whether the Modbus RTU or Modbus ASCII protocol will be used. Modbus Slave Mode: Type: This option specifies whether the Modbus RTU or Modbus ASCII slave devices are connected to the serial port.
Chapter 3 Slave ID Information (EKI-122X Series Only):: The EKI-122X series features an excellent function that the utility will scan slave ID automatically. Click “Scan Slave ID” button, and the utility will start to issue the requests to the devices connected to this serial port and wait the reply about slave ID information. Alternative option, the utility allows to manual add or delete slave ID information.
MAP Slave ID (EKI-122X Series Only) The EKI-122X Series features another excellent function that you can map the real slave device ID to be the virtual slave device ID. Just key in the slave ID you want to map in the column "Map ID". Modbus Master Mode: Type: This option specifies whether the Modbus RTU or Modbus ASCII master device is connected to the serial port.
3.6 Function Accessible Setting The EKI-122X series provides a security function that the utility allows to set up an accessible IP list for Modbus TCP devices which can access data from Modbus data gateway. Allow any IP access: The default option, any Modbus TCP device can communicate with this Modbus data gateway. Specified IP which can access: Type the IP address in the column and click “Add” or “Delete” button to make the accessible IP address list. The limit of this list is 32 IP addresses.
3.7 Monitoring Modbus Status Configuration utility provides an excellent function that allows monitoring the serial ports’ status. It will present each serial port’s operation mode and status. The IP address of the Modbus TCP device which is communicating with serial port will be list on the right window. Click “Refresh” button, the status will be refresh once. It will be auto refresh after click “Auto Refresh” and the time duration is depending on the setting (the default value is 1000ms). 3.
The utility allows importing or exporting the serial port setting including “Basic Setting” and “Operation Setting” via “.sps” file format. Chapter 3 3.8.1 Import/Export Serial Port Setting Configuration 3.8.2 Locate the Modbus Data Gateway If there are many Modbus data gateways need your management, you may need to identify which unit is correct to configuration on utility. Click “Locate” to make that unit’s “Status” LED be steady on until you click “Stop Locate”.
3.8.3 Lock Device The configuration utility provides the “Lock Device” function to make it more confidential. You need to set up a password while the first time clicking “Lock Device”. Be sure to click “Reset Device” to restart the Modbus gateway and store your setting password into the memory. Click “Unlock Device” to unlock the Modbus data gateway, and you need to fill in the password you have set up before.
Chapter 3 Configuration If you want to disable this function or change the password, click “Change Password” to change the password to default “None” (leave the new password and confirm new password columns blank) to disable this function or other password you want to change. Be sure to click “Reset Device” to restart the Modbus gateway and store the new password into the memory. 3.8.
3.8.5 Update Firmware Advantech continually upgrades its firmware to keep up with the ever-expending world of computing. You can use the update firmware function in the utility to carry out the upgrade procedure. Please access Advantech’s website: http://www.advantech.com to download the latest version of the firmware. 1. Right click on the device name and select “Update Firmware” function.
3. After downloading the firmware completely, click “OK” button, and the Modbus data gateway will restart automatically. Configuration Select the firmware file you want to update. Chapter 3 2.
www.advantech.com Please verify specifications before quoting. This guide is intended for reference purposes only. All product specifications are subject to change without notice. No part of this publication may be reproduced in any form or by any means, electronic, photocopying, recording or otherwise, without prior written permission of the publisher. All brand and product names are trademarks or registered trademarks of their respective companies. © Advantech Co., Ltd.