
Chengdu Ebyte Electronic Technology Co.,Ltd
E821-RTU (0400-ETH)User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
22
22
Note: 00 00 isTCP serve, 00 01 is TCP client, 00 02 is UDP server, 00 03 is UDP client. C0 A8 04 0A is the IP
address or domain name of the target server when it is set to "client", 22 B6 is port number, it is local port number when
in server mode, it is remote port number when in client mode.
4.3.7 Set the registration package mode
Modbus RTU protocol write register:
Send
01
06
00 91
00 00
D8 27
Device ModBus
address
Function
code
Address
Write value
CRC check code
Receive
01
06
00 91
00 00
D8 27
Device ModBus
address
Function
code
Address
Write value
CRC check code
Modbus TCP protocol write register:
Send
00 01
00 00
00 06
01
06
00 91
00 00
Transmission
identifier
Protocol
identifier
Length
Unit
identifier
Function
code
Address
Write value
Receive
00 01
00 00
00 06
01
06
00 91
00 00
Transmission
identifier
Protocol
identifier
Length
Unit
identifier
Function
code
Address
Write value
Note: 00 00 means disable the registration package mechanism, 00 01 means that only one user-defined registration
package is sent when the first link to the server, 00 02 means that only a registration packet of 6-byte MAC is sent when
the first link to the server, 00 03 means adding custom packet data before each packet sent to the server. 00 04 means
adding 6 bytes of MAC as registration packet data before each packet sent to the server.
4.3.8 Set the registration package contents
Modbus RTU protocol write register:
Send
01
10
00 95
00 15
2A
00 28 41 42 43 68 23 67 AA 00
2A 00 30 00 00 00 00 00 00 00 00
00 00 00 00 11 00 22 00 33 00 44 00
12 33 23 11 10 1D 1C BB AA
1C 91
Device
ModBus
address
Function
code
Address
Register
length
Number
of bytes
Write value
CRC
check
code
Receive
01
10
00 95
00 15
11 EA
Device ModBus
address
Function
code
Address
Register length
CRC check code