DPM4 - Modbus Table - EN
DPM4 - Modbus Table - EN
modbus address
DPM4M
DPM4C
2
3
Content
1. Modbus-RTU communication ....................................................................................................... 4
1.1 message format ................................................................................................................. 4
1.2 Communication address information table ........................................................................ 5
2. DL/T 645 communicating protocol .............................................................................................. 13
2.1transfer characteristic ........................................................................................................ 13
2.2Application description ...................................................................................................... 14
2.3 DL/T 645-1997 communicating protocol .......................................................................... 17
2.3.1 Electric energy data................................................................................................ 17
2.3.2 Variable data .......................................................................................................... 18
2.3.3 Parametric data ...................................................................................................... 19
2.4 DL/T 645-2007 communicating protocol .......................................................................... 20
2.4.1 Electric energy data................................................................................................ 20
2.4.2 Variable data .......................................................................................................... 21
2.4.3 Total harmonic distortion data ............................................................................... 22
2.4.4 Demand data .......................................................................................................... 23
2.4.5 Reference data ....................................................................................................... 23
4
1. Modbus-RTU communication
1.1 Message format
Read data register value (function code 0x03/0x04)
frame addre numeric data code
check
structu ss FC Start register Number of
code
re code address registers
occupi
ed 1byte 1byte 2byte 2byte 2byte
byte
master
data 1~ 0x03/0x0
request Max 100 CRC16
area 247 4
exampl
es
of 0x01 0x03 0x00 0x00 0x00 0x06 0xC5 0xC8
messag
es
frame addre numeric data code
check
structu ss FC Register
register value code
re code bytes
occupi
Slave
ed 1byte 1byte 2byte 12byte 2byte
respon
byte
se
exampl
es of
0x01 0x03 0x0C 12 CRC16
messag
es
Note: The start register address of the host request is the data header address of the query. The
number of the registers is the length of the query data. For example, the address of the upper
start register is the "0x0000", and the number of the registers is 6 (0x0006).
Write setting register (function code 0x10)
frame addre numeric data code
check
structu ss FC Start register Number of
code
re code address registers
occupi
ed 1byte 1byte 2byte 2byte 2byte
byte
master
data 1~
request 0x10 0x0802 Max 100 CRC16
area 247
exampl
es
of 0x01 0x10 0x08 0x02 0x00 0x06 0x2FE2
messag
es
5
Set register:
Address form Data description Unit R/W
0801 Int High byte: Power pulse constant 0x00: 400imp/kWh R/W
0x01: 800imp/kWh
0x02:1600imp/kWh
High byte: loop display 0x01: Cycle display R/W
0802 Int !(0x01):Invalid cycle
Low byte: Power up display 0x00:U, 0x01:I
interface 0x02:F, 0x03:P R/W
0x04:Q, 0x05:S
0x06:PF, 0x07:E
0803 -- -- -- --
0804 Int High byte: Instrument address 1-247 R/W
Low byte: baud rate 0: 300bps
1: 600bps
2:1200bps
3:2400bps
4:4800bps
5:9600bps
0805 Int High byte: communication data 0:N,8,1 R/W
format 1:E,8,1
2:O,8,1
3:N,8,2
0806-0810 -- -- -- --
0811 Int Current change ratio R/W
0812-081F -- -- -- --
0820 Int Required items Default active reactive R
power apparent power
0821 Int Work mode required 0: Sliding block R/W
1: stationary block
0822 Int Demand slip time(t) 1~9999s R/W
0823 Int Demand cycle(T) 1~30t R/W
0824-0843 -- -- -- --
0844 Int First set of day rates #1 period
Fixed 00h:00min R/W
start time
8045 Int First set of day rates #2 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
8046 Int First set of day rates #3 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
8047 Int First set of day rates #4 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
8048 Int First set of day rates #5 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
10
8049 Int First set of day rates #6 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
804A Int First set of day rates #7 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
804B Int First set of day rates #8 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
804C Int First set of day rates #9 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
804D Int First set of day rates #10 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
804E Int First set of day rates #11 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
084F Int First set of day rates #12 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
0850 Int Second set of day rates #1 period Fixed 00h:00min R/W
start time
0851 Int Second set of day rates #2 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
0852 Int Second set of daily rate tables #3 High byte :00-23:00h R/W
period start time Low byte :00-59 minutes
0853 Int Second set of day rates #4 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
0854 Int Second set of day rates #5 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
0855 Int Second set of day rates #6 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
0856 Int Second set of day rates #7 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
0857 Int Second set of day rates #8 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
0858 Int Second set of day rates #9 period High byte :00-23:00h R/W
start time Low byte :00-59 minutes
0859 Int Second set of day rates #10 High byte :00-23:00h R/W
period start time Low byte :00-59 minutes
085A Int Second set of day rates #11 High byte :00-23:00h R/W
period start time Low byte :00-59 minutes
085B Int Second set of day rates #12 High byte :00-23:00h R/W
period start time Low byte :00-59 minutes
085C Int High Byte :#1 Time Rate R/W
Low byte :#2 time period
Schedule #1 and #2 rates for the
rate
first set of day rates
0-tip ,1-peak,
2-Flat ,3-valley
085D Int Schedule #3 #4 of the first set High Byte :#1 Time Rate R/W
11
rates
086D Int High byte: November Day R/W
rate table
Low byte: December day
Monthly rates (Nov/Dec) rate table
0: First set of daily rates
1 : second set of daily
rates
086E Int High byte :00-23:00h R/W
Energy record day
Low byte :00-59 minutes
2. DL/T 645 Communicating protocol
2.1 Transfer characteristic
The main-slave half-duplex communication mode and the establishment and
cancellation of communication links are controlled by the information frames sent by the main
station. Each frame has a frame starter, which is composed of seven parts: station address
domain, control code, data length, frame information longitudinal check code and frame
Terminator. Each part consists of a number of bytes.
Half dual port communication mode, baud rate: 1200bps;
Byte format: each byte contains 8-bit binary code, with a starting bit (0), an even check
bit and a stop bit (1). The transmission sequence as shown in figure 1.D0 is the lowest valid bit
of bytes and D 7 is the highest valid bit of bytes. Pass low first, then pass high.
0 D0 D1 D2 D3 D4 D5 D6 D7 P 1
Transmission direction
frame start 68
control code C
Data length domain L
data field DATA
check code CS
tailed 16H
14
Address field A0-A5:2-bit BCD code per byte. The low address is before and the high address
is after. When the address is 99 99 99 99 99 H, it is the broadcast address.
The communication address uses the table number, and at least 2 bits or more of the low
table number bit can be entered to communicate. Less input can be easily operated.
Frame format:
Write data:
Write data request frame
The functional master station requests setting data (or programming) from the slave station
Control code C = 04H
Data length L ≤ 02H m (data length) password 4 bytes
Frame format:
68 04
68H A0 .. A5 L DI0 DI1 PAn P0N P1N P2N N1 。。 Nm CS 16H
H H
Frame format:
slave station anomaly response frame
Control code C=C4H
Data length L = 01H
Frame format:
68H A0 。。。 A5 68H C4H 01H ERR CS 16H
broadcast school
Functions Synchronize slave and master station time.
Control code C = 08H
Data length L = 06H
Data field YYMMDDhhhmss
Frame format:
68H 99H … 99H 68H 08H 06H ss mm hh DD MM YY CS 16H
Note:
1. No response is required when broadcasting school.
2. Broadcasting schools are not allowed to be implemented within the range of 23 / 50 / 10.
3.School hours can only be allowed once a day, with a range of 30 seconds per minute. The
maximum allowable error in broadcasting school is ±20 minutes.
rate
Note:
The address of the device and the communication rate shall be changed, and the communication
protocol of the multi-function electric energy meter shall be in accordance with the DL/ T645-1997
<multifunction electric energy meter communication protocol.
When you change the communication parameters,1 Byte (right) + 3 Byte (password) is required to
place the identification code. The default permissions and passwords are:00000000.
3 meter running status word 2 [C023] (1: reverse, 0: forward)
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
total -- -- -- Total -- -- --
reactive active
direction power
direction
01 energy[valley]
0001FF 20 kWh * last month active power
01 data packet
000100 XXXXXX.XX 4 kWh * Active electricity [total] last
02 month
000101 XXXXXX.XX 4 kWh * The last month was active
02 [sharp].
000102 XXXXXX.XX 4 kWh * last month active
02 energy[peak]
000103 XXXXXX.XX 4 kWh * Last month active
02 energy[Ping]
000104 XXXXXX.XX 4 kWh * Active electricity [valley]
02 last month
0001FF 20 kWh * Active power packet last
02 month
Note:
The communication address shall be written and the communication protocol of the multi-function
electric energy meter shall be in accordance with the DL/ T645-2007 <multifunction electric energy
meter communication protocol.
When you change the communication parameters, a 4 Byte (password) + 4 Byte (operator code) is
required to place the identification code. The default password and operator code are:
01010102020202.
3 meter running status word 2 [04000502] (1: reverse, 0: forward)
Bit15 Bit14 Bit13 Bit12 Bit11 Bit10 Bit9 Bit8
leave out leave leave out leave out leave out leave out leave out leave out
out
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
reactive leave out leave out leave out active leave out leave out leave out
direction direction
The information in this document is subject to changes without any further notice.