Ebyte E851-RTU Series User Manual page 23

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

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
4.3.1.2 Clear pulse count value
Function code: 06, write holding register
Address range: 40065 (0x0040)
Explanation: The lower four bits of the register value represent the counting of DI4, DI3, DI2, and DI1 respectively. Writing "1"
means that the counting is cleared, and the pulse counting is restarted.
example:
Clear the pulse count values of DI2 and DI4, and retain the pulse count values of DI1 and DI3. The written value should be 0x0a,
the corresponding binary value is 0000 1010,
Modbus RTU protocol clear pulse count value :
01
send
Device ModBus
address
01
take over
Device ModBus address
Modbus TCP protocol clear pulse count value :
00 01
send
Transmission
ID
00 01
take over
Transmissio
n ID
4.3.2 Automatic reporting of digital input DI
The switch value input automatic reporting function is to transmit the changed value when the switch value changes. You can
choose to transmit via RS485 or GPRS, or you can turn off the automatic reporting function.
The Modbus register corresponding to the switch value automatic reporting setting is 40082 (0x0051), and the value corresponds
to the function:
Turn off the switch value automatic reporting function
The switching value is automatically reported and transmitted through RS485
The switching value is automatically reported and transmitted through the GPRS network
The upload protocol for switching value changes is listed in the table below, where the frame headers 0xAA and 0xBB are fixed,
and the value ranges of DI1, DI2, DI3, and DI4 are 0x00, 0x01, and 0xFF.
0x00 means that the digital input is disconnected,
0x01 means the switch input is closed,
0xff means that the digital input has not changed,
The values of DI1, DI2, DI3, and DI4 in the table represent that the state of DI1 and DI2 is updated to be open, the state of DI3 is
updated to be closed, and the state of DI4 has not changed. The last two bytes are modbus CRC16 calculation value.
frame header
0xAA 0xBB
Copyright © 2012, Chengdu Ebyte Electronic Technology Co., Ltd.
06
function code
06
function code
00 00
00 06
Protocol
length
ID
00 00
00 06
Protocol ID
length
DI1
DI2
0x00
0x00
00 40
address
00 40
address
01
06
function
Unit ID
code
01
06
function
Unit ID
code
DI3
0x01
E851-RTU(4440-ETH) User Manual
00 0a
write value
CRC check code
00 0a
write value
CRC check code
00 40
address
write value
00 40
address
write value
DI4
Modbus CRC
0xff
0xBD 0xDA
08 19
08 19
00 0a
00 0a
23

Advertisement

Table of Contents
loading

Table of Contents