4-104 ADAM 4000 Series User's Manual
Command Set
@AADI
Name Read Digital I/O and Alarm State
Description The addressed analog input module is instructed to return the
value of its digital input and output channels and the state of
its alarm (Momentary or Latching).
Syntax @AADI(cr)
@ is a delimiter character.
AA
(range 00-FF) represents the 2-character hexadecimal
address of an analog input module.
DI is the Read Digital I/O and Alarm Status command.
(cr)
represents terminating character, carriage return (0Dh).
Response !AASOOII(cr) if the command was valid (ADAM-4011/4011D/
4012/4014D).
!AASOO00(cr) if the command was valid (ADAM-4016)
There is no response if the module detects a syntax error or
communication error or if the specified address does not exist.
! delimiter character indicating a valid command was received.
AA
represents the 2-character hexadecimal address of the
responding analog input module.
S hexadecimal number that represents the alarm state (0h =
disabled, 1h = MOMENTARY mode enabled, 2h = LATCH mode
enabled).
OO
(for ADAM-4011/4011D/4012/4014D) is a hexadecimal
number representing the Digital Output port’s channel 0 and 1
status (00h = D/O channels 0 and 1 are both OFF, 01h = channel
0 is ON, channel 1 is OFF, 02h = channel 0 is OFF, channel 1 is
ON, 03h = channel 0 and 1 are both ON).
4011, 4011D, 4012, 4014D, 4016