Advantech Data Acquisition Modules ADAM 4000 User Manual
Page 249

Digital I/O and Relay Output
Counter/Frequency Command Set
7-14 ADAM 4000 Series User’s Manual
$AA2
Name
Configuration Status command
Description
Returns the configuration parameters of the digital I/O
module.
Syntax
$AA2(cr)
$
is a delimiter character.
AA
(range 00-FF) represents the 2-character hexadecimal
address that you will access to.
2
is Configuration Status command.
(cr)
is the terminating character, carriage return (0Dh).
This command requests the return of the configuration data
from the digital I/O module at address AA.
Response
!AATTCCFF(cr)
if the command is valid.
?AA(cr)
if an invalid command has been issued.
There is no response if the module detects a syntax or
communication error, or even if the specified address does
not exist.
!
is a delimiter character which indicates a valid command.
?
is a
delimiter character which indicates an invalid
command.
AA
(range 00-FF) represents the 2-character hexadecimal
address of the module.
TT
represents the type of code, which is always 40.
CC
represents the baud rate codes.
(Refer to Table 7-2 on next page).
The hexadecimal number
FF
which is converted to a 8-bit
parameter represents the checksum and protocol status .
Bits 3 through 5 and bit 0, 1, 7 are not used, so they are
set to 0. (Refer to Figure 7-2 on next page)
Bit 6 is the selection of checksum and bit 2 is the selection
of protocol (0: advantech, 1: modbus).
(Modbus protocol is supported by ADAM-4051, 4055,
4056S, 4056SO, 4068 only)
(cr)
is the terminating character, carriage return (ODh).
4050, 4051, 4052, 4053, 4055,
4056S, 4056SO, 4060, 4068, 4069