| Command |
$AA6 |
| Description |
Read digital input/output status |
| Syntax |
$AA6[CHK](cr)
| $ |
a delimiter character |
| AA |
address of reading module (00 to FF) |
| 6 |
command for reading digital input/output status |
| [CHK] |
2 characters of Checksum |
| (cr) |
Character Return(0x0D) for denote the end of command |
|
| Response |
| Valid Command |
!(Data)[CHK](cr) |
| Invalid Command |
?AA[CHK](cr) |
Syntax error or communication error may get no response.
| ! |
delimiter for valid command |
| ? |
delimiter for invalid command. |
| AA |
address of response module (00 to FF) |
| (Data) |
digital input/output status |
| [CHK] |
2 characters of Checksum |
| (cr) |
Character Return(0x0D) for denote the end of response |
|
| Example |
| Command |
$016 |
| Response |
!0F0000 |
| Description |
Read digital input/output status of address 01 channel status, response 0F00. |
|
| Reference |
@AA
|
|