Command gets the digital input [value] for [channel].

Access: Read

Category: I/O

Applies to:  2CR, 2ED, 2EX, 4CR, 4ED, 4EX, 8CR

ASCII/Standalone        DI                all digital input status

       DI[channel]        individual digital input status

Syntax                        

Read

DI[channel], DI        

[channel] is numberfor input, or not specified to read all input values.

Reply 

Command is accepted and executed

Read         

Returns status (CMD series 0-15, PMX series 0-255) of all inputs based on each bit designated to an input, and the value of that bit is 1 if on, or 0 if off.

Bit

Description

Bit-Wise Command

0

Digital Input 1

DI1

1

Digital Input 2

DI2

2

Digital Input 3

DI3

3

Digital Input 4

DI4

4

Digital Input 5

DI5

5

Digital Input 6

DI6

6

Digital Input 7

DI7

7

Digital Input 8

DI8

Command cannot be processed

       An error message is returned. See Error Codes

Example 

Read        

DI        * Returns value for all digital inputs Ex. Return a value of 12, or binary 1100, indicates inputs 3 and 4         are on and all other inputs are off.

DI3        * Returns the status of digital input 3

Notes

None

See also

I/O Setup 

AI, DIP, DO, DOBOOT, DOP, IO, IOBOOT, IOCFG, IOP

Commander Manual

High-Speed Digital Inputs