项目

一般

简介

SM4639.def

陆 志毅, 2024-08-06 10:45

 
1
;?????DZ???????, ???: 4639, ???? ????????
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-MDBS4639
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
23=30
37
53=30
38
;???ݰ?λ??չ??ʶ, ???±?ʾ??ַΪ2?????ݰ?8λ??չ, ??[flds]??Ŀ?е??ֶκŰ?40003-x??ʽ
39
;2bit=1
40

    
41

    
42

    
43

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

    
47
;?ж??ֶζ???, ??ʽ: ?ֶκ?(Fld)=???ݵ?ַ. ?????ݲ??????жϼ??, ????????
48
;???ݵ?ַ??Ӧ????ַ: 01??????: 00000, 02??????: 10000, 03??????: 40000, 04??????: 30000
49
[flds]
50
;?ֶ?????
51
cnt=21
52
;?ֶ????ݵ?ַ????ʽ: ?ֶκ?(Fld)=???ݵ?ַ, ???±?ʾ: ?ֶ?1(Fld=1)?????ݵ?ַΪ40001, ??Ӧ[reg3]???????еĵ?ַ0
53
1=40024;A???ѹ
54
40024=F 		
55
2=40026;B???ѹ
56
40026=F	
57
3=40028;C???ѹ
58
40028=F		
59
4=40030;A???ߵ?ѹ
60
40030=F
61
5=40032;B???ߵ?ѹ	
62
40032=F
63
6=40034;C???ߵ?ѹ
64
40034=F
65
7=40036;A?????
66
40036=Lf1000.0
67
8=40038;B?????
68
40038=Lf1000.0	
69
9=40040;C?????
70
40040=Lf1000.0
71
10=40042;A???й?????
72
40042=F		
73
11=40044;B???й?????
74
40044=F
75
12=40046;C???й?????
76
40046=F
77
13=40048;???й?????
78
40048=F
79
14=40056;???޹?????
80
40056=F
81
15=40064;?????ڹ???
82
40064=F
83
16=40072;?ܹ???????
84
40072=Lf1000.0
85
17=40074;Ƶ??
86
40074=F
87
18=40076;?????й?????
88
40076=F
89
19=40078;?????޹?????
90
40078=F
91
20=40080;?????й?????
92
40080=F
93
21=40082;?????޹?????
94
40082=F
95

    
96

    
97
;???????ͼ?ϵ??, ??ʽ: ???ݵ?ַ=Xfac, 
98
;X??ʾ????????(L??ʾ32λ??????(??????ǰ?????ں?), l??ʾ32λ??????(LSBģʽ), I??ʾ32λ??????(MSBģʽ)
99
;f??ʾ?????ȸ?????), S??ʾ16λ?з?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??, U??ʾ16λ?޷?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??,b??ʾ8λ?з?????
100
;LF??ʾ32λ?????ȸ???????MSBģʽ????????ǰ?????ں󣩣?Lf??ʾ32λ?????ȸ???????LSBģʽ????????ǰ?????ں󣩣?fl??ʾ32λ?????ȸ???????LSBģʽ????16λ ??16λ??????,
101
;fL??ʾ32λ?????ȸ???????MSBģʽ????16λ ??16λ??????
102
;fac??ʾϵ??, ??ϵ??Ϊ0.1, ??fac=0.1. ???????ʾΪ: 
103
;40002=L0.1
104
;??λ??չ??ʶ, 1=8λ 2=16λ 4=32λ. ???±?ʾ???Ϊ2??????Ϊ16λ????״̬??
105
;2bit=2
106
;??λ??չ???ֶ?????, ???±?ʾ?ֶ?3????Ϊ???ݵ?ַ40003(??Ӧ[regs3]?ĵ?ַ2)???ݵ?BIT0
107
;3=40003-0
108

    
109

    
110

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

    
132

    
133

    
134

    
135

    
136

    
137

    
138