Contents Up Previous Next

CMD DIO (0xE1)

Code: 0xE1
Description: Digital inputs/outputs can be set or read.
Parameters (master -> slave):

Response (slave -> master): In the event of success: ,,OK'' (0x4F4B), with attached byte indicating the current status of the digital inputs in the 4 low bits, and the digital outputs in the 4 high bits.

Input 1 Bit 1 0x01
Input 2 Bit 2 0x02
Input 3 Bit 3 0x04
Input 4 Bit 4 0x08
Output 1 Bit 5 0x10
Output 2 Bit 6 0x20
Output 3 Bit 7 0x40
Output 4 Bit 8 0x80

Example:

D-Len Cmd Param
M->S 0x01 0xE1
S->M 0x04 0xE1 0x4F 0x4B 0x00 No inputs/outputs set