EDG-4508+ 8-Port Ethernet to RS-232/422/485 Data Gateway EDG-4508R+ 8-Port Ethernet to RS-232/422/485 Data Gateway with Rear Wiring EDG-4516+ 16-Port Ethernet to RS-232/422/485 Data Gateway EDG-4516R+ 16-Port Ethernet to RS-232/422/485 Data Gateway with Rear Wiring User Manual
Copyright This documentation and the software included with this product are copyrighted 2004 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.
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 purchase. 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.
FCC Class A 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.
Contents Chapter 1 Overview .......................................................... 2 1.1 1.2 1.3 1.4 Chapter Introduction ....................................................................... 2 Features ............................................................................. 2 Specifications .................................................................... 3 Packing Checklist.............................................................. 3 2 Getting Started .................................
3.6 Chapter 4 Port Mapping Utility..................................... 36 4.1 4.2 4.3 Chapter 4.3.1 4.3.2 4.3.3 Updating EDG Firmware ............................................. 40 Self Test Function ........................................................ 41 Save the Configuration ................................................ 44 Overview ......................................................................... 46 Access Web Page ............................................................
CHAPTER 1 2 Overview
Chapter 1 Overview 1.1 Introduction This manual provides the necessary information to use EDG-4508(R)+ and EDG-4516(R)+. The Advantech Ethernet Data Gateway series (EDG series) consists of fast and cost-effective data gateways between RS-232/ 422/485 and Ethernet interfaces. EDG-4508(R)+ and EDG-4516(R)+ are part of the Ethernet Data Gateway (EDG) family of multiple port modules.
1.3 Specifications • I/O controller: 16C654 or compatible (auto hardware flow control) • LAN Speed: 100Base-TX (10/100 Mbps) • Ethernet Connection: RJ-45 • Serial: RS-232, RS-422 and RS-485 • Serial Connection: RJ-48 • DI/O: programmable 4DI,4DO for extra control • Signals: TxD, RxD, RTS, CTS, DTR, DSR, DCD, GND • Speed: 50 ~ 230 kbps • Data bits: 5, 6, 7, 8 • Stop bits: 1, 1.5, 2 • Parity: none, even, odd, space, mark • Max.
EDG-4508(R)+/4516(R)+ User Manual 4
CHAPTER 2 2 Getting Started
Chapter 2 Getting Started Plug LAN Cable (RJ-45) to EDG-4508(R)+ /EDG-4516(R)+ No Troubleshooting Install Configuration Utility to PC No Search all EDG Series in Configuration Utility No Complete all settings and IP addresses on PC No Test connection by Ping IP address from PC No Set up Serial port by Port Mapping Utility No Connect cable (s) to serial port (s) No Test serial port Program Installation Complete Figure 2.
2.1 Understanding EDG-4508(R)+ and EDG-4516(R)+ EDG-4508(R)+ and EDG-4516(R)+ are advanced Ethernet data gateway units. They extend traditional COM ports of a PC to Ethernet access. Through Ethernet networking, users can control and monitor remote serial devices and equipment over LAN or WAN. Since EDG-4508(R)+ and EDG-4516(R)+ are connected with the TCP/IP protocol, you will have to know fundamental facts about Ethernet networking to get the server setup correctly.
2.2 Connecting Hardware Figure 2.2: EDG-4508+/4516+ Front Panels Figure 2.
Figure 2.4: EDG-4508+/4516+ LED Indicators and Connectors Figure 2.
Table 2.
DI/O PIN Connector Power Switch & Connector Fuse Storage Figure 2.6: EDG-4508+/4516+ Rear Panel Figure 2.
2.2.1 Rack Mounting Figure 2.
2.2.2 Network Connection Figure 2.9: Ethernet Connector of EDG-4508+/4516+ Figure 2.
2.2.3 Power Supply Connection Fuse Storage Figure 2.11: Power Switch and Connector with Fuse 2.2.4 Serial Port Connection Figure 2.12: 8 Ports RS-232/422/485 Serial Connector for EDG-4508+ Figure 2.13: 16 Ports RS-232/422/485 Serial Connector for EDG-4516+ Figure 2.
2.2.
2.3 Installation 2.3.1 Install/Uninstall Driver & Utility In order to use a PC and an Ethernet network to control serial devices connected to EDG-4508(R)+ and EDG-4516(R)+, you must first have a host running Windows 98/NT/2000/XP. This type of application also requires the host to have an Ethernet card and the TCP/IP protocol installed. The following are the required steps for installing EDG4508(R)+ and EDG-4516(R)+. 1. Insert the Advantech industrial communication CD-ROM into the drive (e.g.
4. Carefully read the Software License Agreement, and press "Next" to continue. 5. The Setup program will specify a default installation path, C:\Program Files\Advantech\EDG COMPort Utility.
If a new destination path is necessary, just click the Browse button to change the path. After you have specified the installation path, click the Next button. 6. In this step, you may select a specific program folder or just use the default setting and press "Next".
7. After setup has copied all program files to your computer, click the Finish button to finish the installation.
EDG-4508(R)+/4516(R)+ User Manual 20
CHAPTER 3 2 Configuration
Chapter 3 Configuration 3.1 Auto Search EDG-4508(R)+/4516(R)+ provides an easy-to-use configuration utility to configure your Ethernet Data Gateway Device through an Ethernet connection. The utility provides an auto-search function to show your device(s) by simply executing the configuration utility program from the Start Menu as follows.
You can click on the device name to show the features of the specific device. Click on the "+" before the model name (e.g. EDG-4516(R)+), and the utility will expand the tree structure to show the individual device name. For Example, EDG Configuration Utility shows "ADAM-00D0C968E17F" after expanding the tree structure. Note When you run the EDG configuration utility for the first time, the default device name is "MAC ID".
3.2 Locating EDG-4508(R)+/4516(R)+ The configuration utility provides a "Locate" function to assist you in finding a specific device. You can select the EDG Series as a group or just select one specific module, e.g. EDG-4508+ or EDG-4516+. There are two different options for the Locate function (1) Designated: locates a specific device for you. 1. Select "Designated" and click "Locate" 2. The "Status" LED will remain steady for 8 minutes. 3.
3.3 Device System Configuration Four functional categories Device Name Firmware Version Device List Device Description The configuration utility only searches for EDG-4508(R)+ and EDG4516(R)+ on the local network, and cannot search beyond a router or gateway. Make sure that the EDG-4508(R)+ or EDG-4516(R)+ you want to monitor resides in the same local network segment as the host PC.
3.4 Network Configuration TCP/IP Option Ethernet Option Ethernet Option MAC Address This does not need configuration. Link Speed This function will show the current linking speed to be either 10Mbps or 100Mbps. However, the utility will auto-detect the current transmission speed on the network segment and set the transmission speed for the device accordingly.
3.5 Port Configuration Port Setting Option Port Configuration Option Port Setting You can modify the description for individual port settings in the Port Setting Option. Name Show Port Name 8 Ports for EDG-4508(R)+ 16 Ports for EDG-4516(R)+ Description Show individual description for each port. You can change the description for your connected module to identify the connection from EDG Configuration Utility.
Port Configuration You can modify port configuration in this Configuration Option such as Type, Parity, Flow Control, Data Bits, Stop Bits, Baud Rate and Host Idle Timeout. Type Serial Port Type You can change the connection type for your module to: RS-232, RS-422 or RS-485.
Parity Parity Check Type You can follow the parity check type of your connected module. The following types are provided. • None • Odd • Even • Mark • Space Flow Control Flow Control Type You can choose the flow control type of your connected module. The following types are available.
Data Bits Data Bits Type You can choose the number of Data Bits of your connected module to be 5, 6, 7 or 8. Stop Bits Stop Bits Type You can choose 1, 1.
Baud Rate Flow Control Type You can choose the Baud Rate of your connected module. The following rates are available: • 7,200 • 9,600 • 14,400 • 19,200 • 38,400 • 57,600 • 115,200 • 230,400 * Set All Port The ‘Set All Port’ function helps you set all serial ports at one time. All you need is to set one port and click the "Set All Port" button. The other ports will then follow the first port that you have set up.
Host Idle Timeout The ‘Host Idle Timeout’ setting monitors the connection between the host and the device. If the ‘Host Idle Timeout’ setting time is reached, the device will release the resources allocated to the port mapping. This prevents a stalled host from affecting the connected device. .
3.6 Security Configuration For security reasons, you are highly recommended to use EDG’s security features. The EDG configuration utility provides security functions for the network structure. Only configure the allowed IP The system will auto detect the IP address for the currently connected computer. If you enable this function, only your current host computer can access this EDG Device. *If you use Dynamic IP Assignment by the DHCP Server, we suggest that this function is not enabled.
EDG-4508(R)+/4516(R)+ User Manual 34
4 CHAPTER 2 Port Mapping Utility
Chapter 4 Port Mapping Utility 4.1 Overview The purpose of the port mapping utility is to help you manage all ports on one Windows 98/NT/2000/ME/XP platform. The utility displays three types of ports: used ports, unused ports and EDG ports. Please follow the Virtual COM port setting steps. 4.2 Virtual COM Port Settings 1. Click "+" at "Unused Ports" to expand the unused port lists, and select the port that you want to configure.
2. Click the ADD button to assign a COM port to an EDG device. Module of Installed Device You can choose between all connected EDG devices. In this example, "EDG-4516+" was chosen. IP Address of Installed Device Enter the IP address you assigned in chapter 3.4. Port of Installed Device Choose the port where you want to setup: 8 ports for EDG-4508(R)+ and 16 ports for EDG-4516(R)+.
Memo You can add a description to the port setting if necessary. Add Click here to add a single port setting to your specification. Add All You can assign all ports to follow current settings by clicking the "Add All" button. This is more convenient than adding ports individually. For this example, we have selected COM21 and made all necessary settings for Port 1 of EDG-4516+. After clicking on the "Add All" button, the COM Port Mapping Utility will assign the COM21 ~ COM36 mapping to Port 1 ~ Port 16.
Note If you assigned a different COM port to the same EDG series module port, the following dialog box will remind you. 4.3 Inquiring Virtual COM Port Setting You can check the virtual COM port setting by clicking on the EDG device’s ports. In this case, COM11 is assigned to Port 1 of EDG-4516+.
4.3.1 Updating EDG Firmware Updating Firmware Advantech continually upgrades its firmware. You can use the download function located on the Port Mapping utility to carry out the upgrade procedure. Please access Advantech's web site at http://www.advantech.com to download the required computer file and then follow these instructions. 1. Click on the Update FW icon in the toolbar. 2. Locate and then select the filename of the firmware that you have downloaded. 3.
4.3.2 Self Test Function Test The purpose of this test is to confirm that the communication from the host PC to the EDG device is OK. When the test is selected, an external test will be performed to check that the connection signal between each port is working properly. For this test, you will need to connect each port to a Loopback tester. Refer to the following chart for specifications of this Loopback tester. The Loopback test only applies to RS-232 mode.
Signal Test • RTS->CTS: Checks the RTS and CTS signals between two ports. • DTR->RI: Checks the DTR and RI signals between two ports. • DTR->DSR: Checks the DTR and DSR signals between two ports. • DTR->DCD: Checks the DTR and DCD signals between two ports. Communication Parameters Test • Baud rate: From 50 bps to 230 kbps • Data bits: 5, 6, 7, 8 • Stop bits: 1, 1.5, 2 • Parity: odd, even, none, space, mark 2. Click the OK button to return to the port mapping window.
Delete You can delete Port Mapping Setting by clicking the button. Apply If any changes are made, please press the modifications. button to confirm your Exit If you want to quit the utility, please click on the button. If any changes are made in the COM Port Mapping setting, the system reboot requirement will show up. Please reboot your system to make sure your changes will work.
4.3.3 Save the Configuration If you want to save or recover the configuration, you can select the "Import/Export" items. 1. a. Select "File" b. Select "Import" or "Export". 2.
CHAPTER 5 2 Web-Based Configuration
Chapter 5 Web-Based Configuration 5.1 Overview EDG devices can be configured through a web interface. By using a standard web browser, the same procedure as with the Windows configuration utility can be used. In the browser’s address field, enter the IP Address of your EDG device. The default IP setting is 10.0.0.1, but you should use the IP which you have previously assigned for this device. Once the IP is entered, you will be presented with the following windows. 5.2 Access Web Page Step 1.
5.3 Network Configuration Under network configuration, there are: MAC address, IP Address, Subnet Mask and Default Gateway. Enter the corresponding values for your network environment. Step 1. Enter IP Address, Subnet Mask and Default Gateway Step 2. Press ‘Save’ to store the settings. Note All new configurations will take effect after reset. The reset function is located on the main menu of the Web Configuration.
5.4 Port Configuration Under port configuration, you can as sign the type and host idle timeout for individual ports. Note EDG-4508(R)+ and EDG-4516(R)+ support RS-232/ RS-422/RS-485.. Note The Host Time Out function is similar to the one in the Configuration Utility.
5.5 DI/O Event Configuration In event configuration, you can assign an DI event by enabling the check box and choosing the optimized action mode, Server IP and TCP Port for the active event. DI 0, DI 1, DI 2, DI 3 Options for Event 1 will be activated when any one of DI signal meets the Action option. The event will be monitored on the Server and port of your assignment.
5.6 Reset Configuration All configurations will take effect after this reset step. Press the reset button and the system will give a reset response. It will take a few seconds to reconnect with the new values.
6 CHAPTER 2 Console Configuration
Chapter 6 Console Configuration 6.1 Overview The purpose of the Console Configuration is to help you manage your device in console mode. One of the main functions of the console mode is to change the web configuration login password. You can use terminal software like Hyper Terminal, Telix and other related terminal software. 6.2 Hyper Terminal Connection Step 1.
Step 3. Selecting a COM Port Confirm that the console configuration works ok. Step 4. COM Port Setting To connect the EDG series for console configuration, the port setting should match the EDG series' default setting.
Step 5. Connecting Successfully After connecting the device in console mode, you can simply type the "Help" command to show the Supported Command Lists 6.
• log [Usage] log [Function] displays log file >log [05-09-2003 17:01:17] System up • date: displays or sets the date [Usage] date [Function] displays the date >date Current date is 05-09-2003 [Usage] date [mm-dd-yy [dse]] [Function] sets the date >date 06-09-03 >date > Current date is 06-09-2003 • time: displays or sets the time [Usage] time [Function] displays the configuration >time Current time is 17:17:30 [Usage] time [hh.mm.
• net [Usage] net [Function] displays the configuration of net >net Current net is ip 172.18.3.226 gw 0.0.0.0 netmask 255.255.255.0 [Usage] net set ip d.d.d.d gw d.d.d.d netmask d.d.d.d [Function] sets the configuration of net >net set ip 172.18.3.227 gw 0.0.0.0 netmask 255.255.255.0 >net Current net is ip 172.18.3.227 gw 0.0.0.0 netmask 255.255.255.0 [USAGE] net save [FUNCTION] saves the configuration of net to system Note You should use the net save command to activate the changes.
• port [USAGE] port [nn | all] [FUNCTION] displays the status of port(s) >port all The Port01 is type 422, idleto 30, idle The Port02 is type 232, idleto 30, idle The Port03 is type 232, idleto 30, idle The Port04 is type 232, idleto 30, idle The Port05 is type 232, idleto 30, idle The Port06 is type 232, idleto 30, idle The Port07 is type 232, idleto 30, idle The Port08 is type 232, idleto 30, idle The Port09 is type 232, idleto 30, idle The Port10 is type 232, idleto 30, idle The Port11 is type 232, idlet
• event [USAGE] event [nn | all] [FUNCTION] displays the configuration of event(s) [USAGE] event nn iomap xx action [L2H|H2L|CHG] server d.d.d.d:d [FUNCTION] sets the configuration of event [USAGE] event [nn | all] clear [FUNCTION] clears the configuration of event >event 2 iomap f action L2H server 172.18.3.58:503 >event 2 The Event2 is iomap f action L2H server 172.18.3.58:503 >event 2 clear >event all The Event1 is iomap f action CHG server 172.18.3.
• ping [USAGE] ping addr (addr: IP address of destination host) [FUNCTION] Sends ICMP ECHO_REQUEST packets to network hosts >ping 172.18.3.226 32 bytes from 172.18.3.226: icmp_seq=0 ttl=64 time=1 ms 32 bytes from 172.18.3.226: icmp_seq=1 ttl=64 time=1 ms 32 bytes from 172.18.3.226: icmp_seq=2 ttl=64 time=1 ms 32 bytes from 172.18.3.
EDG-4508(R)+/4516(R)+ User Manual 60
CHAPTER 7 2 Event and DI/O Monitoring
Chapter 7 Event and DI/O Monitoring 7.1 Overview The purpose of Event and DIO Test is to help you monitor your EDG-4508(R)+/4516(R)+ DI/DO event(s). Follow these steps to test the DI/DO event(s). 7.2 Event and DI/O Monitoring 7.2.1 Polling Monitoring The following screen will appear once the EVENT Tester Program is executed. To start monitoring the Polling, enter the IP Address and press start. The Status will change to Monitoring if you enter the correct IP of your device.
7.2.2 Event Monitoring Once you have executed the steps in Chapter 3.4, you can use the tester to monitor the event status with the port and IP you have assigned before. Please follow these steps: Step 1. Assign IP and TCP Port for monitoring (Setting Event monitoring from Web Event Configuration) Step 2. Assign TCP Port of Event Server and click on "Start". Event and DIO tester will change to Monitoring Mode. Red indicator in normal mode means Inactive and Green indicator means Active.
Step 3. We can activate the DI0 event; tester will show the green indicator. Message Log will show event log with timer and event description. (DI0 Active and Event Monitor Shows Green) 7.2.3 DI Value Inverse Option Because of different wiring issues, we have provided DI value inverse optional function to Inverse DI value. You can select the correct functions to match the results. Step 1.
Step 2. After enabling DI value inverse function, Green indicator means inactive and Red indicator means active. Step 3. After DI value inverse is enabled, follow the event configuration rule from the web configuration.
7.3 Programming I/O According the feature list, it mentioned EDG-4508+/4516+ provide the D/I AND D/O handling function. In order to help customer to create the I/ O event handling environment. We provide a programmable I/O sample program for customer use. After installing the EDG COM Port Utility, the sample programs will be on the location as follow: C:\Program Files\Advantech\EDG COMPort Utility\samples\vc\ edgevtio.
memset(&HostAddr, 0, sizeof(SOCKADDR_IN)); HostAddr.sin_family = AF_INET; HostAddr.sin_addr.s_addr = INADDR_ANY; HostAddr.sin_port = htons(5000); // | // +-->The TCP Port in the server application It remarks the function of htons(n), the parameter n means the TCP Port in server application and It helps the programmer to make his own program easier by referencing the note we provided.
mbtcp.h File name of mbtcp means Modbus TCP; we provide the easier definition of necessary parameter.
8 CHAPTER 2 Troubleshooting
Chapter 8 Troubleshooting This chapter explains how to solve some of the most common problems with the EDG Series. If you still have problems after reading this chapter, contact your dealer, or e-mail Advantech for help. "Configuration Utility can not find EDG Series" 1. Check the "Power" LED. If it is off, you will have to: Make sure the EDG Series power cable is plugged in, and the server is receiving power. Check that the server's network connector is plugged in properly.
"The host PC can access the EDG Series at this local site but later relocates the EDG Series to a remote site that PCs cannot access." Your IP address might have changed because of different network interface connections, and as a result, you are no longer on the EDG Series' Access Control list. To resolve this issue: 1. Confirm your IP address with the EDG Series. 2. Ask the network administrator to set up the server configuration so that you are on the EDG Series' Access Control list.
EDG-4508(R)+/4516(R)+ User Manual 72
APPENDIX 2 A
Appendix A A.1 RS-232 Pin Assignment A.
RS-422 Pin No. Description 1 Tx- 4 Tx+ 5 GND 7 Rx+ 9 Rx- RS-485 Pin No.
EDG-4508(R)+/4516(R)+ User Manual 76