![Ebyte E851-RTU Скачать руководство пользователя страница 31](http://html1.mh-extra.com/html/ebyte/e851-rtu/e851-rtu_user-manual_3947805031.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd
E851-RTU(4440-ETH) User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
30
Transmission
identifier
Protocol
identifier
length
element ID
Function
code
address
Write value
4.4.6. IP parameter setting of local WAN port
Local IP acquisition includes static IP acquisition and dynamic IP acquisition (DHCP). There are 34 registers from 0xb1
to 0xd2. When the value in the first register (0XB1) is 1, it is static IP mode and dynamic acquisition mode when it is 0.
From 0XB2 to 0XBC, a total of 11 registers are stored in the local ip address, where 0XB2 stores the length of the ip
address, and 0XB3 to 0XBC stores the ASCII value of the IP address. From 0XBD to 0XC7, a total of 11 registers are
stored in the subnet mask information, where 0XBD stores the length of the subnet mask address, and 0XBE to 0XC7
stores the ASCII code value of the subnet mask address. From 0XC8 to 0XD2, a total of 11 registers are stored in the
gateway address, where 0XC8 stores the length of the gateway address, and 0XC9 to 0XD2 stores the ASCII code value
of the gateway address.
You can use 10 function codes to write in one time. As with the server IP settings, note that the unfilled registers are filled
with 0. The following command indicates that it is set to static IP, the local IP address is 192.168.4.101, the subnet mask
is 255.255.255.0, and the gateway is 192.168.4.1. Note that the corresponding ASCII code value should be written when
writing, and Convert to hexadecimal.
Modbus RTU protocol configures WAN port parameters:
Transmit
01
10
00 B1
00 22
44
00 01 00 0D 31 39 32 2E 31 36 38 2E 34 2E 31 30 31
00 00 00 00 00 00 00 00 0D 32 35 35 2E 32 35 35 2E
32 35 35 2E 30 00 00 00 00 00 00 00 00 0B 31 39 32
2E 31 36 38 2E 34 2E 31 00 00 00 00 00 00 00 00 00
31 16
Device ModBus
address
functio
n code
address
Register
Length
Bytes
Write value
CRC
check code
Receive
01
10
00 B1
00 22
10 37
Device ModBus address
function code
address
Register Length
CRC
check code
Modbus TCP protocol writes WAN port parameters:
Содержание E851-RTU
Страница 1: ...E851 RTU 4440 ETH User Manual...