Advantech Network Card ADAM 4000 User Manual

ADAM 4000  
Data Acquisition Modules  
User's Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Table of Contents  
Chapter 1 Introduction ..….....……..................…..................…….. 1-1  
1.1 Overview .......................…................................….........….…… 1-2  
1.2 Applications ..................….........................…….............…....... 1-4  
Chapter 2 Installation Guideline ...................….................…....... 2-1  
2.1 System Requirements to set up an ADAM network ..…....... 2-2  
2.2 Basic configuration and hook-up ....................……............... 2-6  
2.3 Baud rate and Checksum .................................……............... 2-9  
2.4 Multiple Module Hookup ...............................………............... 2-11  
2.5 Programming Example.....................................……................ 2-12  
Chapter 3 I/O Modules ..................................................…............. 3-1  
3.1 ADAM-4011/4011D Thermocouple Input Modules ...…......... 3-3  
3.2 ADAM-4012 Analog Input Module ………………..…............... 3-10  
3.3 ADAM-4013 RTD Input Modules .......………………….…….... 3-15  
3.4 ADAM-4015 6-channel RTD Input Module .…………….......... 3-17  
3.5 ADAM-4015T 6-channel Thermistor Input Module ....…........ 3-20  
3.6 ADAM-4016 Analog Input/Output Module....………….…....... 3-22  
3.7 ADAM-4017/4017+/4018/4018M/4018+ 8-channel Analog Input  
Modules ........……………………………………………………..... 3-27  
3.8 ADAM-4019+ 8-channel Universal Analog Input  
Module ..................................................................................... 3-37  
3.9 ADAM-4021 Analog Output Module ........................…........... 3-41  
3.10 ADAM-4024 4-channel Analog Output Module ................... 3-44  
3.11 ADAM-4050 Digital I/O Module ……………………………..... 3-47  
3.12 ADAM-4051 16-channel Isolated Digital Input Module ..…. 3-49  
3.13 ADAM-4052 Isolated Digital Input Module ……………..…... 3-51  
3.14 ADAM-4053 16-channel Digital Input Module …..……..…... 3-53  
3.15 ADAM-4055 16-channel Isolated Digital I/O Module ……... 3-56  
3.16 ADAM-4056S 12-channel Sink Type Isolated Digital Output  
Module …………………………………………………….……..... 3-61  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3.17 ADAM-4056SO 12-ch. Source Type Isolated Digital Output  
Module ………….…………………………………………..……... 3-63  
3.18 ADAM-4060/4068 Relay Output Module ................…........... 3-65  
3.19 ADAM-4069 8-channel Relay Output Module ………………. 3-69  
3.20 ADAM-4080/4080D Counter/Frequency Input Modules ….. 3-72  
Chapter 4 Command Set ..................................................…......... 4-1  
4.1 Introduction.................................................................….......... 4-2  
4.2 Syntax .........................................................................….......... 4-2  
4.3 I/O Module Commands Search Table ......................….......... 4-4  
Chapter 5 Analog Input Module Command Set ........….............. 5-1  
5.1 Analog Input Command Set ................................……............ 5-2  
5.2 Analog Input Data Logger Command Set ............….…......... 5-34  
5.3 Digital I/O, Alarm and Event Command Set ......………......... 5-47  
5.4 Excitation Voltage Output Command Set ............…….......... 5-61  
Chapter 6 AO commands..................................................…......... 6-1  
6.1 Analog Output Module Command for ADAM-4021…............ 6-2  
6.2 Analog Output Module Command for ADAM-4024...…......... 6-19  
Chapter 7 Digital IO, Relay & Counter commands.........…......... 7-1  
7.1 Configuration, Counter Input and Display Command Set ... 7-2  
7.2 Counter/Frequency Module Command.................................. 7-28  
7.2.1 Configuration, Counter Input and Display Command Set…... 7-28  
7.2.2 Counter Setup Command Set................................................... 7-40  
7.2.3 Digital Filter and Programmable Threshold Command Set….7-49  
7.2.4 Digital Output and Alarm Command Set.................................. 7-60  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 8 Calibration ...........................................…..................... 8-1  
8.1 Analog Input Module Calibration ............................…........... 8-2  
8.2 Analog Input Resistance Calibration .................................... 8-5  
8.3 Analog Input Thermistor module Calibration ....................… 8-7  
8.4 Analog Output Calibration ..................................................... 8-13  
Appendix A Technical Specifications..............................…......... A-1  
A.1 ADAM-4011 Thermocouple Input Module ................…......... A-2  
A.2 ADAM-4011D Thermocouple Input Module with LED  
Display .......................................................................……...... A-5  
A.3 ADAM-4012 Analog Input Module ......................................... A-8  
A.4 ADAM-4013 RTD Input Module ......................................….... A-10  
A.5 ADAM-4016 Strain Gauge Input Module .....................…...... A-12  
A.6 ADAM-4017/4017+ 8-Channel Analog Input Module ..…..... A-14  
A.7 ADAM-4018/4018+ 8-channel Analog Input Module ...…..... A-16  
A.8 ADAM-4018M 8-channel Analog Input Data Logger ....…... A-19  
A.9 ADAM-4019+ 8-channel Universal Analog Input Module A-22  
A.10 ADAM-4021/4024 Analog Output Module ........................... A-24  
A.11 ADAM-4050 Digital I/O Module.................................…......... A-28  
A.12 ADAM-4051/4052 Isolated Digital Input Module ................. A-30  
A.13 ADAM-4053 16-channel Digital Input Module ............…..... A-32  
A.14 ADAM-4055 16-channel Digital I/O Module ............…......... A-34  
A.15 ADAM-4056S 12-channel Sink Type Isolated Digital Output  
Module .......…………………………………………………...….. A-36  
A.16 ADAM-4056SO 12-channel Source Type Isolated Digital Output  
Module ........……………………………………………….…...... A-38  
A.17 ADAM-4060 Relay Output Module........................................ A-40  
A.18 ADAM-4068/4069 8-channel Relay Output Module ............ A-42  
A.19 ADAM-4080 Counter/Frequency Input Module ................... A-44  
A.20 ADAM-4080D Counter/Frequency Input Module with LED  
Display …................................................................................ A-46  
Appendix B Data Formats and I/O Ranges ..................…............ B-1  
B.1 Analog Input Formats.............................................…............. B-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
B.1.1 Engineering Units .............................................................…….......... B-2  
B.1.2 Percent of FSR .................................................................…............. B-3  
B.1.3 Twos complement hexadecimal .....................................……............ B-4  
B.1.4 Ohms ..............................................................................……............ B-5  
B.2 Analog Input Ranges.............................................….............. B-6  
B.3 Analog Output Formats ..............................................…........ B-11  
B.3.1 Engineering Units ............................................................………........ B-11  
B.3.2 Percent of Span ........................................................…….................. B-11  
B.3.3 Hexadecimal ............................................................………............... B-11  
B.4 Analog Output Ranges .......................................…................ B-12  
Appendix C Technical Diagrams .................................…............. C-1  
C.1 ADAM Dimensions ..............................................…................ C-2  
C.2 Installation .............................................................….............. C-3  
C.2.1 DIN-Rail Mounting ......................................................…...….............. C-3  
C.2.2 Panel Mounting .............................................................…….............. C-5  
C.2.3 Piggyback Stack ....................................................….....….................C-7  
Appendix D Utility Software .................................…..................... D-1  
D.1 ADAM-4000 Utility Software ......................…......................... D-2  
D.2 The procedure for ADAM-4000 series installation guide…..D-6  
Appendix E RS-485 Network .............................…........................ E-1  
E.1 Basic Network Layout ................................…......................... E-3  
E.2 Line Termination .........................................…........................ E-5  
E.3 RS-485 Data Flow Control ..................................................... E-7  
Appendix F How to use the Checksum feature ..........…............ F-1  
F.1 Checksum Enable/Disable ......................................…............ F-2  
Appendix G ADAM-4000 I/O Modbus Mapping Table ....…......... G-1  
Appendix H Changing Configuration to Modbus Protocol ....... H-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Introduction  
1
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
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 VDC power supply, they accept any power unit that  
supplies power within the range of +10 to +30 VDC. The power supply  
ripple must be limited to 5 V peak-to-peak, and the immediate ripple  
voltage should be maintained between +10 and +30 VDC.  
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.  
1-2  
ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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 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 (RS-232 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 RS-485 network, DATA+ and DATA-, are  
inexpensive shielded twisted pair.  
Panel/DIN Rail mounting  
Chapter 1 Introduction 1-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Introduction  
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, moistures  
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.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  
1-4  
ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Installation Guideline  
2
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.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 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 RS-485 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 transformer-based  
isolation to protect your equipment.  
2-2 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2  
Power supply  
For the ease of use in industrial environments, the ADAM modules  
are designed to accept industry standard +24 VDC, unregulated power.  
Operation is guaranteed when using any power supply between +10 and  
+30 VDC . Power ripples must be limited to 5 V peak to peak while the  
voltage in all cases must be maintained between +10 and +30 VDC . All  
power supply specifications are referenced 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 VDC is used for five ADAM-4011 Analog Input  
Modules, and the 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.  
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.  
Chapter 2 installation Guideline 2-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Installation Guideline  
Figure 2-1 Power Supply Connections  
We advise the following standard colors (as indicated on the  
modules) for each power line:  
+Vs  
GND  
(R)  
(B)  
Red  
Black  
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 twisted-  
pair cable is required for transmitting Data. We advise the following  
standard colors (as indicated on the modules) for each the  
communication line:  
DATA+ (Y)  
DATA- (G)  
Yellow  
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)  
2-4  
ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2  
Notice: User can refer our help file to see more details for explanation of  
Utility operation.  
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.  
Chapter 2 installation Guideline 2-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Installation Guideline  
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 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.  
Figure 2-2 Basic Hook-up of ADAM Module to Host Switches  
2-6 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2  
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 ADAM-4011 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.  
NOTICE: 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  
Chapter 2 installation Guideline 2-7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Installation Guideline  
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  
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.  
NOTICE: 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-8  
ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2  
2.3 Baud rate and Checksum  
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  
To alter baud rate or checksum settings, you must perform the  
following steps:  
Chapter 2 installation Guideline 2-9  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Installation Guideline  
• 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 computer should be changed accordingly).  
2-10 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2  
2.4 Multiple Module Hookup  
The Figure below is an example of how ADAM modules are connected  
in a multiple module network:  
Figure 2-5 Multi-module Connection  
Chapter 2 installation Guideline 2-11  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Installation Guideline  
2.5 Programming 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.  
Step 1. Using ADAM Utility to check the settings as the following below:  
“Address = 01H”, “Baud rate = 9600” and “Checksum = Disabled”.  
Step 2. Run VB 6.0 and add a control via “Project\Component”.  
2-12 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2  
Step 3. Select “Microsoft Comm Control”  
Step 4. Add the Comm Control on the form.  
Chapter 2 installation Guideline 2-13  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Installation Guideline  
Step 5. Add three Command Buttons on the form as shown below  
Step 6. Add one Label and one Text on the form as shown below.  
2-14 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2  
Step 7. Click OPEN Button and type in the following codes. The source  
codes are listed at the end of this section.  
Step 8. Click SEND Button and type in the following codes. The source  
codes are listed at the end of this section.  
Chapter 2 installation Guideline 2-15  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Installation Guideline  
Step 9. Click CLOSE Button and type in the 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 the same as the displayed format shown below.  
2-16 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2  
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  
Chapter 2 installation Guideline 2-17  
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
3
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
3.0 The common specification of ADAM-4000 I/O Series  
Communication:  
z
z
RS-485 (2-wire) to host  
Speeds: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 bps  
(ADAM-4080, ADAM-4080D only support up to 38400 bps)  
Max. communication distance: 4000 feet (1.2 km)  
Power and communication LED indicator  
ASCII command/response protocol  
Communication error checking with checksum  
Asynchronous data format: 1 start bit, 8 data bits, 1 stop bit, no parity  
(N, 8, 1)  
z
z
z
z
z
z
z
z
Up to 256 multidrop modules per serial port  
Online module insertion and removal  
Transient suppression on RS-485 communication lines  
Power Requirement:  
z
Unregulated +10 ~ +30 VDC  
z
Protected against power reversal  
Mechanical:  
z
z
Case  
Plug-in screw  
Terminal block  
ABS+PC with captive mounting hardware  
Accepts 0.5 mm2 to 2.5 mm2,  
#14 ~22 or #14~28 AWG  
Environment  
z
z
z
z
EMI  
Meets FCC Class A or CE  
Operating Temperature  
Storage Temperature  
Humidity  
-10 ~ 70° C (14 ~ 158° F)  
-25 ~ 85° C (-13 ~ 185° F)  
5 ~ 95%, non-condensing  
3-2  
ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3  
3.1 ADAM-4011/4011D Thermocouple Input Modules  
The 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 two’s complement 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 power  
surges at the ground terminal by providing opto-isolation of the A/D  
input and transformer based isolation up to 3000 VDC. (ADAM-4011  
has transformer-based isolation up to 500 VDC)  
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 opened 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.  
Front Panel LED Indicator (ADAM-4011D only)  
The 4½ digits LED display on the back of the ADAM-4011D lets  
you monitor the 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, easy installation, and  
direct availability of process data. For critical process monitoring, this  
module is the ideal choice.  
Digital Input/Output  
The 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 may be used to 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.  
Chapter 3 I/O Modules 3-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
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 count will maintain at  
65535 even if the actual number of events exceeds 65535. The counter  
can be read or reset to zero by the host computer.  
Since the Event counter’s data are not stored in EEPROM, the event  
counter is cleared and set to zero after every reset or start 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 to High alarm state, and Digital Output channel 0 (DO0) equals  
to 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 if the input value  
returns within the limits. An alarm in Latching mode can be turned OFF  
by giving a Clear Alarm command from the host computer. A Latching  
alarm is cleared by the module when the opposite alarm is set. 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 within the 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 the involvement of host computer.  
3-4  
ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3  
Function Description for the ADAM-4011 Thermocouple Input  
Module  
To provide a better understanding of the ADAM module functions,  
the following is a description of the module ADAM-4011 with the most  
extensive set of functions.  
All analog input data first flow through the PGA (programmable  
gain amplifier). The amplifier can vary its gain from 1 to 128. The PGA  
then automatically adjusts the signal to a range from -2.5 V to +2.5 V.  
This ensures an 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 calibrations, Auto Zero and Auto  
Span calibrations, take place automatically in startup or reset. 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 enter the microprocessor, they pass through an  
optical isolation device which prevents the chance of circuit damaging  
caused by power surges from the ground terminal.  
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 have been transformed to the right data format, they are  
being passed on to 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 VDC, and it has an isolation value of 500 VDC to protect your  
equipment from damages caused by power surges.  
Chapter 3 I/O Modules 3-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
ADAM-4011 Thermocouple Input Module  
Figure 3-1 ADAM-4011 Thermocouple Input Module  
Accepts:  
- J, K, T, E, R, S and B thermocouples  
- Millivolt inputs: ±15 mV, ±50 mV, ±100 mV and ±500 mV  
- Volt inputs: ±1 V and ±2.5 V  
- Current input: ±20 mA (Requires a 125   resistor)  
Two digital output channels and one digital input channel are provided.  
Depending on the module’s configuration setting, it can forward the  
data to the host computer in one of the following formats:  
- Engineering units (o C, mV, V or mA)  
- Percent of full-scale range (FSR)  
- Two’s complement hexadecimal  
3-6  
ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3  
ADAM-4011D Thermocouple Input Module  
Figure 3-2 ADAM-4011D Thermocouple Input Module with LED Display  
Accepts:  
- J, K, T, E, R, S and B thermocouples  
- Millivolt inputs: ±15 mV, ±50 mV, ±100 mV and ±500 mV  
- Volt inputs: ±1 V and ±2.5 V  
- Current input: ±20 mA (Requires a 125 resistor)  
Two digital output channels and one digital input channel are provided.  
Depending on the module’s configuration setting, it can forward the  
data to the host computer in one of the following formats:  
- Engineering units (oC, mV, V, or mA)  
- Percent of full-scale range (FSR)  
-Two’s complement hexadecimal  
Chapter 3 I/O Modules 3-7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
Application Wiring  
Figure 3-3 ADAM-4011/4011D Thermocouple Input Wiring Diagram  
Figure 3-4 ADAM-4011/4011D Millivolt and Volt Input Wiring Diagram  
Figure 3-5 ADAM-4011/4011D Process Current Input Wiring Diagram  
3-8  
ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3  
Figure 3-6 ADAM-4011/4011D Digital Output Wiring Diagram  
Used with SSR (HI-LO alarm)  
Figure 3-7 ADAM-4011/4011D Digital Input Wiring Diagram  
Used with TTL  
Figure 3-8 ADAM-4011/4011D Digital Input Wiring Diagram  
Used with Dry contact  
Chapter 3 I/O Modules 3-9  
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
3.2 ADAM-4012 Analog Input Module  
The ADAM-4012 Analog Input Modules use a microprocessor-  
controlled integrating A/D converter to convert sensor voltage or  
current signals into digital data. The digital data are then translated into  
either two’s complement hexadecimal format or percentage of full-scale  
range (FSR) according to the module’s configuration. When prompted  
by the host computer, the data are sent through a standard RS-485  
interface.  
The ADAM-4012 Analog Input Modules offer signal conditioning,  
A/D conversion, ranging, and RS-485 digital communication functions.  
They protect your equipment from power surges at the ground terminal  
by providing opto-isolation of the A/D input and up to 3000 VDC  
transformer based isolation.  
Digital Inputs/Outputs  
The ADAM-4012 also contains 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 can be applied to 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.  
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 zero by the host computer.  
Since the Event counter’s data are not stored in EEPROM, the event  
counter is cleared and set to zero after every reset or start up of the  
analog input module.  
3-10 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3  
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 states. Digital Output channel 1 (DO1)  
equals to High alarm state, and Digital Output channel 0 (DO0) equals  
to 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 the limits. It can also 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.  
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 within the 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 involving the host computer.  
Chapter 3 I/O Modules 3-11  
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
ADAM-4012 Analog Input Module  
Figure 3-9 ADAM-4012 Analog Input Module  
Accepts:  
- Millivolt inputs ± 150 mV and ±500 mV  
- Volt inputs: ±1 V, ±5 V and ±10 V  
- Current input: ±20 mA (requires a 125 resistor)  
Two digital output channels and one digital input channel are provided.  
Depending on the module's configuration setting, it can forward the  
data to the host computer in one of the following formats:  
- Engineering units (mV, V, or mA)  
- Percent of full-scale range (FSR)  
- Two’s complement hexadecimal  
3-12 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3  
Application Wiring  
Figure 3-10 ADAM-4012 Millivolt and Volt Input Wiring Diagram  
Figure 3-11 ADAM-4012 Process Current Input Wiring Diagram  
Figure 3-12 ADAM-4012 Digital Output Wiring Diagram  
Used with SSR (HI-LO alarm)  
Chapter 3 I/O Modules 3-13  
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
Figure 3-13 ADAM-4012 Digital Input Wiring Diagram Used with TTL  
Figure 3-14 ADAM-4012 Digital Input Wiring Diagram  
Used with Dry contact  
3-14 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3  
3.3 ADAM-4013 RTD Module  
The ADAM-4013 RTD Input Module supports one Pt or Ni RTD  
input channel for temperature measurement. This module can accept  
RTD sensors with two, three, or four wires. The module offers signal  
conditioning, A/D conversion, ranging, and RS-485 digital  
communication functions. It protects your equipment from power  
surges at the ground terminal by providing opto-isolation of the A/D  
input and up to 3000 VDC transformer based isolation.  
Figure 3-15 ADAM-4013 RTD Input Module  
Accepts:  
-
Input from platinum and nickel RTDs  
Depending on the module’s configuration setting, it can forward the  
data to the host computer in one of the following formats:  
- Engineering units (°C)  
- Percent of full-scale range (FSR)  
- Two’s complement hexadecimal  
Chapter 3 I/O Modules 3-15  
Download from Www.Somanuals.com. All Manuals Search And Download.  
I/O Modules  
Application Wiring  
Figure 3-16 ADAM-4013 RTD Inputs Wiring Diagram  
3-16 ADAM 4000 Series User’s Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3  
3.4 ADAM-4015 6-channel RTD Input Module  
A RTD module is popularly used for temperature measurement.  
Unlike the traditional design, the ADAM-4015 RTD Input Module  
provides six RTD input channels for different types of RTD signal like  
as Pt, Ni, Balco. It is an effective solution in industrial & building  
automation. Normally, broken external wire will lead to an inaccurate  
current value; however, the ADAM-4015 provides a broken wire  
detecting function. Therefore, users can easily fix the broken wire  
problems. This module can accept RTD sensors that have two or three  
wires. After the V2.04 of ADAM-4015, ADAM-4015 can support the  
“BA1 -200~600”  
CODE  
(IEC/JIS) 30/35  
(IEC/JIS) 30/35  
(IEC/JIS) 30/35  
(IEC/JIS) 30/35  
(IEC/JIS) 30/35  
40  
TYPE  
Pt 100  
RANGE  
-50  
0  
- 150  
- 100  
- 200  
- 400  
- 200  
- 160  
- 120  
- 100  
- 100  
-
-
0蚓  
-
0蚓  
-
Pt 1000  
BALCO 500  
Ni  
-200  
-40  
-30  
-80  
41  
42  
43  
Ni  
0蚓  
Figure 3-17 ADAM-4015 6-channel RTD Input Module  
Chapter 3 I/O Modules 3-17  
Download from Www.Somanuals.com. All Manuals Search And Download.