19 @aadi – Measurement Computing CB-COM-7012 User Manual
Page 42

42
CB-7012, CB-7014, CB-7017 User’s Manual
2.19 @AADI
Description: Read Digital I/O and Alarm Status
Note: This command is for CB-7012/12D/12F/12FD/14D only.
Syntax: @AADI[CHK](cr)
@
Delimiter character
AA
Address of module (00 to FF)
DI
Command for reading digital input and alarm status
Response:
Valid Command:
!AASOOII[CHK](cr)
Invalid Command:
?AA[CHK](cr)
Syntax or communication error may get no response.
!
Delimiter for valid command
?
Delimiter for invalid command
AA
Address of responding module (00 to FF)
S
alarm enable status, 0=alarm disable, 1=momentary alarm
enabled, 2=latch alarm enabled.
OO
digital output status; 00=DO0 off, DO1 off, 01=DO0
on, DO1 off, 02=DO0 off, DO1 on, 03=OD0 on, DO1 on.
II
digital input status, 00=input low, 01=input high level.
Example:
Command: @01DI
Receive: !0100001
Read Address 01 digital input, return alarm disable, digital
output all off, and digital input high level.
Related Command:
Sec. 2.20, @AADO(Data); Set. 2.21, @AAEAT; Sec. 2.24,
@AADA
Related Topic:
Sec. 3.4, Digital Input and Event Counter; Sec. 3.5, Digital Output