Network Related Functions - Ebyte E851-RTU Series User Manual

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

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
4.3.3 Time setting of digital output DO
Switching value pulse output time setting is to set the switching value output time (relay NO, COM closing time), the
corresponding Modbus register is 40083 (0x0052), the value range is 300-65535ms, if the value is lower than 300ms, the default
switching value output Closed is the holding state, that is, the switching value output is kept after it is closed. If it is set to 300ms and
above, such as 500ms, after sending the switching value output closing command, the switching value will be closed for 500ms, and
then it will be automatically disconnected after 500ms.
4.3.4 Digital DO restart output state setting
Whether the device is powered off and restarted to maintain the state before power failure or restart to maintain a specific output
state setting, this function is only valid when the device switch output time setting register value is less than 300ms.
The Modbus register corresponding to the switch restart output state setting is 40085 (0x0054), and its value range is 0x00-0x10.
When the value of this register is 0x10, the last switching output state will be maintained after power off and restarting; when the value
of this register is 0x00-0x0F, the lower four bits determine the switching output state of the device restart, bit4 corresponds to DO4,
and bit3 corresponds to DO3, bit2 corresponds to DO2, and bit1 corresponds to DO1. For example, when power is turned on, DO4 and
DO2 are closed (relay NO and COM are closed) DO3 and DO1 are disconnected (relay NO and COM are disconnected), and the
corresponding register value is 0000 1010, namely 0xa0, "1" is closed state, "0" is open state.

4.4 Network related functions

4.4.1 Server IP or domain name, port, TCP or UDP settings (Socket)
The server IP or domain name is saved by 22 modbus registers. The first register is used to store the ASCII code length
corresponding to the IP or domain name, and the remaining registers are used to store the ASCII code value corresponding to the IP or
domain name. For example, the IP is 116.62.42.192, the port is 31687, a total of 13 characters, that is, the length is 0x000D, and the
ASCII code value corresponding to the IP is 31 31 36 2E 36 32 2E 34 32 2E 31 39 32, the corresponding modbus register storage
value is as follows surface. If it is a domain name, the corresponding domain name is also converted into the hexadecimal
corresponding to ASCII for storage. (Note: The maximum length of the domain name does not exceed 40 ASCII codes)
Port 31687, corresponding to hexadecimal 7BC7; the protocol type (TCP, UDP) is stored in the protocol register, the value
0x0001 corresponds to the TCP protocol, and the value 0x0000 corresponds to the UDP protocol. That is, when the IP is 116.62.42.192,
the port is 31687, and the TCP protocol, the unused IP or domain name registers can be filled with "0" or not. If you need to use the
function code "0x10" to write the IP, domain name, and port at one time , protocol type, then the unused registers must be filled with
values in order to continuously write modbus registers, the corresponding register values are as follows:
40100(0x0063)
IP or domain
name length
00 0D
Since the length of the IP or domain name register is greater than the length of the IP or domain name value, the length of the IP
Copyright © 2012, Chengdu Ebyte Electronic Technology Co., Ltd.
40101(0x0063)
length
00 0D
40101(0x0064) -- 40121(0x0078)
IP or domain name value
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 00 00 00
40101(0x0064) -- 40121(0x0078)
IP or domain name value
31 31 36 2E 36 32 2E 34 32 2E 31 39 32
40122 (0x0079)
server port
7B C7
E851-RTU(4440-ETH) User Manual
40123(0x007A)
TCP protocol
00 01
24

Advertisement

Table of Contents
loading

Table of Contents