Advantech Data Acquisition Modules ADAM 4000 User Manual
Page 247

Digital I/O and Relay Output
Counter/Frequency Command Set
7-12 ADAM 4000 Series User’s Manual
$AA4
Name
Read Synchronized Data command
Description
The addressed digital I/O module is instructed to return the
value that was stored in its register by a Synchronized
Sampling command.
Syntax
$AA4(cr)
$
is a delimiter character.
AA
(range 00-FF) represents the 2-character hexadecimal
address of returning data.
4
is the Read Synchronized Data command.
(cr)
is the terminating character, carriage return (0Dh).
Response
!(status)(dataOutput)(dataInput)00(cr)
if the command was valid.
(ADAM-4050)
!(status)(dataInput)0000(cr)
if the command was valid.
(ADAM-4052)
!(status)(dataInput)(dataInput)00(cr)
if the command was valid.
(ADAM-4053)
!(status)(dataOutput)0000(cr)
if the command was valid.
(ADAM-4060/4068)
?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 responding 2-character
hexadecimal address of the digital I/O module.
(status)
will tell you if the data (data) from the last
Synchronized Sampling command (#**) have already been
sent. If (status=1), data have only been sent for the first
time after a Synchronized Sampling command was issued.
If (status=0), then the data have been sent at least once
since no Synchronized Sampling command was issued.
4050, 4051, 4052, 4053,
4055, 4060, 4068,