EDG-4508 4516 Manual Ed6
EDG-4508 4516 Manual Ed6
EDG-4508 4516 Manual Ed6
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
Copyright
This documentation and the software included with this product are
copyrighted 2007 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. However, Advantech Co., Ltd. assumes no responsibility for
its use, nor for any infringements of the rights of third parties which may
result from its use.
Acknowledgments
IBM and PC are trademarks of International Business Machines Corpora-
tion. MS-DOS and Windows are trademarks of Microsoft Corporation.
Intel and Pentium are trademarks of Intel Corporation. All other product
names or trademarks are properties of their respective owners.
CE Notification
The EDG-4508(R)+ and EDG-4516(R)+ developed by Advantech Co.,
Ltd. has passed the CE test for environmental specifications when oper-
ated within an industrial enclosure . Therefore, in order to protect the
products from being damaged by ESD (Electric Static Discharge), we
strongly recommend the use of CE-compliant industrial enclosure prod-
ucts when using any EDG module.
iii
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 interfer-
ence 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. Operation of this
equipment in a residential area is likely to cause harmful interference in
which case the user will be required to correct the interference at his own
expense.
Packing List
Before setting up the system, check that the items listed below are
included and in good condition. If any item does not accord with the
table, please contact your dealer immediately.
• EDG-4508+ or EDG-4516+ or EDG-4508R+ or EDG-4516R+ x 1
• CD-ROM for driver and utility x 1
• Rack mount kit, including 2 L-shape metal plates and 12 screws
• Power Cable x 1
• 30 cm Serial Connection Cable x 1
• Rubber Spacer x 4
• Terminal Connector x 1
v Table of Contents
Chapter 4 Port Mapping Utility..................................... 58
4.1 Overview ......................................................................... 58
4.2 Virtual COM Port Settings.............................................. 58
4.3 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
5.1 Overview ......................................................................... 68
5.2 Access Web Page ............................................................ 68
5.3 Network Configuration ................................................... 70
5.4 Port Configuration........................................................... 71
5.4.1 Data Mode .................................................................... 71
5.4.2 Control Mode ............................................................... 72
5.4.3 Port UART setting ....................................................... 72
5.5 DI/O Event Configuration............................................... 73
5.6 Change Password ............................................................ 73
5.7 Reset Configuration......................................................... 74
Chapter 6 Console Configuration .................................. 76
6.1 Overview ......................................................................... 76
6.2 Hyper Terminal Connection............................................ 76
6.3 Command List ................................................................. 79
Chapter 7 Event and DI/O Monitoring ......................... 92
7.1 Overview ......................................................................... 92
7.2 Event and DI/O Monitoring ............................................ 92
7.2.1 Polling Monitoring ....................................................... 92
7.2.2 Event Monitoring ......................................................... 93
7.3 Programming I/O............................................................. 95
Appendix A Pin Assignments .......................................... 100
A.1 RS-232 Pin Assignments............................................... 100
A.2 RJ-48 Cable PIN Assignments...................................... 100
A.2.1 1. RS-422 ................................................................... 101
A.2.2 2. RS-485 ................................................................... 101
CHAPTER
2
Overview
Chapter 1 Overview
1.1 Introduction
3 Chapter 1
1.3 Specifications
CHAPTER
2
Getting Started
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
In data mode, the data from the serial port of one EDG-4508(R)+ and
EDG-4516(R)+ can be automatically sent to the other networking device,
without the need for an intermediate PC. Thus, serial devices will be no
longer bundled with operation system and behave like network devices to
send /receive data via Ethernet.
7 Chapter 2
2.2 Panel Layout
Note Speed LED will keep the last status even though the
Ethernet cable is disconnected. While EDG reboot or
re-plug in the Ethernet cable, EDG will detect
Ethernet LAN speed.
9 Chapter 2
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.
11 Chapter 2
2.4 Installation
3. Upon executing the setup program, the Welcome Dialog Box will pop-
up. Press the "Next" button to continue.
13 Chapter 2
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".
15 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. The following are the required steps for install-
ing EDG-4508(R)+ and EDG-4516(R)+.
PC. Change the host computer's default drive from C: to D:
3. Upon executing the setup program, the Welcome Dialog Box will pop-
up. Press the "Next" button to continue.
17 Chapter 2
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.
CHAPTER
2
Configuration
Chapter 3 Configuration
3.1 Searching EDG Modules
While you launch the EDG II configuration utility, the utility will load the
setting.
21 Chapter 3
EDG-4508(R)+/4516(R)+ User Manual 22
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.
You may click the button, and the utility will expand all tree structure to
show the individual device name. You might click button to collapse all
tree structure.
23 Chapter 3
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.
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”. Click “OK” button, the selected device will be
moved to “Connected Devices group”.
25 Chapter 3
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.
The EDG II configuration utility provides Lock and Grouping Lock func-
tion to secure the device(s). You can modify the password one by one on
the “Security Configuration” tab. There is only one password in the EDG-
4516(R)+ and EDG-4508(R)+. You can use Configuration utility, Web
Configuration, and Console to modify this password and disable the
security control.
27 Chapter 3
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”.
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.
You can click the “Un-lock” button and select the devices you want to
unlock.
29 Chapter 3
You also select the device and right click “Mouse button”. Input the pass-
word and unlock the device.
2. Select the device on the “Available Devices” Tab and click “Locate”
button.
3. The device buzzer sound.
4. Click “Stop” to stop.
31 Chapter 3
3.4.2 Grouping Locate specific devices for you
1. Click the “Locate” button
Device Name
The configuration utility provides a default name for device to distinguish
a specific EDG Series from other EDG Series. You can update the default
device name based on your application. Names longer than 32 characters
cannot be used. It is best to choose a name you can remember.
Device Description
This field is to record the function, application and other information for
each EDG Series device in more detail for easy management and mainte-
nance. You are allowed to describe in your own words. Names longer
than 127 characters cannot be used.
33 Chapter 3
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.
MAC Address
The MAC address is for the local system to identify and locate each EDG
series. This MAC address is already set before delivery from factory,
hence no need for further configuration.
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.
There is only one password on the device for Console mode, Web config-
uration, and Utility configuration.
While you modify and save password, the password on the device mem-
ory will be changed immediately whether you use Console, Web configu-
ration, or Utility configuration.
Allow any IP to access
If this option is enabled, all PC can access data from this EDG.
35 Chapter 3
The specified IP which can access
Enabled this option, you might limit at most 32 PCs to access data from
this EDG.
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.
Type
EDG Series offers three kinds of serial interfaces, RS-232, RS-485 and
RS-422. User can use any of the three serial interfaces according to user’s
requirements.
37 Chapter 3
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.
39 Chapter 3
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.
41 Chapter 3
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.
43 Chapter 3
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.
Each port has its own data listen port to accept connected request of other
network device. So, the data listen port can’t be set the same value. You
can transmit/receive data to/from device via the data listen port.
IP Address
IP address of network devices which you want to connect.
Port
Another TCP port of network devices which you want to connect.
45 Chapter 3
Thus, intelligent serial devices such as stand-alone PLC will send /receive
data to/from devices one by one via Ethernet.
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.
Command Function
ATDT<IP “Forms a TCP connection to the specified host.
address> Ex: ATDT 192.0.55.22:5201
<TCP port> In above example, the EDG-4516(R)+ and EDG-
<CR> 4508(R)+ forms a raw TCP connection to the net-
working device (192.0.55.22). The TCP port is 5201.”
ATA <CR> Answering an incoming call
47 Chapter 3
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>
<LF><CR> ERROR Incorrect commands
<LF><CR>
<LF><CR> FAIL If you issu an ATDT command and can not
<LF><CR> connect to the device, it will response
“FAIL”.
Refresh
Update port status manually when you click ‘Start’ button.
Continue
Update port status automatically every 10 seconds unless you click ‘Stop’
button.
49 Chapter 3
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.
Action
There are three options: L->H, H->L or Change.
L->H: Low to High
H->L: High to Low
Change: status change
Trigger
Specify which DI you want to monitor.
Server IP Address
IP address of network device which you want to connect.
TCP Port
TCP port of network device which you want to connect.
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.
In this section, we will describe the function by item in the UDP Testing
Utility.
51 Chapter 3
Target Device & UDP Port
Command Format
This option have two choices, one is ASCII and another is HEX. This will
decide Command blank what to display.
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.
Command Timeout
53 Chapter 3
Send Command to the [IP Address : UDP Port] Timeout
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.
You have to move the device to Connected Device group, and then you
can use download firmware function
1. Click on the Upgrade FW button
55 Chapter 3
3. After the firmware have been downloaded into the EDG device,
this device will reboot and enable the new firmware.
CHAPTER
2
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.
1. Click "+" at "Unused Ports" to expand the unused port lists, and select
the port that you want to configure.
59 Chapter 4
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. The driver
DO NOT re-establish the connection automatically. When the connection
is working again, the host's commands will be automatically received by
the EDG Series again. Reconfiguration is not necessary, so this function
enhances the reliability of the system.
if the function is disabled, the connection can not be re-established again
unless the VCOM driver or HOST is restarted.
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.
61 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+.
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.
• DTR->DCD: Checks the DTR and DCD signals between two ports.
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.
Exit
If you want to quit the utility, you might click < Exit > button or <X> on
the right top of this window. A new enhancement is implemented from
version 1.40 Build137. If any changes are made in the COM Port Map-
ping setting, your changes will work while you exit COM Port Mapping.
Sometime, the system reboot requirement might show up.
Note If you change the COM port setting and the COM is
used by AP, the COM Port Mapping utility will crash
and you might get the ‘Blue Screen’. This is
because the COM resource is occupied by OS
system, COM port Mapping utility try to remove it
and unauthorized accessing occur.
65 Chapter 4
EDG-4508(R)+/4516(R)+ User Manual 66
5
CHAPTER
2
Web-Based
Configuration
Chapter 5 Web-Based Configuration
5.1 Overview
69 Chapter 5
5.3 Network Configuration
Note: All new configurations will take effect after reset. The
reset function is located on the main menu of the Web
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.
71 Chapter 5
5.4.2 Control Mode
You might refer to chapter 3.6.3 to clarify the setting.
Action option:
L->H: Low to High
H->L: High to Low
Change: status change
73 Chapter 5
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
2
Console Configuration
Chapter 6 Console Configuration
6.1 Overview
77 Chapter 6
Console Configuration Default Setting
Baud Rate: 57600
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Control: None
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
event Show or configure the event status and information
net Displays or configure the net configuration
password Set password
reboot Write settings to flash memory and reboot the sys-
tem immediately
save Save the settings right now.
exit Terminate shell session
help Display help information of command list
<TAB><TAB Display help information of command list
>
Help
You might type "help" command or press <Tab> twice to show the Sup-
ported Command Lists.
[Usage] Help
[Function] Display help information of command lit
79 Chapter 6
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] port nn
[Function] Show “nn”nd port or all ports information
81 Chapter 6
[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
mvcom
Show and setup COM ports mode
mctrl
Show and setup Control mode
83 Chapter 6
[Usage] mctrl
[Function] show port mode
Mdata
Show and setup Data mode
[Usage] mdata
[Function] show port mode
pmode
[Usage] pmode
[Function] show port’s mode.
85 Chapter 6
Event
[Usage] event
[Function] show the event’s status and configuration
87 Chapter 6
password
89 Chapter 6
EDG-4508(R)+/4516(R)+ User Manual 90
7
CHAPTER
2
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).
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.
93 Chapter 7
(DI0 Active and Event Monitor Shows Green)
In this sample files, we provide the note for the parameter for program-
mer use.
For example:
In edgevtio.cpp file content, line 32 to line 41
95 Chapter 7
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.
edgevtio.dsp
Programmers can choose the develop tools for themselves. For example,
in edgevtio.dsp file, the extension file name .dsp means Microsoft
Developer Studio Project File. Programmer can open the file as a tem-
plate to create their own programs.
edgevtio.dsw
File name of edgevtio means EDG Event I/O, extension name of dsw
means it is a Microsoft Developer Studio Workspace file. This file is
necessary when you open a Developer Studio Project and we make a
warning note in file to reminder you not to modify or delete this related
workspace file.
MODBUSTCPMAXMSGLENGTH
MODBUS TCP Max Message Length
MODBUSTCPMSGHDRLENGTH
MODBUS TCP Message Header Length
97 Chapter 7
EDG-4508(R)+/4516(R)+ User Manual 98
A
APPENDIX
2
Pin Assignments
Appendix A Pin Assignments
A.1 RS-232 Pin Assignments
A.2.2 2. RS-485
Pin No. Description
1 Data-
4 Data+
5 GND
101 Appendix A
EDG-4508(R)+/4516(R)+ User Manual 102