V51 串行通信接口說明
1. 介紹
V51 裝備了 2 個(gè)串行通訊接口,一個(gè)是 IR 紅外通訊接口,一個(gè)是 RS485/USART。
USART 即邏輯電平的串行接口,適合直接與外部其他 MCU " />
行業(yè)新聞

大連海峰雙聲道水表通訊協(xié)議-大連海峰超聲波流量計(jì)

2024-09-18 15:10:35 閱讀次數(shù):0

第一部分
V51 串行通信接口說明
1.  介紹
V51  裝備了 2 個(gè)串行通訊接口,一個(gè)是 IR 紅外通訊接口,一個(gè)是 RS485/USART。
USART 即邏輯電平的串行接口,適合直接與外部其他 MCU 通訊,功耗很低
2.  串行通訊接口默認(rèn)設(shè)置
RS485/USART                 9600,N,8,1
IR                           9600,N,8,1
3.  更改串口默認(rèn)設(shè)置
所有串口的參數(shù)的設(shè)置可以通過一個(gè)基于 PC 的名稱為 V49_SETUP 的軟件完成。
當(dāng)前串口參數(shù)顯示在 M0E 菜單
4.  支持的通訊協(xié)議
a. HART
b. MODBUS
c. M-BUS
d. Haifeng ASCII(海峰 ASCII 碼協(xié)議)
e. CJ188
f. Protocols used by Huizhong(.匯中儀表各類協(xié)議)

第二部分
HART協(xié)議
  1. Referenced Documents
SCF_SPEC-054    FSK Physical Layer Specification                 Version 8.1
SCF_SPEC-081    Data Link Layer Specification                    Version 8.0
SCF_SPEC-127    Universal Command Specification                 Version 6.0
SCF_SPEC-051    Common Practice Command Specification          Version 8.0
SCF_SPEC-081    Common Tables Specification                    Version 13.0
SCF_SPEC-307    Command Response Code Specification            Version 5.0
SCF_SPEC-099    Command Summary Specification                 Version 8.0
  2. Expanded Device Type cod
Manufacturer ID                =252  (0xFC, unknown)
Manufacturers’ Device Type Code  =245  (0xF5)
3. Communication Setups
FSK on Current Loop      Baud Rate 1200, Even, 8,1
RS485                  Baud Rate 300~9600, Even, 8,1
IR Communicator         Baud Rate 300~9600, Even, 8,1
Address by Manufacturer   1
Initial Hart Tag           TSF-V49C
Burst Mode              do not support
4. General Transmitter Information
   4.1  Variables Map
         Code
Variable
Unit
  0
flow rate
m3/h
  1
flow positive total
M3, Liter, Gallon, Cubit feet
  2
heat(energy) rate
kW
  3
heat positive total
kWh, BTU,MJ
  4
Temperature T1
Degree Celsius
  5
Temperature T2
Degree Celsius
  6
Temperature difference
Degree Celsius
  7
Flow velocity
m/s
  8
T1 sensor resistance
Ohm
  9
T2 sensor resistance
Ohm
  10
CPU temperature
Degree Celsius
  11
Frequency percentage
%
  12
Battery voltage
Volt
  13
Total travel time
Seconds
  14
Delta travel time
Seconds
  15
Negative total flow
M3, Liter, Gallon, Cubit feet
  16
Total Flow today
M3, Liter, Gallon, Cubit feet
  17
Total Flow this month
M3, Liter, Gallon, Cubit feet
  18
Total Flow this year
M3, Liter, Gallon, Cubit feet
  19
Calibration total   
M3, Liter, Gallon, Cubit feet
  20
Negative total heat
kWh, BTU,MJ
  21
Total heat today
kWh, BTU,MJ
  22
Total heat this month
kWh, BTU,MJ
  23
Total heat Tariff 2
kWh, BTU,MJ
Not realized yet
24
Total heat Tariff 3
kWh, BTU,MJ
Not realized yet
25
Pipe outer diameter
mm
  26
Total working Hours
hour
  27
Total Failure hours
hour
  28
Calibration Duration
seconds
      4.2   電流環(huán)輸出映射 Current Loop Mapping
電流環(huán)輸出唯一地映射在瞬時(shí)流量上
4.3   非遺失性數(shù)據(jù)儲存
4.3.1   所有累積有關(guān)的數(shù)據(jù)自動(dòng)每 2 分鐘一次儲存在  EEPROM 上.
4.3.2   HART Tag  等信息儲存在 EEPROM 上  (地址  0x700-0x7FF)
4.3.3   裝置地址會在設(shè)置之后 2 分鐘內(nèi)儲存在 EEPROM 上。命令 42  會導(dǎo)致 EEROM 的
自動(dòng)儲存一次。
4.3.4   前導(dǎo)符個(gè)數(shù)設(shè)置會在設(shè)置之后 2 分鐘內(nèi)儲存在 EEPROM 上。命令 42  會導(dǎo)致
EEROM 的自動(dòng)儲存一次。
4.4 Multi-drop Mode
V49  不支持 Multi-drop Mode 工作模式.
4.5 Burst Mode
V49  不支持  Burst Mode 工作方式
5  支持的命令
5.1  通用命令
0   Read Unique Identifier  
1   Read Primary Variable (i.e. flow rate)
2   Read
3  Read Dynamic Variables and Loop current
6  Write polling address
7  Read loop configuration
8  Read Dynamic Variables Classifications
9  Read device Variables and status
11 Read unique identifier associated with Tag
12 Read message
13 Read Tag, descriptor and Date
14 Read Primary Variable transducer information
15 Read Device Information
16 Read Final assembly number
17 Write message
18 Write Tag, descriptor and Date
19 Write Final assembly number
20 Read Long Tag
21 Read unique identifier associated with Long Tag
22 Write Long Tag
5.2  常用命令
33    Read Device Variables
42    Perform device reset
40    Enter/exit fixed current mode
43    Set Primary variable zero     (to perform a Zero Setting
45    Trim Current Loop Zero      (to adjustment current loop to 4mA)
46    Trim Current Loop Gain      (to adjustment current loop to 20mA)
59    Write number of the response preamble
第三部分
MODBUS 協(xié)議
1. MODBUS  出廠默認(rèn)設(shè)置
1.1 RS485
波特率    9600     (可設(shè)置 300,600,1200,2400,4800,9600)
校驗(yàn)和    None     (可設(shè)置 None, Even, Odd)
地址     1
1.2 IR
波特率    9600     (可設(shè)置 300,600,1200,2400,4800,9600)
校驗(yàn)和    None     (可設(shè)置 None, Even, Odd)
地址     1
以上參數(shù)顯示在 M0E 和 M10 菜單上
2. MODBUS 其他細(xì)節(jié)
2.1
2.2
2.3
2.4
3. MODBUS  常用寄存器地址表
寄存器地址
寄存器數(shù)目
寄存器名稱
數(shù)據(jù)格式
說明
0001-0002
2
瞬時(shí)流量
IEEE754
單位:  m3/h
0003-0004
2
瞬時(shí)熱量
IEEE754
單位:  kW
0005-0006
2
流體速度
IEEE754
單位:  m/s
          0009-0010
2
正累積流量  參見注1
LONG
單位:m3,L,GAL,ft3
0011-0012
2
正累積流量小數(shù)部分
IEEE754
  0013-0014
2
負(fù)累積流量
LONG
單位:m3,L,GAL,ft3
0015-0016
2
負(fù)累積流量小數(shù)部分
IEEE754
單精度浮點(diǎn)數(shù), 也稱為 FLOAT格式
0017-0018
2
正累積熱量
LONG
單位: kWh, GJ, KBTU
0019-0020
2
正累積熱量小數(shù)部分
IEEE754
  0021-0022
2
負(fù)累積熱量
LONG
單位: kWh, GJ, KBTU
0023-0024
2
負(fù)累積熱量小數(shù)部分
IEEE754
  0025-0026
2
凈累積流量
LONG
單位:m3,L,GAL,ft3
0027-0028
2
凈累積流量小數(shù)部分
IEEE754
  0029-0030
2
凈累積熱量
LONG
單位: kWh, GJ, KBTU
0031-0032
2
凈累積熱量小數(shù)部分
IEEE754
  0033-0034
2
供水管溫度T1
IEEE754
單位:  ℃
0035-0036
2
回水管溫度T2
IEEE754
單位:  ℃
          0053-0055
3
日歷(日期和時(shí)間) 
  BCD
可寫.  6 字節(jié) BCD  表
示  SMHDMY,低字
節(jié)在前
0056
1
日期和時(shí)間自動(dòng)保存 
  BCD
可寫.
例如 0512H 表示 
5日12時(shí) 
0012H 表示每天12時(shí)
0057
1
寫入保護(hù)狀態(tài)密碼
Integer
可寫
0058
1
進(jìn)入睡眠狀態(tài)的代碼
Integer
可寫。寫入  0x5A58F  將進(jìn)入睡眠方式
0059
1
按鍵寫入
Integer
可寫
0060
1
顯示移動(dòng)到菜單的號碼
Integer
可寫
0061
1
當(dāng)前顯示的菜單
Integer
可寫
0062
1
主通訊地址
Integer
可寫,最大值255
0063
1
BC timer
Integer
寫入0啟動(dòng)BC
0064
1
OCT脈沖1
Integer
  0065
1
OCT脈沖2
Integer
            0071
1
補(bǔ)充的錯(cuò)誤代碼
Bits
參注4
0072
1
錯(cuò)誤代碼
Bits
參注5
0077-0078
2
T1溫度電阻阻值
IEEE754
單位:Ω
0079-0080
2
T2溫度電阻阻值
IEEE754
單位:Ω
0081-0082
2
總傳播時(shí)差
IEEE754
單位: uS
0083-0084
2
傳播時(shí)差
IEEE754
單位: nS
          0092
1
信號質(zhì)量
Integer
聲道1在低位
0093
1
#1聲道信號強(qiáng)度
Integer
范圍:0~4095
  0094
1
#2聲道信號強(qiáng)度
Integer
0095
1
電池電量
Integer
V=REG95*(2.5/4096)
          0099-0100
2
雷諾數(shù)
IEEE754
  0101-0102
2
雷諾修正系數(shù)
IEEE754
            0105-0106
  總工作時(shí)間
Long
單位: Seconds
0107-0108
  上電次數(shù)
Long
  0109-0110
  CPU溫度
IEEE754
單位:  ℃
          0113-0114
2
凈累積流量 (浮點(diǎn)數(shù)格式)
IEEE754
單位: m3/h
Signal Accuracy.
  Not Recommended
to read these Registers with new developments due to limited accuracy
0115-0116
2
正累積流量 (浮點(diǎn)數(shù)格式)
IEEE754
0117-0118
2
負(fù)累積流量 (浮點(diǎn)數(shù)格式)
IEEE754
0119-0120
2
凈累積熱量 (浮點(diǎn)數(shù)格式)
IEEE754
0121-0122
2
正累計(jì)熱量 (浮點(diǎn)數(shù)格式)
IEEE754
0123-0124
2
付累計(jì)熱量 (浮點(diǎn)數(shù)格式)
IEEE754
0125-0126
2
今日凈累積流量 (浮點(diǎn)數(shù)格式)
IEEE754
0127-0128
2
今月凈累積流量(浮點(diǎn)數(shù)格式)
IEEE754
0129-0130
2
分時(shí)累積器Tariff 2 
LONG
  0131-0132
2
分時(shí)累積器Tariff 2 小數(shù)部分
IEEE754
  0133-0134
2
分時(shí)累積器Tariff 3 
LONG
  0135-0136
2
分時(shí)累積器 Tariff 3 小數(shù)部分
IEEE754
  0137-0138
2
今日累積流量
LONG
9 Digits
0139-0140
2
今日累積流量小數(shù)部分
IEEE754
  0141-0142
2
今月累積流量
LONG
  0143-0144
2
今月累積流量小數(shù)部分
IEEE754
  0144-0145
2
今年累計(jì)流量
LONG
  0147-0148
2
今年累計(jì)流量小數(shù)部分
IEEE754
  0149-0150
2
今日累計(jì)熱量
LONG
  0151-0152
2
今日累計(jì)熱量小數(shù)部分
IEEE754
  0153-0154
2
今月累計(jì)熱量
LONG
  0155-0156
2
今月累計(jì)熱量小數(shù)部分
IEEE754
            0162
1
日累計(jì)數(shù)據(jù)指針
Integer
  0163
1
月累計(jì)數(shù)據(jù)指針
Integer
  0165-0166
  故障運(yùn)行時(shí)間
Long
單位: Seconds
          0181-0182
2
溫差
IEEE754
單位:  ℃
0185-0186
  主頻系數(shù)
IEEE754
  0187-0188
  自動(dòng)存儲總時(shí)間
Long
  0189-0190
  自動(dòng)存儲正累計(jì)流量
Long
  0191-0192
  自動(dòng)存儲瞬時(shí)流量
IEEE754
  0193-0194
  自動(dòng)存儲負(fù)流量工作總時(shí)間
Long
  0195-0196
  自動(dòng)存儲負(fù)累積流量
Long
  0197-0198
2
檢定流量累積器
Long
單位:m3,GAL,ft3,L 
0199-0200
2
檢定流量累積器小數(shù)位
IEEE754
  0201-0202
2
檢定熱量累積器
long
單位: kWh, GJ, KBTU
0203-0204
2
檢定熱量累積器小數(shù)位
IEEE754
  0205
1
檢定時(shí)間
integer
單位: in 250mS
          0221-0222
2
管道內(nèi)徑
IEEE754
單位:mm
          0259-0260
2
月最大瞬時(shí)流量
IEEE754
單位:  m3/h
0261-0262
2
月最大瞬時(shí)熱量
IEEE754
單位:  kW
0263-0264
2
月最高進(jìn)水溫度
IEEE754
  0265-0266
2
月最高出水溫度
IEEE754
  0267-0268
2
      0269
1
      0270
1
      0271-0272
2
時(shí)差
IEEE754
In unit nS 
0273-0274
2
M-bus 第二地址
BCD
  0275-0276
2
負(fù)流量計(jì)量時(shí)間
long
In unit seconds
0277-0280
4
      0281-0282
2
      0283-0284
2
      0285-0286
2
日最大瞬時(shí)流量
IEEE754
單位:  m3/h
0287-0288
2
日最大瞬時(shí)熱量
IEEE754
單位:  kW
0289-0290
2
日最大進(jìn)水溫度
IEEE754
單位:  ℃
0291-0292
2
日最大回水溫度
IEEE754
單位:  ℃
0293-0294
2
      0295-0296
2
用戶代碼
BCD
  0297-0298
2
分時(shí)累積器停止工作時(shí)刻
BCD
  0299-0300
2
分時(shí)累積器tariff2啟動(dòng)工作時(shí)刻
BCD
  0301-0302
2
分時(shí)累積器tariff3啟動(dòng)工作時(shí)刻
BCD
  0303
0.5
分時(shí)累積器和定量控制器狀態(tài)
BCD
Low byte
0303-0304
1.5
#1 定量控制器啟動(dòng)時(shí)刻
BCD
  0305-0306
1,5
#2 定量控制器啟動(dòng)時(shí)刻
BCD
  0306-0307
1,5
#3 定量控制器啟動(dòng)時(shí)刻
BCD
  0307-0308
1,5
#5 定量控制器啟動(dòng)時(shí)刻
BCD
  0309-0310
1,5
#5 定量控制器啟動(dòng)時(shí)刻
BCD
  0311-0312
2
定量控制器設(shè)定量
IEEE754
            0361-0362
2
總是讀出361.00  參見注2
IEEE754
  做測試用
0363-0364
2
總是讀出363348858
long
0365-0366
2
總是讀出 -987654321
long
          1438
1
累積流量單位代碼
INTEGER
0=立方米 1=升
2=加侖 5=立方英尺
1439
1
累積流量被乘因子
Integer
n:(-4..3), 參見注1
1440
1
累計(jì)熱量被乘因子
Integer
n:(-3..4), 參見注1
1441
1
累計(jì)熱量單位代碼
Integer
0=吉焦?fàn)?, 2=千瓦時(shí)1=Kilo BTU
1491
1
儀表類型
Integer
EN1434-3
1527
1
軟件版本  參見注3
Integer
  1528
1
制造商    參見注3
Integer
Value=0x1188
1529
2
ESN
BCD
MSB first
  注 1: (1)所有累積量在內(nèi)部都是使用一個(gè)長整數(shù)表示整數(shù)部分,而用一個(gè)實(shí)數(shù)表示小數(shù)部分。在大部分應(yīng)用中,用戶只需要讀出長整數(shù)部分即可,而不需要讀出小數(shù)部分。
假設(shè) N 表示是長整數(shù)的值 (例如對于正累積流量,REG 0009, 0010 中的 32 比特?cái)?shù)值是一個(gè)長整數(shù))
Nf  表示小數(shù)部分  (例如對于正累積流量,REG 0011, 0012 中的 32 比特浮點(diǎn)數(shù))
n  表示小數(shù)點(diǎn)位置  (例如對于累積流量,REG 147).
那么
最終的總累積流量=(N+Nf ) ×10-n
REG 148  取值范圍  0~3,決定了累積流量的單位
0   cubic meter              (m3)
1   liter                    (L)  
2   American gallon          (GAL)
3  Cubic feet               (CF)  
例如,  如果  REG0009=123456789,   REG0010=0.123, and REG147=3, REG148=0
那么總流量就等于  123456.789123 m3
  對于熱量累積器:  
The energy flow rate =(N+Nf )×10n-4
 n 由 REG01440  決定
累積熱量單位由 REG 1441決定.
      注 2:   REG361 是專門設(shè)計(jì)用于通訊測試的,如果你發(fā)現(xiàn)從 REG361 中讀出的數(shù)值不是 361.0,而是“0”  或者是  “250.264協(xié)議標(biāo)準(zhǔn)。詳細(xì)的資料可以在網(wǎng)上找到。    
  注  3:  版本和制造商的寄存器使用來識別次寄存器表格的。
4. MODBUS 月累計(jì)流量地址表
Data
Blk
No
address
Reg no
Variable name
format
note
n/a
0163
1
Monthly Pointer
Integer
Range: 0-127
    0
0
29953
1
Data block no
Integer
0~65535
1
29954
1
State
Integer
  2
29955
1
Failure days
Integer
  3
29956
1
Month, Year
BCD
Month in low byte
4
29957
2
Working hours
LONG
Record for checking
6
29959
2
Failure hours
LONG
  8
29961
2
Month Total flow
LONG
Of this month
10
29963
2
Month Total energy
LONG
Of this month
12
29965
2
Positive flow
LONG
Recorded
14
29967
2
Negative flow
LONG
Recorded
16
29969
2
Positive energy
LONG
Recorded
18
29971
2
Negative energy
LONG
Recorded
20
29973
2
Tariff2
LONG
Recorded
22
29975
2
Tariff3
LONG
Recorded
24
29977
2
Max flow rate
REAL4
  26
29979
2
Max energy rate
REAL4
  28
29981
2
Max inlet temperature
REAL4
  30
29983
2
Max outlet temperature
REAL4
  2
0
29985
1
Data block no
Integer
  1
29986
1
State
Integer
  2
29987
1
Failure days
Integer
  3
29988
1
Month, Year
BCD
  4
29989
2
Working hours
LONG
  6
29991
2
Failure hours
LONG
  8
29993
2
Month Total flow
LONG
  10
29995
2
Month Total energy
LONG
  …
……
……
……
……
……
28
30013
2
Max inlet temperature
REAL4
  30
30015
2
Max outlet temperature
REAL4
  n
Monthly data block n
127
0
38113
1
Data block no
Integer
  1
38114
1
State
Integer
  …
……
……
……
……
……
28
38141
2
Max inlet temperature
REAL4
  30
38143
2
Max outlet temperature
REAL4
                5. MODBUS 日累計(jì)流量地址表
Data
Blk
No
address
Reg no
Variable name
format
note
n/a
0162
1
Daily pointer
Integer
Range 0-511
1
0
5377
1
Data block no
Integer
0~65535
1
5378
1
State of the day
Integer
  2
5379
1
day
Integer
In high byte
3
5380
1
Month, year
BCD
Month in Lower byte
4
5381
2
Working hours
LONG
  6
5383
2
Failure hours
LONG
  8
5385
2
Daily Total flow
LONG
Of the day
10
5387
2
Daily Total energy
LONG
Of the day
12
5389
2
Positive flow
LONG
Recorded at the last sec.
14
5391
2
Negative flow
LONG
Recorded at the last sec
16
5393
2
Positive energy
LONG
Recorded at the last sec
18
5395
2
Negative energy
LONG
Recorded at the last sec
20
5397
2
Tariff2
LONG
Recorded at the last sec
22
5399
2
Tariff3
LONG
Recorded at the last sec
24
5401
2
Max flow rate
REAL4
  26
5403
2
Max energy rate
REAL4
  28
5405
2
Max inlet temperature
REAL4
  30
5407
2
Max outlet temperature
REAL4
  2
0
5409
1
Data block no
Integer
0~65535
1
5410
1
State of the day
Integer
  2
5411
1
day
Integer
  …
……
……
…….
……
  24
5433
2
Max flow rate
REAL4
  26
5435
2
Max energy rate
REAL4
  28
5437
2
Max inlet temperature
REAL4
  30
5439
2
Max outlet temperature
REAL4
  n
Data block n
511
0
21729
1
Data block no
Integer
0~32767
1
21730
1
State of the day
Integer
  …
……
……
…….
……
  28
21757
2
Max inlet temperature
REAL4
  30
21759
2
Max outlet temperature
REAL4
   
6. MODBUS上電時(shí)間表
  Data
Blk
No
address
Reg no
Variable name
format
note
n/a
0162
1
Daily pointer
Integer
Range 0-255
1
0
28929
1
Data block no
Integer
0~65535
1
28930
1
Minute, Second
BCD
Second in low byte
2
28931
1
Day, Hour
BCD
Hour in low byte
3
28932
1
Year, Month
BCD
Month in low byte
2
0
28933
1
Data block no
BCD
  1
28934
1
Minute, Second
BCD
  2
28935
1
Day, Hour
BCD
  3
28936
1
Year, Month
BCD
  n
Data block n
255
0
29949
1
Data block no
BCD
  1
29950
1
Minute, Second
BCD
  28
29951
1
Day, Hour
BCD
  30
29952
1
Year, Month
BCD
   
第四部分
M-BUS通訊協(xié)議
1.接口
(A)RS-485
(B)IR
(C)logic level USART
2. 默認(rèn)設(shè)置
電報(bào)格式:     IEC 870-5-1, DIN EN1434-3
波特率 :         IR  2400
                     RS-485, USART: 9600
奇偶檢驗(yàn):             Even
數(shù)據(jù)位數(shù):         8 bits
3. 參考文獻(xiàn)
“The M-BUS:A Documentation” which can be downloaded from www.m-bus.com
“TKB3417 Description of the MBUS module for Ultraheat”
  4. 特殊功能
* 日期和時(shí)間可設(shè)定
* 波特率可設(shè)
* 主地址可設(shè)置
* 有第二地址
* 提升的選擇
* 可根據(jù)個(gè)人要求設(shè)置數(shù)據(jù)電報(bào)
  Table 1  Master=>Slave telegrams
主機(jī)請求命令
格式
注解
  C域
A
CS
  C域=控制域  A域?yàn)榈刂酚? CS 為效驗(yàn)和,CI域    
初始化  (SEND_NKE)
10h
40h
A
CS
16h
  釋放公用地址,設(shè)置為正常狀態(tài),默認(rèn)波特率
請求數(shù)據(jù)  (SEND_UD2)
10h
5Bh/7Bh
A
CS
16h
  請求從機(jī)傳送應(yīng)答的從機(jī)用戶數(shù)據(jù)
刪除使用公用地址
10h
40h
FDh
CS
16h
  所有從機(jī)釋放公用地址 FDh,便于以后其他從機(jī)使用
報(bào)警協(xié)議  (SEND_UD1)
10h
5Ah/7Ah
A
CS
16h
  以最快速度相應(yīng)主機(jī)的報(bào)警巡查
通訊測試
10h
4Ah/6Ah
A
CS
16h
  測試通訊鏈路是否正常
查詢主地址
10h
49h
FDh
CS
16h
  回答主地址
    L
L
  C域
A
CI域
  CS
    選用第二地址
68h
0Bh
0Bh
68h
53h/73h
FDh
52h
ID1-4 M1-2 G Med
CS
16h
ID1-4為4字節(jié)ID, M1-2=88h,11h G=1 Med=4回水熱表 地位在前
選用第二地址
68h
0Bh
0Bh
68h
53h/73h
FDh
56h
ID4-1 M2-1 G Med
CS
16h
高位在前,其他同上一報(bào)文      (Med=0Ch為進(jìn)水熱表)     
增強(qiáng)選用第二地址
68h
11h
11h
68h
53h/73h
FDh
52h
ID1-4 M1-2 G Med 0CH 78H SN1-4 
CS
16h
比上面二個(gè)報(bào)文增加0Ch 78h +4字節(jié)序列號                 
修改第一地址
68h
06h
06h
68h
53h/73h
A
51h
01h 7Ah NN
CS
16h
NN為單字節(jié)新地址 范圍為 1-250
修改第二地址
68h
09h
06h
68h
53h/73h
A
51h
0Ch 79h  SA1-4
CS
16h
SA1-4為4字節(jié)新的第二地址,避免同一系統(tǒng)中存在兩個(gè)相同
修改第二地址
68h
0Dh
0Dh
68h
53h/73h
A
51h
07h 79h  SA1-4 xxh,xxh,xxh,xxh
CS
16h
SA1-4為4字節(jié)新的第二地址
設(shè)第二地址為ESN
68h
09h
06h
68h
53h/73h
A
51h
0Ch 79h  00h 00h 00h 00h  
CS
16h
M-BUS第二地址出廠默認(rèn)設(shè)置為儀表的ESN,第二
設(shè)第二地址為ESN
68h
0Dh
0Dh
68h
53h/73h
A
51h
07h 79h 00h 00h 00h 00h xxh,xxh,xxh,xxh
CS
16h
能夠解決第二地址相同的問題。
    L
L
  C域
A
CI域
CS
  備注, 從機(jī)對修改波特率指令以原先波特率應(yīng)答后再改動(dòng)
改變波特率
68h
03h
03h
68h
53h/73h
A
B8h
CS
16h
  改變波特率為 300   重新上電后變?yōu)橄到y(tǒng)默認(rèn)值
改變波特率
68h
03h
03h
68h
53h/73h
A
B9h
CS
16h
  改變波特率為 600   重新上電后變?yōu)橄到y(tǒng)默認(rèn)值
改變波特率
68h
03h
03h
68h
53h/73h
A
BAh
CS
16h
  改變波特率為 1200  重新上電后變?yōu)橄到y(tǒng)默認(rèn)值
改變波特率
68h
03h
03h
68h
53h/73h
A
BBh
CS
16h
  改變波特率為 2400  重新上電后變?yōu)橄到y(tǒng)默認(rèn)值
改變波特率
68h
03h
03h
68h
53h/73h
A
BCh
CS
16h
  改變波特率為 4800  重新上電后變?yōu)橄到y(tǒng)默認(rèn)值
改變波特率
68h
03h
03h
68h
53h/73h
A
BDh
CS
16h
  改變波特率為 9600  重新上電后變?yōu)橄到y(tǒng)默認(rèn)值
改變波特率
68h
03h
03h
68h
53h/73h
A
B7h
CS
16h
  恢復(fù)波特率為系統(tǒng)默認(rèn)值
    預(yù)定報(bào)文類型
L
L
  C域
A
CI域
預(yù)制數(shù)據(jù)內(nèi)容代碼
CS
    預(yù)定常規(guī)格式
68h
03h
03h
68h
53h/73h
A
50h
  CS
16h
  請求所有數(shù)據(jù),應(yīng)答報(bào)文格式見表2所示             (
預(yù)定常規(guī)格式
68h
04h
04h
68h
53h/73h
A
50h
00
CS
16h
  請求所有數(shù)據(jù),應(yīng)答報(bào)文格式見表2所示             (
預(yù)定快速格式
68h
04h
04h
68h
53h/73h
A
50h
51h
CS
16h
  請求快速讀出數(shù)據(jù)                   (QUICK READOUT
預(yù)定用戶數(shù)據(jù)格式
68h
04h
04h
68h
53h/73h
A
50h
10h
CS
16h
  請求累計(jì)熱量W,累計(jì)流量V                    
預(yù)定簡單帳單模式
68h
04h
04h
68h
53h/73h
A
50h
20h
CS
16h
  請求W,V上年的W,V及運(yùn)行時(shí)間BTSimple Billing)
預(yù)定完全帳單模式
68h
04h
04h
68h
53h/73h
A
50h
30h
CS
16h
  請求W,V上年的W,V最大流量/(Enhanced Billing)
預(yù)定當(dāng)前數(shù)據(jù)
68h
04h
04h
68h
53h/73h
A
50h
50h
CS
16h
  請求W,V 瞬時(shí)流量/熱流量,進(jìn)回水溫度  (Instantaneous Values)
預(yù)定當(dāng)前數(shù)據(jù)
68h
04h
04h
68h
53h/73h
A
50h
80h
CS
16h
  請求儀表序列號,供熱結(jié)算日期
切換到快速方式
68h
05h
05h
68h
53h/73h
A
51h
0Fh
A1h
CS
16h
  快速讀出格式,報(bào)文格式見表3所示
切換到常規(guī)方式
68h
05h
05h
68h
53h/73h
A
51h
0Fh
A0h
CS
16h
  并預(yù)定所有輸出數(shù)據(jù)
切換到快速方式
68h
03h
03h
68h
53h/73h
A
A1h
  CS
16h
  不推薦使用本條報(bào)文,為了兼容而設(shè)置的報(bào)文。
切換到常規(guī)方式
68h
03h
03h
68h
53h/73h
A
A0h
  CS
16h
  不推薦使用本條報(bào)文,為了兼容而設(shè)置的報(bào)文。
預(yù)定所有數(shù)據(jù)1
68h
04h
04h
68h
53h/73h
A
51h
7Fh
CS
16h
  報(bào)文格式見表2所示
預(yù)定所有數(shù)據(jù)2
68h
06h
06h
68h
53h/73h
A
51h
C8h  
3Fh
7Eh
CS
16h
  報(bào)文格式見表2所示
預(yù)定空報(bào)文
68h
06h
06h
68h
53h/73h
A
51h
7Fh
FEh
0Dh
CS
16h
    預(yù)定熱量數(shù)據(jù)
68h
06h
06h
68h
53h/73h
A
51h
08h
05h
  CS
16h
  本質(zhì)是通用數(shù)據(jù)選擇報(bào)文
預(yù)定去年熱量
68h
06h
06h
68h
53h/73h
A
51h
48h
05h
  CS
16h
  本質(zhì)是通用數(shù)據(jù)選擇報(bào)文
通用選數(shù)據(jù)報(bào)文
68h
L
L
68h
53h/73h
A
51h
選取代碼(組合)
CS
16h
  限定L<240,上電初始化后置為全部選中狀態(tài)
選取代碼(組合)可以選擇下列任意預(yù)定數(shù)據(jù)的代碼及其任意組合(例如設(shè)預(yù)定要讀出累計(jì)熱量和累計(jì)流量,報(bào)文格式如下 68 L L 68 53/73 A 51 08 14 08 2D CS 16
更新周期    08h 74h
平均周期    08h 70h
累計(jì)熱量    08h 00h…0Fh  
累計(jì)流量    08h 10h…17h
瞬時(shí)熱量    08h 28h…37h
瞬時(shí)流量    08h 38h…4Fh
進(jìn)水溫度    08h 58h…5Bh
回水溫度    08h 5Ch…5Fh
溫差    08h 60h…63h
序列號碼    08h 78h
運(yùn)行時(shí)間    08h 20h…23h
日期時(shí)間    08h 6Ch
所有更新周期    C8h 3Fh 74h
所有平均周期    C8h 3Fh 70h
所有累計(jì)熱量    C8h 3Fh 00h…0Fh
所有累計(jì)流量    C8h 3Fh 10h…17h
所有瞬時(shí)熱量    C8h 3Fh 28h…37h
所有瞬時(shí)流量    C8h 3Fh 38h…4Fh
所有進(jìn)水溫度    C8h 3Fh 58h…5Bh
所有回水溫度    C8h 3Fh 5Ch…5Fh
所有溫差    C8h 3Fh 60h…63h
所有序列號碼    C8h 3Fh 78h
所有運(yùn)行時(shí)間    C8h 3Fh 20h…23h
所有時(shí)間標(biāo)志    C8h 3Fh 6Ch
上年累計(jì)熱量    48h 00h…0Fh
上年累計(jì)流量    48h 10h…17h
年結(jié)算日期    48h 6Ch
故障時(shí)間    38h 20h…23h
去年故障時(shí)間    78h 20h…23h
最大值平均周期    88h 10h 70h…73h
上年最大瞬時(shí)熱流量    D8h 10h 28h…
當(dāng)前最大瞬時(shí)熱流量    98h 10h 28h…
當(dāng)前最大瞬時(shí)流量    98h 10h 38h…4Fh
當(dāng)前最大進(jìn)水溫度    98h 10h 5Bh
當(dāng)前最大回水溫度    98h 10h 5Fh
      啟動(dòng)流量標(biāo)定
68h
0Ah
0Ah
68h
53h/73h
A
51h
2Fh
0Fh
04h
00h,04h,00h,01h
CS
16h
廠家用調(diào)試設(shè)備使用功能
退出熱量標(biāo)定
68h
0Ah
0Ah
68h
53h/73h
A
51h
2Fh
0Fh
04h
00h,04h,00h,00h
CS
16h
廠家用調(diào)試設(shè)備使用功能
清除第一次錯(cuò)誤
68h
0Ah
0Ah
68h
53h/73h
A
51h
2Fh
0Fh
04h
00h,04h,00h,02h
CS
16h
在無故障條件下,執(zhí)行此命令
進(jìn)入睡眠狀態(tài)
68h
0Ah
0Ah
68h
53h/73h
A
51h
2Fh
0Fh
04h
00h,04h,00h,03h
CS
16h
如果設(shè)置了睡眠使能,則進(jìn)入睡眠狀態(tài)
退出睡眠狀態(tài)
68h
0Ah
0Ah
68h
53h/73h
A
51h
2Fh
0Fh
04h
00h,04h,00h,04h
CS
16h
退出睡眠狀態(tài)
設(shè)置OCT輸出
68h
0Ah
0Ah
68h
53h/73h
A
51h
04h
FFh
15h
OCT1,OCT2,XX,XX
CS
16h
設(shè)置OCT輸出,0不變
清除最大最小值
68h
07h
07h
68h
53h/73h
A
51h
01h
FFh
14h
01
CS
16h
清除最大最小值寄存器
關(guān)閉TARIFF
68h
07h
07h
68h
53h/73h
A
51h
01h
FFh
13h
00
CS
16h
關(guān)閉TARIFF 2和TARIFF 3
啟動(dòng)TARIFF 2
68h
07h
07h
68h
53h/73h
A
51h
01h
FFh
13h
02h
CS
16h
啟動(dòng)TARIFF 2
啟動(dòng)TARIFF 3
68h
07h
07h
68h
53h/73h
A
51h
01h
FFh
13h
03h
CS
16h
啟動(dòng)TARIFF 3
關(guān)閉TARIFF
68h
05h
05h
68h
53h/73h
A
51h
0Fh
B0h
CS
16h
關(guān)閉TARIFF 2和TARIFF 3
關(guān)閉TARIFF
68h
05h
05h
68h
53h/73h
A
51h
0Fh
B1h
CS
16h
關(guān)閉TARIFF 2和TARIFF 3
啟動(dòng)TARIFF 2
68h
05h
05h
68h
53h/73h
A
51h
0Fh
B2h
CS
16h
啟動(dòng)TARIFF 2
啟動(dòng)TARIFF 3
68h
05h
05h
68h
53h/73h
A
51h
0Fh
B3h
CS
16h
啟動(dòng)TARIFF 3
TARIFF關(guān)閉時(shí)間
68h
0Ah
0Ah
68h
53h/73h
A
51h
04h/44h
FD
30
Date + Time
CS
16h
Date + Time按TYPE_F
TARIFF關(guān)閉時(shí)間
68h
0Bh
0Bh
68h
53h/73h
A
51h
84h/C4h
10
FD
30
Date + Time
CS
16h
Date + Time按TYPE_F
TARIFF2開啟時(shí)間
68h
0Bh
0Bh
68h
53h/73h
A
51h
84h/C4h
20
FD
30
Date + Time
CS
16h
Date + Time按TYPE_F
TARIFF3開啟時(shí)間
68h
0Bh
0Bh
68h
53h/73h
A
51h
84h/C4h
30
FD
30
Date + Time
CS
16h
Date + Time按TYPE_F
    L
L
  C域
A
CI域
DIF
  CS
    設(shè)置時(shí)間方法1
68h
0Dh
0Dh
68h
53h/73h
A
51h
2Fh
0Fh
04h
58h
SSMMHHDDMMYY
CS
16h
設(shè)置日期時(shí)間 推薦方法 參數(shù)分別為秒分時(shí)天月年
設(shè)置時(shí)間方法2
68h
0Ah
0Ah
68h
53h/73h
A
51h
04h
EDh 00h
DATE/TIME
CS
16h
** 設(shè)置日期時(shí)間, DATE/TIME格式
設(shè)置時(shí)間方法3
68h
09h
09h
68h
53h/73h
A
51h
04h
6Dh
DATE/TIME
CS
16h
** 設(shè)置日期時(shí)間, DATE/TIME格式
注解:  *  選用第二地址,可以使用通配符。通配符的作用可以使主機(jī)很快找到總線上所有的從機(jī)
** 為了兼容標(biāo)準(zhǔn)而設(shè)置模式,因?yàn)門YPE F不含有秒,故此兩個(gè)報(bào)文設(shè)置秒=0。TYPE F格式是M-BUS中規(guī)定的時(shí)間日期格式。
    第五部分    Haifeng ASCII 協(xié)議
1. The Haifeng Protocol is designed to be compatible with the one used in our previous versions of ultrasonic flow meters. This protocol is a set of basic commands that are in ASCII format, ending with a carriage return (CR) and line feed (LF), For most of the commands, The line feed (LF) should be better omitted for fast responding.
   The colored commands in the following table are new ones  
Command
Meaning
Data format
DQD(cr) note 0
Request flow rate per day 
±d.ddddddE±dd(cr) note 1
DQH(cr)
Request flow rate per hour
±d.ddddddE±dd(cr)
DQM(cr)
Request flow rate per minute
±d.ddddddE±dd(cr)
DQS(cr)
Request flow rate per second
±d.ddddddE±dd(cr)
DQE(cr)
Request instantaneous Caloric Value
±d.ddddddE±dd(cr)
DV(cr)
Request fluid velocity
±d.ddddddE±dd(cr)
DI+(cr)
Request positive totalizer
±dddddddddE±d(cr)note 2
DI-(cr)
Request negative totalizer
±dddddddddE±d(cr)
DIN(cr)
Request net totalizer
±dddddddddE±d(cr)
DIE(cr)
Request net thermal energy totalizer
±dddddddddE±d(cr)
DIE+(cr)
Request positive energy totalizer
±dddddddddE±d(cr)
DIE-(cr)
Request negative energy totalizer 
±dddddddddE±d(cr)
DIT(cr)
Request net total flow for today
±dddddddddE±d(cr)
DIM(cr)
Return net total flow for this month
±dddddddddE±d(cr)
DIY(cr)
Request net total flow for this year 
±dddddddddE±d(cr)
DID(cr)
Return the ID number/address
ddddd(cr)   5 bytes long
DL(cr)
Request signal strength and signal quality
UP:dd.d,DN:dd.d,Q=dd(cr)
DS(cr)
Request the percentage of AO output 
±d.ddddddE±dd(cr)
DC(cr)
Request display number and Error Code 
note 3
DT(cr)
Request the present date and time 
yy-mm-dd,hh:mm:ss uuu(cr)
Time@TDS1=(cr)
Set date and time yy-mm-dd,hh:mm:ss
  MKEY@(cr) note 4
Send a key value as if a key is pressed.
@ is the key value
@ is key value which can be found in the KEY VALUE table
LCD(cr)
Request current window content
  MENUXX(cr)
Go to window XX
  BUADRATExp(cr)
Change baud rate to “x” with parity “p”
x=2~7,9600,4800,2400,1200,600,300
p=N(none), E(even),O(odd)
BUADRATE-A
Restore baud rate for RS485
  BUADRATE-B
Restore baud rate for IR
  AO<>(O)<>4-20mA<>(O)<>digits string(cr)
Set AO to ‘a’ mA  current
Note 5
RING(cr)(lf)
Handshaking request from a modem
ATA(CR)(lf)
CUSTOMERNUMBER=
Set customer number
  CUSTOMERNUMBER?
Request customer number
  FIRMWAREVERSION
Request firmware information
  ESN(cr)
Request the ESN (electronic serial number) of the flow meter
49ddddddd(cr)(lf) note 6
MBUSADD=(str)
Set address to STR
  MBUSADD?
Request address number
  MBUSADD2=(str)
Set MBUS secondary address to STR
  MBUSADD2?
Request MBUS secondary address
  System Boot Instantly by 13840932903
Reboot the system
  Isp-Prog &JXWANG12
Command for firmware updating
  OCT<OUTPUT>=10
Quit OCT1 serial controlling mode
  OCT<OUTPUT>=11
OCT1 output open
  OCT<OUTPUT>=12
OCT1 output close
  OCT<OUTPUT>=20
Quit OCT2 serial controlling mode
  OCT<OUTPUT>=21
OCT2 output opcy en
  OCT<OUTPUT>=22
OCT2 output close
  SLEEP<(*)>METER<(*)>ENABLE=0
Enable sleep of the meter
  SLEPP<(*)>METER<(*)>ENABLE=1
Quit sleep of the meter
  AnalogInput0
Always readout 1.23456 for testing
±d.ddddddE±dd(cr)(lf)
AnalogInput1
Return temperature at T1 input
±d.ddddddE±dd(cr)(lf)
AnalogInput2
Return temperature at T2 input
±d.ddddddE±dd(cr)(lf)
AnalogInput6
Request CPU temperature
  AnalogInput7
Request battery voltage
  AnalogInput8
Request main clock frequency coefficient
  BATCH_A   
Request batch controller total
  BATCH_V?  
Request batch setting
  BATCH_V=(str)
Set a new batch
  BATCH_E0  
Disable batch controller
  BATCH_E1  
Enable batch controller
  BATCH_R0  
Run Batch controller
  BATCH_R1  
Stop Batch controller
  BATCH_T1?
Request trig timer #1
  BATCH_T1=DD HH:MM
Set trig timer #1
  BATCH_T2?
Request trig timer #2
  BATCH_T2=DD HH:MM
Set trig timer #2
  BATCH_T3?
Request trig timer #3
  BATCH_T3=DD HH:MM
Set trig timer #3
  BATCH_T4?
Request trig timer #4
  BATCH_T4=DD HH:MM
Set trig timer #4
  BATCH_T5?
Request trig timer #5
  BATCH_T5=DD HH:MM
Set trig timer #5
  TARIFF_T1?
Request tariff timer #1
  TARIFF_T1=MM-DD HH-MM
Set tariff timer #1
  TARIFF_T2?
Request tariff timer #2
  TARIFF_T2=MM-DD HH-MM
Set tariff timer #2
  TARIFF_T3?
Request tariff timer #3
  TARIFF_T3=MM-DD HH-MM
Set tariff timer #3
  DI2
Request Tariff total2
  DI3
Request Tariff total3
  N
Prefix  of an IDN-addressing-based networking, The IDN address is byte, range 0-253
Note 7
W
Prefix  of an IDN-addressing-based networking, The IDN address is word, range 0-65535
Note 7
P
Prefix of any commands for returns with check-sum
  &
Commands connector to make a compounding command in one line.
Result commands limit 253 or less byte long.
NOTES:
0.(cr)stand for carriage return, its ASCII value is 0DH. (lf) stand for line feed, its ASCII value is 0AH.
1.d stand for a digit number of 0~9, 0 is expressed as +0.000000E+00
2.d stand for digit 0~9, the number before ‘E’ is an integer.
3.The first two bytes are menu numbers, and the rest is ErrCode whose meaning can found at the display part.
4. @ stand for key value, for example, value 30H means key ‘0’. The command ‘MKEYA(cr)’ acts just like the a short key is pressed.
5. ’a’ stands for the output current value. The maximum value should not exceed 20.0 For example
AO<>(O)<>4-20mA<>(O)<>2.34567(cr)
6. ’dddddddd’  stands for the Electronic Serial Number
7.If there are more than one devices in a network, all the basic command must be prefixed with ‘N’ or ‘W’, otherwise multiple flow meter may reply to the same request,
2. Working with Command prefixes and the command connector 
2.1 The ‘P’ prefix
The ‘P’ prefix can be added before every basic command to have the returned message with a two digits check-sum. The check-sum is obtained by a binary ) (44H,49H,2BH,0DH in binary numbers)will bring a return like +1234567E+0m3 (CR) (2BH,31H,32H,33H,34H,35H,36H,37H,45H,2BH,30H,6DH,33H,20H,0DH,0AHwill brings a return like +1234567E+0m3 !F7(CR), after the character‘!’ are the check-sum in ASCII format(2BH+31H+32H+33H+34H+35H+ 36H+37H+45H+2BH+30H+6DH+33H+20H=(2)F7H)
Pay attention to that there may be no characters or only spaces before the character ‘!’.
2.2 The ‘N’ prefix
The usage of prefix ‘N‘ goes like:  N + single byte address + basic command.
For example if the address number 88 flow meter is going to be addressed, the command should like: NXDV(CR), the decimal value of X should be
The prefix W is strongly recommended for new users.
2.3 The ‘W’ prefix
Usage: W + character string address + basic command
The value of the character string should have a value in the range of 0~65535, except for the value of  13(0DH carriage return),
For example, if the velocity of number 12345 flow meter is wanted, the command can be like: W12345DV(CR), (57H,31H,32H,33H,34H,35H,44H,56H,0DH
2.4 The command connecter ‘&’
The command connecter ‘&’ adds several basic commands into a one-line compound command. The compound command should not  should be added before every basic command, to make the returned results having a check-sum.
For example, if the 1)flow rate 2)velocity 3)positive totalizer 4) net energy totalizer 5) the AnalogInput1 input 6) the AnalogInput2 input of the address number 4321 flow meter are  to return with check-sum, the one-line command is like:
W4321PDQD&PDV&PDI+&PDIE&PAnalogInput1&P AnalogInput2(CR)
The returned data are:
+0.000000E+00m3/d!AC(CR)
+0.000000E+00m/s!88(CR)
+1234567E+0m3 !F7(CR)
+0.000000E+0GJ!DA(CR)
+7.838879E+00mA!59
+3.911033E+01!8E(CR)
   Any command can be connected together. For example,  MENU11&MMEYA&MMEYA&MKEYA(CR)
  第六部分
兼容協(xié)議
  第七部分
CJ-188-2004  通訊協(xié)議
The CJ-188-2004 is a Chinese National Standard for heat or energy meters
  The command to read a meter with a ESN which is 17312151, the ESN is displayed on M07, is as following
  FE FE FE FE FE FE FE FE FE FE FE 68 20 51 21 31 17 00 11 11 01 03 1F 90 12 29 16
  Where all the numbers are in HEX.
The first 11 FEs are preamble
68(0x68) is starter
20(0x20) is meter type
51(0x51) is address A0. if address A0-A6 are all 0xAA,this command is a broadcasting one. Any meter will response to a broadcast command with itf there is only one meter on the BUS, a broadcasting command can be used to obtain the ESN number of the meter. 
21(0x21) address A1
31(0x31) address A2
17(0x17) address A3 (A0、A1、A2、A3 is ESN number, lower byte first)
00(0x00) address A4, always 0x00 or 0xAA with a broadcasting command
11(0x11) address A5, always 0x11 or 0xAA with a broadcasting command
11(0x11) address A6, always 0x11 or 0xAA with a broadcasting command
01(0x01) Control Code
03(0x03) length of the DATA
1F(0x1F) DATA Identifier 0
90(0x90) DATA Identifier 1
12(0x12) SER
29(0x29) Checksum CS which is the arithmetic sum of all the numbers, except preambles(68 20 51 21 31 17 00 11 11 01 03 1F 90 12, the sum is 0x29
16(0x16) ending byte.
  其中除A0、A1、A2、A3、CS根據(jù)不同的表號變化,其它固定不變。
  User Telegram:
FE FE FE FE FE FE FE FE FE FE FE 68 20 51 21 31 17 00 11 11 81 2E 1F 90 12 00 00 00 00 05 00 00 00 00 05 00 00 00 00 14 00 00 00 00 35 19 00 00 00 2C 76 30 00 68 30 00 73 02 00 32 41 11 12 09 07 20 04 00 E9 16
68 為幀起始符 68H
20 為儀表類型 T
51 為地址A0
21 為地址A1
31 為地址A2
17 為地址A3(A0、A1、A2、A3為讀到的熱量表的表號,從低位到高位)
00 為地址A4
11 為地址A5
11 為地址A6
81 為控制碼 C
2E 為數(shù)據(jù)長度域 L(1F 90 12 00 00 00 00 05 00 00 00 00 05 00 00 00 00 14 00 00 00 00 35 19 00 00 00 2C 76 30 00 68 30 00 73 02 00 32 41 11 12 09 07 20 04 00
1F 為數(shù)據(jù)標(biāo)識DI0
90 為數(shù)據(jù)標(biāo)識DI1
12 為序列號SER
00 00 00 00 為當(dāng)前冷量,05 為當(dāng)前冷量單位代號表示kWh(表1)
00 00 00 00 為當(dāng)前熱量,05 為當(dāng)前熱量單位代號表示kWh(表1)
00 00 00 00 為熱功率,14 為熱功率單位代號表示W(wǎng)(表1)
00 00 00 00 為瞬時(shí)流量,35 為瞬時(shí)流量單位代號表示m³/h(表1)
19 00 00 00 為累計(jì)流量,2C 為累計(jì)流量單位代號表示m³(表1)
76 30 00 為供水溫度0030.76℃
68 30 00 為回水溫度0030.68℃
73 02 00 為累計(jì)工作時(shí)間000273小時(shí)
32 41 11 12 09 07 20 為實(shí)時(shí)時(shí)間2007年09月12日11時(shí)41分32秒
04 00 為狀態(tài)字(具體定義見表2、表3)電池電壓欠壓,流量傳感器正常,進(jìn)回水溫度傳感器正常,積分儀正常
E9 為校驗(yàn)碼 CS(68 20 51 21 31 17 00 11 11 81 2E 1F 90 12 00 00 00 00 05 00 00 00 00 05 00 00 00 00 14 00 00 00 00 35 19 00 00 00 2C 76 30 00 68 30 00 73 02 00 32 41 11 12 09 07 20 04 00進(jìn)行二進(jìn)制算術(shù)累加,不計(jì)超過FFH的溢出值)
16 為結(jié)束符 16H
  其中熱能表正常應(yīng)答時(shí)幀以68H開始以16H結(jié)束,A4、A5、A6固定為00H 11H 11H,控制碼固定為81H,數(shù)據(jù)長度域固定為2EH,數(shù)據(jù)標(biāo)識和序列號與發(fā)送時(shí)的數(shù)據(jù)標(biāo)識和序列號相同,其它字節(jié)根據(jù)具體熱量表變化。
      表1 單位代號
單 位
代 號
單 位
代 號
Wh
02H
GJ×100
13H
kWh
05H
W
14H
MWh
08H
kW
17H
MWh×100
0AH
MW
1AH
J
01H
L
29H
kJ
0BH

2CH
MJ
0EH
L/h
32H
GJ
11H
m³/h
35H
      表2 狀態(tài) ST  第一字節(jié)定義表
  D0
D1
D2
D3
D4
D5
D6
D7
定義
——
電池電壓
保留
保留
保留
保留
保留
說明
——
0:正常  1:欠壓
保留
保留
保留
保留
保留
      表3 狀態(tài) ST  第二字節(jié)定義表
  D0
D1
D2
D3
D4
D5
D6
D7
定義
積分儀故障
進(jìn)水溫度傳感器故障
回水溫度傳感器故障
流量傳感器故障
保留
保留
保留
保留
說明
0:正常
1:故障
0:正常
1:故障
0:正常
1:故障
0:正常
1:故障
保留
保留
保留
保留