项目

一般

简介

SM4941.def

陆 志毅, 2024-06-13 16:08

 
1
;xxxx??????, ???: , ??Ŀ: 
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-MDBS4608
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
brief=?¶?: %4%?? %4st%, ʪ??: %5% % %5st% 
15
;?Ƿ????CRCУ?飿0-??У?飬1-У??
16
;crc=0
17
;???ݰ??ֽڽ?????0-????׼UINT16??????1-???ֽڽ???
18
;DataByte=0
19

    
20

    
21

    
22
;03??????
23
[regs3]
24
;ָ????ַ???ȡ?????ݸ???, ??ʽ?????ݵ?ַ=??ȡ??????. ??: ?ӵ?ַ40001??ȡ2?????ݣ???д??: 0=2. 
25
;???ݵ?ַΪ10???Ʊ?ʾ????Э??????16???Ƶ?ַ????ת??Ϊ10???ƺ???д??
26

    
27
0=20
28
12bit=2
29
13bit=2
30

    
31

    
32
[flds]
33
;?ֶ?????
34

    
35
;?ֶ????ݵ?ַ????ʽ: ?ֶκ?(Fld)=???ݵ?ַ, ???±?ʾ: ?ֶ?1(Fld=1)?????ݵ?ַΪ40001, ??Ӧ[reg3]???????еĵ?ַ0
36

    
37

    
38
;???????ͼ?ϵ??, ??ʽ: ???ݵ?ַ=Xfac, 
39
;X??ʾ????????(L??ʾ32λ??????(??????ǰ?????ں?), l??ʾ32λ??????(LSBģʽ), I??ʾ32λ??????(MSBģʽ)
40
;f??ʾ?????ȸ?????),F??ʾ32λ˫???ȸ??㣬S??ʾ16λ?з?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??, U??ʾ16λ?޷?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??,b??ʾ8λ?з?????
41
;fac??ʾϵ??, ??ϵ??Ϊ0.1, ??fac=0.1. ???????ʾΪ: 
42
;40002=L0.1
43
;??λ??չ??ʶ, 1=8λ 2=16λ 4=32λ. ???±?ʾ???Ϊ2??????Ϊ16λ????״̬??
44
;2bit=2
45
;??λ??չ???ֶ?????, ???±?ʾ?ֶ?3????Ϊ???ݵ?ַ40003(??Ӧ[regs3]?ĵ?ַ2)???ݵ?BIT0
46
;3=40003-0
47

    
48
cnt=21
49
1=40001; ???ػ?
50
2=40002; ?趨?ط??¶?
51
3=40003; ?趨?ط?ʪ??
52
4=40004; ?ط??¶Ȳ???ֵ
53
5=40005; ?ط?ʪ?Ȳ???ֵ
54
6=40006; ?趨?ͷ??¶?
55
7=40007; ?趨?ͷ?ʪ??
56
8=40008; ?ͷ??¶Ȳ???ֵ
57
9=40009; ?ͷ?ʪ?Ȳ???ֵ
58

    
59
10=40013-0; ???ػ?״̬
60
11=40013-1; ???
61
12=40013-2; ????
62
13=40013-3; ????
63
14=40013-4; ??ʪ
64
15=40013-5; ??ʪ
65
16=40014-0; ?ط???¸澯
66
17=40014-1; ?ط???¸澯
67
18=40014-2; ?ط??ʪ?澯
68
19=40014-3; ?ط??ʪ?澯
69
20=40014-4; ?ͷ???¸澯
70
21=40014-5; ?ͷ???¸澯
71

    
72

    
73
;???ݱ???????
74
[flds.def]
75
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
76
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
77
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
78
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
79
;	   ??ֵ????: ????, Ĭ??Ϊ0
80
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
81
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
82
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
83
;				 Ĭ??????Ϊ?????(0 ???? 10)
84
1='Fld',1,'???ػ?',0,1,0,0,'0:?ػ???1:????',0,''
85
4='Fld',1,'?ط??¶Ȳ???ֵ',0,10,11,0,'??Сֵ|???????ֵ',5000,'???ֵ|???????ֵ'
86
5='Fld',1,'?ط?ʪ?Ȳ???ֵ',0,10,11,0,'??Сֵ|???????ֵ',9000,'???ֵ|???????ֵ'
87
16='Fld',1,'?ط???¸澯',0,1,0,0,'0:??????1:?澯',0,''
88
17='Fld',1,'?ط???¸澯',0,1,0,0,'0:??????1:?澯',0,''
89
18='Fld',1,'?ط??ʪ?澯',0,1,0,0,'0:??????1:?澯',0,''
90
19='Fld',1,'?ط??ʪ?澯',0,1,0,0,'0:??????1:?澯',0,''
91
20='Fld',1,'?ͷ???¸澯',0,1,0,0,'0:??????1:?澯',0,''
92
21='Fld',1,'?ͷ???¸澯',0,1,0,0,'0:??????1:?澯',0,''
93

    
94
[flds.val]
95

    
96
[vals]
97

    
98

    
99