0x08 0x53 0x57 0x30 0x08 | 0xf0~ 0xee | 0xaa | Set Machine Number: |
0xff 0x05 0x01~0Xff |
|
| 0x08: Command Length |
|
|
| 0x53 0x57 0x30 0x08: Check Code |
|
|
| 0xff :Machine number |
|
|
| 0x05: Command ID |
|
|
| 0x01~0xff: Machine Number |
|
|
| ( 1 to 0xff) |
|
|
| 0xf0~0xee: Check sum |
|
|
| Ack |
|
|
| 0xaa: Header |
|
|
|
|
(a)Read command : |
|
|
|
|
|
| |
Command code | Response | Description | |
DATA | *CHECK SUM | ACK | SET |
0x08 0x53 0x57 0x30 0x08 | 0xea | 0xaa | Read input Source |
0xff 0x01 |
| 0x03 | 0x08: Command Length |
|
| 0x01 | 0x53 0x57 0x30 0x08: Check Code |
|
| 0x04 | 0xff :Machine number |
|
|
| 0xea: Check sum |
|
|
| Ack |
|
|
| 0xaa: Header |
|
|
| 0x03: Command length |
|
|
| 0x01: Selected source[source one] |
|
|
| ( |
|
|
| |
|
|
| 0x04: Check Sum |
|
|
|
|
0x8 0x53 0x57 0x30 0x08 | 0xec | 0xaa | Read Input Status |
0xff 0x03 |
| 0x03 | 0x08: Command Length |
|
| 0x21 | 0x53 0x57 0x30 0x08: Check Code |
|
| 0x24 | 0xff :Machine number |
|
|
| 0x03: Command ID |
|
|
| 0xec: Check sum |
|
|
| Ack |
|
|
| 0xaa: Header |
|
|
| 0x03: Command length |
|
|
| 0x21: Input 1 and 6 signal exist |
|
|
| [bit0: input one |
|
|
| bit1: input two |
|
|
| bit2: input three |
|
|
| bit3: input four |
|
|
| bit4: input five |
|
|
| bit5: input six |
|
|
| bit6: input seven |
|
|
| bit7: input eight] |
|
|
| 1: signal exist 0:signal not exist |
|
|
| 0x24: Check Sum |
|
|
|
|
5