EDG-4508+ 8-Port Ethernet to RS-232/422/485 Data Gateway EDG-4516+ 16-Port Ethernet to RS-232/422/485 Data Gateway 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.1 1.2 1.3 1.4 Chapter 1 Overview .......................................................... 2 Introduction ................................................................................. Features........................................................................................ Specifications............................................................................... Packing Checklist ........................................................................
3.2 3.3 3.4 3.5 3.6 Chapter Locating the EDG-4508+/4516+ ............................................... Device System Configuration.................................................... Network Configuration.............................................................. Port Configuration ..................................................................... Security Configuration .............................................................. 20 21 22 23 29 4 Port Mapping Utility...........................
Figure 7.9: Figure 7.10: Figure 7.11: ................................................................... 64 ................................................................... 65 ................................................................... 65 7.2 Network Architecture and Example Code................................. 66 7.2.1 Polling Network Architecture ................................................ 67 Figure 7.12:Network Architecture-Polling ............................. 67 Figure 7.
Chapter 9 Troubleshooting............................................. 94 Appendix A ......................................................................... 98 A.1 RS-232 Pin Assignment............................................................. 98 A.2 RJ-48 Cable PIN Assignment....................................................
CHAPTER 1 2 Overview
Chapter 1 Overview 1.1 Introduction This manual provides the necessary information to use EDG-4508+, EDG-4516+ and the rear-wired versions of these. 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+ and 4516+ 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+/4516+ 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+ and EDG-4516+ EDG-4508+ and EDG-4516+ 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+ and EDG-4516+ 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 Serial Ports 8 Ports for 4508+ Status LED Console Connector Ethernet Connector Serial Ports 16 Ports for 4516+ Figure 2.2: EDG-4508+/4516+ Front Panel Figure 2.
1 2 3 4 5 6 7 8 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 Ethernet Connector 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/485/422 Serial Connector for EDG-4508+ Figure 2.13: 16 Ports RS-232/485/422 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+/4516+, 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 EDG-4508+/4516+. 1. Insert the Advantech industrial communication CD-ROM into the drive (e.g. D:\) on the host PC.
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+/4516+ User Manual 20
CHAPTER 3 2 Configuration
Chapter 3 Configuration 3.1 Auto Search EDG-4508+ and EDG-4516+ 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+), and the utility will expand the tree structure to show the individual device name. For Example, EDG Configuration Utility shows "ADAM000102030415" after expanding the tree structure. Default Device Name Out Look for Selected Device Note When you run the EDG configuration utility for the first time, the default device name is "MAC ID".
3.2 Locating EDG-4508+/4516+ 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+ and EDG-4516+ on the local network, and cannot search beyond a router or gateway. Make sure that the EDG-4508+ or EDG-4516+ you want to monitor resides in the same local network segment as the host PC. Ethernet Data Gateway In this column, you will find a list of EDG products if you use the configuration utility to auto-search.
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+ 16 Ports for EDG-4516+ 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. This is faster than setting up 8 ports (4508+) or 16 ports (4516+) with the same settings.
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 local 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+/4516+ User Manual 30
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+ and 16 ports for EDG-4516+.
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+ and EDG-4516+ provide RS-232 / RS-4852 / RS-422. 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. Console Configuration Default Setting Baud Rate: 57600 Data Bits: 8 Parity: None Stop bits: 1 Flow control: Hardware.
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+/4516+ User Manual 56
7 CHAPTER 2 Universal Serial Device Gateway
Chapter 7 Universal Serial Device Gateway Advantech EDG-4508+/4516+ provides a mechanism that allows user to upgrade the firmware. After upgrading the firmware, EDG-4508+/4516+ will turn into universal serial device gateway and denominate "EDG4508+U/4516+U". EDG-4508+U/4516+U allows nearly any device to serial ports to connect to the Ethernet and share networks quickly.
1 2 3 Figure 7.1: 3. Press "Start" button to start the firmware download procedure. Figure 7.
4. When the firmware download procedure is done, you will discover the model name of the EDG Configuration Utility is changed from EDG-4508+ to EDG-4508+U. Besides, it will add a new function: "Setting" in EDG Configuration Utility instead of "Security". The "Setting" in EDG Configuration Utility allows user to configure the setting of EDG-4508+U/4516+U. Figure 7.3: 5. Configure the setting of your EDG-4508+U. Press the "Settings" tag in the EDG Configuration Utility. Figure 7.
TCP Port number Figure 7.5: The TCP port number represents the source port number in TCP connections, and is the number used to identify the channel for remote initiating connections. Range: 1-65535. If an unknown caller wants to connect to the system and asks for some services, they need to define the TCP port to carry a long-term conversation. Each node on a TCP/IP network has an IP address, and each IP address can allow connections on one or more TCP port.
Allow any IP to access Figure 7.7: If this option is enabled, any PC can access data from this EDG-4508+U/ 4516+U. Specified IP which can access If you do not want many PCs to have the access right, you can limit at most 32 PCs to access data from this EDG-4508+U/4516+U. Port Mode Figure 7.8: The EDG-4508+U/EDG-4516+U supports "Data mode" communication. In this mode, serial devices that connect to the EDG-4508+U/ EDG-4516+U can transmit data to another networking device.
1. Select port 1 ~ port 8 if you are using EDG-4508+U. Select port 1 ~ port 16 if you are using EDG-4516+U. 2. Key-in the data idle time. The default is 60 seconds. If you want to keep connection continually, you can key-in "0". Data idle Time is the time period in which the device waits for data. If the EDG-4508+U/ 4516+U does not receive data over an established idle time, the EDG-4508+U/4516+U will disconnect temporarily. When the data comes to the EDG-4508+U/4516+U, it will reconnect automatically.
File Name Description 4508+Uv200.exf The firmware of EDG-4508+U; version 2.0. 4508+v200.exf The firmware of EDG-4508+; version 2.0. 4516+U200.exf The firmware of EDG-4516+U; version 2.0 4516+v200.exf The version of EDG-4516+; version 2.0 1 2 3 Figure 7.
3. Press "Start" button to start the firmware download procedure. Figure 7.10: 4. When the firmware download procedure is done, you will discover the model name of the EDG Configuration Utility is changed from EDG-4508+U to EDG-4508+. Besides, the function "Security" of EDG Configuration Utility will be restored. Figure 7.
7.2 Network Architecture and Example Code The EDG-4508+U/4516+U is an advanced peer-to-peer data gateway unit. It extends traditional RS-232/422/485 interfaces to Ethernet network. Through networking, you can control and monitor remote serial devices either over a LAN or over the WAN. Since the EDG-4508+U/ 4516+U is connected through a TCP/IP network, you will need to know some basic facts about networking in order to get the server hooked up correctly.
7.2.1 Polling Network Architecture If you want to use host PC to poll the serial devices, which connect to EDG-4508+U/4516+U via Ethernet, you can use polling network architecture. Figure 7.12: Network Architecture-Polling Host PC create TCP socket Connect to EDG-4508+U/ EDG-4516+U Send data to EDG-4508+U/ EDG-4516+U Receive data from EDG-4508+U/ EDG-4516+U Disconnection Figure 7.
Example (EDG-4508+U): SOCKADDR_IN Dst4508UAddr; SOCKET Dst4508USock; char RxData[10]; memset(&Dst4508UAddr, 0, sizeof(SOCKADDR_IN)); Dst4508UAddr..sin_family = AF_INET; Dst4508UAddr..sin_addr.s_addr = inet_addr("10.0.0.1"); //Indicate the IP Address of EDG-4508+U that you want to connect.// Dst4508UAddr..sin_port = htons(5201); // Indicate which port of EDG-4508+U you want to access// // TCP port no. of Port1 = TCP port +1// // TCP port no.
7.2.2 Event-handling Network Architecture If an event occurs from serial devices connected to the EDG-4508+U/ 4516+U, the host PC can get the data via the Ethernet. You can use the event-handling network architecture. Figure 7.14: Network architecture: Event-handling Define the TCP port of Host PC Host PC creates the socket Accept the connection from EDG-4508+U/ EDG-4516+U Receive data from EDG-4508+U/ EDG-4516+U Disconnection Figure 7.
Example (EDG-4508+U): SOCKADDR_IN HostAddr; SOCKET HostSock; SOCKADDR_IN ClntAddr; SOCKET ClntSock; int ClntAddrLen; char RxData[256]; memset(&HostAddr, 0, sizeof(SOCKADDR_IN)); HostAddr..sin_family = AF_INET; HostAddr..sin_addr.s_addr = INADDR_ANY; HostAddr.sin_port = htons(5201); //Define the TCP port of host PC.
7.2.3 Peer-to-Peer Network Architecture If you want to transmit data from one serial device to another serial device via the Ethernet, you can add EDG-4508+U/4516+Us at both sides and use peer-to-peer network architecture. Figure 7.
Example (EDG-4508+U): 1. Complete the setting of #1 EDG-4508+U #1 EDG-4508+U Module name: Office IP address: 172.20.20.111 TCP port: 5200 172.20.20.222 5222 Figure 7.
2. Find out the IP address and TCP port of #2 EDG-4508+U that you want to connect. #2 EDG-4508+U Module name: Factory IP address: 172.20.20.222 TCP port: 5220 5220 172.20.20.111 5201 Figure 7.
3. Key-in the IP address and TCP port of #2 EDG-4508+U in #1 EDG-4508+U configuration utility. 172.20.20.222 5222 IP address of #2 EDG-4508+U TCP port of #2 EDG-4508+U port 2 Figure 7.20: Key-in information of #2 EDG-4508+U 4. Follow the above procedure and complete the setting of #2 EDG-4508+U in the configuration utility. 5220 172.20.20.111 5201 IP address of #1 EDG-4508+U TCP port of #1 EDG-4508+U port 1 Figure 7.
5. Check the communication parameters of both EDG-4508+Us are the same. If not, it might not work. Please check the "Baud rate", "Flow control", "Parity", "Data bit" and "Stop bit". EDG 4508+U ADAM-000102030 EDG 4508+U #1 Figure 7.22: Communication parameters of #1 EDG-4508+U EDG 4508+U ADAM-000102030 EDG 4508+U #2 Figure 7.23: Communication parameters of #2 EDG-4508+U 6. #1 EDG-4508+U and #2 EDG-4508+U send/receive data each other.
7.3 Web-Based Configuration for EDG-4508+U/4516+U EDG-4508+U/4516+U also support web-based configuration function. All operations are the same as EDG-4508+/4516+. You can configure EDG-4508+U/4516+U by internet browser. Further information about the Web-based Configuration, please refer to chapter 5. 7.3.1 Access web page Step1: Enter ID and Password. The default ID and password is the root/root; key-in in the correct fields.
7.3.2 Network Configuration Under network configuration, there are MAC address, IP Address, Subnet Mask and Default Gateway and Listen TCP Port Number. Enter the corresponding values for your network environment. Step1. Enter MAC address, IP Address, Subnet Mask and Default Gateway and Listen TCP Port Number. Step2: If you do any modification in EDG-4508+U/4516+U network configuration, please press "save" button to save the configuration. Note All new configurations will take effect after reset.
7.3.3 Port Configuration Under port configuration, you can assign the type, host idle timeout and configure the connected IP and TCP port for each port. For instance, if the port 1 of EDG-4516+U#1 connects with the port 8 of EDG-4516+U#2, please fulfill Port 8 IP address and TCP port of EDG-4516+U #2 in port 1 information of EDG-4516+U #1 port configuration. Note The host time out function is similar to the one in the Configuration Utility.
7.3.4 DI/O Event Configuration In event configuration, you can assign DI event by enabling the check box and choose the optimized action mode, Server IP and TCP Port for the active event. Further information about DI/O event configuration, please refer to session 5.5. 7.3.5 Reset Configuration All configurations will take effect after this reset step, just press the reset button and the system will give a reset response. It will take a few seconds to reconnect to the new values. 7.
• version [Usage] version [Function] displays the current firmware version >version Current version of firmware is 1.11-1.
• 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 tcpno ddd [Function] Set the listen TCP port number of net. > net tcpno 6000 Set the listen TCP port number to 6000.
The Port15 is type 422, idleto 30, idle The Port16 is type 422, idleto 30, idle [USAGE] port [nn | all] type [232|422|485] [FUNCTION] sets the type of port(s) >port 3 type 485 >port 3 The Port03 is type 485, idleto 30, idle [USAGE] port [nn | all] idleto [0 - 65535] [FUNCTION] sets the idle timeout of port(s) >port 3 idelto 45 >port 3 The Port03 is type 485, idleto 45, idle [USAGE] port [ nn | all ] netcfg [d.d.d.d:d | clear] [Function] set/clear the net configuration of port(s) >port 3 netcfg 172.18.2.
• 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.
• l 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.
CHAPTER 8 2 Event and DI/O Monitoring
Chapter 8 Event and DI/O Monitoring 8.1 Overview The purpose of Event and DIO Test is to help you monitor your EDG-4508+/4516+ DI/DO event(s). Follow these steps to test the DI/DO event(s). 8.2 Event and DI/O Monitoring 8.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.
8.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) 8.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.
8.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.
CHAPTER 9 2 Troubleshooting
Chapter 9 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+/4516+ User Manual 96
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+/4516+ User Manual 100