8-port rs-232/422/485 to ethernet data gateway with front wiring, with rear wiring, 16-port rs-232/422/485 to ethernet data gateway with front wiring, with rear wiring
EDG-4508+ 8-Port RS-232/422/485 to Ethernet Data Gateway with Front Wiring EDG-4508R+ 8-Port RS-232/422/485 to Ethernet Data Gateway with Rear Wiring EDG-4516+ 16-Port RS-232/422/485 to Ethernet Data Gateway with Front Wiring EDG-4516R+ 16-Port RS-232/422/485 to Ethernet Data Gateway with Rear Wiring User Manual...
Page 2
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.
Page 3
Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its prod- ucts 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...
Page 4
Step 1. Visit the Advantech web site at www.advantech.com/support where you can find the latest information about the product. Step 2. Contact your distributor, sales representative, or Advantech's cus- tomer service center for technical support if you need additional assistance. Please have the following information ready before...
Contents Chapter 1 Overview ............2 Introduction ............... 2 Features ................3 Specifications ..............4 Packing Checklist.............. 4 Chapter 2 Getting Started ..........6 Understanding EDG-4508/4516(R)+ Modules ....6 2.1.1 Virtual COM Port Mode ..........7 2.1.2 Data Mode ..............7 2.1.3 Control Mode ..............
Page 6
Chapter 4 Port Mapping Utility........58 Overview ................. 58 Virtual COM Port Settings..........58 Inquiring Virtual COM Port Setting........ 62 4.3.1 Self Test Function ............62 4.3.2 Save the Configuration ..........65 Chapter 5 Web-Based Configuration ......68 Overview ................. 68 Access Web Page ............
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 Gate- way (EDG) family of multiple port modules.
1.2 Features • Supports 8/16 channels (8 Channels for EDG-4508(R)+, 16 Channels for EDG-4516(R)+). • Supports RS-232/422/485 • Versatile socket operation modes, including TCP control mode, UDP control mode, TCP data mode, and UDP data mode. • 4 DI/O for alarm handling •...
Chapter 2 Getting Started This chapter includes information about installing EDG-4508(R)+ and EDG-4516(R)+ The following covered: • Understanding the EDG-4508(R)+ and EDG-4516(R)+ • Connecting Hardware • Configuration Utility and COM port mapping Utility installation 2.1 Understanding EDG-4508/4516(R)+ Modules EDG-4508(R)+ and EDG-4516(R)+ are advanced Ethernet data gateway units.
2.1.1 Virtual COM Port Mode EDG series provide a virtual COM driver that works on Windows NT/ 2000/XP systems. This driver establishes a transparent connection between Host and serial devices. The driver will be installed on your computer automatically while you install COM port mapping utility. You have to use COM port mapping utility to configure the mapping between the EDG serial ports and local COM ports on the host computer.
2.2 Panel Layout Default Setting Button: press Default Setting button continuously and press the Reset button for to load factory defaults. This will cause the status LED to blink on and off. The factory defaults will be loaded while the LED stops blinking and buzzer buzzed. You can release the Default Setting button.
2.3 Connecting Hardware This section introduces how to connect EDG-4508(R)+ or EDG- 4516(R)+ to serial devices for first time. 2.3.1 Rack Mounting 2.3.2 Network Connection Connect the Ethernet cable to EDG-4508(R)+ or EDG-4516(R)+ Ethernet port. There are 2 LED indicator located on front panel to show the Ethernet status.
2.3.3 Power Supply Connection Connect EDG-4508(R)+ or EDG-4516(R)+ AC power line with its AC connector. If the power is properly supplied, you can turn on the power switch and the Power LED will show a green color. 2.3.4 DI/O Connection EDG-4508(R)+/4516(R)+ User Manual 10...
2.3.5 Serial Port Connection Connect the serial data cable, OPT1A or OPT1D, between EDG series and the serial devices. Status Description Tx (Port N) Blinking Serial port data being transmitted N= 1~8/16 No data being transmitted Rx (Port N) Blinking Serial port data being received N= 1~8/16 No data being received...
Ethernet card and the TCP/IP protocol installed. The following are the required steps for EDG-4508(R)+ and EDG-4516(R)+. 1. Insert the Advantech industrial communication CD-ROM into the drive (e.g. D:\) on the host PC. Change the host computer's default drive from C: to D: 2.
Page 19
4. Carefully read the Software License Agreement, and press "Yes" to continue. Chapter 2...
Page 20
5. The Setup program will specify a default installation path, C:\Program Files\Advantech\EDG COMPort Utility. 6. In this step, you may select a specific program folder or just use the default setting and press "Next". EDG-4508(R)+/4516(R)+ User Manual 14...
Page 21
7. After setup has copied all program files to your computer, click the <Finish> button to finish the installation. Chapter 2...
2.4.2 COM Port Mapping Utility To setup and enable the Virtual COM on the HOST, you must install this utility on this PC. This driver is suitable for Window NT/2000/XP. This type of application also requires the host to have an Ethernet card and the TCP/IP protocol installed.
Page 23
4. Carefully read the Software License Agreement, and press "Yes" to continue. 5. The Setup program will specifya default installation path, C:\Program Files\Advantech\COMPort Mapping Utility. Chapter 2...
Page 24
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 18...
The utility provides a search function to show your device(s) by simply executing the configuration utility program from the Start Menu as follows. Start Menu -> All Program ->Advantech eAutomation -> EDG COMPort While you launch the EDG II configuration utility, the utility will load the setting.
Page 27
You can click the search button to search all the EDG device(s) on the network and show them on the Available Devices Tab of the utility. You can click the “Close” button to stop the search. From here you can easily configure various parameters for TCP/IP configuration.
Page 29
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 indi- vidual device name. Click on the “-“ before the model name (e.g. EDG- 4516(R)+), and the utility will collapse the structure.
3.2 EDG Modules Connected Devices Group This EDG II configuration utility will allow you to add a device via spec- ifies the IP address. You can click ‘New’ button to add a device. And then the EDG device will be shown on the ‘Connected Devices’ of the utility. From here you can easily configure various parameters.
Page 31
You can select the device and click the “Append” button. The device will be moved to Connected Devices group. You may click the “Group Append” button. The devices on the Devices Survey panel will be showed on the selected window. You might select the devices which you want to append to the “Connected Devices group”, or click “Select All”.
3.2.1 Deleting Devices You can select the device on Connected Devices group and click “Delete” button. The device will be deleted. You may click “Search” button and find the device again. EDG-4508(R)+/4516(R)+ User Manual 26...
3.2.2 Connected Devices Group Functions While you move the device(s) to Connected Devices group, you can use these functions • Lock device • Grouping Allocate • Download firmware • EDG II configuration utility check the device(s) automatically. Con- nected – online, Disconnected – offline •...
Page 34
Note Don’t input any character on the password field and save. The security control is disabled. You also use the “Grouping Lock” button to modify the password while the devices are on “Connected Devices group”. EDG-4508(R)+/4516(R)+ User Manual 28...
Page 35
While you click “OK” button, the password will be updated to device. You should click “Reset” button, the module will move this data to Flash memory and restart. Note: You might finish all setting and click "Apply" to enable the modification in the moment; otherwise the setting will disappear while the device restarts.
Page 36
You also select the device and right click “Mouse button”. Input the pass- word and unlock the device. EDG-4508(R)+/4516(R)+ User Manual 30...
3.4 Locating the Module 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 3.4.1 Locate a specific device for you 1.
3.4.2 Grouping Locate specific devices for you 1. Click the “Locate” button 2. Select the devices which you want to locate. 3. Click the “Stop” EDG-4508(R)+/4516(R)+ User Manual 32...
3.5 Device System Configuration The EDG II configuration utility only searches for EDG-4508(R)+ and EDG-4516(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. You might use “New”...
Firmware Version In this field, the configuration utility represents the firmware version of the EDG Series. You might need to refer to the firmware version to deter- mine functions available on the EDG Series device. In case of problems that might concern the firmware version, please provide the firmware ver- sion number to our Customer Service.
Note EDG devices do not support auto IP address con- figured by DHCP server. 3.5.1 Security Configuration -Password Modify In default setting, each EDG device don’t has password. You can change the password to protect all configuration settings of your EDG device. If you want to cancel the password, you can blank the New password and Confirm password.
The specified IP which can access Enabled this option, you might limit at most 32 PCs to access data from this EDG. 3.6 Port Configuration There are three operation modes for EDG-4516(R)+ and EDG-4508(R)+, Virtual COM mode, Data mode, and Control mode. You can configure mode for individual ports.
Page 43
Selected Port To specify which port on the EDG Series is to be connected to the serial device. Description User can give more detailed description of the function of the port for easy management and maintenance. Descriptions longer than 128 charac- ters cannot be used.
Page 44
Parity The EDG Series provides five options: None, Odd, Even, Space, Mark. Flow Control The EDG Series provides four options: None, Xon/Xoff, RTS/CTS, DTR/ DSR. EDG-4508(R)+/4516(R)+ User Manual 38...
Page 45
Baud Rate The EDG Series supports baud rates from 50 to 230,400bps. Chapter 3...
Page 46
Data Bits The EDG Series provides four options: 5, 6, 7 or 8. Stop Bits The EDG Series provides three options: 1, 1.5 or 2. EDG-4508(R)+/4516(R)+ User Manual 40...
3.6.1 Virtual COM mode The EDG device is advanced Ethernet data gateway units. It extends tra- ditional COM ports of a PC to Ethernet access. Through Ethernet net- working, users can control and monitor remote serial devices and equipment over LAN or WAN. EDG series come with a Virtual COM driver that transmits all serial signals intact.
Note While you disable the Host Idle option, the EDG will not cut off the connection. If Host loses the connec- tion with EDG and the Host Idle option is disabled, Host will not connect to EDG again. 3.6.2 Data Mode EDG-4516(R)+ and EDG-4508(R) can be Data server or Data client either.
Page 49
Protocol EDG-4516(R)+ and EDG-4508(R)+ provides TCP/IP and UDP two pro- tocols. In settings, you can choose either TCP mode or UDP mode according to your application. Chapter 3...
Page 50
Data Listen Port The TCP(UDP) port number represents the source port number , and the number is used to identify the channel for remote initiating connections. Range: 1024-65533. If an unknown caller wants to connect to the system and asks for some services, they need to define the TCP(UDP) port to carry a long-term conversation.
Peer Number Set the number of network device which you want to connect. IP Address IP address of network devices which you want to connect. Port Another TCP port of network devices which you want to connect. 3.6.3 Control Mode In controlling mode, the EDG-4516(R)+ and EDG-4508(R)+ present a modem interface to the attached serial device: it accepts AT-style modem commands to connect / disconnect to other networking device.
Page 52
Thus, intelligent serial devices such as stand-alone PLC will send /receive data to/from devices one by one via Ethernet. You might select Data mode and setup port attributes Protocol EDG-4508/16 provides TCP/IP and UDP two protocols. In settings, you can choose either TCP mode or UDP mode according to your application. Data Listen Port Each port has its own data listen port to accept connected request of other network device.
Page 53
Command Listen Port Each port has its own command listen port to accept connected request of other network device. So, the command listen port can’t be set the same value. You can use ‘AT command’ to change the port setting via the com- mand listen port.
Page 54
The following table illustrates the response. Command Function <LF><CR> OK Commands are executed correctly <LF><CR> <LF><CR> CON- Connect to other device NECT <LF><CR> <LF><CR> RING Detect the connection requesdt from other ddd.ddd.ddd<LF>< device, which IP address is ddd.ddd.ddd.ddd. CR> <LF><CR> DIS- Disconnect from other device CONNECT <LF><CR>...
3.7 Monitor and Event Configuration 3.7.1 Device Status EDG Configuration utility II provide an excellent function to monitor the virtual serial port status. User can check the serial port health. Refresh Update port status manually when you click ‘Start’ button. Continue Update port status automatically every 10 seconds unless you click ‘Stop’...
3.7.2 Event setting EDG-4508(R)+/EDG-4516(R)+ provide 4 events with comparison and different server IP and Port. The event will be activated when any one of DI signals that you specified meets the ‘Action’ option. The event will be monitored on the Host and port of your assignment. Event Setting Specify which event of the device is to be set.
3.8 UDP Testing Utility The utility is for testing the status of ADAM-4577 UDP mode. It is also suit- able for testing the UDP Data mode of EDG-4516(R)+ and EDG-4508(R)+. By the utility, you can set Command Timeout to test the status of UDP network architecture.
Page 58
Target Device & UDP Port Y ou can set Target Device IP Address according to Network IP Address in Configuration Utility. And UDP Port is depended on Setting Listen on UDP Port in Configuration Utility. “UDP Port” value is equal to “Listen on UDP Port”...
Page 59
The command edit control can be inputted in ASCII code ast choose ASCII Command Forma, and the command edit control can be inputted in HEX format as choose HEX Coomand. Command Mode Single Mode means command is running only one time to test UDP Mode. Command is running repeatedly to test UDP Mode as you choose Repeat Mode.
Page 60
Send Command to the [IP Address : UDP Port] Timeout Following Frame is UDP Testing Utility is running test as UDP responses well. EDG-4508(R)+/4516(R)+ User Manual 54...
3.9 Updating EDG Firmware Advantech continually upgrades its firmware. You can use the download function located on the COM Port Configuration utility to carry out the upgrade procedure. Please access www.advantech.com to download the required file and then follow these instructions.
Page 62
After the firmware have been downloaded into the EDG device, this device will reboot and enable the new firmware. EDG-4508(R)+/4516(R)+ User Manual 56...
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 NT/2000/ME/XP platform. The utility displays three types of ports: used ports, unused ports and EDG ports. Please follow the Vir- tual COM port setting steps.
Page 65
2. Click the 'Add' button to assign a COM port to an EDG device. You might click 'Add All' button to assign the COM ports the EDG device. The COM ports number depends on the model of installed device that you selects.
Page 66
Properties (Auto Reconnect Function) Sometimes, the connection between EDG device and HOST is inter- rupted by network traffic or powered-off by accident. In such a situation, the host have to reconnect to EDG device. The function "Auto-reconnect" is for this purpose, If the EDG device loses the connection to its host, the VCOM driver will try to re-establish the connection while the HOST AP access the VCOM port.
Page 67
(COM21 is mapping to Port 1 of EDG-4516+) (COM22 is mapping to Port 2 of EDG-4516+) If you assigned a different COM port to the Note same EDG series module port, the following dialog box will remind you. Chapter 4...
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 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.
Page 69
Test Fail (Without Loopback Connector) Test ok 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. •...
Page 70
Click the OK button to return to the port mapping window. All the ports in the EDG Series are tested ok. Delete You can delete Port Mapping Setting by clicking the button. Apply If any changes are made, please press the button to confirm your modifications.
4.3.2 Save the Configuration If you want to save or recover the configuration, you can select the "Import/Export" items. a. Select "File" b. Select "Import" or "Export". Save or open the configurations Chapter 4...
Chapter 5 Web-Based Configuration 5.1 Overview EDG devices can be configured through a web interface. By using a stan- dard web browser, the same procedure as with the Windows configura- tion utility can be used. In the browser’s address field, enter the IP Address of your EDG device.
Page 75
You can change the Device Name and Device Description on this page. Press ‘Save’ to store the settings. Chapter 5...
5.3 Network Configuration Click network configuration, there are: MAC address, IP Address, Subnet Mask and Default Gateway. Enter the corresponding values for your net- work 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.
5.4 Port Configuration Under port configuration – Port’s Mode, you can setup the mode for indi- vidual ports. There are three modes Virtual COM mode, Data mode, and Control mode. While you select VCOM mode, you also setup HOST Idle option here.
5.4.2 Control Mode You might refer to chapter 3.6.3 to clarify the setting. 5.4.3 Port UART setting You can as sign the Type, Parity, Flow Control, Baud Rate, Data Bits, and Stop Bits. You might enable the ‘Set all ports parameter like Port 1’ and others set- ting will set as same as Port 1.
5.5 DI/O Event Configuration In event configuration, you can assign a DI event by enabling the check box and choosing the optimized action mode, Server IP and TCP Port for the active event. You can setup 4 events with comparison and different IP and Port.
5.7 Reset Configuration The configuration will take effect after clicking < Save> button. But all configurations will save to flash memory 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.
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.
Page 83
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. Chapter 6...
Page 84
Console Configuration Default Setting Baud Rate: 57600 Data Bits: 8 Parity: None Stop Bits: 1 Flow Control: None Step 5. Connecting Successfully After connecting the device in console mode, you can simply type the password to entry the consol configuration. EDG-4508(R)+/4516(R)+ User Manual 78...
6.3 Command List Command Function system Show or configure device name and information port Show or configure ports information mvcom Show or configure all port mode and mode informa- tion mctrl Show or configure port mode and mode information mdata Show or configure port mode and mode information pmode Show port mode...
Page 86
You might use “help” command to show the usage of command. [Usage] help command [Function] Show the usage of command. System [Usage] system [Function] Show firmware version, device name and description [Usage] system name xxxx [Function] configure the device name [xxxx: maximum length 31 bytes] [Usage] system desc xxxx [Function] setup the device description [xxxx: maximum length 127 bytes]...
Page 87
Port ‘Port’ is a complex command to show port information and configure port setting. [Usage] port nn [Function] Show “nn”nd port or all ports information [Usage] port nn desc xxxx [Function] configure “nn”nd port description, [xxxx: maximum length 127 bytes] Chapter 6...
Page 88
[Usage] port nn type 232|422|485 flow 0|1|2|3 [Function] setup serial type and flow control Flow 0: None Flow 1: XOn/Xoff Flow 2: RTS/CTS Flow 3: DTR/DSR [Usage] port nn baud xx parity n|e|o|m|s data 5|6|7|8 stop 1|1.5|2 [Function] setup serial baud rate, parity check, data bit, and stop bit. Acceptable baud rate setting: Parity n: None parity Parity e: Even parity...
Page 89
[Usage] mvcom [Function] show all ports [Usage] mvcom nn|all [Function] setup “nn”nd port or all ports as Virtual COM mode. [Usage] mvcom nn|all idleto xx [Function] configure host idle time. mctrl Show and setup Control mode Chapter 6...
Page 90
[Usage] mctrl [Function] show port mode [Usage] mctrl nn|all [Function] setup “nn”nd port or all ports as Control mode. [Usage] mctrl nn|all protocol TCP|UDP [Function] setups transmit protocol as TCP or UDP. [Usage] mctrl nn|all idleto x data port xxxx cmdport xxxx [Function] setup data idle timeout, data listen port and command listen port.
Page 91
[Usage] mdata nn|all [Function] setup “nn”nd port or all ports as Data mode. [Usage] mdata nn|all protocol TCP|UDP [Function] setups transmit protocol as TCP or UDP. [Usage] mdata nn|all idleto x data port xxxx cmdport xxxx [Function] setup data idle timeout, data listen port and command listen port.
Page 92
Event [Usage] event [Function] show the event’s status and configuration [Usage] event nn|all trigger no|0&1&2&3 action L2H|H2L|CHG [Function] setup the event(s) [Usage] event nn|all server xxx.xxx.xxx.xxx:ppp [Function] setup server IP address and TCP port. EDG-4508(R)+/4516(R)+ User Manual 86...
Page 93
[Usage] net [Function] show the MAC address, IP address, Subnet Mask, and default gateway. [Usage] net ip xxx.xxx.xxx.xxx netmask xxx,xxx,xxx,xxx gw xxx,xxx,xxx,xxx [Function] setup IP address and subnet mask and default gateway. Chapter 6...
Page 94
password If the password is empty, you might input the new password. [Usage] password new [1~31 characters] [Function] setup new password. EDG-4508(R)+/4516(R)+ User Manual 88...
Page 95
If the password is existed, you have to input the existed password and new password. [Usage] password old [existed password] new [1~31 characters] [Function] replace the existed password with new one. Chapter 6...
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.
7.2.2 Event Monitoring Once you have executed the steps in previous chapters 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.
Page 100
(DI0 Active and Event Monitor Shows Green) EDG-4508(R)+/4516(R)+ User Manual 94...
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. How to use the sample files? (1) The sample programs include following file and the develop envi- ronment is based on Microsoft Visual C++.
Page 102
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.
Page 103
mbtcp.h File name of mbtcp means Modbus TCP; we provide the easier definition of necessary parameter. For example, #define MODBUSTCPMAXMSGLENGTH #define MODBUSTCPMSGHDRLENGTH typedef struct __MODBUSTCPMSG { unsigned short wTransactionId; unsigned short wProtocolId; unsigned char byteMsgLenHigh; unsigned char byteMsgLenLow; unsigned char Data[2]; } TMODBUSTCPMSG;...
Need help?
Do you have a question about the EDG-4508+ and is the answer not in the manual?
Questions and answers