|
@@ -532,47 +532,61 @@ namespace Venus_RT.Modules.PMs
|
|
|
// Swap Wafer With PM
|
|
|
Transition(PMState.DropDownReady, MSG.PreparePlace, FnStartSwapPlace, PMState.PreparePlace);
|
|
|
|
|
|
+ #region 注
|
|
|
+ //Transition(PMState.Idle, MSG.PartialPressure, (a) =>
|
|
|
+ //{
|
|
|
+ // return _pmPartialPressureRoutine.Start(a) == RState.Running;
|
|
|
+ //}, PMState.PartialPressureTesting);
|
|
|
+ //Transition(PMState.PartialPressureTesting, FSM_MSG.TIMER, (a) =>
|
|
|
+ //{
|
|
|
+ // RState ret = _pmPartialPressureRoutine.Monitor();
|
|
|
+ // if (ret == RState.Failed || ret == RState.Timeout)
|
|
|
+ // {
|
|
|
+ // PostMsg(MSG.Error);
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // return ret == RState.End;
|
|
|
+ //}, PMState.Idle);
|
|
|
+ //Transition(PMState.PartialPressureTesting, MSG.Abort, (a) =>
|
|
|
+ //{
|
|
|
+ // _pmPartialPressureRoutine.Abort();
|
|
|
+ // return true;
|
|
|
+ //}, PMState.Idle);
|
|
|
|
|
|
- Transition(PMState.Idle, MSG.PartialPressure, (a) =>
|
|
|
- {
|
|
|
- return _pmPartialPressureRoutine.Start(a) == RState.Running;
|
|
|
- }, PMState.PartialPressureTesting);
|
|
|
- Transition(PMState.PartialPressureTesting, FSM_MSG.TIMER, (a) =>
|
|
|
- {
|
|
|
- RState ret = _pmPartialPressureRoutine.Monitor();
|
|
|
- if (ret == RState.Failed || ret == RState.Timeout)
|
|
|
- {
|
|
|
- PostMsg(MSG.Error);
|
|
|
- return false;
|
|
|
- }
|
|
|
- return ret == RState.End;
|
|
|
- }, PMState.Idle);
|
|
|
- Transition(PMState.PartialPressureTesting, MSG.Abort, (a) =>
|
|
|
- {
|
|
|
- _pmPartialPressureRoutine.Abort();
|
|
|
- return true;
|
|
|
- }, PMState.Idle);
|
|
|
+ //Transition(PMState.Idle, MSG.VATPerformance, (a) =>
|
|
|
+ //{
|
|
|
+ // return _pmVATPerformanceRoutine.Start(a) == RState.Running;
|
|
|
+ //}, PMState.VATPerformanceTesting);
|
|
|
+ //Transition(PMState.VATPerformanceTesting, FSM_MSG.TIMER, (a) =>
|
|
|
+ //{
|
|
|
+ // RState ret = _pmVATPerformanceRoutine.Monitor();
|
|
|
+ // if (ret == RState.Failed || ret == RState.Timeout)
|
|
|
+ // {
|
|
|
+ // PostMsg(MSG.Error);
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // return ret == RState.End;
|
|
|
+ //}, PMState.Idle);
|
|
|
+ //Transition(PMState.VATPerformanceTesting, MSG.Abort, (a) =>
|
|
|
+ //{
|
|
|
+ // _pmVATPerformanceRoutine.Abort();
|
|
|
+ // return true;
|
|
|
+ //}, PMState.Idle);
|
|
|
+ #endregion
|
|
|
|
|
|
+ Transition(PMState.Idle, MSG.PartialPressure, FnStartPartialPressure, PMState.PartialPressureTesting);
|
|
|
+
|
|
|
+ Transition(PMState.PartialPressureTesting, FSM_MSG.TIMER, FnPartialPressureTimeout, PMState.Idle);
|
|
|
+
|
|
|
+ Transition(PMState.PartialPressureTesting, MSG.Abort, FnAbortPartialPressure, PMState.Idle);
|
|
|
|
|
|
- Transition(PMState.Idle, MSG.VATPerformance, (a) =>
|
|
|
- {
|
|
|
- return _pmVATPerformanceRoutine.Start(a) == RState.Running;
|
|
|
- }, PMState.VATPerformanceTesting);
|
|
|
- Transition(PMState.VATPerformanceTesting, FSM_MSG.TIMER, (a) =>
|
|
|
- {
|
|
|
- RState ret = _pmVATPerformanceRoutine.Monitor();
|
|
|
- if (ret == RState.Failed || ret == RState.Timeout)
|
|
|
- {
|
|
|
- PostMsg(MSG.Error);
|
|
|
- return false;
|
|
|
- }
|
|
|
- return ret == RState.End;
|
|
|
- }, PMState.Idle);
|
|
|
- Transition(PMState.VATPerformanceTesting, MSG.Abort, (a) =>
|
|
|
- {
|
|
|
- _pmVATPerformanceRoutine.Abort();
|
|
|
- return true;
|
|
|
- }, PMState.Idle);
|
|
|
+ Transition(PMState.Idle, MSG.VATPerformance, FnStartVATPerformance, PMState.VATPerformanceTesting);
|
|
|
+
|
|
|
+ Transition(PMState.VATPerformanceTesting, FSM_MSG.TIMER, FnVATPerformanceTimeout, PMState.Idle);
|
|
|
+
|
|
|
+ Transition(PMState.VATPerformanceTesting, MSG.Abort, FnAbortVATPerformance, PMState.Idle);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
Running = true;
|
|
@@ -1342,7 +1356,44 @@ namespace Venus_RT.Modules.PMs
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
|
-
|
|
|
+ private bool FnStartPartialPressure(object[] param)
|
|
|
+ {
|
|
|
+ return _pmPartialPressureRoutine.Start(param) == RState.Running;
|
|
|
+ }
|
|
|
+ private bool FnPartialPressureTimeout(object[] param)
|
|
|
+ {
|
|
|
+ RState ret = _pmPartialPressureRoutine.Monitor();
|
|
|
+ if (ret == RState.Failed || ret == RState.Timeout)
|
|
|
+ {
|
|
|
+ PostMsg(MSG.Error);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return ret == RState.End;
|
|
|
+ }
|
|
|
+ private bool FnAbortPartialPressure(object[] param)
|
|
|
+ {
|
|
|
+ _pmPartialPressureRoutine.Abort();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ private bool FnStartVATPerformance(object[] param)
|
|
|
+ {
|
|
|
+ return _pmVATPerformanceRoutine.Start(param) == RState.Running;
|
|
|
+ }
|
|
|
+ private bool FnVATPerformanceTimeout(object[] param)
|
|
|
+ {
|
|
|
+ RState ret = _pmVATPerformanceRoutine.Monitor();
|
|
|
+ if (ret == RState.Failed || ret == RState.Timeout)
|
|
|
+ {
|
|
|
+ PostMsg(MSG.Error);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return ret == RState.End;
|
|
|
+ }
|
|
|
+ private bool FnAbortVATPerformance(object[] param)
|
|
|
+ {
|
|
|
+ _pmVATPerformanceRoutine.Abort();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
private void _debugRoutine()
|