重新整理Routine和仿真
This commit is contained in:
@@ -43,7 +43,7 @@ namespace SicModules.PMs.Routines.Base
|
||||
Leavel10= 1150,
|
||||
}
|
||||
|
||||
public List<int> _lstPcList = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
|
||||
public List<int> _lstPcList = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9};
|
||||
|
||||
protected PressureLevel GetPressure(double pressure)
|
||||
{
|
||||
@@ -121,7 +121,7 @@ namespace SicModules.PMs.Routines.Base
|
||||
|
||||
public virtual void Abort()
|
||||
{
|
||||
_pm.SetMfcToDefaultByGroup(MfcGroupName.M27toM45);
|
||||
_pm.SetMfcToDefaultByGroup(MfcGroupName.M27toM40);
|
||||
}
|
||||
|
||||
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.V72, true) && _pm.CheckIOValueByGroup(IoGroupName.V888990, true) && _pm.PT1.FeedBack >= pressure;
|
||||
_v72IsOpen = _pm.CheckIOValueByGroup(IoGroupName.VentPump, 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.M27To3540To42, Convert.ToDouble((int)level));
|
||||
_pm.SetMfcRampByGroupAndPressure(MfcGroupName.M28293140, Convert.ToDouble((int)level));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1839,14 +1839,14 @@ namespace SicModules.PMs.Routines.Base
|
||||
|
||||
if (!_setMfc291519to38Flag && currentPressureUpOrDown == PressureUpOrDown.Dowing && _IoThrottle.PressureFeedback < 20)
|
||||
{
|
||||
Notify($"Set M2toM40 value to 0 ");
|
||||
_pm.SetMfcByGroup(MfcGroupName.M2toM45, 0, 2);
|
||||
Notify($"Set M2toM42 value to 0 ");
|
||||
_pm.SetMfcByGroup(MfcGroupName.M2toM42, 0, 2);
|
||||
_setMfc291519to38Flag = true;
|
||||
}
|
||||
else if (!_setMfc291519to38Flag && currentPressureUpOrDown == PressureUpOrDown.Uping && _IoThrottle.PressureFeedback < 20)
|
||||
{
|
||||
Notify($"Set M2toM40 value to default");
|
||||
_pm.SetMfcToDefaultByGroupRamp(MfcGroupName.M2toM45, 2);
|
||||
Notify($"Set M2toM42 value to default");
|
||||
_pm.SetMfcToDefaultByGroupRamp(MfcGroupName.M2toM42, 2);
|
||||
_setMfc291519to38Flag = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user