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.
CE Notification
The ADAM-4000 series developed by Advantech Co., Ltd. has passed the CE
test for environmental specifications when operated within an industrial enclosure
(ADAM-4950-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.
Acknowledgments
ADAM is a trademark of Advantech Co., Ltd.
IBM and PC are trademarks of International Business
Machines Corporation.
Appendix G ADAM-4000 I/O Modbus Mapping Table ....…......... G-1
Appendix H Changing Configuration to Modbus Protocol ....... H-1
Introduction 1
Introduction
1.1 Overview
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
ADAM modules contain no pots or switches to set. 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 the module’s configuration parameters including I/O
address, speed, parity, 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
power supply , they accept any power unit that supplies power
24 V
DC
within the range of +10 to +30 V
. The power supply ripple must be
DC
limited to 5 V peak-to-peak, and the immediat e ripple v ol t age s h ould 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.
2
ADAM 4000 Series User’s Manual
1-
Chapter 1
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 modul es c an be
programmed in virtually 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 th e
ADAM RS-485 repeater, extending the maximum communication
distance to 4,000 ft. The host computer is connected to the RS-485
network with one of its COM ports through the ADAM RS-232/RS-485
converter.
To boost the network’s throughput, the ADAM RS-485 repeaters use a
logical RTS signal to manage the repeater’s direction. Only two wires
are needed for the RS-485 network: DATA+ and DATA-. Inexpensive
shielded twisted pair wiring is employed.
Panel/DIN Rail mounting
-3
Chapter 1 Introduction 1
Introduction
ADAM modules mount on any panel, on provided brackets, on DIN
rails or may 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
Hardened plastic packing forms the outer shell of every module. Since
all configuration is controlled by software, the module is not designed
to be opened. This greatly enhances resistance against corrosive
materials, moisture and vibration. ADAM modules’ low power
requirements help them to operate in temperatures from 0 to 70
in humidities from 0 to 95% (non-condensing). They’re built compactly
using automated SMT technology so you can pack them into watertight and explosion-proof industrial enclosures.
1.2 Applications
• Remote data acquisition
• Process monitoring
• Industrial process control
• Energy management
• Supervisory control
• Security systems
• Laboratory automation
• Building automation
• Product testing
• Direct digital control
o
C, and
4
ADAM 4000 Series User’s Manual
1-
Installation Guideline 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 to connect ADAM modules with sensor inputs, several
wiring examples are provided. Finally, you will find at the end of this
chapter a programming example using the ADAM command set.
Be sure to carefully plan the layout and configur ation of your network
before you start. Guidelines regarding layout are given in Appendix E:
RS-485 Network.
NOTICE: Except for the communication modules, which have onboard switches for their baud rate setting, ADAM modules should not
be opened. There is no need to open the ADAM modules: all
configuration is done remotely and there are no user serviceable parts
are inside. Opening the cover will therefore void the warranty.
2.1 System 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 characters with an RS-232C or RS-485 port.
• Power supply for the ADAM modules (+10 to +30 V
• ADAM Series Utility software
• ADAM Isolated RS-232/RS-485 Converter (option a l)
• ADAM Repeater (optional)
DC
)
Host computer
Any computer or terminal that can output in ASCII format over either
RS-232 or RS-485 can be connected as the host computer. When only
RS-232 is available, an ADAM RS-232/RS-485 Converter is re quired
to transform the host signals to the correct RS-485 protocol. The
converter also provides opto-isolation and transformer-based isolation
to protect your equipment.
2
ADAM 4000 Series User’s Manual
2-
Chapter 2
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
DC
voltage in all cases must be maintained between +10 and +30 V
power supply specifications are referenced at module connector. When
modules are powered remotely, the effects of line voltage drops must be
considered.
All modules use on-board switching regulators to sustain good
efficiency over the 10-30 V input range, therefore we can assume that
the actual current draw is inversely proportional to the line voltage. The
following example shows how to calculate the required current that a
power supply should be able to provide.
Assume that a +24 V
will be used to power five ADAM-4011 Analog
DC
Input Modules. The distance from power supply to modules is not so
big that significant line voltage drop will occur. One ADAM-4011
module consumes a maximum of 1.2 Watts. The total required power
will equal 5 x 1.2 = 6 Watts. A power supply of +24 V
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 on long communication lines
(>500 feet) it is often more reliable to power the modules locally with
modular power supplies. These inexpensive units can easily be obtained
from any electronics retail store.
The power cables should be selected according to the number of
modules connected and the length of the power lines. When using a
network with long cables, we advise the use of thicker wire to limit the
line voltage drop. In addition to serious voltage drops, long voltage
lines can also cause interference with communication wires.
unregulated power.
DC
. All
DC
should
DC
Chapter 2 installation Guideline 2
-3
Installation Guideline
Figure 2-1 Power Supply Connections
We advise that the following standard colors (as indicated on the
modules) be used for power lines:
+Vs (R) Red
GND (B) Black
Communication Wiring
We recommend that shielded-twisted-pair cables that comply with the
EIA RS-485 standard be used with the ADAM network to reduce
interference. Only one set of twisted-pair cables is required to transmit
both Data and RTS signals. We advice that the following standard
colors (as indicated on the modules) be used for the communication
lines:
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 easily communicate through the
ADAM command set. (See Appendix D, Utility Software)
ADAM Communication Speed
In ADAM series, the baudrate can be configured from 1200 bps to 38.4
Kbps. And the baudrate of all modules in an RS-485 network must be
the same.
4
ADAM 4000 Series User’s Manual
2-
Chapter 2
ADAM Isolated RS-232/RS485 Converter (optional)
When the host computer or terminal has only a RS-232 port, an ADAM
Isolated RS-232/RS-485 Converter, connected to the host’s RS-232
port, is required. Since this module is not addressable by the host, the
baud rate must be set using a switch inside the module. The factory
default setting is 9600 baud.
ADAM Repeater (optional)
When communication lines exceed 4000 ft (1200 meter) or the number
of ADAM modules connected is more than 32, a repeater should be
connected to expand the first segment. Up to 8 Repeater modules can
be connected allowing connection of up to 256 ADAM modules. As
with the Converter module, the Repeater module is not addressable by
the host and the baud rate must be set by changing the switch inside the
module. The factory default setting is 9600 baud.
2.2 Basic 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 that the baud rate is set correctly.
The basic hook-up for module configuration is shown below.
ADAM-4520 RS-232/RS-485 Converter
DATA+
DATA-
+Vs
GND
ADAM
I/O
Module
HOST PC
RS-232
TXD (3)
RXD (2)
RTS (7)
GND (5)
+Vs
GND
DATA+
DATA-
RS-485
POWER
+10~+30 V
DC
()=pin number on EIA-232-D
connector (RS-232)
Figure 2-2 Basic Hook-up of ADAM Module to Host Switches
Chapter 2 installation Guideline 2
-5
Installation Guideline
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: an easy-to-use menu-structured program 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 b ot h A DAM ASCII protocol and
Modbus protocol . 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 describe how to
change the protocol in ADAM utility.
Configuration with the ADAM command set
ADAM modules can also be configured by issuing direct commands
from within a terminal emulation program that is part of the ADAM
utility software.
The following example guides you through the setup of an analog input
module. Assume that an ADAM-4011 Analog Input module still has its
default settings (baud rate 9600 and address 01h). Before the module is
reconfigured, it is first requested to send its default settings.
NOTICE: An analog input module requires a maxi mu m of 7 seco nds to
perform auto calibration and ranging after it is rebooted or powered on.
During this time span, the module can not be addressed to perform any
other actions.
Example:
Make sure that the module is properly connected as shown in figure 2-5.
Power up all the connected devices, start the terminal emulation
program, and issue the following command:
$012(cr)
requests that module with address 01 send its configuration status
!01050600
Module at address 01 responds that it is configured for an input range
of +/-2.5 V, baud rate 9600, integration time of 50 ms (60 Hz),
engineering units and no checksum checking or generation.
6
ADAM 4000 Series User’s Manual
2-
Chapter 2
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
set data format to engineering units
(See Chapter 4, Command Set for a full description of the syntax of the
configuration command for an analog input module)
When the module received the configuration command it will respond
with its new address:
!07(cr)
Wait 7 seconds to let the new configuration settings take effect before
issuing a new command to the module.
NOTICE: All reconfiguration except changing of baud rate and
checksum values can be done dynamically, i.e. the modules need not to
be reset. When changing the baud rate or checksum, these changes
should be made for all connected devices. After reconfiguration, all
modules should be powered down and powered up to force a reboot
and let the changes take effect. See the next page for a strategy for
changing baud rate and or checksum for an entire network.
2.3 Baud rate and Checksum
Adam modules contain EEPROMs to store configuration information
and calibration constants. The EEPROM replaces the usual array of
switches and pots required to specify baud rate, input/output range etc.
All of the ADAM modules can be configured remotely through their
communication ports, without having to physically alter pot or switch
settings.
Chapter 2 installation Guideline 2
-7
Installation Guideline
Since there is no visual indication of a module’s configuration status, it
is impossible just by looking at it what the baud rate, address and other
settings are. It might not be possible to establish communications with a
module whose baud rate and address are unknown. To overcome this
problem, every module has an input terminal labeled INIT*. By booting
the module while connecting the INIT* terminal with the module’s
GND terminal, the modules configuration is forced into a known state.
This state is called the INIT* state.
INIT* state defaults:
Baud rate: 9600
Address: 00h
Checksum: disabled
Forcing the module in the 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 setting can only be changed by putting a module in the INIT*
state.
• Changed settings can only take effect after a module is rebooted
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).
8
ADAM 4000 Series User’s Manual
2-
Chapter 2
Figure 2-3 Grounding the INIT* Terminal
• Wait at least 7 seconds to let self calibration and ranging take effect.
• Configure the checksum status and/or the baud rate.
• Switch the power to the ADAM Module OFF.
• Remove the grounding of the INIT* terminal and power the module
on.
• Wait at least 7 seconds to let self calibration and ranging take effect.
• Check the settings (If the baud rate has changed, the settings on the
host computer should be changed accordingly).
Chapter 2 installation Guideline 2
-9
Installation Guideline
2.4 Multiple Module Hookup
The Figure below shows how ADAM modules are connected in a
multiple module example:
Figure 2-4 Multi-module Connection
10
ADAM 4000 Series User’s Manual
2-
Chapter 2
2.5 Programming Example
The following example is a simple program written in Visual Basic 6.0
that demonstrates how to get temperature reading from ADAM-4011
module, which is addressed at 01H.
Step 1. Using ADAM Utility to check the settings of “Address = 01H”,
“Baud rate = 9600” and “Checksum = Disabled” as following.
Step 2. Run VB 6.0 and add a control via “Project\Component”.
Chapter 2 installation Guideline 2
-11
Installation Guideline
Step 3. Select “Microsoft Comm Control”
Step 4. Add the Comm Control on the form.
12
ADAM 4000 Series User’s Manual
2-
Step 5. Add three Command Buttons on the form as following
Step 6. Add one Label and one Text on the form as following.
Chapter 2
Chapter 2 installation Guideline 2
-13
Installation Guideline
Step 7. Click OPEN Button and type following codes. The source codes are
listed at the end of this section.
Step 8. Click SEND Button and type following codes. The source codes are
listed at the end of this section.
14
ADAM 4000 Series User’s Manual
2-
Chapter 2
Step 9. Click CLOSE Button and type following codes. The source codes are
listed at the end of this section.
Step 10. Run the Project → Click OPEN to open COM1 → Click SEND to
send the Get Temperature Reading Command. Now you will find the reading
is displayed as following format.
Chapter 2 installation Guideline 2
-15
Installation Guideline
Program Source Codes:
OPEN Command Button:
Private Sub Command1_Click()
' Buffer to hold input string
Dim Instring As String
' Use COM1.
MSComm1.CommPort = 1
' 9600 baud, no parity, 8 data, and 1 stop bit.
MSComm1.Settings = "9600,N,8,1"
' Tell the control to read entire buffer when Input
' is used.
MSComm1.InputLen = 0
' Open the port.
MSComm1.PortOpen = True
End Sub
SEND Command Button:
Private Sub Command2_Click()
' Send Get AI command to ADAM-4011 Module at address 01H.
MSComm1.Output = "#01" & Chr$(13)
' Wait for data to come back to the serial port.
Do
DoEvents
Buffer$ = Buffer$ & MSComm1.Input
Loop Until InStr(Buffer$, vbCr)
' Read the response till the carriage return character.
Text1.Text = Buffer$
' Display the reading.
End Sub
CLOSE Command Button
Private Sub Command3_Click()
' Close the serial port.
MSComm1.PortOpen = False
End Sub
16
ADAM 4000 Series User’s Manual
2-
I/O Modules 3
I/O Modules
3.1 ADAM-4011/4011D Thermocouple Input Modules
ADAM-4011/4011D Thermocouple Input Modules use a
microprocessor-controlled integrating A/D converter to convert sensor
voltage, current or thermocouple signal into digital data. The digital
data is then translated into either engineering units, two’s co mplement
hexadecimal format or percentage of full-scale range (FSR) according
to the module’s configuration. When prompted by the host computer,
the data is sent through a standard RS-485 interface.
The ADAM-4011/4011D Thermocouple Input Modules offer signal
conditioning, A/D conversion, ranging, and RS-485 digital
communication functions. They protect your equipment from ground
loops and power surges by providing opto-isolation of the A/D input
and transformer based isolation up to 3000 V
transformer-based isolation up to 500 V
Open Thermocouple Detection and Input Surge Protection
(ADAM-4011D only)
The ADAM-4011D provides an open thermocouple detection function.
Users can use a simple command to detect whether the thermocouple is
open or closed. The module also provides surge protection on its input
channel. Internal high-speed transient suppressor on its input channel
protects the module from dangerous spikes and voltages.
. (ADAM-4011 has
DC
)
DC
Front Panel LED Indicator (ADAM-4011D only)
The 4½ digits LED display on the back of the ADAM-401 1D let s yo u
monitor process readings right at their source. The module displays
readings in a wide variety of formats as well as high-low alarm
messages. The ADAM-4011D offers flexibility, ease of installation
and direct availability of process data. For critical process monitoring,
this module is the ideal choice.
Digital Input/Output
ADAM-4011/4011D Thermocouple Input Modules also contain two
digital outputs and one digital input. Outputs are open-collector
transistor switches that may be controlled by the host computer. They
can control solid-state relays, which in turn may control heaters, pumps,
and other electrical powered equipment. The digital inputs may be read
by the host computer and used to sense the state of a remote digital
signal.
2
ADAM 4000 Series User’s Manual
3-
Chapter 3
Event counting
The event counter is connected to the Digital Input channel and can be
used to keep track of the total amount of external low-speed pulses. Its
accumulated maximal count is 65535. The number 65535 is held, even
if the actual number of events exceeds 65535. The counter can be read
or reset to 0 by the host computer.
Since the Event counter’s data is not stored in EEPROM, the event
counter is cleared and set to zero after every reset or power up of the
analog input module.
Alarm signaling
Analog input modules include High and Low alarm functions. High and
Low alarm limits may be downloaded into the module’s EEPROM by
the host computer.
The alarm functions can be enabled or disabled remotely. When the
alarm function is enabled, both Digital Output channels are used to
indicate the High and Low alarm state. Digital Output channel 1 (DO1)
equals High alarm state and Digital Output channel 0 (DO0) equals
Low alarm state. The High and Low alarm states can be read at any
time by the host computer.
Every A/D conversion will be followed by a comparison with the High
and Low limit. When the input value exceeds one of these limits, the
High or Low alarm state is set to ON.
There are two alarm mode options: Momentary and Latching.
If the alarm is in Latching mode, the alarm will stay on even when the
input value returns within limits. An alarm in Latching mode can be
turned OFF by issuing a Clear Alarm command from the host computer.
A Latching alarm is cleared by the module when the opposite alarm is
set. For example: the alarm is in latching mode and the High alarm is
turned ON.
When the module receives a value that is lower than the Low alarm
limit, it will clear the High alarm and turn the Low alarm ON.
When the alarm is in Momentary mode, the alarm will be turned OFF
as soon as the input value returns to within limits.
The arrangement of coupling High and Low alarm states with Digital
Output lines may be utilized to build ON/OFF controllers that can
operate without host computer involvement.
Chapter 3 I/O Modules
3-3
I/O Modules
Function Description for the ADAM-4011 analog input
module
To provide a better understanding of the functioning of the ADAM
modules, the following is a description of the module with the most
extensive set of functions, the ADAM-4011.
All analog input data first flows through the PGA (programmable gain
amplifier). The amplifier can vary its gain from 1 to 128. The PGA
automatically adjusts the signal to a range of -2.5 V to +2.5 V. This
ensures optimal input voltage and resolution for the A/D converter.
The A/D conversion is supervised by the microprocessor that holds the
calibration software. Two kinds of calibration take place automatically
on startup or reset: Auto Zero calibration and Auto Span calibration.
Normal calibration is used to adjust the signal according to calibration
parameters defined by the user.
The digital 10 Hz filter provides a steady state output by using the ΔΣ
function.
Before the data enters the microprocessor it passes through an optical
isolation device. The opto-isolation prevents ground loops and limits
the chance of damage from power surges.
The microprocessor has six basic functions:
- Linearization of T/C (Thermocouple)
- Communication software and command set
- Calibration software
- Alarm monitoring
- Event counting
- Management of the EEPROM device that holds the system parameters
- Data transformation
After data has been transformed to the right data format its is passed on
the RS-485 output port.
If an input value exceeds the High alarm setting or falls below the Low
alarm setting, a flag is set in one of the Digital Output channels.
Finally, the on-board switching regulator accepts voltage between +10
and +30 V
protect your equipment from damage from power surges.
. This power circuit has an isolation value of 500 VDC to
DC
4
ADAM 4000 Series User’s Manual
3-
Loading...
+ 384 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.