项目

一般

简介

SM4650.def

空调协议-3 - 黄 正梁, 2023-11-13 11:46

 
1
;????ܿյ?, ???: 5269, ???? ?տ????г???ʢ??ʵҵ???????ι?˾
2
[comm]
3
;?򿪵????????Ϣ, 0-??????, 1-????
4
debug=1
5
;????
6
note=?????DZ?MODBUSЭ??
7
;???ݶ?ȡʱ????(??????ָ???, ?ӳٶ?ȡ????ʱ????), ??λ: ????(ms)??Ĭ??10ms
8
delay=300
9
;????
10
mask=0
11
;?ͺ?????֧????????
12
model=OM-MDBS4639
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
brief=?????¶?: %31% ??, ?ط?ʪ??: %34% %RH;
15
;?Ƿ????CRCУ?飿0-??У?飬1-У??
16
crc=0
17
;???ݰ??ֽڽ?????0-????׼UINT16??????1-???ֽڽ???
18
;DataByte=0
19

    
20
;ң?ع???, ??ʽ:Ykxx=Cmd. ң?? xx??ӦiFunc Cmd??ʽ:cmd[,dat] ??Modbus?????ʽ??????ַ??CRC֮??????????ݣ?
21
;??Ҫ????ң?ع???, Э??汾?Ų???Ϊ??
22
;Yk00=			;
23
;Yk01=			;
24

    
25
;regsX??ʾʹ?ù?????X (??֧??01??02??03??04??????)
26
;01??????
27
[regs1]
28
0=2
29
7=11
30
43=3
31
128=9
32
176=1
33
;02??????
34
[regs2]
35

    
36
;03??????
37
[regs3]
38
;ָ????ַ???ȡ?????ݸ???, ??ʽ?????ݵ?ַ=??ȡ??????. ??: ?ӵ?ַ40001??ȡ2?????ݣ???д??: 0=2. 
39
;???ݵ?ַΪ10???Ʊ?ʾ????Э??????16???Ƶ?ַ????ת??Ϊ10???ƺ???д??
40
0=2
41
11=1
42
275=2
43
716=2
44
707=2
45
713=1
46

    
47
;???ݰ?λ??չ??ʶ, ???±?ʾ??ַΪ2?????ݰ?8λ??չ, ??[flds]??Ŀ?е??ֶκŰ?40003-x??ʽ
48
;2bit=1
49

    
50

    
51

    
52

    
53
;04??????
54
[regs4]
55

    
56
;?ж??ֶζ???, ??ʽ: ?ֶκ?(Fld)=???ݵ?ַ. ?????ݲ??????жϼ??, ????????
57
;???ݵ?ַ??Ӧ????ַ: 01??????: 00000, 02??????: 10000, 03??????: 40000, 04??????: 30000
58
[flds]
59
;?ֶ?????
60
cnt=35
61
;?ֶ????ݵ?ַ????ʽ: ?ֶκ?(Fld)=???ݵ?ַ, ???±?ʾ: ?ֶ?1(Fld=1)?????ݵ?ַΪ40001, ??Ӧ[reg3]???????еĵ?ַ0
62

    
63
;?澯??Ϣ
64
1=00001;?????¶?̽ͷ????
65
2=00002;?????¶?̽ͷ????
66
3=00008;?ط??¶?̽ͷ????
67
4=00009;?ط?ʪ??̽ͷ????
68
5=00010;??ѹѹ??̽ͷ????
69
6=00011;??ѹѹ??̽ͷ????
70
7=00012;???????±???
71
8=00013;????????????
72
9=00014;????ά??????
73
10=00015;?????ͷ??¶?̽ͷ????
74
11=00016;???лط??¶?̽ͷ????
75
12=00017;ˮ??????
76
13=00018;????????
77
14=00044;??Դ??ʧ?澯
78
15=00045;??Դ??ѹ?澯
79
16=00046;??ԴǷѹ?澯
80

    
81
;????״̬
82
17=00129;?ͷ??
83
18=00130;????
84
19=00131;ˮ??
85
20=00132;ѹ????
86
21=00134;1#?????
87
22=00135;2#?????
88
23=00136;??ʪ??/ʪĤˮ??
89
24=00137;??ʪ??ˮ??
90
25=00138;??ʪ??ˮ??
91

    
92
;????״̬
93
26=40001;?ͷ??¶??趨
94
27=40002;ʪ???趨
95
28=40012;?ط??¶??趨
96
29=40276;??ǰ״̬
97
30=40277;????״̬
98
31=40717;?????¶?
99
32=40718;?趨?¶?
100
33=40708;?ط??¶?
101
34=40709;?ط?ʪ??
102
35=40714;??Դ??ѹ
103

    
104

    
105

    
106
;???????ͼ?ϵ??, ??ʽ: ???ݵ?ַ=Xfac, 
107
;X??ʾ????????(L??ʾ32λ??????(??????ǰ?????ں?), l??ʾ32λ??????(LSBģʽ), I??ʾ32λ??????(MSBģʽ)
108
;f??ʾ?????ȸ?????), S??ʾ16λ?з?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??, U??ʾ16λ?޷?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??,b??ʾ8λ?з?????
109
;LF??ʾ32λ?????ȸ???????MSBģʽ????????ǰ?????ں󣩣?Lf??ʾ32λ?????ȸ???????LSBģʽ????????ǰ?????ں󣩣?fl??ʾ32λ?????ȸ???????LSBģʽ????16λ ??16λ??????,
110
;fL??ʾ32λ?????ȸ???????MSBģʽ????16λ ??16λ??????
111
;fac??ʾϵ??, ??ϵ??Ϊ0.1, ??fac=0.1. ???????ʾΪ: 
112
;40002=L0.1
113
;??λ??չ??ʶ, 1=8λ 2=16λ 4=32λ. ???±?ʾ???Ϊ2??????Ϊ16λ????״̬??
114
;2bit=2
115
;??λ??չ???ֶ?????, ???±?ʾ?ֶ?3????Ϊ???ݵ?ַ40003(??Ӧ[regs3]?ĵ?ַ2)???ݵ?BIT0
116
;3=40003-0
117

    
118

    
119

    
120
;???ݱ???????
121
[flds.def]
122
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
123
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
124
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
125
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
126
;	   ??ֵ????: ????, Ĭ??Ϊ0
127
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
128
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
129
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
130
;				 Ĭ??????Ϊ?????(0 ???? 10)
131

    
132
1='Fld1',1,'?????¶?̽ͷ????',0,1,0,0,'0:??????1:????',0,'';
133
2='Fld1',1,'?????¶?̽ͷ????',0,1,0,0,'0:??????1:????',0,'';
134
3='Fld1',1,'?ط??¶?̽ͷ????',0,1,0,0,'0:??????1:????',0,'';
135
4='Fld1',1,'?ط?ʪ??̽ͷ????',0,1,0,0,'0:??????1:????',0,'';
136
5='Fld1',1,'??ѹѹ??̽ͷ????',0,1,0,0,'0:??????1:????',0,'';
137
6='Fld1',1,'??ѹѹ??̽ͷ????',0,1,0,0,'0:??????1:????',0,'';
138
7='Fld1',1,'???????±???',0,1,0,0,'0:??????1:????',0,'';
139
8='Fld1',1,'????????????',0,1,0,0,'0:??????1:????',0,'';
140
9='Fld1',1,'????ά??????',0,1,0,0,'0:??????1:????',0,'';
141
10='Fld1',1,'?????ͷ??¶?̽ͷ????',0,1,0,0,'0:??????1:????',0,'';
142
11='Fld1',1,'???лط??¶?̽ͷ????',0,1,0,0,'0:??????1:????',0,'';
143
12='Fld1',1,'ˮ??????',0,1,0,0,'0:??????1:????',0,'';
144
13='Fld1',1,'????????',0,1,0,0,'0:??????1:????',0,'';
145
14='Fld1',1,'??Դ??ʧ?澯',0,1,0,0,'0:??????1:????',0,'';
146
15='Fld1',1,'??Դ??ѹ?澯',0,1,0,0,'0:??????1:????',0,'';
147
16='Fld1',1,'??ԴǷѹ?澯',0,1,0,0,'0:??????1:????',0,'';
148

    
149
17='Fld1',1,'?ͷ??',0,1,0,0,'0:?رգ?1:????',0,'';
150
18='Fld1',1,'????',0,1,0,0,'0:?رգ?1:????',0,'';
151
19='Fld1',1,'ˮ??',0,1,0,0,'0:?رգ?1:????',0,'';
152
20='Fld1',1,'ѹ????',0,1,0,0,'0:?رգ?1:????',0,'';
153
21='Fld1',1,'1#?????',0,1,0,0,'0:?رգ?1:????',0,'';
154
22='Fld1',1,'2#?????',0,1,0,0,'0:?رգ?1:????',0,'';
155
23='Fld1',1,'??ʪ??/ʪĤˮ??',0,1,0,0,'0:?رգ?1:????',0,'';
156
24='Fld1',1,'??ʪ??ˮ??',0,1,0,0,'0:?رգ?1:????',0,'';
157
25='Fld1',1,'??ʪ??ˮ??',0,1,0,0,'0:?رգ?1:????',0,'';
158

    
159
26='Fld',1,'?ͷ??¶??趨',0,10,11,150,'??Сֵ|???????',300,'???ֵ|???????'
160
27='Fld',1,'ʪ???趨',0,10,11,200,'??Сֵ|???????',700,'???ֵ|???????'
161
28='Fld',1,'?ط??¶??趨',0,10,11,150,'??Сֵ|???????',300,'???ֵ|???????'
162
29='Fld1',1,'??ǰ״̬',0,1,0,0,'0:??????1:???䣬2:???ȣ?3:??ʪ??4:??ʪ??5:??ʪ?¶Ȳ?????6:??ʪ????????7:??ʪ???ȣ?8:??ʪ???䣬9:??ʪ???䣬10:???????¶',0,'';
163
30='Fld1',1,'????״̬',0,1,0,0,'0:ֹͣ??1:???У?2:ͣ???У?3:??ֵ???¸?ʪ',0,'';
164

    
165
31='Fld',1,'?????¶?',0,10,11,150,'??Сֵ|???????',300,'???ֵ|???????'
166
32='Fld',1,'?趨ʪ??',0,10,11,200,'??Сֵ|???????',700,'???ֵ|???????'
167
33='Fld',1,'?ط??¶?',0,10,11,150,'??Сֵ|???????',300,'???ֵ|???????'
168
34='Fld',1,'?ط?ʪ??',0,10,11,200,'??Сֵ|???????',700,'???ֵ|???????'
169
35='Fld',1,'??Դ??ѹ',0,1,11,200,'??Сֵ|???????',350,'???ֵ|???????'