1
|
;xxxx??????, ???: , ??Ŀ:
|
2
|
[comm]
|
3
|
;?????????
|
4
|
cnt=0
|
5
|
;?????????Ϣ, 0-??????, 1-????
|
6
|
debug=0
|
7
|
;????
|
8
|
note=??ʪ??MODBUSЭ??
|
9
|
;???ݶ?ȡʱ????(??????ָ???, ?ӳٶ?ȡ????ʱ????), ??λ: ????(ms)??Ĭ??10ms
|
10
|
delay=10
|
11
|
;??????ʱ??Ҫ????????????????Ӧ, ??λ: ????(ms)??Ĭ??10ms
|
12
|
delayv=0
|
13
|
;???ݳ?ʱʱ??, ??λ: ????(ms)??Ĭ??300ms
|
14
|
timeout=300
|
15
|
;????
|
16
|
mask=0
|
17
|
;?ͺ?????֧????????
|
18
|
model=OM-MDBS4608
|
19
|
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
|
20
|
brief=?¶?: %1%?? %1st%, ʪ??: %2% % %2st%
|
21
|
;?Ƿ????CRCУ?飿0-??У?飬1-У??
|
22
|
crc=0
|
23
|
;???ݰ??ֽڽ?????0-????UINT16??????1-???ֽڽ???
|
24
|
DataByte=0
|
25
|
;modbus ascii
|
26
|
ascii=0
|
27
|
;CRCУ???ֽ???0-С?ˣ?LSB????1-???(MSB)
|
28
|
EndianCRC=0
|
29
|
|
30
|
;ң?ع???, ??ʽ:Ykxx=Cmd. ң?? xx??ӦiFunc Cmd??ʽ:cmd[,dat] ??Modbus?????ʽ??????ַ??CRC֮??????????ݣ?
|
31
|
;??Ҫ????ң?ع???, Э??汾?Ų???Ϊ??
|
32
|
Yk00=0503E7FF00 ;????յ?????
|
33
|
Yk01=0503E70000 ;????յ??ػ?
|
34
|
|
35
|
;[RegEx]??չ??????֧??
|
36
|
;ʮ?????Ʊ?ʾ,????:
|
37
|
;[RegEx]
|
38
|
;0x71
|
39
|
;0x7B
|
40
|
;0x77
|
41
|
|
42
|
|
43
|
;regsX??ʾʹ?ù?????X (??֧??01??02??03??04??????)
|
44
|
;01??????
|
45
|
[regs1]
|
46
|
|
47
|
;02??????
|
48
|
[regs2]
|
49
|
|
50
|
;03??????
|
51
|
[regs3]
|
52
|
;ָ????ַ???ȡ?????ݸ???, ??ʽ?????ݵ?ַ=??ȡ??????. ??: ?ӵ?ַ40001??ȡ2?????ݣ???д??: 0=2.
|
53
|
;???ݵ?ַΪ10???Ʊ?ʾ????Э??????16???Ƶ?ַ????ת??Ϊ10???ƺ???д??
|
54
|
0=2
|
55
|
;???ݰ?λ??չ??ʶ, 1=8λ 2=16λ 4=32λ.???±?ʾ??ַΪ2?????ݰ?8λ??չ, ??[flds]??Ŀ?е??ֶκŰ?40003-x??ʽ
|
56
|
;2bit=1
|
57
|
;???ߵ??ֽ???չ??ʶ?????±?ʾΪ4??ַ?????ݰ??ߵ??ֽ???չ????[flds]??Ŀ?е??ֶκŰ?[40005-H 40005-L]??ʽ
|
58
|
;4HL=1
|
59
|
;???ߵ??ֽ?(4Bits)??????չ??ʶ?????±?ʾΪ4??ַ?????ݰ?Byte/2??չ????[flds]??Ŀ?е??ֶκŰ?[40005-HHB,40005-HLB,40005-LHB,40005-LLB]??ʽ
|
60
|
;4HLB=1
|
61
|
|
62
|
;04??????
|
63
|
[regs4]
|
64
|
|
65
|
;?ж??ֶζ???, ??ʽ: ?ֶκ?(Fld)=???ݵ?ַ. ?????ݲ??????жϼ??, ????????
|
66
|
;???ݵ?ַ??Ӧ????ַ: 01??????: 00000, 02??????: 10000, 03??????: 40000, 04??????: 30000
|
67
|
[flds]
|
68
|
;?ֶ?????
|
69
|
cnt=2
|
70
|
;?ֶ????ݵ?ַ????ʽ: ?ֶκ?(Fld)=???ݵ?ַ, ???±?ʾ: ?ֶ?1(Fld=1)?????ݵ?ַΪ40001, ??Ӧ[reg3]???????еĵ?ַ0
|
71
|
1=40001
|
72
|
2=40002
|
73
|
;???????ͼ?ϵ??, ??ʽ: ???ݵ?ַ=Xfac,
|
74
|
;X??ʾ????????(L??ʾ32λ??????(??????ǰ?????ں?), l??ʾ32λ??????(LSBģʽ), I??ʾ32λ??????(MSBģʽ)??
|
75
|
;f??ʾ????0?ĵ????ȸ?????(MSBģʽ????16λ ??16λ????),F??ʾ????0?ĵ????ȸ?????(MSBģʽ), S??ʾ16λ?з?????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??, U??ʾ16λ??????????д??ʾ??λ??ǰ??Сд??ʾ??λ??ǰ??,b??ʾ8λ?з?????
|
76
|
;LF??ʾС??0??32λ?????ȸ???????MSBģʽ????????ǰ?????ں?Lf??ʾС??0??32λ?????ȸ???????LSBģʽ????????ǰ?????ں?fl??ʾ32λ?????ȸ???????LSBģʽ????16λ ??16λ??????,
|
77
|
;fL??ʾ32λ?????ȸ???????MSBģʽ????16λ ??16λ??????
|
78
|
;fac??ʾϵ??, ??ϵ??Ϊ0.1, ??fac=0.1. ???????ʾΪ:
|
79
|
;40002=L0.1
|
80
|
;??λ??չ???ֶ?????, ???±?ʾ?ֶ?3????Ϊ???ݵ?ַ40003(??Ӧ[regs3]?ĵ?ַ2)???ݵ?BIT0
|
81
|
;3=40003-0
|
82
|
|
83
|
;???????ƫ?ƻ??㣺??ԭ?????????ͼ?ϵ?????????ʹ?ã???ִ??ԭ??ϵ??ת??????????ִ??"SUM"??Ӳ????????ִ??"MUL"??˲???
|
84
|
;??ʽ: Fld_SUM=Num ;?ۼӣ?ƫ?ƣ?NumΪʮ?????з?????????,???磺?¶Ȳ?㣺?????????ݼ?0x23??Ϊʵ???¶ȡ???40003_SUM=-35
|
85
|
;??ʽ: Fld_MUL=fNum ;???/????fNum??Ϊʮ???Ƹ?????,??SUM??ϲ?????
|
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='Tem',1,'?¶?',0,10,11,200,'??Сֵ|????????¶?',350,'???ֵ|????????¶?'
|
101
|
2='Hum',1,'ʪ??',0,10,11,300,'??Сֵ|???????ʪ??.',850,'???ֵ|???????ʪ??'
|
102
|
|
103
|
[flds.val]
|
104
|
|
105
|
[vals]
|
106
|
|
107
|
|
108
|
|