项目

一般

简介

SM4618.def

PT柜 - 李 凯健, 2024-06-24 18:45

 
1
;#5600???չ??Ե??????????޹?˾ PT??
2
[comm]
3
;?򿪵????????Ϣ, 0-??????, 1-????
4
debug=1
5
;????
6
note=PT??MODBUSЭ??
7
;???ݶ?ȡʱ????(??????ָ???, ?ӳٶ?ȡ????ʱ????), ??λ: ????(ms)??Ĭ??10ms
8
delay=50
9
;????
10
mask=0
11
;?ͺ?????֧????????
12
model=OM-MDBS4618
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
brief=һ??UAB??ѹ: %1%V %1st%, һ??UBC??ѹ: %2%V %2st% , һ??UCA??ѹ: %3%V %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
150=9;
32

    
33

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

    
37
;?ж??ֶζ???, ??ʽ: ?ֶκ?(Fld)=???ݵ?ַ. ?????ݲ??????жϼ??, ????????
38
;???ݵ?ַ??Ӧ????ַ: 01??????: 00000, 02??????: 10000, 03??????: 40000, 04??????: 30000
39
[flds]
40
;?ֶ?????
41
cnt=8
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=40151;һ??UAB??ѹ
56

    
57
2=40152;һ??UBC??ѹ
58

    
59
3=40153;һ??UCA??ѹ
60

    
61
4=40154;????UAB??ѹ
62

    
63
5=40155;????UBC??ѹ
64

    
65
6=40156;????UCA??ѹ
66

    
67
7=40158;һ??UO
68

    
69
8=40159;????UO
70

    
71
;???ݱ???????
72
[flds.def]
73
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
74
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
75
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
76
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
77
;	   ??ֵ????: ????, Ĭ??Ϊ0
78
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
79
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
80
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
81
;				 Ĭ??????Ϊ?????(0 ???? 10)
82
1='Fld',1,'һ??UAB??ѹ',0,100,10,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
83
2='Fld',1,'һ??UBC??ѹ',0,100,10,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
84
3='Fld',1,'һ??UCA??ѹ',0,100,10,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
85
4='Fld',1,'????UAB??ѹ',0,100,10,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
86
5='Fld',1,'????UBC??ѹ',0,100,10,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
87
6='Fld',1,'????UCA??ѹ',0,100,10,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
88
7='Fld',1,'һ??UO',0,1,10,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
89
8='Fld',1,'????UO',0,1,10,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
90

    
91

    
92

    
93
[flds.val]
94

    
95
[vals]
96

    
97

    
98