Ebyte E851-RTU Series User Manual page 25

Hide thumbs Also See for E851-RTU Series:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
or domain name needs to be considered when writing the IP register, that is, how many registers need to be occupied. If the above IP is
written into the modbus register:
Modbus RTU protocol write Socket register:
01
10
send
Device
functi
ModBus
on
address
code
01
take
over
Device ModBus address
Modbus TCP protocol write Socket register:
00 01
00 00
00 37
sen
d
Trans
Protoc
missio
length
ol ID
n ID
00 01
take
Transmissio
over
Protocol ID
n ID
4.4.2 Custom registration package
The custom registration package can be ASCII code or hex, the length of hex cannot be greater than 20 bytes, and the length of
ASCII code cannot be greater than 40 bytes. The first register of the custom registration package is used to store the type of the
registration package. The value 0x0000 indicates that the registration package is in hex format, and the value 0x0001 indicates that the
registration package is in ASCII format. When the value is 0x0001, the registration package value is ABCDEFGHIJ, and the
corresponding ASCII code value Register the package value as shown in the following table. The second register of the custom
registration package is used to store the length of the registration package value. The length of the registration package value is 10,
corresponding to 0x0A in hexadecimal. Like IP registers, unused register packet value registers can be filled with "0" or not filled.
40124(0x007B)
Types of
00 01
The registration package mechanism has 5 modes:
Register package mechanism
Copyright © 2012, Chengdu Ebyte Electronic Technology Co., Ltd.
00 63
00 18
30
register
address
Bytes
length
10
function code
00
01
10
63
Unit
functio
addr
ID
n code
ess
00 00
00 06
length
Unit ID
40125(0x007C)
length
00 0A
00 0D 31 31 36 2E 36 32 2E 34 32 2E 31 39 32 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 C 7 00 0
write value
00 63
address
00 0D 31 31 36 2E 36 32 2E 34 32 2E 31 39 32 00
00 18
30
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
register
Byte
length
s
01
10
function code
40126(0x007D) -- 40145(0x0090)
Registry package value
41 42 43 44 45 46 47 48 49 4A
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
Corresponding function description
E851-RTU(4440-ETH) User Manual
00 18
register length
CRC check code
00 00 00 00 00 00 00 00 00 C 7 00 0
write value
00 63
address
register length
40146(0x0091)
Registry Package
Mechanism
00 01
7B F0
CRC
check
code
30 1D
00 18
25

Advertisement

Table of Contents
loading

Table of Contents