项目

一般

简介

SM4618.def

黄 正梁, 2022-09-16 11:02

 
1
;???ܿյ????, ???: 4618, ??Ŀ: #4079 ????˰???ֺܾ???˰??ּ???ҵ???÷????????̽??? INϵ?????ܾ??ܿյ???26-100kW?? ??Ƶ Modbus ???Э?? 20180711 V2.1.doc
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-MDBS4618
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
;brief=??ѹ: A:%2% V %2st% B:%3% V %3st% C:%4% V %4st%, ????: I1:%8% A % %8st% I2:%9% A % %9st% I3:%10% A % %10st%
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
0=20
37

    
38
;???ݰ?λ??չ??ʶ, ???±?ʾ??ַΪ2?????ݰ?8λ??չ, ??[flds]??Ŀ?е??ֶκŰ?40003-x??ʽ
39
;2bit=1
40
7=2
41
8=2
42
9=2
43

    
44

    
45

    
46

    
47
;04??????
48
[regs4]
49

    
50
;?ж??ֶζ???, ??ʽ: ?ֶκ?(Fld)=???ݵ?ַ. ?????ݲ??????жϼ??, ????????
51
;???ݵ?ַ??Ӧ????ַ: 01??????: 00000, 02??????: 10000, 03??????: 40000, 04??????: 30000
52
[flds]
53
;?ֶ?????
54
cnt=31
55
;?ֶ????ݵ?ַ????ʽ: ?ֶκ?(Fld)=???ݵ?ַ, ???±?ʾ: ?ֶ?1(Fld=1)?????ݵ?ַΪ40001, ??Ӧ[reg3]???????еĵ?ַ0
56
1=40001;?ط??¶?
57
2=40002;?ط?ʪ??
58
3=40008-9;???±???
59
4=40008-10;???±???
60
5=40008-11;??ʪ????
61
6=40008-12;??ʪ????
62
7=40008-13;??ʪ?????ϱ???
63
8=40009-3;?䶳ˮ?¶ȴ????????ϱ???
64
9=40010-0;??Դ??ʧ????
65
10=40010-1;??Դ???ϱ???
66
11=40014;????????״̬
67
12=40017;?ط??¶??趨
68
13=40018;?¶Ⱦ????趨
69
14=40019;?ط?ʪ???趨
70
15=40020;ʪ?Ⱦ????趨
71

    
72

    
73

    
74

    
75
;???????ͼ?ϵ??, ??ʽ: ???ݵ?ַ=Xfac, 
76
;X??ʾ????????(L??ʾ32λ??????(??????ǰ?????ں?), l??ʾ32λ??????(LSBģʽ), I??ʾ32λ??????(MSBģʽ)
77
;f??ʾ?????ȸ?????), S??ʾ16λ?з?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??, U??ʾ16λ?޷?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??,b??ʾ8λ?з?????
78
;LF??ʾ32λ?????ȸ???????MSBģʽ????????ǰ?????ں󣩣?Lf??ʾ32λ?????ȸ???????LSBģʽ????????ǰ?????ں󣩣?fl??ʾ32λ?????ȸ???????LSBģʽ????16λ ??16λ??????,
79
;fL??ʾ32λ?????ȸ???????MSBģʽ????16λ ??16λ??????
80
;fac??ʾϵ??, ??ϵ??Ϊ0.1, ??fac=0.1. ???????ʾΪ: 
81
;40002=L0.1
82
;??λ??չ??ʶ, 1=8λ 2=16λ 4=32λ. ???±?ʾ???Ϊ2??????Ϊ16λ????״̬??
83
;2bit=2
84
;??λ??չ???ֶ?????, ???±?ʾ?ֶ?3????Ϊ???ݵ?ַ40003(??Ӧ[regs3]?ĵ?ַ2)???ݵ?BIT0
85
;3=40003-0
86

    
87

    
88

    
89
;???ݱ???????
90
[flds.def]
91
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
92
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
93
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
94
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
95
;	   ??ֵ????: ????, Ĭ??Ϊ0
96
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
97
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
98
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
99
;				 Ĭ??????Ϊ?????(0 ???? 10)
100
1='?ط??¶?',1,'?ط??¶?',0,10,11,1500,'??Сֵ|???????ֵ',3500,'???ֵ|???????ֵ'
101
2='?ط?ʪ??',1,'?ط?ʪ??',0,10,11,2000,'??Сֵ|???????ֵ',8000,'???ֵ|???????ֵ'
102
12='?ط??¶??趨',1,'?ط??¶??趨',0,10,11,1500,'??Сֵ|???????ֵ',3500,'???ֵ|???????ֵ'
103
14='?ط??¶??趨',1,'?ط??¶??趨',0,10,11,2000,'??Сֵ|???????ֵ',8000,'???ֵ|???????ֵ'
104

    
105

    
106
[flds.val]
107

    
108
[vals]
109

    
110

    
111