修改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());
}
}
}
}