
User Guide
©2008
-2021 Seeed Technology Co., Ltd. All rights reserved. solution.seeedstudio.com
21
/
22
Slave Response: AA 10 RRRR NNNN CCCC
AA
1 byte
Slave Address,0-255
0x10
1 byte
Function Code 0x10
RRRR
2 byte
Starting Register Addr
NNNN
2 byte
Quantity of Register to write
CCCC
2 byte
CRC CHECKSUM
Example: Write Register 0x0200-0x0201,that is set slave address to 1,and baudrate to
19200bp.
Master Request:01 10 0200 0002 04 0001 0004 BACC
0x01
1 byte
Slave Addr.
0x10(HEX)
1 byte
Function Code 0x10
0x0200
2 byte
Starting Register Addr
0x0002
2 byte
Quantity of Register to write
0x04
1 byte
Register Data Byte Count
0x0001
2 byte
Register Value: Slave Address 1
0x0004
2 byte
Register Value: Baudrate 19200bps
0xBACC
2 byte
CRC CHECKSUM
Salve Response:01 10 0200 0002 4070
0x01
1 byte
Slave Addr.
0x10(HEX)
1 byte
Function Code 0x10
0x0200
2 byte
Starting Register Addr(High8bits first)
0x0002
2 byte
Quantity of Register to write(High8bits first)
0x4070
2 byte
CRC CHECKSUM