Project

General

Profile

Bug #2016

广州QTISCS-BS的data/script的周期运行lua脚本会导致DI非量测点重复报警错误,跟随周期报警永不停止

Added by yufeng wu almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
05/20/2021
Due date:
% Done:

0%

Estimated time:

Description

QTISCS BS所有版本都一直存在的问题
data\script\test.lua例子语句如下,1秒周期运行。
错误现象:实时报警每一秒钟周期会重复新出一条 QFS_SYSTEM_PSCADA_BJ非量测点DI的报警条目,实际值没变,功能错误
D1=dac.getdval("QFS_SYSTEM_PSCADA1") ---量测点
D2=dac.getdval("QFS_SYSTEM_PSCADA2") ---量测点
D3=dac.getdval("QFS_SYSTEM_PSCADA_BJ") ---非量测点
if D1==0 and D2==0 then
if D3~=0 then
D1=dac.setdval("QFS_SYSTEM_PSCADA_BJ",0)
end
else
if D3~=1 then
D1=dac.setdval("QFS_SYSTEM_PSCADA_BJ",1)
end
end

Also available in: Atom PDF