Part No. XXXXXXXXXXEdition 1
Printed in TaiwanNovember 2015
The documentation and the software included with this product are copyrighted 2013
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.
Acknowledgements
ADAM is a trademark of Advantech Co., Ltd.
IBM and PC are trademarks of International Business Machines Corporation.
All other product names or trademarks are properties of their respective owners.
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. Advantech assumes no
liability under the terms of this warranty as a consequence of such events.
Because of Advantech’s high quality-control standards and rigorous testing, most of
our customers never need to use our repair service. If an Advantech product is defective, it will be repaired or replaced at no charge during the warranty period. For outof-warranty repairs, you will be billed according to the cost of replacement materials,
service time and freight. Please consult your dealer for more details.
If you think you have a defective product, follow these steps:
1.Collect all the information about the problem encountered. (For example, CPU
speed, Advantech products used, other hardware and software used, etc.) Note
anything abnormal and list any onscreen messages you get when the problem
occurs.
2.Call your dealer and describe the problem. Please have your manual, product,
and any helpful information readily available.
3.If your product is diagnosed as defective, obtain an RMA (return merchandize
authorization) number from your dealer. This allows us to process your return
more quickly.
4.Carefully pack the defective product, a fully-completed Repair and Replacement
Order Card and a photocopy proof of purchase date (such as your sales receipt)
in a shippable container. A product returned without proof of the purchase date
is not eligible for warranty service.
5.Write the RMA number visibly on the outside of the package and ship it prepaid
to your dealer.
ADAM-4000 Series User Manualii
Declaration of Conformity
CE
The ADAM-4000 series developed by Advantech Co., Ltd. has passed the CE test for
environmental specifications when operated within an industrial enclosure (ADAM4950-ENC). Therefore, in order to protect the ADAM modules from being damaged
by ESD (Electric Static Discharge), we strongly recommend that the use of CE-compliant industrial enclosure products when using any ADAM module.
Technical Support and Assistance
1.Visit the Advantech web site at www.advantech.com/support where you can find
the latest information about the product.
2.Contact your distributor, sales representative, or Advantech's customer service
center for technical support if you need additional assistance. Please have the
following information ready before you call:
– Product name and serial number
– Description of your peripheral attachments
– Description of your software (operating system, version, application software,
etc.)
– A complete description of the problem
– The exact wording of any error messages
Figure 3.10ADAM-4012 Millivolt and Volt Input Wiring Diagram 31
Figure 3.11ADAM-4012 Process Current Input Wiring Diagram 31
Figure 3.12ADAM-4012 Digital Output Wiring Diagram Used with
SSR (HI-LO alarm) ................................................... 31
Figure 3.13ADAM-4012 Digital Input Wiring Diagram Used with
Figure 3.67ADAM-4060 Form A Relay Output Wiring Diagram . 77
Figure 3.68ADAM-4060 Form C Relay Output Wiring Diagram . 77
Figure 3.69ADAM-4068 Form C Relay Output Wiring Diagram . 77
Figure 3.70ADAM-4068 Form A relay output Wiring Diagram ... 78
H.1Changing Configuration to Modbus Protocol ........................................ 374
xiiiADAM-4000 Series User Manual
ADAM-4000 Series User Manualxiv
Chapter1
1 Introduction
1.1Overview
The ADAM Series is a set of intelligent sensor-to-computer interface modules containing built-in microprocessor. They are remotely controlled through a simple set of
commands issued in ASCII format and transmitted in RS-485 protocol. They provide
signal conditioning, isolation, ranging, A/D and D/A conversion, data comparison,
and digital communication functions. Some modules provide digital I/O lines for controlling relays and TTL devices.
Software Configuration and Calibration
By merely issuing a command from the host computer, you can change an analog
input module to accept several ranges of voltage input, thermocouple input or RTD
input. All of the module’s configuration parameters including I/O address, communication speed, HI and LO alarm, calibration parameters settings may be set remotely.
Remote configuration can be done by using either the provided menu-based software or the command set’s configuration and calibration commands.
By storing configuration and calibration parameters in a nonvolatile EEPROM, modules are able to retain these parameters in case of power failure.
Watchdog Timer
A watchdog timer supervisory function will automatically reset the ADAM modules in
the event of system failure. Maintenance is thus simplified.
Power Requirements
Although the modules are designed for standard industrial unregulated 24 V
DC
power
supply, they accept any power unit that supplies power within the range of +10 to +30
V
. The power supply ripple must be limited to 5 V peak-to-peak, and the immediate
DC
ripple voltage should be maintained between +10 and +30 V
DC
.
Connectivity and Programming
ADAM modules can connect to and communicate with all computers and terminals.
They use RS-485 transmission standards, and communicate with ASCII format commands. The command set for every module type consists of approximately ten different commands.
The command set for input modules is larger because it incorporates alarm functions.
All communications to and from the module are performed in ASCII, which means
that ADAM modules can be virtually programmed in any high-level language.
RS-485 Network
The RS-485 network provides lower-noise sensor readings, as modules can be
placed much closer to the source. Up to 256 ADAM modules may be connected to an
RS-485 multi-drop network by using the ADAM RS-485 repeater which extends the
maximum communication distance up to 4,000 ft. The host computer is connected to
the RS-485 network with one of its COM ports through the ADAM-452x module (RS232 to RS-422/485 converter).
To boost the network’s throughput, ADAM RS-485 repeater uses a logical RTS signal
to manage the repeater’s direction. The only two wires that are needed for the RS485 network, DATA+ and DATA-, are inexpensive shielded twisted pair.
ADAM-4000 Series User Manual2
Panel/DIN Rail mounting
Chapter 1Introduction
ADAM modules can be mounted on any panels, brackets, or DIN rails. They can also
be stacked together.
The RS-485 network, together with screw-terminal plug connectors, allows for system expansion, reconfiguration, and repair without disturbing field wiring.
Protection against the environment
Since all the configurations are controlled by software, the protection provided by the
packaging is very important. The plastic outer shell enhances resistance against corrosive materials, moisture and vibrations. ADAM modules’ low power requirements
help them to operate in temperatures from 0 to 70 ?, and in humidity from 0 to 95%
(non-condensing). They are compactly built using automated SMT technology.
Therefore, they can be implemented in water-tight and explosion-proof industrial
enclosures.
1.2Applications
Remote data acquisition
Process monitoring
Industrial process control
Energy management
Supervisory control
Security systems
Laboratory automation
Building automation
Product testing
Direct digital control
3ADAM-4000 Series User Manual
ADAM-4000 Series User Manual4
Chapter2
2 Installation Guideline
This chapter provides guidelines to what is needed to set up and install an ADAM
network. A quick hookup scheme is provided that lets you configure modules before
they are installed in a network. To help you connect ADAM modules with sensor
inputs, several wiring examples are provided. At last, you will find a programming
example using the ADAM command set at the end of this chapter.
Be sure to plan the layout and configuration of your network carefully before you
start. Guidelines regarding layout are given in Appendix E: RS-485 Network.
2.1System Requirements to Set up an ADAM
Network
The following list gives an overview of what is needed to setup,
install and configure an ADAM environment.
ADAM modules
A host computer, such as an IBM PC/AT compatible, that can output ASCII char-
acters with a RS-232C or RS-485 port.
Power supply for the ADAM modules (+10 to +30 VDC )
ADAM Series Utility software
ADAM Isolated RS-232/RS-485 Converter (optional)
RS-232/RS-485 ADAM Repeater (optional)
Host computer
Any computer or terminal that can output in ASCII format over either RS-232 or RS485 can be connected as the host computer. When only RS-232 is available, an
ADAM RS-232/RS-485 Converter is required to transform the host signals to the correct RS-485 protocol. The converter also provides opto-isolation and transformerbased isolation to protect your equipment.
Power supply
For the ease of use in industrial environments, the ADAM modules are designed to
accept industry standard +24 V
Operation is guaranteed when using any power supply between +10 and +30 V
Power ripples must be limited to 5 V peak to peak while the voltage in all cases must
be maintained between +10 and +30 V
enced at module connector. When modules are powered remotely, the effects of DC
voltage drops must be considered.
All modules use on-board switching regulators to sustain good efficiency over the 10
to 30 V input range; therefore, we can assume that the actual drawn current is
inversely proportional to the DC voltage.
The following example shows how to calculate the required current that a power supply should provide.
Assume that a +24 V
distance between modules and power supply is not significant enough to cause a DC
voltage drop. One ADAM-4011 module consumes a maximum of 1.2 Watts (W). The
total required power will equal to 5 x 1.2=6 W. A power supply of +24 VDC should
therefore be able to supply a minimal current of 6 / 24=0.25 Amps.
Small systems may be powered by using wall-mounted modular power supplies.
Also, when modules operate in long communication lines (>500 feet), it is often more
reliable to obtain power locally through modular power supplies. These inexpensive
units can be easily obtained from any electronic retail stores.
is used for five ADAM-4011 Analog Input Modules, and the
DC
, unregulated power.
DC
. All power supply specifications are refer-
DC
DC
.
ADAM-4000 Series User Manual6
The power cables should be selected according to the length of the power lines and
the number of modules connected. When implementing a network with long cables,
the use of thicker wire is more suitable due to the limitation of DC voltage drop. Furthermore, long wires can also cause interference with communication wires.
Figure 2.1 Power Supply Connections
We advise the following standard colors (as indicated on the modules) for each
power line:
+Vs (R) Red
GND (B) Black
Chapter 2Installation Guideline
Communication Wiring
We recommend the use of shielded-twisted-pair cable in the ADAM network for
reducing interference purpose, but the cable has to comply with the EIA RS-485
standard. Furthermore, only one set of twistedpair cable is required for transmitting
Data. We advise the following standard colors (as indicated on the modules) for each
the communication line:
DATA+ (Y) Yellow
DATA- (G) Green
ADAM Utility Software
A menu-driven utility program is provided for ADAM module configuration, monitoring
and, calibration. It also includes a terminal emulation program that lets you communicate through the ADAM command set. (See Appendix D, Utility Software and online
help)
Note!User can refer our help file to see more details for explanation of Utility
operation.
7ADAM-4000 Series User Manual
ADAM Communication Speed
In ADAM series, the baud rate can be configured from 1200 bps to 38.4 Kbps. However, the baud rate of all modules in an RS-485 network must be the same.
ADAM Isolated RS-232/RS485 Converter (optional): ADAM-452x
When the host computer or terminal only has a RS-232 port, an ADAM Isolated RS-
232/RS-485 Converter is required. Since this module is not addressable by the host,
the baud rate must be reset using a switch inside the module. The factory default setting is 9600 baud.
ADAM Repeater (optional): ADAM-451x
When communication lines exceed 4000 ft (1200 meter) or more than 32 ADAM
modules are connected, a repeater should be implemented. In a network, up to eight
Repeater modules can be connected allowing connection up to 255 ADAM modules.
As with the Converter module, the Repeater module is not addressable by the host
and the baud rate must be reset by changing the switch inside the module. The factory default setting is 9600 baud.
ADAM-4000 Series User Manual8
2.2Basic Configuration and Hook-up
Before placing a module in an existing network, the module should be configured.
Though all modules are initially configured at the factory, it is recommended to check
if the baud rate is set correctly beforehand.
Default Factory Settings
Baud rate: 9600 Bit/sec.
Address: 01 (hexadecimal)
The basic hook-up for module configuration is shown below.
Chapter 2Installation Guideline
Figure 2.2 Basic Hook-up of ADAM Module to Host Switches
9ADAM-4000 Series User Manual
The following items are required to configure a module: an ADAM converter module,
a personal computer with RS-232 port (baud rate set to 9600) and the ADAM utility
software.
Configuration with the ADAM Utility Software
The easiest way to configure the ADAM module is by using the ADAM utility software. It is a user friendly structured menu program that will guide you through every
step of the configuration. (See Appendix D, Utility Software)
Changing the protocol from ADAM ASCII to Modbus
Some ADAM-4000 modules support both ADAM ASCII and Modbus protocols, and
the factory default setting of these modules is ADAM ASCII protocol. If you would like
to configure the modules to Modbus protocol, please refer to Appendix H which
describes how to change the protocol in ADAM utility.
Configuration with the ADAM command set
ADAM modules can also be configured by issuing direct commands through a terminal emulation program that is part of the ADAM utility software. The following example will guide you through the setup of an analog input module. Assume an ADAM4011 Analog Input module still has its default settings (baud rate 9600 and address
01h), and you are being requested to send its default settings before any reconfiguration is made.
Note!An analog input module requires a maximum of 7 seconds to perform
auto calibration and ranging after reboot or start up.
During this time span, the module can not be addressed to perform any
other actions.
Example:
Make sure that the module is properly connected and turn on all the connected
devices. Then, start the terminal emulation program, and type in the following command:
$012(cr)
The command above requests the module with address 01 to send its configuration
status
!01050600
Module at address 01 responds that it is configured for an input range of +/-2.5 V,
baud rate of 9600, integration time of 50 ms (60 Hz).
The code also shows engineering units and no checksum checking or generation.
To change the configuration setting of the analog input module, the following command is issued:
%01070F0600(cr)
% = change configuration
01 = target module at address 00 to:
07 = change address to 07 hexadecimal
0F = set input range to Type K thermocouple
06 = set baud rate to 9600
00 = set integration time to 50 ms (60 Hz)
disable checksum
ADAM-4000 Series User Manual10
set data format to engineering units
(Please refer to Chapter 4, a full description of Command set syntax for an analog
input module)
When the module received the configuration command, it will respond with its new
address as shown below:
!07(cr)
Before giving more commands to the module, please wait for 7 seconds to let the
new configuration settings to take effect.
Note!All reconfiguration except for changing baud rate and checksum values
can be done dynamically, and the modules are not required to reset.
However, all the connected devices are required to reset by turning
power off and on after the baud rate or checksum values are changed.
The baud rate or checksum values should be the same for all the connected devices after the reconfiguration. See the next page for a strategy in changing baud rate and checksum of the network.
2.3Baud Rate and Checksum
Chapter 2Installation Guideline
ADAM modules contain EEPROMs to store configuration information and calibration
constants. The EEPROM replaces the conventional array of switches and pots that
are originally used for specifying baud rate, input and output range… etc.
Since there is no visual indication of a module’s configuration status, it is impossible
to know the baud rate, address and other settings just by looking at it. It might not be
possible to establish communications with a module whose baud rate and address
are unknown. To overcome this problem, most modules have an input terminal
labeled INIT*. Booting the module while connecting the INIT* terminal with the module’s GND terminal forces the configuration into a known state called the INIT* state.
Besides, some newer modules have INIT switch which you can set “Init” or “Normal”
(See Figure 2.4). If you set the switch to “Init”, then it becomes INIT* state.
INIT* state defaults:
Baud rate: 9600
Address: 00h
Checksum: disabled
Forcing the module in INIT* state does not change any parameters in the module’s
EEPROM. When the module is in the INIT* state with its INIT* and GND terminals
shorted, all configuration settings can be changed, and the module will respond to all
other commands normally.
Changing Baud rate and Checksum
Baud rate and checksum settings have several things in common:
They should be the same for all modules and host computer.
Their settings can only be changed by putting a module in the INIT* state.
Changed settings can only take effect after a module is rebooted
11ADAM-4000 Series User Manual
To alter baud rate or checksum settings, you must perform the following steps:
Power on all components except the ADAM Module.
• Power the ADAM module on while shorting the INIT* and GND terminals (See
Figure 2.3) or set the INIT switch to “Init” (See Figure 2-4)
Figure 2.3 Grounding the INIT* Terminal
Figure 2.4 Set INIT switch to “Init”
Configure the checksum status and/or the baud rate.
Switch the power OFF to the ADAM Module.
Remove the grounding of the INIT* terminal and turn on the module, or set the
INIT switch to “Normal”.
Check the settings (If the baud rate has changed, the settings on the host com-
puter should be changed accordingly).
ADAM-4000 Series User Manual12
2.4Multiple Module Hookup
The Figure below is an example of how ADAM modules are connected in a multiple
module network:
Chapter 2Installation Guideline
Figure 2.5 Multi-module Connection
13ADAM-4000 Series User Manual
2.5Programming Example
The following example is a simple program written in Visual Basic 6.0 that demonstrates how to get temperature reading which is stored in the address of 01H from
ADAM-4011 module.
1.Using ADAM Utility to check the settings as the following below: