USW DN15-DN40 Modbus protocol
USW DN15-DN40 Modbus protocol
Modbus protocol
1. Communication interface: RS485
2. Power supply voltage 24V. After 30 seconds of power
supply, RS485 communication can be performed.
3. Communication parameters:
Default 9600bps, parity check, 8bit data bit, 1bit stop bit, 1bit start
bit.
0xE60 An Abnormal
Water Leak
Occurs
7 Meter active last time 0x05 (As a host, the meter does not
need to feedback after receiving channel data from the slave
machine)
Points to note:
1 Write time is not recommended at the hour, because there
will be data freezing action at the hour
2 Read hour freeze data just on the hour. The same day
freeze and the month freeze problem
Reading command:
3.1 Reading of real-time data
Example 1:
Software hexadecimal sending:
00 03 02 00 00 08 44 65
Address: 00h 0;
Reading function code: 03;
Data register address: 0000, data length 0008
CRC16 Check: CRCL, CRCH: 45 DD
Water meter Reply:
11 03 10 00 00 00 00 00 00 7E BD 00 00 00 00 00 01 F0 89
FA 75
11 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 93 62 DC
F8 4E
Water meter Modbus Address: 17 (0x11)
Data byte length: 10h 16
Read reverse flow 8 bytes: 00 00 00 00 00 00 7E BD: that is
0x7EBD, decimal 32.445 L.
Flow 8 bytes: 00 00 00 00 00 01 F0 89 is 0x1F089, 127.113 L
in decimal.
Example 2:
Software hexadecimal sending:
00 03 08 02 00 03 A7 BA
11 03 06 00 00 04 F7 00 40 5D 87
11 03 06 00 01 79 4F 00 40 F8 0E
Flow 4 bytes: 00 00 04 F7 is 0x4F7, 127.1L in decimal
Status 2 bytes: 00 4
3.2 Read of historical data
1, historical data can be read one time at a time.
2, the hourly historical data can only read 16 registers at a
time, and the daily and monthly historical data can read 32
registers at a time.
3, the existing history register is only used for 8 contents, and
the rest is reserved register
4, the number of existing historical data records, 316 hours of
historical data, 366 days of historical data, 84 months of
historical records. It may be adjusted later according to the
need. Set 0xFF for all data in the hyperhistory
Example 1:
Read the historical hour data
Upper computer hexadecimal sending:
00 03 20 02 00 04 EF D8 // Accumulated flow and
accumulated working time 1 hour before reading
Meter feedback: 11 03 08 00 01 79 4F 00 00 00 1D 4F B9
11 03 2C 00 00 00 00 00 01 11 48 00 00 00 15 3B 09 09 03
07 E5 FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 4C 62
11 03 2C 00 00 00 00 00 00 00 36 00 00 00 00 3B 0C 08 03
07 E5 FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF AF 6E
11 03 2C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
07 D0 FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 16 A5
Read the freeze day data
00 03 70 20 00 06 DF 13 /// Read the previous 2 days
11 03 0C 00 00 00 00 00 00 00 00 00 00 00 00 83 7C
11 03 40 00 00 00 00 00 00 8F 3E 00 00 00 0B 3B 17 08 03
07 E5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF
FF FF FF FF FF 00 ED
11 10 00 01 00 06 0C 00 07 00 23 00 12 00 03 00 05 07 E4
FC BA
11 10 00 01 00 06 13 5B
Meter feedback
11 10 00 0C 00 06 82 98
Addendum
Table System Status word ST
Status ST The first byte defines the table
D0 D1 D2 D3 D4 D5 D6 D7
Flow Installati
Battery Tempe sensor on
Definition Reser voltage Pipe Water rature failure position
burst Leaks anoma or status
ly empty
pipe
0: 0: 0: 0: 0: 0:
Instructio Reser Normal normal Normal Norma normal
normal
ns chu 1: pipe 1: 1: faulty 1:
1: low burst Leakin 1: Revers
voltage g anoma e
ly