Command 2104: Acquires the bit status of the specified input bit port
Acquires the status of selected input port.
Command Syntax
| bit | Name | Description | |
|---|---|---|---|
| Parameter 1 | 15 | bitNumber | Specifies the word port of the I/O. |
| 14 | |||
| | | |||
| 1 | |||
| 0 |
Response Syntax
| bit | Name | Description | |
|---|---|---|---|
| Response 1 | 15 | status | Return the status of the selected input. 0 = OFF 1 = ON |
| 14 | |||
| | | |||
| 1 | |||
| 0 |
*Description
The command checks the status of I/O input. This is most commonly used to check the status of sensors connected to the loader, conveyor, gripper solenoid, or other peripheral devices which works via I/O. Input status are “1” or “0”. They indicate ON (1) or OFF (0) of the device.
Example
When acquiring the status of bit number 15.
Bit number 15 is ON.
| Command | Response |
| 0838H 000FH | 0838H 0001H |