[RT.EquipmentLibrary]

1TCS补液,取消2延时关闭
2补液开始前,如果DI-73有信号,停止补液
This commit is contained in:
hanqiangqiang 2024-05-17 14:30:05 +08:00
parent e2ed568fbc
commit 0122cbc0ef
1 changed files with 9 additions and 7 deletions

View File

@ -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;
}
}
}
}