DAM-DA Serial RS232 RS485 Input To Analog Signal Converter
DAM-DA Serial RS232 RS485 Input To Analog Signal Converter
DAM-DA Serial RS232 RS485 Input To Analog Signal Converter
Datasheet
Overview:
DAM module is a new generation data acquisition and control system based on modular embedded
systems. Adopting standard DIN35 rail mounting package is simple, flexible respond to various field
applications. They establish networks through RS485, RS232, Ethernet and other means of communication.
DAM-DAis the analog input series module can simultaneously capture two differential or single-ended
signal. The acquisition accuracy is 12 bit. Widely used to collecting various voltage and current signals on
industrial site. Such as signals from a variety of sensors, transmitters, thermocouple can be gathered through it.
DAM-DA is with galvanic isolation technology and watchdog technology, effectively guaranteeing safe
and reliable equipment operation.
Product Features:
Products Application:
Electronics Manufacturing
www.amazingelectronic.com
Page 1 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Model Series:
Model NO.:
Function type
DAM-8021
DAM-8041
DAM-8081
DAM-7011
DAM-7021
DAM-7041
DAM-DA
Summarize:
DAM-DA products achieve the host RS-485/232 interface signals isolation to standard analog signal, to
control the remote device. DAM-DA products can be applied to RS-232/RS-485 bus industrial automation
control systems ,4-20mA ,0-5V ,0-10V and other standard signal output, used to control the implementation of
industrial field devices, control devices and display devices, etc. and so on.
Products include power supply isolation, signal isolation, linearization, D / A conversion and RS-485 serial
communication. Each serial port of the maximum 256 DAM-DA series of modules, means of communication
using ASCII code or MODBUS RTU communication protocol communication protocol, its instruction set
compatible with the ADAM modules, the baud rate is set by the code, with other manufacturers control module
hanging in the same RS-485 bus, to facilitate computer programming.
DAM-DA series of products are based on single chip of intelligent monitoring and control systems, all the
user to set the calibration value, address, baud rate, data format, checksum status and other configuration
information is stored in nonvolatile memory EEPROM inside.
DAM-DA series of products according to industry standard design, manufacture, signal output /
communication interface isolation, can withstand 3000VDC isolation voltage, anti-interference ability, and
high reliability. Operating temperature range: - 45 ~ +80 .
Figure1
www.amazingelectronic.com
Page 2 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Model Selection:
DAM-DA-
O
Output voltage or current
Communication port:
485: input is RS-485 interface
232: input is RS-232 interface
O1: 0-20mA
O3: 0-10V
O5:0-20mA
O70-10
O2:0-5V
O4:4-20mA
O6:0- 5V
Example:
www.amazingelectronic.com
Page 3 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Footprint Definition:
www.amazingelectronic.com
Page 4 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Form1: pin definition
PIN Name
PIN No.
PIN Name
PIN Function
POWER
VIN
Power input+
GND
GND
Power Ground
DI/DO
485-
DI/DO
485+
GND
GND
Power Ground
DI
RX
DO
TX
GND
GND
Power Ground
GND
GND
Power Ground
DI
10
CONFIG
Configuration Terminal
PIN NO.
PIN Name
PIN Function
NC
11
NC
Reserve
NC
12
NC
Reserve
NC
13
NC
Reserve
NC
14
NC
Reserve
NC
15
NC
Reserve
NC
16
NC
Reserve
AO
17
AGND
AO
18
AO1+
AO
19
AGND
AO
20
AO0+
www.amazingelectronic.com
Page 5 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Page 6 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
symbol (cr). Except ** synchronous command, commands have effects on one module each time.
Command format: (Leading Code)(Addr)(Command)[data][checksum](cr)
(Leading Code) is the first letter of command. All commands need a leading code. such as:%, $,#,@,...
1- Character
(Addr) is module address code, default value range is 00FF (hexadecimal), 2- Characters
(Command) represents command code or variable value
Variable Length
[data] some output command need data
Variable Length
[checksum] represents optional parameters, only need it when checksum is enabled.
2 -Characters
(cr) terminating character, value is 0x0D
1- character
When checksum is enabled, [Checksum] is required. Command and response must append checksum
characters. Checksum is used to check all input command, to help you find the errors between host computer
and module
Calculating Method: two-character (hexadecimal), is the sum of all sending characters ASCII, then AND
0xFF.
Example: Disable checksum
command:
$002(cr)
response:
!00020600 (cr)
Enable checksum
command:
$002B6 (cr)
response:
!00020600 A9 (cr)
$ = 0x24
0 = 0x30
2 = 0x32
B6=(0x24+0x30+0x30+0x32) AND 0xFF
! = 0x21
0 = 0x30
2 = 0x32 6 = 0x36
A9=(0x21+0x30+0x30+0x30+0x32+0x30+0x36+0x30+0x30) AND 0xFF
Command Response:
Response message depends on all kinds of command. Command also insists of some characters, including
leading code, variable and end symbol. Response messages leading code has 2 kind, ! or > represents valid
command, ? stands for invalid. Through check response message can monitor command is valid or not.
Remark: 1, under some circumstances, many command use similar command format. Make sure the
address you used in the command is right, if you use wrong address, and this address represents another
module, then the command will effective in another module, then cause to wrong.
2, Must use capital letter input command
Analog Output Module Command Table:
1Set Channel N Analog Output Value Command
2Set Channel N Reset Analog Output Value Command
3Set Analog Output Module Command
4Read Set State
www.amazingelectronic.com
Page 7 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
5Offset Calibration
6Span Calibration
7Read Module Name
8Channel N Analog Output Read-back Command
9Set Communication Protocol Commands
1Set N-Channel Analog Output Value Command
Describe: As the current configuration data format, set analog output module N-channel output value
Syntax#AAN(data)(cr)
Parameter Description:
#
delimiter character
AA
is (range 00-FF) represents the 2-character hexadecimal address of the module.
N
Channel code 0 or 1
(cr) is the terminating character, carriage return (0Dh)
Response :
>(cr) command is valid.
?AA(cr) invalid command or nonlicet operation
Parameter Description:
>
delimiter character
(cr) terminating character, carriage return (0Dh)
There will be no response if the module detects a syntax error or communication error or if the specified
address does not exist.
Example: Command #230+04.632(cr)
Response
>(cr)
The channel 0 output value is +04.632mA at address 23H.
2Set Channel N Reset Analog Output Value Command
Describe: Set Channel N Reset Analog Output Value as present data formats.
Syntax#AASN(data)(cr)
Parameter Description:
#
delimiter character
AA
module address (range 00-FF) hexadecimal
S
set reset analog output value
N
Channel code 0 or 1
(data) set channel N reset output analog value .The data format is in Engineering UnitsPercent of
FSR, Twos complement hexadecimal. Refer to Chapter 3 Command Set.
(cr)
is the terminating character, carriage return (0Dh)
Response :
>(cr) command is valid.
?AA(cr) invalid command or nonlicet operation
Parameter Description:
>
delimiter character
(cr) terminating character, carriage return (0Dh)
There will be no response if the module detects a syntax error or communication error or if the specified
address does not exist.
www.amazingelectronic.com
Page 8 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Example: Command #23S0+04.000(cr)
Response >(cr)
Channel 0 reset output is +04.000mA at address 23H.
3Set Analog Output Module Command
Describe: Set address, output range, baud rate, data format, checksum, status to analog output module.
Configuration information is stored in nonvolatile memory EEPROM.
Syntax%AANNTTCCFF(cr)
Parameter Description:
% delimiter character
AA is (range 00-FF) represents the 2-character hexadecimal address of the module.
NN New module hexadecimal address, NN range is 00-FF.
TT hexadecimal represents type code. DAM-DA must be set 00.
CC hexadecimal represents baud rate code.
Baud rate code
Baud rate
01
300 baud
02
600 baud
03
1200 baud
04
2400 baud
05
4800 baud
06
9600 baud
07
19200 baud
08
38400 baud
Form2 Baud rate code
FF
Bit 6
Bit 5
Bit 4
Bit 3
Bit2
Bit 1
Bit 0
Response Syntax
www.amazingelectronic.com
Page 9 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
!AA(cr) command is valid
?AA(cr) command is invalid or nonlicet operation, or do not set up line before changing baud rate
or checksum
Parameter Description:
!
delimiter character which indicates a valid command.
?
delimiter character which indicates a invalid command.
AA represents module address
(cr)
terminating character, carriage return (0Dh)
If you configure module for the first time, A=00 NN equals to new address. If reconfigure module
changing address, input range, and data formats, AA equals to present or new address. If reconfigure
module changing baud rate or checksum state, must install command string, make them in listening mode,
module address is 00H, also AA=00H, NN=present or new address.
There will be no response if the module detects a syntax error or communication error or if the specified
address does not exist.
Example:
Command %0011000600(cr)
Response !11(cr)
Description: %
delimiter character
00
indicates analog input module initial address that you want to set is 00H
11
indicates new module hexadecimal address is 11H
00
indicates type code, DAMDA must be set 00
06
indicates baud rate: 9600 baud
00
indicates data format is Engineering Unitschecksum is disabled
4Read Set State
Describe: Read set for the specified a analog output module.
Syntax: $AA2(cr)
Parameter Description:
$
delimiter character
AA
module address, (range 00-FF) hexadecimal
2
indicates read set state command
(cr) terminating character, carriage return (0Dh)
Response Syntax
!AATTCCFF(cr) command is valid
?AA(cr)
command is invalid or nonlicet operation
Parameter Description:
!
delimiter character
AA represents module address
TT Type Code
CC
Baud rate code, form 3
FF
form 4
(cr) terminating character, carriage return (0Dh)
There is no response if the module detects a syntax error or communication error or if the specified address
does not exists.
Example:
command
www.amazingelectronic.com
$302(cr)
[email protected]
Page 10 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Response !300F0600(cr)
!
delimiter character
30
indicates analog input module address is 30H
00
indicates that output type code
06
represents that baud rate is 9600 baud
00
represents that data format is Engineering Units, disable checksum
5Offset Calibration Command
Describe: Calibrates an analog output module channels N to correct for offset errors
Syntax: $AA1N(cr)
$
delimiter character
AA
module address, (range 00-FF) hexadecimal
1
represents offset calibration command
N
channels code 0~1
(cr)
terminating character, carriage return (0Dh)
Response: ! AA (cr)
command is valid
?AA(cr)
command is invalid or nonlicet operation
!
delimiter character which indicates a valid command.
?
delimiter character which indicates a invalid command.
AA
represents module address
(cr)
terminating character, carriage return (0Dh)
Products have been calibrated, user can use them directly. After calibrating offset command, then calibrate
gain errors.
In the calibration, analog output modules need to be calibrated channel connected to the multimeter to
monitor the output signal, through the first command set command to set the analog output, regulated to
multimeter inside shows the value of the output signal is zero, and then enter the calibration bias shift
command, see the specific calibration methods calibrate the module sections.
There is no response if the module detects a syntax error or communication error or if the specified address
does not exist.
Example: command $2310(cr)
Response
!23 (cr)
Calibrate offset channel 0 at address 23H module.
6Span Calibration
Description: Calibrates an analog output module channles N to correct for gain errors
Syntax:
$AA0N(cr)
$
delimiter character
AA
module address, (range 00-FF) hexadecimal
0
represents gain calibration commandre
N
channels code 0~1
(cr)
terminating character, carriage return (0Dh)
Response: !AA(cr)
command is valid
?AA(cr) command is invalid or illegal operation
!
delimiter character which indicates a valid command.
?
delimiter character which indicates a invalid command.
AA represents module address
www.amazingelectronic.com
Page 11 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
(cr)
terminating character, carriage return (0Dh)
Products have been calibrated, user can use them directly. After calibrating offset command, then calibrate
gain errors.
In the calibration, analog output modules need to be calibrated channel connected to the multimeter to
monitor the output signal, through the first command set command to set the analog output, regulated to
multimeter inside shows the value of the output signal is zero, and then enter the calibration bias shift
command, see the specific calibration methods calibrate the module sections.
There is no response if the module detects a syntax error or communication error or if the specified address
does not exists.
Example: command
$2300(cr)
Response
!23 (cr)
Calibrate gain errors channel 0 at address 23H module.
7Read Module Name
Description: Return the module name from the specified analog output module
Syntax:
$AAM(cr)
$
delimiter character
AA
module address, (range 00-FF) represents the 2-character hexadecimal
M
represents Read module name command
(cr)
terminating character, carriage return (0Dh)
Response:!AA(ModuleName)(cr)
command is valid
?AA(cr)
command is invalid or nonlicet operation
!
delimiter character which indicates a valid command.
?
delimiter character which indicates a invalid command.
AA
represents input module address
(ModuleName) is DAM,5014 so on, represents module type
(cr)
terminating character, carriage return (0Dh)
There is no response if the module detects a syntax error or communication error or if the specified address
does not exist.
Example: Command
$08M(cr)
Response
!08ISODA (cr)
Counter Module is ISODA at adress 08H
8Channel N Analog Output Read-back Command
Description: Analog output module Channel N Analog Output Value Read-back.
Command Syntax: $AADN(cr)
Parameter Description:
$
delimiter character
AA
module address, (range 00-FF) hexadecimal
D
Analog output read-back command
N
Channel code 0 or 1
(cr)
terminating character, carriage return (0Dh)
Response Syntax
!AA(data)(cr) command is valid
?AA(cr)
command is invalid or illegal operation
Parameter Description:
www.amazingelectronic.com
Page 12 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
!
delimiter character
AA
represents input module address
(data) represents back to read the output channel N analog data. The data format is in Engineering
Units Percent of FSR, Twos complement hexadecimal. Refer to Chapter 3 Command Set.
(cr)
terminating character, carriage return (0Dh)
There is no response if the module detects a syntax error or communication error or if the specified
address does not exists.
Example: Command $23D0 (cr)
Response !23+04.632 (cr)
Channel 0 present output value is +04.632mA at address 23H.
9Set Communication Protocol Commands
Description: Choose ASCII command set or MODBUS RTU as operation protocol
Command Syntax:
$AAPV(cr)
$
delimiter character
AA
module address, (range 00-FF) hexadecimal
P
command code
V
Protocol code. 0: ASCII command set; 1: MODBUS RTU
(cr)
terminating character, carriage return (0Dh)
Response:! !AA (cr)
command is valid
?AA(cr)
command is invalid or nonlicet operation
!
delimiter character which indicates a valid command.
?
delimiter character which indicates a invalid command.
AA
represents output module address
(cr)
terminating character, carriage return (0Dh)
There is no response if the module detects a syntax error or communication error or if the specified address
does not exists.
Example 1: Command
$00P1(cr)
Response
!00 (cr)
Choose MODBUS RTU protocol
Example 2:
Command
$00P0(cr)
Response
!00 (cr)
Choose ASCII command set
www.amazingelectronic.com
00Engineering Unit
01% of FSR
10Twos complement hexadecimal
Page 13 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Form 4
Output Range
A44-20mA
A30-20mA
U10-5V
U20-10V
U50-5V
U8/A8User define
A70-20mA
U60-10V
Max.
Data Format
Min.
Engineering Unit
+20.000
+04.000
% of FSR
+100.00
+020.00
FFF
333
Engineering Unit
+20.000
00.000
% of FSR
+100.00
000.00
FFF
000
Engineering Unit
+5.0000
0.0000
% of FSR
+100.00
000.00
FFF
000
Engineering Unit
+10.000
00.000
% of FSR
+100.00
000.00
FFF
000
Engineering Unit
+5.0000
-5.0000
% of FSR
+100.00
-100.00
FFF
000
Engineering Unit
+100.00
000.00
% of FSR
+100.00
000.00
FFF
000
Engineering Unit
+20.000
-20.000
% of FSR
+100.00
-100.00
FFF
000
Engineering Unit
+10.000
-10.000
% of FSR
+100.00
-100.00
FFF
000
Example:
1. Output range A4:4-20mA, setting output value for 4mA
Engineering Units
user command: #010+04.000(cr)
% of FSR
user command: #010+020.00(cr)
Twos complement hexadecimal
user command: #010333(cr)
2. Output range U1:0-5V, setting output value for 3V
Engineering Units
user command: #010+3.0000(cr)
www.amazingelectronic.com
Page 14 of 16
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
% of FSR
user command: #010+060.00(cr)
Twos complement hexadecimal
user command: #010999(cr)
Module Calibration
Products have been calibrated, the user can use directly without calibration. In the process, you can use
the product calibration function to re-calibrate the module. In the calibration, the module need use a
high-precision multimeter to monitor the module output signal.
In order to improve calibration precision, suggest doing as the following meters:
A five and a half or more high-precision voltage / current measurement instrument for monitoring the
accuracy of the output signal
Calibration Process:
1. Select the output channel to be calibrated in accordance with the scope of the module connected to the
corresponding output voltage or current measurement instruments.
2. Set analog output modules need to calibrate the output of the channel zero signals, typically 0mA, 4mA or
0V and so on. Through the first command set command to set the analog output, adjust to the measuring
instrument inside shows the value of the output signal is zero.
3. Until the signal stabilized, the analog output module to send $ AA1N offset calibration command (N
representing the current channel being calibrated code, 0 or 1).
4. Set analog output modules require full-scale calibration channel output signal. Through the first command
set command to set the analog output, adjust to the measuring instrument where the output signal is shown in
full scale value.
5. Until the signal stabilized, the analog output module to send $ AA0N gain calibration command (N
representing the current channel being calibrated code, 0 or 1).
6. Finished
MODBUS RTU :
The device is set ASCII command as default protocol, if need change to MODBUS RTU, follow below step to
change:
1. Short connecting INIT(PIN 3) and GND(PIN 6)
2. Correctly link Power and communication interface cables
3. Switch on power supply, the module automatically enter the default state, communication address is 00,
the baud rate of 9600
4. Wait for one minute, Module initialization
5. Send command $00P1(cr), response should be !00(cr)
6. Switch off power supply, break off INIT and GND
7. Now device successfully in MODBUS RTU protocol
The Modbus function codes of modue support are 03 and 06. Modbus data content and output
corresponding relation see Form 4,it is the same as the character data format for Twos complement
hexadecimal
Register Specification:
Addr
4X
Content
www.amazingelectronic.com
R/W
Description
Page 15 of 16
40001
DAM-DA
Amazing Electronic (HK) Limited
Serial RS232/RS485 to analog signal converter
Out0(0x0000-0x0FFF) Read/Write
Output data of Channel 0
40002
Out1(0x0000-0x0FFF)
Read/Write
40211
S0ut0(0x0000-0x0FFF)
Read/Write
40221
Sout1(0x0000-0x0FFF)
Read/Write
Dimension: (unit:mm)
Contact us
www.amazingelectronic.com
Page 16 of 16