Chengdu Ebyte Electronic Technology Co.,Ltd E851-RTU(4440-ETH) User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
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:
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
Modbus TCP protocol writes WAN port parameters: