| Command |
@AAGN |
| Description |
Read Preset Count Value of Counter N |
| Syntax |
@AAGN[CHK](cr)
| @ |
a delimiter character |
| AA |
address of reading module (00 to FF) |
| G |
command for reading preset count value |
| N |
0 = read preset count value of counter 0
1 = read preset count value of counter 1
|
| [CHK] |
2 characters of Checksum |
| (cr) |
Character Return(0x0D) for denote the end of command |
|
| Response |
| Valid Command |
!AA(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) |
8 hexdecimal digits, from 00000000 to FFFFFFFF |
| [CHK] |
2 characters of Checksum |
| (cr) |
Character Return(0x0D) for denote the end of response |
|
| Example |
| Command |
@01G0 |
| Response |
!0100000000 |
| Description |
Read address 01 preset count value of counter 0, return the preset value is 0. |
|
| Reference |
@AAPN(Data)
|
|