
Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
29
Description:
00 00
means TCP server, the value can be: 00 01 means TCP client, 00 02 means UDP server, 00 03 means
UDP client.
C0 A8 04 0A
represents the IP address or domain name of the target server,
22 B6
port number, local port
number in server mode and remote port number in client mode when set to "client".
4.4.7
Setting up 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
identification
length
Unit
identification
Function
code
address
Write value
Receive
00 01
00 00
00 06
01
06
00 91
00 00
Transmission
identifier
Protocol
identification
length
Unit
identification
Function
code
address
Write value
Description:
00 00
means to disable the registration package mechanism, the value can be: 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 6-byte MAC is sent
when the first time is linked to the server. The registration package, 00 03 indicates that the custom registration packet
data is added before the packet sent to the server for each packet, and 00 04 indicates that the 6-byte MAC is added as the
registration packet data before the packet sent to the server for each packet.
4.4.8
Set the contents of the registration package
Modbus RTU protocol write register
:
Se
nd
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
Func
tion
code
ad
dr
es
s
Registe
r
length
byte
count
Write value
CRC
check
code