beautypg.com

21 @aadi – Measurement Computing CB-7011 User Manual

Page 42

background image

42

CB-7011/CB-7011D, CD-7018 User’s Manual

2.21 @AADI

Description: Read Digital I/O and Alarm Status

Note: The command is for CB-7011/11D/11P/11PD only.

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

This manual is related to the following products: