« Close

Datasheets and User Guides

App Notes

Software & Driver

 

5.2.5.7 - BitStateRead: IOType=10

Table 5.2.5.7-1. BitStateRead Command Response

BitStateRead, 2 Command Bytes: 
0 IOType = 10
1 Bits 0-4: IONumber
   
1 Response Byte: 
0 Bit 0: State

This IOType reads the state of a single bit of digital I/O. Note that CIO0-2 & MIO0-2 are shared, so to write/read MIO0-2 use channel numbers 16-18.  Only lines configured as digital (not analog) return valid readings.

  • IO Number: 0-7=FIO, 8-15=EIO, or 16-19=CIO.
  • State: 1=High, 0=Low.