项目

一般

简介

SM4637.def

多功能电表 - 陆 志毅, 2022-03-25 17:59

 
1
;?????DZ???????, ???: 4637, ???? #4230?????о??µ???????
2
[comm]
3
;?򿪵????????Ϣ, 0-??????, 1-????
4
debug=1
5
;????
6
note=?????DZ?MODBUSЭ??
7
;???ݶ?ȡʱ????(??????ָ???, ?ӳٶ?ȡ????ʱ????), ??λ: ????(ms)??Ĭ??10ms
8
delay=50
9
;????
10
mask=0
11
;?ͺ?????֧????????
12
model=OM-MDBS4637
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
brief=??ѹ: A:%1% V %1st% B:%2% V %2st% C:%3% V %3st%;
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

    
29
;02??????
30
[regs2]
31

    
32
;03??????
33
[regs3]
34
;ָ????ַ???ȡ?????ݸ???, ??ʽ?????ݵ?ַ=??ȡ??????. ??: ?ӵ?ַ40001??ȡ2?????ݣ???д??: 0=2. 
35
;???ݵ?ַΪ10???Ʊ?ʾ????Э??????16???Ƶ?ַ????ת??Ϊ10???ƺ???д??
36
2=80
37
;???ݰ?λ??չ??ʶ, ???±?ʾ??ַΪ2?????ݰ?8λ??չ, ??[flds]??Ŀ?е??ֶκŰ?40003-x??ʽ
38
;2bit=1
39

    
40

    
41

    
42

    
43
;04??????
44
[regs4]
45

    
46
;?ж??ֶζ???, ??ʽ: ?ֶκ?(Fld)=???ݵ?ַ. ?????ݲ??????жϼ??, ????????
47
;???ݵ?ַ??Ӧ????ַ: 01??????: 00000, 02??????: 10000, 03??????: 40000, 04??????: 30000
48
[flds]
49
;?ֶ?????
50
cnt=15
51
;?ֶ????ݵ?ַ????ʽ: ?ֶκ?(Fld)=???ݵ?ַ, ???±?ʾ: ?ֶ?1(Fld=1)?????ݵ?ַΪ40001, ??Ӧ[reg3]???????еĵ?ַ0
52
1=40003;A???ѹ
53
40003=F 		
54
2=40005;B???ѹ
55
40005=F	
56
3=40007;C???ѹ
57
40007=F		
58
4=40009;A???ߵ?ѹ
59
40009=F
60
5=40011;B???ߵ?ѹ	
61
40011=F
62
6=40013;C???ߵ?ѹ
63
40013=F
64
7=40015;A?????
65
40015=F
66
8=40017;B?????
67
40017=F	
68
9=40019;C?????
69
40019=F
70
10=40021;A???й?????
71
40021=F		
72
11=40023;B???й?????
73
40023=F
74
12=40025;C???й?????
75
40025=F
76
13=40027;???й?????
77
40027=F
78
14=40059;???й?????
79
40059=F
80
15=40065;???޹?????
81
40065=F
82

    
83

    
84

    
85

    
86

    
87

    
88
;???????ͼ?ϵ??, ??ʽ: ???ݵ?ַ=Xfac, 
89
;X??ʾ????????(L??ʾ32λ??????(??????ǰ?????ں?), l??ʾ32λ??????(LSBģʽ), I??ʾ32λ??????(MSBģʽ)
90
;f??ʾ?????ȸ?????), S??ʾ16λ?з?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??, U??ʾ16λ?޷?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??,b??ʾ8λ?з?????
91
;LF??ʾ32λ?????ȸ???????MSBģʽ????????ǰ?????ں󣩣?Lf??ʾ32λ?????ȸ???????LSBģʽ????????ǰ?????ں󣩣?fl??ʾ32λ?????ȸ???????LSBģʽ????16λ ??16λ??????,
92
;fL??ʾ32λ?????ȸ???????MSBģʽ????16λ ??16λ??????
93
;fac??ʾϵ??, ??ϵ??Ϊ0.1, ??fac=0.1. ???????ʾΪ: 
94
;40002=L0.1
95
;??λ??չ??ʶ, 1=8λ 2=16λ 4=32λ. ???±?ʾ???Ϊ2??????Ϊ16λ????״̬??
96
;2bit=2
97
;??λ??չ???ֶ?????, ???±?ʾ?ֶ?3????Ϊ???ݵ?ַ40003(??Ӧ[regs3]?ĵ?ַ2)???ݵ?BIT0
98
;3=40003-0
99

    
100

    
101

    
102
;???ݱ???????
103
[flds.def]
104
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
105
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
106
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
107
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
108
;	   ??ֵ????: ????, Ĭ??Ϊ0
109
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
110
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
111
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
112
;				 Ĭ??????Ϊ?????(0 ???? 10)
113
1='Fld',1,'A???ѹ',0,10,11,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
114
2='Fld',1,'B???ѹ',0,10,11,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
115
3='Fld',1,'C???ѹ',0,10,11,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
116
4='Fld',1,'A???ߵ?ѹ',0,100,11,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
117
5='Fld',1,'B???ߵ?ѹ',0,100,11,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
118
6='Fld',1,'C???ߵ?ѹ',0,100,11,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
119
7='Fld',1,'A?????',0,10,11,1800,'??Сֵ|???????ֵ.',4000,'???ֵ|???????ֵ'
120
8='Fld',1,'B?????',0,10,11,1800,'??Сֵ|???????ֵ.',2400,'???ֵ|???????ֵ'
121
9='Fld',1,'C?????',0,10,11,1800,'??Сֵ|???????ֵ.',2400,'???ֵ|???????ֵ'
122
10='Fld',1,'A???й?????',0,100,10,1000,'??Сֵ|???????ֵ.',15000,'???ֵ|???????ֵ'
123
11='Fld',1,'B???й?????',0,100,10,1000,'??Сֵ|???????ֵ.',15000,'???ֵ|???????ֵ'
124
12='Fld',1,'C???й?????',0,100,10,1000,'??Сֵ|???????ֵ.',15000,'???ֵ|???????ֵ'
125
13='Fld',1,'???й?????',0,100,10,1800,'??Сֵ|???????ֵ.',2400,'???ֵ|???????ֵ'
126
14='Fld',1,'???й?????',0,100,10,1800,'??Сֵ|???????ֵ.',2400,'???ֵ|???????ֵ'
127
15='Fld',1,'???й?????',0,100,10,1800,'??Сֵ|???????ֵ.',2400,'???ֵ|???????ֵ'
128

    
129

    
130

    
131

    
132

    
133

    
134