|
@@ -5,6 +5,7 @@ using Aitex.Core.RT.OperationCenter;
|
|
|
using Aitex.Core.RT.Routine;
|
|
|
using Aitex.Core.RT.SCCore;
|
|
|
using Aitex.Core.Util;
|
|
|
+using MECF.Framework.Common.Alarm;
|
|
|
using MECF.Framework.Common.Algorithm;
|
|
|
using MECF.Framework.Common.Beckhoff.ModuleIO;
|
|
|
using MECF.Framework.Common.CommonData.Prewet;
|
|
@@ -881,28 +882,36 @@ namespace PunkHPX8_RT.Devices.VpwMain
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
- //Speed Auto模式同时pump enbled,对flow 上下限进行监控
|
|
|
+ //Speed Auto模式同时pump enbled,对water pressure 上下限进行监控
|
|
|
private void WaterPressureMonitor()
|
|
|
{
|
|
|
if (_commonData.BoosterPumpSpeedAuto && _commonData.BoosterPumpEnable)
|
|
|
{
|
|
|
if(_commonData.DiwPressure > _commonData.BoosterPumpPressureData.MaxError)
|
|
|
{
|
|
|
- LOG.WriteLog(eEvent.ERR_VPW, Module, $"total flow is large than Error_max {_commonData.BoosterPumpPressureData.MaxError},Booster Pump Closed!");
|
|
|
+ LOG.WriteLog(eEvent.ERR_VPW, Module, $"water pressure {_commonData.DiwPressure} is large than Error_max {_commonData.BoosterPumpPressureData.MaxError},Booster Pump Closed!");
|
|
|
BoosterPumpDisable();
|
|
|
}
|
|
|
else if (_commonData.DiwPressure > _commonData.BoosterPumpPressureData.MaxWarning)
|
|
|
{
|
|
|
- LOG.WriteLog(eEvent.WARN_VPW, Module, $"total flow is large than Warning_max {_commonData.BoosterPumpPressureData.MaxWarning}");
|
|
|
+ if(!AlarmListManager.Instance.IsContainDataWarn(Module, "WaterPressure"))
|
|
|
+ {
|
|
|
+ AlarmListManager.Instance.AddWarn(Module, "WaterPressure", $"water pressure {_commonData.DiwPressure} is large than Warning_max {_commonData.BoosterPumpPressureData.MaxWarning}");
|
|
|
+ LOG.WriteLog(eEvent.WARN_VPW, Module, $"water pressure {_commonData.DiwPressure} is large than Warning_max {_commonData.BoosterPumpPressureData.MaxWarning}");
|
|
|
+ }
|
|
|
}
|
|
|
else if (_commonData.DiwPressure < _commonData.BoosterPumpPressureData.MinError)
|
|
|
{
|
|
|
- LOG.WriteLog(eEvent.ERR_VPW, Module, $"total flow is lower than Error_min {_commonData.BoosterPumpPressureData.MinError},Booster Pump Closed!");
|
|
|
+ LOG.WriteLog(eEvent.ERR_VPW, Module, $"water pressure {_commonData.DiwPressure} is lower than Error_min {_commonData.BoosterPumpPressureData.MinError},Booster Pump Closed!");
|
|
|
BoosterPumpDisable();
|
|
|
}
|
|
|
else if (_commonData.DiwPressure < _commonData.BoosterPumpPressureData.MinWarning)
|
|
|
{
|
|
|
- LOG.WriteLog(eEvent.WARN_VPW, Module, $"total flow is large than Warning_min {_commonData.BoosterPumpPressureData.MinWarning}");
|
|
|
+ if (!AlarmListManager.Instance.IsContainDataWarn(Module, "WaterPressure"))
|
|
|
+ {
|
|
|
+ AlarmListManager.Instance.AddWarn(Module, "WaterPressure", $"water pressure {_commonData.DiwPressure} is large than Warning_min {_commonData.BoosterPumpPressureData.MinWarning}");
|
|
|
+ LOG.WriteLog(eEvent.WARN_VPW, Module, $"water pressure {_commonData.DiwPressure} is lower than Warning_min {_commonData.BoosterPumpPressureData.MinWarning}");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|