4-154 ADAM 4000 Series User's Manual
Command Set
4050, 4052, 4053, 4060, 4051, 4055, 4068
$AA6
Name Digital Data In
Description This command requests that the specified (AA) module returns
the status of its digital input channels and returns a readback
value of its digital output channels.
Syntax $AA6(cr)
$ is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address of the digital I/O module.
6 is the Digital Data In command.
(cr) is the terminating character, carriage return (0Dh).
Response !(dataOutput)(dataInput)00(cr)
if the command was valid. (ADAM-4050)
!(dataInput)0000(cr)
if the command was valid. (ADAM-4052)
!(dataInput)(dataInput) 00 (cr)
if the command was valid. (ADAM-4053)
!(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 error or
communication error or if the specified address does not exists.
!
delimiter character indicating a valid command was received.
?
delimiter character indicating the command was invalid.
AA (range 00-FF) represents the 2-character hexadecimal
address of the digital I/O module that is responding.
(dataOutput) two-character hexadecimal value which either is
the readback of a digital output channel or a relay.
(dataInput) two-character hexadecimal value representing the
input values of the digital I/O module.
(cr) is the terminating character, carriage return (0Dh).