项目

一般

简介

omAppSU.ini

陆 志毅, 2022-03-11 11:07

 
1
[APP]
2
AppOn = 1
3
TIMER0 = 1000
4
MSG0 = omSUAppMsg0
5
db0 = libomdb.so
6
alm0 = libomalm.so
7
dbCfg = dbCfg.db3
8
dbDat0 = tmp/dbDat0.db3
9
dbDat = tmp/dbData.db3
10
AutoCtrl = 0
11
NoDog = 0
12
FeedDogX = 1
13
RebootX = 1
14
NoGsm = 1
15
PLAT = 6
16
WDT = 180
17
SmsMode = 0
18
SmsTime = 0830
19
SmsLast = 
20

    
21
;详细数据间隔 60s,即每分钟一条记录
22
Dat1Ok = 60
23

    
24
;近期数据 较详细数据天数,默认30。注意: dat1M >1 
25
dat1M = 30
26

    
27
;长期数据 保存数据天数,默认365。注意: dat1Y > dat1M, 若dat1Y小于dat1M会造成不可预知的问题
28
dat1Y = 365
29

    
30
;已保存天数 0开始,应将/NandFlash/dbData.db3删除
31
dat1D = 0
32

    
33

    
34
[APP.Master]
35
tbBatt100 = tbBattVal
36
tbBatt100.flds = 3
37
tbBattEB90 = tbBattEb90Val
38
tbBattBOD1000S = tbBattBOD1000SVal
39
tbSvr = tbSvrDat
40
tbSnmp = tbSnmpDat
41
tbModbus = tbModbusDat
42
tbYdt1363 = tbYdt1363Dat
43
tbNormal = tbNormalDat
44

    
45

    
46
[APP.Detail]
47
tbSubSys = 1
48
tbSubSysDetail = 1
49
tbBattEb90Val = 100
50
tbBattVal = 101
51
tbBattBOD1000SVal = 102
52
tbSvrDat = 200
53
tbSnmpDat = 202
54
tbModbusDat = 202
55
tbYdt1363Dat = 202
56
tbNormalDat = 202
57

    
58

    
59
[SU0]
60
module = libomsuw.so
61
index = 2
62
state = 1
63
mask = 0x03
64
delay = 1000
65
delaysm = 500
66
timerx = 1
67
ser0 = libomser.so
68
sm0 = libomsm.so
69

    
70

    
71
[SU1]
72
module = libomsuw.so
73
index = 50
74
state = 1
75
mask = 0x03
76
delay = 1330
77
delaysm = 500
78
timerx = 1
79
ser0 = libomser.so
80
sm0 = libomsm.so
81
loadsm = select * from tbSM where State=0 and DataMode=1 and SerDef<>'' and Type<>'4670' order by Type,SID
82

    
83

    
84

    
85
[SU2]
86
module = libomsuw.so
87
index = 49
88
state = 1
89
mask = 0x03
90
delay = 1130
91
delaysm = 500
92
timerx = 1
93
ser0 = libomser.so
94
sm0 = libomsm.so
95
loadsm = select * from tbSM where State=0 and DataMode=1 and SerDef<>'' and Type='4670' order by Type,SID
96

    
97

    
98
[DBDAT]
99
00 = create table tbSubSysDetail(SubSys INTEGER,SID INTEGER,Type INTEGER,FldDept INTEGER,Fld INTEGER,State INTEGER,LastUpd DATETIME)
100
01 = create table tbSMAlarm(DID INTEGER PRIMARY KEY,SID INTEGER,Type INTEGER,AID INTEGER,ASubSys INTEGER,AFld INTEGER,LastUpd DATETIME,Alm INTEGER,AlmMask INTEGER,AlmRecv INTEGER,AlmImg VARCHAR(64),AlmBrief VARCHAR(256))
101
02 = create table tbSMBrief(SID INTEGER PRIMARY KEY,LastUpd DATETIME,St INTEGER,Brief VARCHAR(256))
102

    
103

    
104

    
105
[DI_Alm]
106
;触发告警DI数量(红外探测器)
107
cnt=2
108
;序号=主机DI口(红外探测器接入的DI口)
109
1=1
110
2=2
111
;语音播报延时 秒[s]
112
AlmDelay=30
113

    
114

    
115
[SF6_Dev]
116
;type
117
Type=4842
118
;语音播报测点数
119
FldCnt=2
120
;序号=Fld(SF6测点)
121
;SF6
122
1=1
123
;O2
124
2=2
125
;vFld=vFld(SF6测点)
126
;SF6
127
v1=V30001
128
;O2
129
v2=V30007
130

    
131

    
132
[Log]
133
Cnt = 0
134

    
135

    
136

    
137
[Run]
138
Cnt = 0
139

    
140