
Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
23
address
code
bytes returned
value
value
code
Modbus TCP protocol Read Pulse Count Value
:
Send
00 01
00 00
00 06
01
03
00 30
00 02
Transmission
identifier
Protocol
identification
length
Unit
identificati
on
Function
code
start address
Read the number
Receive
00 01
00 00
00 07
01
03
04
00 10
00 03
Transmiss
ion
identifier
Protocol
identificatio
n
length
Unit
identificatio
n
Functio
n code
Number of
bytes returned
DI1 count
value
DI2count
value
Clear pulse count value
Function code: 06, write hold register
Address range: 40065 (0x0040)
Description: the register value of six bits lower represents the counting of DI6, DI5, DI4, DI3, DI2 and DI1
respectively.
Example:
Clear the values of DI2 and DI4 pulse meter, and keep the values of DI1, DI3, D5 and D6 pulse meter. The write
value should be 0x0a, and the corresponding binary value should be 0000 1010.
Modbus RTU Protocol clear pulse count value
Send
01
06
00 40
00 0a
08 19
Device ModBus
address
Function
code
address
Write value
CRC check code
Receive
01
06
00 40
00 0a
08 19
Device ModBus
address
Function
code
address
Write value
CRC check code
Modbus TCP Protocol clear pulse count value
Send
00 01
00 00
00 06
01
06
00 40
00 0a
Transmissio
n identifier
Protocol
identificatio
n
length
Unit
identification
Function
code
address
Write value
Receive
00 01
00 00
00 06
01
06
00 40
00 0a
Transmissi
on
identifier
Protocol
identificatio
n
length
Unit
identificatio
n
Function
code
address
Write value