Command 2101: Acquires the status of the specified input port in words
Returns the status of the specified input word port.
Each word port contains 16 input bits.
Command Syntax
| bit | Name | Description | |
|---|---|---|---|
| Parameter 1 | 15 | byteportNumber | Specifies the byte port of I/O. |
| 14 | |||
| | | |||
| 1 | |||
| 0 |
Response Syntax
| bit | Name | Description | |
|---|---|---|---|
| Response 1 | 15 | returnValue | Returns the status of the input port (from 0 to 65535). |
| 14 | |||
| | | |||
| 1 | |||
| 0 |
Description
Returns the status of the specified input port by word.
Example
When inputing from the word port #10.
Word Port #10 = 5AA5H
| Command | Response |
| 0835H 000AH | 0835H 5AA5H |