32 read digital i/o and alarm status – ADLINK ND-6017 User Manual

Page 77

Advertising
background image

Command Set

69

3.32 Read Digital I/O and Alarm Status

@Description

Read the digital input channel, digital output channel and the alarm
state at specified analog input module.

@Syntax

@(Addr)DI<CR>

@

Command leading code.

(Addr)

Address ID

DI

Read digital I/O and alarm state.

@Response

!(Addr)(Alarm)(DigitalO)(DigitalI)<CR>

!

Command is invalid.

(Addr)

Address ID.

(Alarm)

0: alarm is disable
1: MOMENTARY mode enable.
2: LATCH mode enable.
(1-character)

(DigitalO)

Digital output channel, port 0 and 1 status.
00: channel 0 is OFF, channel 1 is OFF
01: channel 0 is ON , channel 1 is OFF
02: channel 0 is OFF, channel 1 is ON
03: channel 0 is ON , channel 1 is ON
(2-character)

(DigitalI)

Digital input channel, port status.
00: channel is LOW.
01: channel is HIGH.
(2-character)

(6011/D, 6012/D, 6014D)

Advertising