1.修正PM PostProcess关闭DO-PostProcessRunning导致Warning的问题

This commit is contained in:
HCL 2024-08-12 09:06:38 +08:00
parent 3a8656aa1a
commit 3025bd3366
1 changed files with 8 additions and 3 deletions

View File

@ -238,6 +238,8 @@ namespace SicModules.PMs.RecipeExecutions
WaitRotationValve((int)RoutineStep.WaitRotation1, _rotationSpeed, true, _rotationSpeed / 2);
Cleanup((int)RoutineStep.Cleanup);
SetRoutinePostRuningDo();
}
private void Cleanup(int stepId)
@ -247,8 +249,6 @@ namespace SicModules.PMs.RecipeExecutions
//保存PostProcess结束的时间
SC.SetItemValue($"PM.{Module}.PostProcessEndTime",DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
_pmInterLock.SetPMPostProcessRunning(false, out _);
return true;
});
@ -265,6 +265,11 @@ namespace SicModules.PMs.RecipeExecutions
}
}
private void SetRoutinePostRuningDo()
{
_pmInterLock.SetPMPostProcessRunning(false, out _);
}
private void CheckRoutineTimeOut()
{
if (_routineTimeOut > 10)