21 @aadi – B&B Electronics Network Device I-7011 User Manual

Page 42

Advertising
background image

42

I-7011, I-7018 User Manual

Rev:B1.0

2.21 @AADI

Description : Read Digital I/O and Alarm Status

Syntax : @AADI[CHK](cr)

@

delimiter character

AA

address of reading module (00 to FF)

DI

command for reading digital I/O and alarm status

Response :Valid Command :

!AASOOII[CHK](cr)

Invalid Command :

?AA[CHK](cr)

Syntax error or communication error may get no re-

sponse.

!

delimiter for valid command

?

delimiter for invalid command

AA

address of response 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 level, 01=input high

level.

Example :

Command : @01DI

Receive : !0100001

Read address 01 digital I/O status, return alarm disable, digital

outputs all off, and digital input high level.

Command : @02DI

Receive : !0210100

Read address 02 digital I/O status, return momentary alarm

enable, high alarm is clear, low alarm is set, and digital input is

Advertising