Chengdu Ebyte Electronic Technology Co.,Ltd
E821-RTU (0400-ETH)User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
24
24
Note: 00 00 is network heartbeat package, 00 01 is serial port heartbeat package.
4.3.10 Set heartbeat package content
Modbus RTU protocol write register:
Receive
01
10
00 E9
00 15
D0 32
Device ModBus
address
Function
code
Address
Register length
CRC check code
Modbus TCP protocol write register:
Se
nd
00 01
00 00
00 31
01
10
00 E9
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 1B 1A
Transm
ission
identifi
er
Protocol
identifier
Length
Unit
identifier
Function
code
Address
Register
length
Number
of bytes
Write value
Recei
ve
00 01
00 00
00 31
01
10
00 E9
00 15
Transmission
identifier
Protocol
identifier
Length
Unit identifier
Function
code
Address
Register
length
Note: 00 is HEX, 01 is ASCII. 28 is the content length of the heartbeat packet. 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 1B 1A is heartbeat package content.
For example: send the heartbeat package content: ebyte, the write value is 01 05 65 62 79 74 65 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4.3.11 Set heartbeat package time
Modbus RTU protocol write register:
Send
01
06
01 41
01 AA
59 CD
Device ModBus
Function
Address
Write value
CRC check code
Send
01
10
00 E9
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 1B 1A
9D 8C
Device
ModBus
address
Function
code
Address
Register
length
Number
of bytes
Write value
CRC
check
code