项目

一般

简介

SM4932.def

李 凯健, 2023-05-05 09:21

 
1
;ɽ?ؾ??ܿյ?, ???: , ??Ŀ: 
2
[comm]
3
;?򿪵????????Ϣ, 0-??????, 1-????
4
debug=1
5
;????
6
note=???ܿյ?MODBUSЭ??
7
;???ݶ?ȡʱ????(??????ָ???, ?ӳٶ?ȡ????ʱ????), ??λ: ????(ms)??Ĭ??10ms
8
delay=50
9
;????
10
mask=0
11
;?ͺ?????֧????????
12
model=OM-MDBS4932
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
brief=?????¶?: %20%?? %20st%, ????ʪ??: %21% % %21st% 
15
;?Ƿ????CRCУ?飿0-??У?飬1-У??
16
;crc=0
17
;???ݰ??ֽڽ?????0-????׼UINT16??????1-???ֽڽ???
18
;DataByte=0
19

    
20

    
21
;regsX??ʾʹ?ù?????X (??֧??01??02??03??04??????)
22
;01??????
23
[regs1]
24

    
25
;02??????
26
[regs2]
27
0=50
28
;03??????
29
[regs3]
30
;ָ????ַ???ȡ?????ݸ???, ??ʽ?????ݵ?ַ=??ȡ??????. ??: ?ӵ?ַ40001??ȡ2?????ݣ???д??: 0=2. 
31
;???ݵ?ַΪ10???Ʊ?ʾ????Э??????16???Ƶ?ַ????ת??Ϊ10???ƺ???д??
32

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

    
36
;04??????
37
[regs4]
38
8=20
39
;?ж??ֶζ???, ??ʽ: ?ֶκ?(Fld)=???ݵ?ַ. ?????ݲ??????жϼ??, ????????
40
;???ݵ?ַ??Ӧ????ַ: 01??????: 00000, 02??????: 10000, 03??????: 40000, 04??????: 30000
41
[flds]
42
;?ֶ?????
43
cnt=22
44
;?ֶ????ݵ?ַ????ʽ: ?ֶκ?(Fld)=???ݵ?ַ, ???±?ʾ: ?ֶ?1(Fld=1)?????ݵ?ַΪ40001, ??Ӧ[reg3]???????еĵ?ַ0
45

    
46

    
47
;???????ͼ?ϵ??, ??ʽ: ???ݵ?ַ=Xfac, 
48
;X??ʾ????????(L??ʾ32λ??????(??????ǰ?????ں?), l??ʾ32λ??????(LSBģʽ), I??ʾ32λ??????(MSBģʽ)
49
;f??ʾ?????ȸ?????),F??ʾ32λ˫???ȸ??㣬S??ʾ16λ?з?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??, U??ʾ16λ?޷?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??,b??ʾ8λ?з?????
50
;fac??ʾϵ??, ??ϵ??Ϊ0.1, ??fac=0.1. ???????ʾΪ: 
51
;40002=L0.1
52
;??λ??չ??ʶ, 1=8λ 2=16λ 4=32λ. ???±?ʾ???Ϊ2??????Ϊ16λ????״̬??
53
;2bit=2
54
;??λ??չ???ֶ?????, ???±?ʾ?ֶ?3????Ϊ???ݵ?ַ40003(??Ӧ[regs3]?ĵ?ַ2)???ݵ?BIT0
55
;3=40003-0
56

    
57
1=10002;ǿ?Ʊ????ػ?
58
2=10003;????ʵ??״̬
59
3=10005;????????
60
4=10006;?ͷ??״̬ 
61
5=10007;??ʪ??????״̬ 
62
6=10008;ѹ????1״̬
63
7=10020;?????1״̬
64
8=10032;©ˮ???? 
65
9=10033;?????¶?̽ͷ????
66
10=10034;?ط?ʪ?ȴ?????????
67
11=10035;?ط??¶ȴ?????????
68
12=10036;????1?¶?̽ͷ????
69
13=10040;?ط??¶?̽ͷ????
70
14=10041;?¶ȹ??߱???
71
15=10042;?¶ȹ??ͱ???
72
16=10043;ʪ?ȹ??߱???
73
17=10044;ʪ?ȹ??ͱ???
74
18=30010;?ط??¶?
75
19=30011;?????¶?
76

    
77
20=30018;?????¶?
78
21=30019;????ʪ??
79
 
80

    
81

    
82
;???ݱ???????
83
[flds.def]
84
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
85
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
86
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
87
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
88
;	   ??ֵ????: ????, Ĭ??Ϊ0
89
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
90
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
91
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
92
;				 Ĭ??????Ϊ?????(0 ???? 10)
93
1='Fld',1,'ǿ?Ʊ????ػ?',0,1,0,0,'0:??????1:?澯',0,''
94
2='Fld',1,'????ʵ??״̬',0,1,0,0,'0:??????1:?澯',0,''
95
3='Fld',1,'????????',0,1,0,0,'0:??????1:?澯',0,''
96
4='Fld',1,'?ͷ??״̬',0,1,0,0,'0:??????1:?澯',0,''
97
5='Fld',1,'??ʪ??????״̬',0,1,0,0,'0:??????1:?澯',0,''
98
6='Fld',1,'ѹ????1״̬',0,1,0,0,'0:??????1:?澯',0,''
99
7='Fld',1,'?????1״̬',0,1,0,0,'0:??????1:?澯',0,''
100
8='Fld',1,'©ˮ????',0,1,0,0,'0:??????1:?澯',0,''
101
9='Fld',1,'?????¶?̽ͷ????',0,1,0,0,'0:??????1:?澯',0,''
102
10='Fld',1,'?ط?ʪ?ȴ?????????',0,1,0,0,'0:??????1:?澯',0,''
103
11='Fld',1,'?ط??¶ȴ?????????',0,1,0,0,'0:??????1:?澯',0,''
104
12='Fld',1,'????1?¶?̽ͷ????',0,1,0,0,'0:??????1:?澯',0,''
105
13='Fld',1,'?ط??¶?̽ͷ????',0,1,0,0,'0:??????1:?澯',0,''
106
14='Fld',1,'?¶ȹ??߱???',0,1,0,0,'0:??????1:?澯',0,''
107
15='Fld',1,'?¶ȹ??ͱ???',0,1,0,0,'0:??????1:?澯',0,''
108
16='Fld',1,'ʪ?ȹ??߱???',0,1,0,0,'0:??????1:?澯',0,''
109
17='Fld',1,'ʪ?ȹ??ͱ???',0,1,0,0,'0:??????1:?澯',0,''
110
18='Fld',1,'?ط??¶?',0,10,11,400,'??Сֵ|???????ֵ.',600,'???ֵ|???????ֵ'
111
19='Fld',1,'?????¶?',0,10,11,400,'??Сֵ|???????ֵ',700,'???ֵ|???????ֵ'
112
20='Fld',1,'?????¶?',0,10,11,400,'??Сֵ|???????ֵ',700,'???ֵ|???????ֵ'
113
21='Fld',1,'????ʪ??',0,10,11,400,'??Сֵ|???????ֵ.',600,'???ֵ|???????ֵ'
114

    
115

    
116
[flds.val]
117

    
118
[vals]
119

    
120

    
121