项目

一般

简介

SM4920.def

李 凯健, 2025-03-27 17:54

 
1
;#5956???ڴ?ʵ???ܹɷ????޹?˾ ATS
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-MDBS4920
13
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
14
;brief=A???ѹ: %1%V %1st%, A?????: %7% A %7st% 
15
;?Ƿ????CRCУ?飿0-??У?飬1-У??
16
;crc=0
17
;???ݰ??ֽڽ?????0-????׼UINT16??????1-???ֽڽ???
18
;DataByte=0
19

    
20

    
21

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

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

    
30
1000=5;
31
1000bit=2;
32
1099=1;
33
3057=1;
34

    
35

    
36
;04??????
37
[regs4]
38

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

    
46

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

    
57
1=41001-0;????SIλ??
58
2=41001-1;????SIIλ??
59
3=41001-2;OFF˫??λ??
60
4=41001;????λ??
61
5=41003;SI??Դ״̬
62
6=41005;SII??Դ״̬
63
7=41100;????ģʽ
64
8=43058;?Զ??л?ģʽ
65

    
66
;???ݱ???????
67
[flds.def]
68
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
69
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
70
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
71
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
72
;	   ??ֵ????: ????, Ĭ??Ϊ0
73
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
74
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
75
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
76
;				 Ĭ??????Ϊ?????(0 ???? 10)
77
1='Fld',1,'????SIλ??',0,1,1,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
78
2='Fld',1,'????SIIλ??',0,1,1,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
79
3='Fld',1,'OFF˫??λ??',0,1,1,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
80
4='Fld',1,'????λ??',0,1,1,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
81
5='Fld',1,'SI??Դ״̬',0,1,1,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
82
6='Fld',1,'SII??Դ״̬',0,1,1,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
83
7='Fld',1,'????ģʽ',0,1,1,4000,'??Сֵ|???????ֵ.',6000,'???ֵ|???????ֵ'
84
8='Fld',1,'?Զ??л?ģʽ',0,1,1,4000,'??Сֵ|???????ֵ',7000,'???ֵ|???????ֵ'
85

    
86

    
87

    
88
[flds.val]
89

    
90
[vals]
91

    
92

    
93