Dts1946 4p Instrukcja Komunikacji
Dts1946 4p Instrukcja Komunikacji
-DTS1946-4P
-DTSF1946-4P
Content
1. Modbus-RTU communication......................................................................................................3
1.1 message format ..................................................................................................................3
1.2 Communication address information table.....................Error: Reference source not found
2. DL/T 645 communicating protocol.............................................................................................14
2.1transfer characteristic.........................................................................................................14
2.2Application description......................................................................................................16
2.3 DL/T 645-1997 communicating protocol.......................Error: Reference source not found
2.3.1 Electric energy data..............................................Error: Reference source not found
2.3.2 Variable data........................................................Error: Reference source not found
2.3.3 Parametric data.......................................................................................................20
2.4 DL/T 645-2007 communicating protocol.........................................................................22
2.4.1 Electric energy data................................................................................................22
2.4.2 Variable data........................................................Error: Reference source not found
2.4.3 Total harmonic distortion data...............................................................................18
2.4.4 Demand data..........................................................................................................19
2.4.5 Reference data........................................................................................................19
1. Modbus-RTU communication
1.1 Message format
Read data register value (function code 0x03/0x04)
numeric data code
frame address
FC Start register Number of check code
structure code
address registers
occupied
master 1byte 1byte 2byte 2byte 2byte
byte
request
data area 1~247 0x03/0x04 Max 100 CRC16
examples
messages
occupied
Slave 1byte 1byte 2byte 12byte 2byte
byte
response
examples
messages
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)
numeric data code
frame address
FC Start register Number of check code
structure code
address registers
occupied
master 1byte 1byte 2byte 2byte 2byte
byte
request
data area 1~247 0x10 0x0802 Max 100 CRC16
examples
messages
occupied
Slave 1byte 1byte 2byte 12byte 2byte
byte
response
examples
messages
Note: Please set the information address table in strict accordance with the following instrument when writing the
setting register. Do not attempt to modify the unused area. The write data does not allow the setting range to be
exceeded. The wrong write-setting register has the potential to cause the instrument to work abnormally. Be
careful.
Set register:
for R/
Address Data description Unit
m W
0801 Int High byte: Power pulse 0x00: 400imp/kWh R/
constant 0x01: 800imp/kWh W
0x02:1600imp/kWh
High byte: loop display 0x01: Cycle display R/
0802 Int !(0x01):Invalid cycle W
Low byte: Power up 0x00:U, 0x01:I
display interface 0x02:F, 0x03:P R/
0x04:Q, 0x05:S W
0x06:PF, 0x07:E
0803 -- -- -- --
0804 Int High byte: Instrument 1-247 R/
address W
Low byte: baud rate 0: 300bps
1: 600bps
2:1200bps
3:2400bps
4:4800bps
5:9600bps
0805 Int High byte: communication 0:N,8,1 R/
data format 1:E,8,1 W
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/
1: stationary block W
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 R/
Fixed 00h:00min
period start time W
8045 Int High byte :00-23:00h R/
First set of day rates #2
Low byte :00-59 W
period start time
minutes
8046 Int High byte :00-23:00h R/
First set of day rates #3
Low byte :00-59 W
period start time
minutes
8047 Int High byte :00-23:00h R/
First set of day rates #4
Low byte :00-59 W
period start time
minutes
8048 Int High byte :00-23:00h R/
First set of day rates #5
Low byte :00-59 W
period start time
minutes
8049 Int High byte :00-23:00h R/
First set of day rates #6
Low byte :00-59 W
period start time
minutes
804A Int High byte :00-23:00h R/
First set of day rates #7
Low byte :00-59 W
period start time
minutes
804B Int High byte :00-23:00h R/
First set of day rates #8
Low byte :00-59 W
period start time
minutes
804C Int High byte :00-23:00h R/
First set of day rates #9
Low byte :00-59 W
period start time
minutes
804D Int High byte :00-23:00h R/
First set of day rates #10
Low byte :00-59 W
period start time
minutes
804E Int High byte :00-23:00h R/
First set of day rates #11
Low byte :00-59 W
period start time
minutes
084F Int First set of day rates #12 High byte :00-23:00h R/
period start time Low byte :00-59 W
minutes
0850 Int Second set of day rates 固定为 00h:00min R/
#1 period start time W
0851 Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#2 period start time
minutes
0852 Int Second set of daily rate High byte :00-23:00h R/
tables #3 period start Low byte :00-59 W
time minutes
0853 Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#4 period start time
minutes
0854 Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#5 period start time
minutes
0855 Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#6 period start time
minutes
0856 Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#7 period start time
minutes
0857 Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#8 period start time
minutes
0858 Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#9 period start time
minutes
0859 Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#10 period start time
minutes
085A Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#11 period start time
minutes
085B Int High byte :00-23:00h R/
Second set of day rates
Low byte :00-59 W
#12 period start time
minutes
085C Int High Byte :#1 Time R/
Rate W
Schedule #1 and #2 rates
Low byte :#2 time
for the first set of day
period rate
rates
0-tip ,1-peak,
2-Flat ,3-valley
085D Int Schedule #3 #4 of the High Byte :#1 Time R/
Rate W
Low byte :#2 time
first set of day rates period rate
0-tip ,1-peak,
2-Flat ,3-valley
085E Int High Byte :#1 Time R/
Rate W
Schedule #5,#6 of the Low byte :#2 time
first set of day rates period rate
0-tip ,1-peak,
2-Flat ,3-valley
085F Int High Byte :#1 Time R/
Rate W
Schedule #7 and #8 rates
Low byte :#2 time
for the first set of day
period rate
rates
0-tip ,1-peak,
2-Flat ,3-valley
0860 Int High Byte :#1 Time R/
Rate W
First set of days rate table Low byte :#2 time
#9,#10 period rate
0-tip ,1-peak,
2-Flat ,3-valley
0861 Int High Byte :#1 Time R/
Rate W
First set of day rates Low byte :#2 time
#11#12 period rate
0-tip ,1-peak,
2-Flat ,3-valley
0862 Int High Byte :#1 Time R/
Rate W
Schedule #1 and #2 rates
Low byte :#2 time
for the second set of daily
period rate
rates
0-tip ,1-peak,
2-Flat ,3-valley
0863 Int High Byte :#1 Time R/
Rate W
Schedule #3#4 of the Low byte :#2 time
second set of daily rates period rate
0-tip ,1-peak,
2-Flat ,3-valley
0864 Int Schedule #5#6 of the High Byte :#1 Time R/
second set of daily rates Rate W
Low byte :#2 time
period rate
0-tip ,1-peak,
2-Flat ,3-valley
0865 Int High Byte :#1 Time R/
Rate W
Schedule #7 and #8 rates
Low byte :#2 time
for the second set of day
period rate
rates
0-tip ,1-peak,
2-Flat ,3-valley
0866 Int High Byte :#1 Time R/
Rate W
Second set of daily rate
Low byte :#2 time
statement #9,#10 period
period rate
rates
0-tip ,1-peak,
2-Flat ,3-valley
0867 Int High Byte :#1 Time R/
Rate W
Second set of daily rate
Low byte :#2 time
table #11,#12 period
period rate
rates
0-tip ,1-peak,
2-Flat ,3-valley
0868 Int High byte: January-day R/
rate table W
Low byte: February-
Monthly rates day rate table
(January/February) 0 : First set of daily
rates
1: second set of daily
rates
0869 Int High byte: March day R/
rate table W
Low byte: April-day
Monthly rates rate table
(March/April) 0 : First set of daily
rates
1: second set of daily
rates
086A Int Monthly rates (May/June) High byte: May Day R/
rate table W
Low byte: June-day
rate table
0 : First set of daily
rates
1: second set of daily
rates
086B Int High byte: July Day R/
rate table W
Low byte: daily August
Monthly rate schedule rate table
(July/August) 0 : First set of daily
rates
1: second set of daily
rates
086C Int High byte: September- R/
day rate table W
Low byte: October-day
rate table
Monthly rates (9 October)
0 : First set of daily
rates
1: second set of daily
rates
086D Int High byte: November R/
Day rate table W
Low byte: December
Monthly rates (11 day rate table
December) 0 : First set of daily
rates
1: second set of daily
rates
086E Int High byte :00-23:00h R/
Meter reading day Low byte :00-59 W
minutes
explain code
frame start 68H
A0
A1
A2
address field
A3
A4
A5
frame start 68
control code C
Data length domain L
data field DATA
check code CS
tailed 16H
The frame format is shown below.
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
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.