User Manual EKI-1521/1522/1524 1/2/4-port RS-232/422/485 Serial Device Servers
Copyright The documentation and the software included with this product are copyrighted 2006 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.
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.
Contents Chapter Chapter 1 Overview...............................................1 1.1 1.2 1.3 1.4 Introduction ............................................................................................... 2 Features .................................................................................................... 3 Specifications ............................................................................................ 3 Package Check List .......................................................
3.3 3.4 3.5 3.6 Chapter Setting Ethernet Parameters................................................................... 27 Setting Serial Parameters ....................................................................... 28 3.4.1 Setting Serial Port Parameters ................................................... 28 3.4.2 Setting Virtual COM Operating Mode Parameters...................... 30 3.4.3 Setting TCP/UDP Server/Client Operating Mode Parameters.... 32 3.4.4 Setting Control Operating Mode Parameters.
Chapter 1 Overview 1
1.1 Introduction Advantech's EKI series of Industrial Device Servers are a robust, feature-rich, and cost effective way to network-enable equipment in an industrial automation environment. The EKI-1521/1522/1524 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 asynchronous RS-232/422/485 serial devices to an Ethernet network.
1.3 Specifications Ethernet communication compatibility: IEEE802.3, IEEE802.3u Protocol: TCP/IP Interface: – Network: 2 x 10/100Base-T (auto-sensing) – Serial: RS-232/422/485 Serial ports: – EKI-1521: 1 x RS-232/422/485 port – EKI-1522: 2 x RS-232/422/485 port – EKI-1524: 4 x RS-232/422/485 port Connector: – Network: RJ-45 – Serial: DB9 Baud Rate: 50~ 921kbps Throughput: Total throughput up to 1.
Ethernet protection: Built-in 1.5 KV magnetic isolation Operation Temperature: 0 ~ 60° C (32 ~ 140° F) Storage Temperature: -20 ~ 80° C (-4 ~ 176° F) Operating Humidity: 20 ~ 95% (non-condensing) Storage Humidity: 0 ~ 95% (non-condensing) 1.
Chapter 2 Getting Started 2
2.1 Understanding EKI-1521/1522/1524 The EKI-1521/1522/1524 are network-based, serial device servers for connecting RS-232/422/485 devices, such as CNCs, PLCs, scales, and scanners, directly to a TCP/IP network. Once connected through EKI-1521/1522/1524, the serial device will be able to send and receive data on a network like any other network device. It extends traditional COM ports of a PC with access over a TCP/IP network.
Advantech Serial Device Server Configuration Utility is a serial COM port redirector that creates virtual COM ports and provides access to serial device connected to Advantech serial device server. You can configure the serial device server and enable the Virtual COM port using one integrated utility.
2.1.2.2 Multi-Access Mode (Shared COM port mode) Most of serial devices are connected directly and physically to the PC serial ports via a cable. The operation system, ex. Windows XP, provides the COM ports that user’s application can access, and control the serial device through the serial cable. This means that the serial device can be connected to one host and only one application on this host can handle input, output and control operation on this device.
In TCP server mode, you might initiate the TCP connection from host to EKI serial device server. This operation mode support max. five simultaneous connections for each serial port on EKI serial device server from one host or several hosts, however multi-hosts collect the data from one serial port at the same time Chapter 2 2.1.3 TCP Server Mode Getting Started Figure 2.4 TCP Server Mode 2.1.4 TCP Client Mode In TCP Client mode, the TCP connection will be established from EKI serial device server.
2.1.5 Serial Tunneling Mode Two native serial devices can communicate over an Ethernet network without any intermediate host PC and software programming. Serial Tunneling is very simple to use. You can use Advantech Serial Device Server Configuration Utility to designate one serial port as the tunneling master and another serial device server port as the tunneling slave. Figure 2.6 Serial Tunneling Mode 2.1.6 UDP Server/Client Mode UDP is used primarily for broadcasting messages over a network.
In this section, we will give you an overview of EKI-1521/1522/1524 hardware and installation. 2.2.1 LED Indicators There are LEDs display the power status, network status, and serial communication status located on the front panel of EKI-1521, EKI-1522, and EKI-1524, each of them has its own specific meaning as below table. LED Name LED Color LED Description P1 Green Power 1 is on. Off Power 1 is off, or power error condition exists. Green Power 2 is on.
2.2.2 Dimensions (Units: mm) 2.2.2.1 EKI-1521 and EKI-1522 Figure 2.7 Front View of EKI-1521/1522 Figure 2.
Chapter 2 Getting Started Figure 2.9 Back View of EKI-1521/1522 Figure 2.
2.2.2.2 EKI-1524 Figure 2.11 Front View of EKI-1524 Figure 2.
Chapter 2 Getting Started Figure 2.13 Back View of EKI-1524 Figure 2.14 Top View of EKI-1524 2.3 Connecting Hardware Next, we will explain how to find a proper location for your EKI-1521/1522/1524, and then explain how to connect to the network, hook up the power cable, and connect to the EKI-1521/1522/1524 serial port. 2.3.1 Choosing the Location Due to its versatility and innovative design, EKI serial device server can be: Fixed to a panel mount Fixed to a DIN-rail.
2.3.1.1 Panel/Wall Mounting The EKI-1521/1522/1524 can be attached to a wall using the included metal brackets. Each bracket comes with four screws; and then you can install the device firmly via the components, please see the figure as below. Figure 2.15 Combine the Metal Mounting Kit 2.3.1.2 DIN Rail Mounting You can mount the EKI-1521/1522/1524 on a standard DIN-rail. The DIN-rail kit is screwed on the serial device server when out of factory.
2.3.2 Network Connection EKI-1521/1522/1524 has 2x RJ-45 that support connection to 10 Mbps Ethernet, or 100 Mbps Fast Ethernet, and half or full duplex operation. EKI-1521/1522/1524 can be connected to other hubs or switches through a twisted-pair straight through the cable or a crossover cable up to 100m long. 2.3.3 Power Connection The EKI-1521/1522/1524 supports dual 12 to 48 VDC power inputs and power-fail relay output. Figure 2.
2.3.4 Serial Connection EKI-1521/1522/1524 provides one, two, or four ports DB9 (male) connectors. RS232/422/485 pin assignments as below: Table 2.2: EKI-1521/1522/1524 Serial Pin Assignments Pin 1 2 3 4 5 6 7 8 9 RS-232 DCD RX TX DTR GND DSR RTS CTS RI RS-422 TX- - - TX+ GND - RX+ - RX- RS-485 DATA- - - DATA+ GND - - - - 2.
Chapter 2 Getting Started 4. If there is an existed COM port mapping utility on host, you have to remove this and reboot your system, then go on installing. 5. Carefully read the Software License Agreement, and press "Yes" to continue.
6. The InstallShield Wizard will specify a default installation path, C:\Program Files\Advantech eAutomation\Serial Device Server Configuration Utility. If a different destination path is necessary, just click the “Browse…” button to change another path. After you have specified the installation path, click “Next >” button. The InstallShield Wizard will lead you to finish the installation. 7. After setup has copied all program files to your computer, click the “Finish” button to finish the installation.
Chapter 3 Configuration 3
3.1 Configuration Utility Overview EKI-1521/1522/1524 provides an easy-to-use configuration utility to configure your serial device server 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.
3.2.1 Auto Searching From here all device on the same network domain will be searched and display on Device Server List Area. You can click on the device name to show the features of the specific device. Click on the "+" before the model name (e.g. EKI-1522), and the utility will expand the tree structure to show the individual device name. Click on the “-“ before the model name (e.g. EKI-1522), and the utility will collapse the tree structure.
Select the device in this sub-tree. The first tab on the “Configuration Area” shows the summary of “Basic Information” included device Type, version, and name, “Ethernet Information”, and “Serial Port Information”. In the serial port information frame, it displays the operation mode, status and connected host IP. Click on the “+” before the device name, and the utility will expand the interfaces on this device server. Click on each item, you will entry the configuration page to change the setting.
Chapter 3 Configuration 25 EKI-1521/1522/1524 User Manual
3.2.2 Clear Device List and Search Again You can click the button on the “Quick Tool Area”; utility will clear all list device servers in the Device Server List Area and re-search again. Don’t use this function frequently. The warning message will be pop-up when you double click this button. You can click the button on the “Quick Tool Area”; utility will search serial device server on local LAN. 3.2.
Chapter 3 Configuration 3.3 Setting Ethernet Parameters This section explains how to configure EKI-1521/1522/1524 network using this utility so that it can communicate over a network with serial devices. Click on the "+" before the model name (e.g. EKI-1522), and the utility will expand the tree structure to show the individual device name. And click on the “+” before the device name, and the utility will expand the interfaces on this device server. Select the Ethernet interface.
MAC Address: The MAC address is for the local system to identify and locate each serial device servers. This MAC address is already set before delivery from factory, hence no need for further configuration. IP address, Subnet mask, Default gateway: The IP address identifies your Advantech serial device server on the global network. Each EKI-1521/1522/ 1524 has the same default IP address 10.0.0.1 and 10.0.0.2.
Baud Rate: The EKI-1521/1522/1524 supports baud rate from 50 to 921.6Kbps. Total throughput up to 1.2M bps Parity: The EKI-1521/1522/1524 provides five options: None, Odd, Even, Space, and Mark. Data Bits: The EKI-1521/1522/1524 provides four options: 5, 6, 7 and 8. Stop Bits: The EKI-1521/1522/1524 provides three options: 1, 1.5 and 2. 29 EKI-1521/1522/1524 User Manual Configuration Type: The EKI-1521/1522/1524 offers three kinds of serial protocols, RS-232, RS-422 and RS-485.
Flow Control: The EKI-1521/1522/1524 provides four options: None, XOn/XOff, RTS/CTS, and DTR/DSR. 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 all serial device servers. (Will restart your serial device server immediately) 3.4.2 Setting Virtual COM Operating Mode Parameters The Advantech serial device servers extend traditional COM ports of a PC to Ethernet access.
EKI-1521/1522/1524 provides Multi-access function through one Ethernet connection path or dual Ethernet connection paths. Allow the maximum of five connections to open one serial port simultaneously. In the mode, all connections have to use the same serial setting. If one serial setting of these connections is different from others, the data communication may operate incorrectly. There are two kinds of Multi-access function. One is Normal mode; another is RoundRobin mode.
3.4.3 Setting TCP/UDP Server/Client Operating Mode Parameters EKI-1521/1522/1524 provides various operating modes. Selecting the "USDG Mode" as the following figure to change the mode of the port to TCP server/client or UDP mode. Before setting the TCP server mode, you have to check the serial port setting in advance. Mode: There are two kinds of operation modes: Data Mode and Control Mode. To use TCP server operating mode correctly, you have to select Data Mode.
Protocol: TCP and UDP. Enable Time sharing: This function is the same with the Multi-Access function. Please refer to the virtual COM operating mode setting. Peers to Receiving Data: You can set maximum sixteen network devices which you want to connect. You need to fill out the IP Address and Port of network devices which you want to connect.
3.4.4 Setting Control Operating Mode Parameters The “Control mode” is a very special operating mode. The EKI-1521/1522/1524 presents a modem interface to the attached serial device: it accepts AT-style modem commands to connect / disconnect to other networking device. If you want serial device running application program to connect/disconnect to different devices dynamically, you can use controlling mode. The “Control mode” provides three kinds of modem AT-style commands.
Table 3.1: AT Commands List Function ATDT “Forms a TCP connection to the specified host. Ex: ATDT 192.0.55.22:5201 In above example, the EKI serial device server forms a raw TCP connection to the networking device (192.0.55.22). The TCP port is 5201.” ATA Answering an incoming call +++ Returns the user to the command prompt when entered from the serial port during a remote host connection.
Allow any IP to access. If this function is enabled, any PC can access data from this serial device server. Specified IP which can access If you want to restrict access to certain PCs, you can list their IP addresses in this area. The limit is 32 PCs. 3.5.2 Port Monitor Advantech Serial Device Server Configuration Utility provides an excellent function to monitor the serial port status. User can check the status of the serial ports.
There have many administrator functions in Advantech Serial Device Server Configuration Utility, right click on device name in the sub-tree of Device Server List Area, you can import and export serial port setting, refresh data, locate the devices…etc. Chapter 3 3.6 Fulfilling Administrator Functions Configuration 3.6.1 Import/Export Serial Port Setting You can save or recover the configuration of serial port via .sps file format.
3.6.2 Locate Serial Device Once you use this function, the device sever you chose to locate, its “Status” LED will be lit until you click “Stop Locate” option. 3.6.3 Lock Device The configuration utility provides Lock Device function (password protection), when you use this function you need to fill in a set of password. Then, other host computers will no longer to configure this device server. Notice that you need to "Reset Device" in order to store password into the device server.
Chapter 3 Advantech continually upgrades its firmware to keep up with the ever-expanding world of computing. You can use the update firmware function in the utility to carry out the upgrade procedure. Please access Advantech’s Website at http:// www.advantech.com to download the latest version of the firmware. 1. Right click on the device name and select the “Update Firmware” function. 39 EKI-1521/1522/1524 User Manual Configuration 3.6.
2. Select the firmware you want to update. 3. After downloading the firmware completely, click on the “OK” button. The serial device server will restart automatically.
Chapter 4 Setting COM Redirector 4
4.1 Setting COM Redirector (Virtual COM port) Advantech COM port mapping software is a serial COM port redirector that creates virtual COM ports and provides access to serial devices connected to Advantech serial device servers. Your serial device applications can communicate with serial devices connected to Advantech serial device servers without software changes.
Chapter 4 43 EKI-1521/1522/1524 User Manual Setting COM Redirector The COM ports in the “Virtual Com Ports” listing are now available for use by Windows applications.
4.1.2 Manual Mapping Right click the serial device name on the sub-tree of Device Server List area and select the “Manual Mapping” function. ADAM series, EDG series, and EKI wireless series have only one IP address. Select the serial port on the device server and the host COM that you want to set. Press
EKI-1521/1522/1524 has two Ethernet ports. You can select two Ethernet port to establish two Ethernet connections with one virtual COM port. It means that COM redirector will use one connection with the COM port on device server to communicate. If this connection failed, COM redirector will establish another Ethernet connection to communicate with device. The switch time will be 3 seconds ~ 5 seconds depending on the network traffic and host status.
4.1.3 Manual Direct Mapping Virtual COM Port Click the button on the Quick Took area, you can add a target by selecting the Device Type and inputting the IP address without physically connecting the serial device server to the network. 4.1.4 Remove the Virtual COM Port If you want to remove the virtual COM port, you can remove them one by one or group remove ports. Individually Remove Right click on COM port you have mapped and select “Remove This Port”.
Chapter 4 The purpose of this test is to make sure the communication from host PC to EKI1521/1522/1524 is OK. If there is still an error, you can check the communication from the EKI-1521/1522/1524 to the devices. If the test is selected, an external test will be done to check that the connection signals for each port are working properly. For the test, you will need to connect each port to a loopback tester (provided in the package). The loopback test only applies to RS-232 mode.
2. Select which COM port you want to run a diagnostic test, and then press “Test” button to process the testing. Signal Test RTS -> CTS check the RTS and CTS signal between two ports DTR -> RI check the DTR and RI signal between two ports DTR -> DSR check the DTR and DSR signal between two ports DTR -> DCD check the DTR and DCD signal between two ports Communication Parameters Test Baud rate 50bps ~ 921.6kbps Data bit 5, 6, 7, 8 Stop bit 1, 1.
Chapter 4 Setting COM Redirector 49 EKI-1521/1522/1524 User Manual
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.