Advantech Data Acquisition Modules ADAM 4000 User Manual page 227

Advantech data acquisition modules user's manual
Table of Contents

Advertisement

4021
$AA2
Name
Read Configuration Status command
Description
Instruct the analog output module to return its configuration
data.
Syntax
$AA2(cr)
$
AA
address for status reading.
2
(cr)
Response
!AATTCCFF(cr)
Example
command: $452(cr)
6-13 ADAM 4000 Series User's Manual
is a delimiter character.
(range 00-FF) represents the 2-character hexadecimal
is the Read Configuration Status command.
is the terminating character, carriage return (0Dh).
?AA(cr)
if an invalid command was issued.
There is no response if the module detects a syntax or
communication error, or even if the specified address does
not exist.
!
delimiter character indicates that a valid command was
received.
?
delimiter character indicates that the command was
invalid.
AA
(range 00-FF) represents the 2-character hexadecimal
address of an analog output module.
TT
represents the type of code, which determines the
output range.
CC
represents the baud rate code.
FF
is a hexadecimal number that equals to 8-bit parameter
representing the data format, slew rate, and checksum
status.
(cr)
is the terminating character, carriage return (0Dh)
Please refer to %AANNTTCCFF Configuration command
(Page 6-3 and 6-4) for TT, CC and FF parameter definition.
response:
!45300614(cr)
The command asks the analog output module at address
45h to send its configuration data.
The analog output module at address 45h responds with
output range 0 to 20 mA, baud rate 9600, engineering units
as the currently configured data format, slew rate 2 mA per
second, and no checksum checking.
if the command is valid.
6
Chapter

Advertisement

Table of Contents
loading

Table of Contents