Chapter 7
7-
69
ADAM 4000 Series User’s Manual
@AADI
Name Read Digital Output and Alarm State command
Description The addressed counter module is instructed to return the
value of its two digital output channels and the state of its
alarm.
Syntax @AADI(cr)
@ is a delimite r character.
AA (range 00-FF) represents the 2-character hexadecimal
address of the module.
DI is the Read Digital Output and Alarm Status command.
(cr) represents terminating character, carriage return (0Dh).
Response !AASOO00(cr) if the command was valid
There is no response if the module detects a syntax error or
communication error or if the specified address does not
exists.
! is a delimiter character which indicates a valid command.
AA represents the 2-character hexadecimal address of the
module.
S (for ADAM-4080) is a hexadecimal number that
represents the disable or enable status of alarm mode:
0h: Counter 0 alarm is disabled, counter 1 alarm is disabled
1h: Counter 0 alarm is enabled, counter 1 alarm is disabled
2h: Counter 0 alarm is disabled, counter 1 alarm is enabled
3h: Counter 0 alarm is enabled, counter 1 alarm is enabled
S (for ADAM-4080D) is a hexadecimal number that
represents the alarm state of counter 0:
0h: Alarm of counter 0 is disabled
1h: Alarm of counter 0 is in MOMENTARY mode
2h: Alarm of counter 0 is in LATCH mode
OO is a hexadecimal number representing the Digital
Output port's channel 0 and 1 status
(00h = D /0 channels 0 an d 1 are both OFF, 01h = chann el 0
is ON, channel 1 is OFF, 02h = channel 0 is OFF, channel 1
is ON, 03h = channel 0 and 1 are both ON).
(cr) represents the terminating character, carriage return
(0Dh).
4080, 4080D