添加M41-M45配置
修改Routine
This commit is contained in:
@@ -121,7 +121,7 @@ namespace SicModules.PMs.Routines.Base
|
||||
|
||||
public virtual void Abort()
|
||||
{
|
||||
_pm.SetMfcToDefaultByGroup(MfcGroupName.M27toM40);
|
||||
_pm.SetMfcToDefaultByGroup(MfcGroupName.M27toM45);
|
||||
}
|
||||
|
||||
protected void PreparePump(int id, PMModuleBase pm, int timeout)
|
||||
@@ -532,10 +532,10 @@ namespace SicModules.PMs.Routines.Base
|
||||
{
|
||||
Tuple<bool, Result> ret = Execute(id, () =>
|
||||
{
|
||||
//Notify($"Set {Module} rotation");
|
||||
Notify($"Set {Module} rotation");
|
||||
if (!_pm.SetRotationServo(checkSpeed, 0))
|
||||
{
|
||||
//Stop($"Set {Module} rotation error");
|
||||
Stop($"Set {Module} rotation error");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -928,7 +928,7 @@ namespace SicModules.PMs.Routines.Base
|
||||
{
|
||||
Tuple<bool, Result> ret = Execute(id, () =>
|
||||
{
|
||||
_v72IsOpen = _pm.CheckIOValueByGroup(IoGroupName.VentPump, true) && _pm.CheckIOValueByGroup(IoGroupName.V888990, true) && _pm.PT1.FeedBack >= pressure;
|
||||
_v72IsOpen = _pm.CheckIOValueByGroup(IoGroupName.V72, true) && _pm.CheckIOValueByGroup(IoGroupName.V888990, true) && _pm.PT1.FeedBack >= pressure;
|
||||
return true;
|
||||
});
|
||||
|
||||
@@ -1299,7 +1299,7 @@ namespace SicModules.PMs.Routines.Base
|
||||
Notify($"Set MFC28,29,31,40 to pressureLevel [{cIntLv - 50},{cIntLv + 50})");
|
||||
}
|
||||
_lastPressureLevel = level;
|
||||
_pm.SetMfcRampByGroupAndPressure(MfcGroupName.M28293140, Convert.ToDouble((int)level));
|
||||
_pm.SetMfcRampByGroupAndPressure(MfcGroupName.M27To3540To42, Convert.ToDouble((int)level));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1840,13 +1840,13 @@ namespace SicModules.PMs.Routines.Base
|
||||
if (!_setMfc291519to38Flag && currentPressureUpOrDown == PressureUpOrDown.Dowing && _IoThrottle.PressureFeedback < 20)
|
||||
{
|
||||
Notify($"Set M2toM40 value to 0 ");
|
||||
_pm.SetMfcByGroup(MfcGroupName.M2toM40, 0, 2);
|
||||
_pm.SetMfcByGroup(MfcGroupName.M2toM45, 0, 2);
|
||||
_setMfc291519to38Flag = true;
|
||||
}
|
||||
else if (!_setMfc291519to38Flag && currentPressureUpOrDown == PressureUpOrDown.Uping && _IoThrottle.PressureFeedback < 20)
|
||||
{
|
||||
Notify($"Set M2toM40 value to default");
|
||||
_pm.SetMfcToDefaultByGroupRamp(MfcGroupName.M2toM40, 2);
|
||||
_pm.SetMfcToDefaultByGroupRamp(MfcGroupName.M2toM45, 2);
|
||||
_setMfc291519to38Flag = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user