Read-only command that returns the input status of all digital inputs or return status individually.

Applies to: All Commander Controllers

ASCII/Standalone        DI                all digital input status

       DI[input]        individual digital input status

Syntax                        

Read

DI[input]                

Where:        [input] is number (CMD series 1-4, PMX series 1-8) for 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

2.1.3.2.1 High-Speed Digital Inputs