1.PM进入Service不在检查Offline提示

This commit is contained in:
HCL 2023-12-18 17:05:11 +08:00
parent 17f48e1d09
commit c4cf0978c6
2 changed files with 22 additions and 7 deletions

View File

@ -1175,6 +1175,10 @@ namespace SicModules.PMs
// 如果退出Service模式Interlock信息以Warning等级输出
Singleton<InterlockManager>.Instance.SetEventLevel(Module, false);
NotifyModuleOfflineCancellation?.Dispose();
NotifyModuleOfflineCancellation = new CancellationTokenSource();
NotifyModuleOfflineTask(5 * 60 * 1000);//5min
});
}
else
@ -1182,6 +1186,8 @@ namespace SicModules.PMs
IsServiceIdle = true;
// 如果退出Service模式Interlock信息以Info等级输出
Singleton<InterlockManager>.Instance.SetEventLevel(Module, true);
NotifyModuleOfflineCancellation.Cancel();
}
}
return true;

View File

@ -6,6 +6,7 @@ using Aitex.Core.RT.Device.Devices;
using Aitex.Core.RT.Device.Unit;
using Aitex.Core.RT.Event;
using Aitex.Core.RT.IOCore;
using Aitex.Core.RT.Log;
using Aitex.Core.RT.SCCore;
using Aitex.Core.Util;
using MECF.Framework.Common.Equipment;
@ -348,14 +349,22 @@ namespace SicModules.TMs
public bool CloseAllVentPumpValue()
{
_pumpSlowValveV82.TurnValve(false, out string reason);
_pumpValveV81.TurnValve(false, out reason);
_ventValveV77.TurnValve(false, out reason);
_tmLoadBanlance_V85.TurnValve(false, out reason);
_tmPMABanlance_V70_1.TurnValve(false, out reason);
_tmUnLoadBanlance_V124.TurnValve(false, out reason);
try
{
_pumpSlowValveV82.TurnValve(false, out string reason);
_pumpValveV81.TurnValve(false, out reason);
_ventValveV77.TurnValve(false, out reason);
_tmLoadBanlance_V85.TurnValve(false, out reason);
_tmPMABanlance_V70_1.TurnValve(false, out reason);
_tmUnLoadBanlance_V124.TurnValve(false, out reason);
return true;
return true;
}
catch (Exception ex)
{
LOG.Error(ex.InnerException.ToString());
return false;
}
}
public override bool SetTmToLLVent(bool isOpen, out string reason)