Reading Digital I/O Command
The Read Digital I/O command returns a byte which represents the states of the 3 digital input and 3 digital output states. Bits
Command Syntax
!{addr}RD
Unit Response
{states}
Where {states} is a byte in which Bits
Table 3.4 - Read Digital I/O Response for Outputs
|
| Response Byte |
|
|
| Digital Outputs |
|
| ||||
| Bit 2 |
| Bit 1 |
| Bit 0 |
| #2 |
| #1 |
| #0 |
|
|
|
|
|
|
|
|
|
|
|
| ||
| 0 |
| 0 |
| 0 |
| LOW |
| LOW |
| LOW |
|
| 0 |
| 0 |
| 1 |
| LOW |
| LOW |
| HIGH |
|
| 0 |
| 1 |
| 0 |
| LOW |
| HIGH |
| LOW |
|
| 0 |
| 1 |
| 1 |
| LOW |
| HIGH |
| HIGH |
|
| 1 |
| 0 |
| 0 |
| HIGH |
| LOW |
| LOW |
|
| 1 |
| 0 |
| 1 |
| HIGH |
| LOW |
| HIGH |
|
| 1 |
| 1 |
| 0 |
| HIGH |
| HIGH |
| LOW |
|
| 1 |
| 1 |
| 1 |
| HIGH |
| HIGH |
| HIGH |
|
|
| Table 3.5 - Read Digital I/O Response for Inputs | ||||||||||
|
| Response Byte |
|
|
| Digital Inputs |
|
| ||||
| Bit 5 |
| Bit 4 |
| Bit 3 |
| #2 |
| #1 |
| #0 |
|
|
|
|
|
|
|
|
|
|
|
| ||
| 0 |
| 0 |
| 0 |
| LOW |
| LOW |
| LOW |
|
| 0 |
| 0 |
| 1 |
| LOW |
| LOW |
| HIGH |
|
| 0 |
| 1 |
| 0 |
| LOW |
| HIGH |
| LOW |
|
| 0 |
| 1 |
| 1 |
| LOW |
| HIGH |
| HIGH |
|
| 1 |
| 0 |
| 0 |
| HIGH |
| LOW |
| LOW |
|
| 1 |
| 0 |
| 1 |
| HIGH |
| LOW |
| HIGH |
|
| 1 |
| 1 |
| 0 |
| HIGH |
| HIGH |
| LOW |
|
| 1 |
| 1 |
| 1 |
| HIGH |
| HIGH |
| HIGH |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 485SDA103798 Manual |
|
|
|
|
|
| 15 |
B&B Electronics
PH (815)