Write Command 10H Response Format
High
segment
of
starting
address
(H)
Low
segment
of
starting
address
(L)
High
segment
of the
number
of
registers
(H)
Low
segme
nt of
the
numbe
r of
register
s (L)
Example of debugging serial ports: read the real-time
measured value ( Baud rate: 9600. Data format 8n1. Sending
and receiving are all in hexadecimal. )
Send: 01 03 00 01 00 02 95 CB
Return: 01 03 04 00 00 0A 0B BD 54
Return analysis: starting from the fourth byte, it is a real-time
measured value, 00 00 0A 0B. Method of calculation:00 ×
256
3 +
00 × 256
2 +
0A × 256 + 0B = 2571