项目

一般

简介

SM4916.def

水泵机组16bar - 李 凯健, 2024-09-27 19:12

 
1
;ˮ??, ???: 4909, ??Ŀ: #3845 ???????μѻ??Ƽ????޹?˾
2
[comm]
3
;?򿪵????????Ϣ, 0-??????, 1-????
4
debug=1
5
;????
6
note=ˮ??
7
;???ݶ?ȡʱ????(??????ָ???, ?ӳٶ?ȡ????ʱ????), ??λ: ????(ms)??Ĭ??10ms
8
delay=50
9
;????
10
mask=0
11
;?ͺ?????֧????????
12
model=OM-MDBS4910
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
;brief=???ѹ??: %31% Bar %31st% , ????ѹ??: I1: I3:%33% Bar %33st%
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

    
23
Yk00=0600640001;?ر?
24

    
25
Yk01=0600640003;????
26

    
27
Yk02=0600650005;?ջ?
28

    
29
Yk03=0600650000;????
30

    
31

    
32

    
33

    
34
;03??????
35
[regs3]
36
;ָ????ַ???ȡ?????ݸ???, ??ʽ?????ݵ?ַ=??ȡ??????. ??: ?ӵ?ַ40001??ȡ2?????ݣ???д??: 
37
;???ݵ?ַΪ10???Ʊ?ʾ????Э??????16???Ƶ?ַ????ת??Ϊ10???ƺ???д??
38

    
39
200=3;
40
200bit=2;
41
307=1;
42
315=1;
43
400=5;
44
400bit=2;
45
410=5;
46
410bit=2;
47
420=5;
48
420bit=2;
49

    
50

    
51

    
52

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

    
60

    
61

    
62
1=40201-9;ˮ??״̬        ֹͣ=0??????=1
63
2=40201-6;ˮ??????״̬    ??ˮ??????=0????ˮ??????=1
64
3=40308;?趨ֵ   100  %
65
40308_MUL=0.16
66
4=40316;ʵ??ֵ   /1000
67
40316=U0.01
68

    
69
5=40401-1;ˮ??1??ͣ
70
6=40401-2;ˮ??1????״̬
71
7=40402;ˮ??1????????
72
8=40405;ˮ??1ת??
73

    
74
9=40411-1;ˮ??2??ͣ
75
10=40411-2;ˮ??2????״̬
76
11=40412;ˮ??2????????
77
12=40415;ˮ??2ת??
78

    
79
13=40421-1;ˮ??3??ͣ
80
14=40421-2;ˮ??3????״̬
81
15=40422;ˮ??3????????
82
16=40425;ˮ??3ת??
83

    
84
17=40201-8;????ģʽ
85
18=40203;????ģʽ
86

    
87

    
88

    
89

    
90

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

    
103

    
104

    
105
;???ݱ???????
106
[flds.def]
107
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
108
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
109
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
110
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
111
;	   ??ֵ????: ????, Ĭ??Ϊ0
112
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
113
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
114
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
115
;				 Ĭ??????Ϊ?????(0 ???? 10)
116

    
117

    
118

    
119
1='Fld',1,'ˮ??״̬',0,1,0,0,'0:ֹͣ??1:????',0,''
120
2='Fld',1,'ˮ??????״̬',0,1,0,0,'0:???أ?1:Զ??',0,''
121
3='Fld',1,'?趨ֵ',0,1,10,100,'??Сֵ|???????ֵ.',10000,'???ֵ|???????ֵ'
122
4='Fld',1,'ʵ??ֵ',0,1,10,100,'??Сֵ|???????ֵ.',1000,'???ֵ|???????ֵ'
123

    
124
5='Fld',1,'ˮ??1??ͣ',0,1,0,0,'0:ֹͣ??1:????',0,''
125
6='Fld',1,'ˮ??1????״̬',0,1,0,0,'0:??????1:?澯',0,''
126
7='Fld',1,'ˮ??1????????',0,1,0,0,'0:??????1:?澯',0,''
127
8='Fld',1,'ˮ??1ת??',0,1,100,100,'??Сֵ|???????ֵ.',1000,'???ֵ|???????ֵ'
128

    
129

    
130
9='Fld',1,'ˮ??2??ͣ',0,1,0,0,'0:ֹͣ??1:????',0,''
131
10='Fld',1,'ˮ??2????״̬',0,1,0,0,'0:??????1:?澯',0,''
132
11='Fld',1,'ˮ??2????????',0,1,0,0,'0:??????1:?澯',0,''
133
12='Fld',1,'ˮ??2ת??',0,1,100,100,'??Сֵ|???????ֵ.',1000,'???ֵ|???????ֵ'
134

    
135
13='Fld',1,'ˮ??3??ͣ',0,1,0,0,'0:ֹͣ??1:????',0,''
136
14='Fld',1,'ˮ??3????״̬',0,1,0,0,'0:??????1:?澯',0,''
137
15='Fld',1,'ˮ??3????????',0,1,0,0,'0:??????1:?澯',0,''
138
16='Fld',1,'ˮ??3ת??',0,1,100,100,'??Сֵ|???????ֵ.',1000,'???ֵ|???????ֵ'
139

    
140

    
141

    
142
[flds.val]
143

    
144
[vals]
145

    
146

    
147