项目

一般

简介

SM4617.def

变压器温控 - 李 凯健, 2024-06-24 18:43

 
1
;#5600???չ??Ե??????????޹?˾ ??ѹ???¿?
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-MDBS4617
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
brief=A???¶?: %1%?? %1st%, B???¶?: %2% ?? %2st% , C???¶?: %3% ?? %3st%
15
;?Ƿ????CRCУ?飿0-??У?飬1-У??
16
;crc=0
17
;???ݰ??ֽڽ?????0-????׼UINT16??????1-???ֽڽ???
18
DataByte=0
19

    
20
[regs1]
21

    
22

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

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

    
31
0=6;
32

    
33

    
34
;04??????
35
[regs4]
36

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

    
44

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

    
55
1=40002;A???¶?
56
40002_SUM = -35
57

    
58
2=40003;B???¶?
59
40003_SUM = -35
60

    
61
3=40004;C???¶?
62
40004_SUM = -35
63

    
64
4=40005;?????ʱ????ʱ??h
65

    
66
5=40006;d·?¶?
67

    
68

    
69

    
70

    
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,'A???¶?',0,1,10,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
85
2='Fld',1,'B???¶?',0,1,10,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
86
3='Fld',1,'C???¶?',0,1,10,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
87
4='Fld',1,'?????ʱ????ʱ??h',0,1,10,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
88
5='Fld',1,'d·?¶?',0,1,10,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
89

    
90

    
91

    
92
[flds.val]
93

    
94
[vals]
95

    
96

    
97