Command |
#AAN |
Description |
Read analog input of specified channel |
Syntax |
#AAN[CHK](cr)
# |
a delimiter character |
AA |
address of reading module (00 to FF) |
N |
channel to read |
[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. If the channel is not available or not enabled, the module will response as invalid command. |
AA |
address of response module (00 to FF) |
(Data) |
analog input of specified channel |
[CHK] |
2 characters of checksum |
(cr) |
Character Return(0x0D) for denote the end of response |
|
Example |
Command |
#015 |
Response |
>-05.133 |
Description |
Read analog input of channel 5 of address 01, response the analog input is -5.133. |
|
Reference |
#AA
|
|