修改tm部分routine

This commit is contained in:
SIC1016\caipeilun
2026-08-18 19:54:36 +08:00
parent 9fa2fd0697
commit 1cc1b8e967
4 changed files with 37 additions and 11 deletions
@@ -62,6 +62,8 @@ namespace SicModules.TMs.Routines
private IoLift4 _loadLift;
private IoLift4 _unLoadLift;
private IoValve PM1ToTm_V70;
public TMBaseRoutine() : base(ModuleName.TM.ToString())
{
Module = ModuleName.TM.ToString();
@@ -82,6 +84,8 @@ namespace SicModules.TMs.Routines
_reactorSuspectorCheckPM1 = DEVICE.GetDevice<IoSensor>($"PM1.SensorReactorSuspectorCheck");
_reactorSuspectorCheckPM2 = DEVICE.GetDevice<IoSensor>($"PM2.SensorReactorSuspectorCheck");
PM1ToTm_V70 = DEVICE.GetDevice<IoValve>($"PM1.V70");
}
public virtual Result Start(params object[] objs)
@@ -1694,6 +1698,32 @@ namespace SicModules.TMs.Routines
}
}
public void ClosePM1ToTMV70(int id)
{
Tuple<bool, Result> ret = Execute(id, () =>
{
Notify($"Close V70 valve");
if (!PM1ToTm_V70.TurnValve(false, out string reason))
{
Stop(reason);
return false;
}
return true;
});
if (ret.Item1)
{
if (ret.Item2 == Result.FAIL)
{
throw (new RoutineFaildException());
}
else
throw (new RoutineBreakException());
}
}
public void SetMFCToSetPoint(int id, IoMFC _mfc, double setPoint)
{
Tuple<bool, Result> ret = Execute(id, () =>