修正UnLoadPurgeRoutine的Start()函数没有锁定Pump2的问题。

This commit is contained in:
DESKTOP-GPE37UV\THINKAPD 2022-11-21 09:43:18 +08:00
parent 81445c130c
commit 653dd11492
1 changed files with 3 additions and 1 deletions

View File

@ -74,12 +74,14 @@ namespace Mainframe.UnLoads.Routines
_ventDelayTime = SC.GetValue<int>("UnLoad.Purge.VentDelayTime");
_ventTimeOut = _pumpTimeOut;
LockPump2(out var reason);
if (!UnLoadDevice.CheckLidClose())
{
EV.PostAlarmLog(Module, $"can not purge, lid is open");
return Result.FAIL;
}
if (!TMDevice.SetFastPumpValve(false, out string reason))
if (!TMDevice.SetFastPumpValve(false, out reason))
{
EV.PostAlarmLog(Module, $"can not purge, TM fast pump value can not close");
return Result.FAIL;