ADAM-4500 Series
Ethernet-enabled Communication
Controller with I/O Modules
User's Manual
Copyright Notice
This document is copyrighted, 1997, by Advantech Co., Ltd. All
rights are reserved. Advantech Co., Ltd., reserves the right to make
improvements to 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 upon the rights of third parties, which may
result from its use.
Acknowledgments
ADAM is a trademark of Advantech Co., Ltd.
IBM and PC are trademarks of International Business
Machines Corporation.
Edition 2.0
May 2008
Table of Contents
Chapter 1 System Overview.……..................…..................…….. 1-1
1.1 Introduction .........…................................….........….…………. 1-2
1.2 Features ..................….........................…….............…....…….. 1-3
1.3 ADAM-4500 Series Controllers Specification………….……...1-7
Chapter 2 Installation Guidelines..................….................…....... 2-1
2.1 System Requirements…………………………………....…....... 2-2
2.2 Hardware Installation …………….....................……............... 2-3
2.3 System Wiring and Connections.....................……............... 2-5
2.4 Software Installation….................................………................. 2-12
Chapter 3 I/O Modules ..................................................…............. 3-1
3.1 System Hardware Configuration……………………...…......... 3-2
3.2 Install Utility on Host PC………….………………..…............... 3-2
3.3 ADAM-4500 Series Utility Overview..………………….…….... 3-6
3.4 Initialize Drive D to Default Settings……………….....…........ 3-11
3.5 Configure IP Address and HTTP/FTP User/Password……... 3-15
3.6 Download and Run Application Program Automatically
After Boot Up …………………………………………………..... 3-18
3.7 Backup Drive D as Image File ……………………………....... 3-23
3.8 Restore Drive D from Image File …........................…........... 3-27
Chapter 4 Guidelines for Network Functions..................…......... 4-1
4.1 FTP Server..................................................................….......... 4-6
4.2 HTTP Server................................................................….......... 4-9
4.3 Send Mail ………………………………........................….......... 4-24
4.4 Modbus/TCP Server ………………................…...................... 4-31
4.5 Modbus/TCP Client ......………………….................……......... 4-38
4.6 Modbus/RTU Slave …………………………………......……..... 4-42
4.7 Modbus/RTU Master ………………………..................……..... 4-49
4.8 TCP Server and Client .……………………..................……..... 4-53
4.9 UDP Connection …..….……………………..................……..... 4-66
4.10 FTP Client ………………….………………..................……..... 4-75
Chapter 5 Programming and Function Library ..…..................... 5-1
5.1 Introduction ………………………..............................…........... 5-2
5.2 Category of Function Libraries ..………................................. 5-7
5.3 Function Library Description ................................................. 5-12
Chapter 6 Sockets Utility .....................................…..................... 6-1
Chapter 7 HTTP and FTP Server Application......…..................... 7-1
Appendix A COM Port Register Structure ......................…......... A-1
Appendix B RS-485 Network ……................................…............. B-1
Appendix C Grounding Reference ......................…..................... C-1
1
System Overview
Chapter 1 System Overview
1.1 Introduction
Standalone Data Acquisition and Control System
a
As the growth of PC-based technology, Advantech
PC-based Programmable Controllers have been widely applied
in variety of industrial automation applications. Shrunk
from the original ADAM-5510 series controller, the ADAM-
4500 Series Controller
programmable
is
communication controller. It does not only support high memory
capacity, user- friendly configuration tool, rich serial
communication interfaces,
but also support Ethernet port available and original libraries on
specific models. Applying the ADAM-4500 Series Controller, the
C programmers would be able to handle any complex task easily.
stand-alone
series
new
of
for
industrial communication
The ADAM-4500 Series Controller is a compact-sized
Ethernet- enabled communication controller under x-86 CPU
architecture. It supports not only Ethernet interface but also 4
serial ports, which lets ADAM-4500 Series Controller be very
suitable
control
applications. The Ethernet-enabled features include built-in
HTTP Server, FTP Server and E-mail functions. The
modularized I/O design provides high flexibility for versatile
application requirements. ADAM-4500 Series Controller also
including
Modbus/RTU (Master and Slave) and Modbus/TCP (Server
and Client) function libraries.
rich Modbus
supports
function
libraries
and
The ADAM-4500 Series Controller includes following models:
- ADAM-4501
Ethernet-Enabled Communication Controller
with 8 DI/O
- ADAM-4501D Ethernet-Enabled Communication Controller
- ADAM-4502
with 8 DI/O and LED Display
Ethernet-Enabled Communication Controller
with 2-ch AI/O and 4-ch DI/O
1-2 ADAM-4500 Series User’s Manual
Chapter 1 System Overview
1.2 Features
The system of ADAM-4500 Series Controller consists of two major
components: the main unit and I/O modules. The
main unit includes the communication ports, CPU ….and
so on. The I/O Module of ADAM-4501/4501D includes the 8
digital I/O channels and the ADAM-4502 includes 2 analog I/O
and 4 digital I/O. Besides, the ADAM-4501D also includes 7-
segment display to show needed information.
1.2.1 Control flexibility with C programming
The ADAM-4500 Series Controller includes an 80188 CPU and a
built-in ROM-DOS operating system. It can be used in
a way similar to how one uses an x86 PC in the office.
Programmers in
C can write and compile applications in Borland C
3.0 and download to the ADAM-4500 Series
Controller. Given the prevalence of C language
programming tools, this is a distinct advantage for many
users and can result in a very short learning curve and very
modest training expense requirements.
1.2.2 RS-232/485 communication ability
The ADAM-4500 Series Controller has four serial communication
ports, giving it excellent communication abilities. This facilitates its
ability to control networked devices. The communication ports of
different models are listed as below table.
COM1
COM2
COM3
COM4/Prog
ADAM-4500 Series
RS-232(Full modem signal)
RS-485
RS-485
RS-485/RS-232
Table 1-1 Communication Ports of ADAM-4500 Series Controller
ADAM-4500 Series COM1 is a dedicated RS-232 port, COM2 and
COM3 are dedicated RS-485 port, and the fourth communication
port is shared by COM4 and Programming port. It is a selectable
port by using jumper.
ADAM-4500 Series User’s Manual 1-3
Chapter 1 System Overview
These four ports allowed the ADAM-4500 Series to satisfy diverse
communication and integration demands. Programming port is for
downloading or transferring executable programs from a host PC
to ADAM-4500 Series Controller. It can also be used as an RS-
485 communication port (Refer to section 2.2.1 to see
how to configure COM4 as Programming port or
standard
following figure to check the location of COM ports.
RS-485 communication port). Please refer
to
Figure 1-1 ADAM-4501 Communication Ports
1-4 ADAM-4500 Series User’s Manual