[RT.EquipmentLibrary]

TCS补液逻辑修改,在最高液位立刻停止补液,非最高液位时DI有信号后,延时2秒停止补液
This commit is contained in:
hanqiangqiang 2024-05-14 17:02:26 +08:00
parent fc36dc2380
commit e2ed568fbc
1 changed files with 15 additions and 4 deletions

View File

@ -662,11 +662,22 @@ namespace Aitex.Core.RT.Device.Devices
{
_timerTCSSupply.Stop(); //进入Idle状态
Task.Delay(2000).ContinueWith(x =>
if ((_diTCSHighLevel1?.Value ?? false))
{
EV.PostInfoLog(Module, $"TCS supply ,DI_TCSHighLevel1(DI-29) or DI_TCSHighLevel2(DI-44) is true");
return _doTCSSupply.Value = false;
});
EV.PostInfoLog(Module, $"TCS supply ,DI_TCSHighLevel1(DI-29) is true");
_doTCSSupply.Value = false;
}
if (_diTCSNormalLevel?.Value ?? false)
{
Task.Delay(2000).ContinueWith(x =>
{
EV.PostInfoLog(Module, $"TCS supply , DI_TCSNormalLevel(DI-73) is true");
_doTCSSupply.Value = false;
});
}
}
}
}