Command Code
:
06H
,
write a word
For example:Write 5000
(
1388H)into F00AH which slave address is 02H.
Master command information
The Number of byte 04H
Data F002H high order 00H
Data F002H low order 00H
Data F003H high order 00H
Data F003H low order 01H
CRC CHK low order
CRC CHK values are to be calculated
CRC CHK high order
ADR 02H
CMD 06H
Data Address high order F0H
Data Address low order 0AH
Data content high order 13H
Data content high order 88H
CRC CHK low order
CRC CHK values are to be calculated
CRC CHK high order
Slave responding information
ADR 02H
CMD 06H
Data Address high order F0H
Data Address low order 0AH
Data Content high order 13H
Data Content low order 88H
CRC CHK low order
CRC CHK values are to be calculated
CRC CHK high order
CRC Checking
In RTU mode, messages include an error-checking eld that is based on a CRC method. The
CRC eld checks the contents of the entire message. The CRC eld is two bytes, containing a
16-bit binary value. The CRC value is calculated by the transmitting device, which appends the
CRC to the message. The receiving device recalculates a CRC during receipt of the message,