diff --git a/MECF.Framework.RT.EquipmentLibrary/Devices/IoInterLock.cs b/MECF.Framework.RT.EquipmentLibrary/Devices/IoInterLock.cs index d25051e..631dd4e 100644 --- a/MECF.Framework.RT.EquipmentLibrary/Devices/IoInterLock.cs +++ b/MECF.Framework.RT.EquipmentLibrary/Devices/IoInterLock.cs @@ -637,6 +637,13 @@ namespace Aitex.Core.RT.Device.Devices EV.PostAlarmLog(Module, "DO_TCSSupplementing(DO-123) is not open,TCS supply failure"); return; } + + if ((_diTCSNormalLevel?.Value ?? false))//液位已经是Normal时,不补液 + { + EV.PostInfoLog(Module, $"TCS supply , DI_TCSNormalLevel(DI-73) is true"); + _doTCSSupply.Value = false; + return; + } } if (!_doTCSSupply.SetValue(true, out string reason)) @@ -670,14 +677,9 @@ namespace Aitex.Core.RT.Device.Devices if (_diTCSNormalLevel?.Value ?? false) { - Task.Delay(2000).ContinueWith(x => - { - EV.PostInfoLog(Module, $"TCS supply , DI_TCSNormalLevel(DI-73) is true"); - _doTCSSupply.Value = false; - }); + EV.PostInfoLog(Module, $"TCS supply , DI_TCSNormalLevel(DI-73) is true"); + _doTCSSupply.Value = false; } - - } } }