修改pm vacidle 和atmidle

This commit is contained in:
SIC1016\caipeilun
2026-08-15 10:36:59 +08:00
parent c74feb63b9
commit 2ca805fe2e
7 changed files with 53 additions and 54 deletions
@@ -1860,5 +1860,31 @@ namespace SicModules.TMs.Routines
throw (new RoutineBreakException());
}
}
public void SetTMLLBalanceValve(int id, TM tm,bool value)
{
Tuple<bool, Result> ret = Execute(id, () =>
{
Notify($"{(value ? "Open":"Close")} {tm.Name} balance valve");
if (!tm.SetSlowVentValve(value, out string reason))
{
Stop(reason);
return false;
}
return true;
});
if (ret.Item1)
{
if (ret.Item2 == Result.FAIL)
{
throw (new RoutineFaildException());
}
else
throw (new RoutineBreakException());
}
}
}
}
@@ -10,6 +10,7 @@ namespace SicModules.TMs.Routines
{
CloseV77,
CloseV80,
CloseV85,
TMRobotHome
}
@@ -42,8 +43,11 @@ namespace SicModules.TMs.Routines
{
try
{
//关闭 V77, V78; 关闭 V85;关闭 V70-1, V70-2; Home Robot, Check Load
CloseTMVent((int)RoutineStep.CloseV77);
//CloseBufferVent((int)RoutineStep.CloseV80);
//没有V78
SetTMLLBalanceValve((int)RoutineStep.CloseV85, TMDevice,false);
//没有V70
ExecuteRoutine((int)RoutineStep.TMRobotHome, _tmRobotHomeRoutine);
}
catch (RoutineBreakException)