Chapter 4 Parameters
Command code: 03H, read N words. The maximum value of N is 12. For example, reading continuous 2 words from starting address 2102H of AMD with address 01H.
ASCII mode:
Command message:
STX | ‘:’ | |
ADR 1 | ‘0’ | |
ADR 0 | ‘1’ | |
CMD 1 | ‘0’ | |
CMD 0 | ‘3’ | |
| ‘2’ | |
Starting data address | ‘1’ | |
‘0’ | ||
| ||
| ‘2’ | |
| ‘0’ | |
Number of data | ‘0’ | |
(count by word) | ‘0’ | |
| ‘2’ | |
LRC CHK 1 | ‘D’ | |
LRC CHK 0 | ‘7’ | |
END 1 | CR | |
END 0 | LF |
Response message:
STX | ‘:’ | |
ADR 1 | ‘0’ | |
ADR 0 | ‘1’ | |
CMD 1 | ‘0’ | |
CMD 0 | ‘3’ | |
Number of data | ‘0’ | |
(count by byte) | ‘4’ | |
Content of starting | ‘1’ | |
data address | ‘7’ | |
2102H |
| |
‘7’ | ||
| ||
| ‘0’ | |
| ‘0’ | |
Content of data address | ‘0’ | |
2103H | ‘0’ | |
| ‘0’ | |
LRC CHK 1 | ‘7’ | |
LRC CHK 0 | ‘1’ | |
END 1 | CR | |
END 0 | LF |
RTU mode:
Command message:
ADR | 01H |
CMD | 03H |
Starting data address | 21H |
| 02H |
Number of data | 00H |
(count by word) | 02H |
CRC CHK Low | 6FH |
CRC CHK High | F7H |
Response message:
ADR | 01H |
CMD | 03H |
Number of data | 04H |
(count by byte) |
|
|
|
Content of data address | 17H |
2102H | 70H |
| |
Content of data address | 00H |
2103H | 00H |
| |
CRC CHK Low | FEH |
CRC CHK High | 5CH |
Revision May 2008, ME14, SW V3.04 |