
Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
27
Send
01
10
00 6B
00 07
0E
00 00 C0 A8 04 65 FF FF FF 00 C0 A8
04 01
BE 17
Device
ModBus
address
Function
code
address
Register
length
byte
count
Write value
CRC check code
Receiv
e
01
10
00 6B
00 07
F0 17
Device ModBus address
Function
code
address
Register length
CRC check code
Modbus TCP protocol write register
:
Sen
d
00
01
00 00
00
15
01
10
00 6B
00 07
0E
00 00 C0 A8 04 65 FF FF FF 00 C0 A8 04 01
Tran
smis
sion
iden
tifie
r
Proto
col
identi
ficati
on
leng
th
Unit
identif
icatio
n
Fu
nct
ion
cod
e
addre
ss
Register
length
byte
cou
nt
Write value
Recei
ve
00 01
00 00
00 15
01
10
00 6B
00 07
Transmission
identifier
Protocol
identificati
on
length
Unit
identificati
on
Function
code
address
Register length
Note:
00 00
indicates static mode. If 00 01 indicates dynamic mode.
C0 A8 04 65
(
192.168.4.101
)
indicates the IP
address.
FF FF FF 00
(
255.255.255.0
)
Subnet mask.
C0 A8 04 01
(
192.168.4.1
)
Gateway address. When set to
dynamic mode, the IP address, subnet mask, and gateway address are required for the format. The IP address of the
device needs to be obtained through the query command.
4.4.5
Set DNS information
Modbus RTU protocol write DNS register
:
Send
01
10
00 79
00 04
08
3D 8B 02 45 C0 A8 04 02
E0 50
Device ModBus
address
Functio
n code
addre
ss
Register
length
byte
count
Write value
CRC
check
code
Receiv
e
01
10
00 79
00 04
10 13
Device ModBus address
Function
code
address
Register length
CRC check code