|
@@ -16,7 +16,6 @@ namespace FurnaceRT.Equipments.FIMSs
|
|
|
{
|
|
|
Load,
|
|
|
Delay,
|
|
|
- CheckWaferShifted,
|
|
|
CheckLoadFinish,
|
|
|
}
|
|
|
|
|
@@ -103,7 +102,6 @@ namespace FurnaceRT.Equipments.FIMSs
|
|
|
|
|
|
CheckLoadFinish((int)RoutineStep.CheckLoadFinish, _timeout);
|
|
|
|
|
|
- CheckWaferShifted((int)RoutineStep.CheckWaferShifted, _timeout);
|
|
|
|
|
|
}
|
|
|
catch (RoutineBreakException)
|
|
@@ -161,37 +159,7 @@ namespace FurnaceRT.Equipments.FIMSs
|
|
|
throw (new RoutineBreakException());
|
|
|
}
|
|
|
}
|
|
|
- private void CheckWaferShifted(int id, int timeout)
|
|
|
- {
|
|
|
- Tuple<bool, Result> ret = ExecuteAndWait(id, () =>
|
|
|
- {
|
|
|
- Notify($"Check {Module} Wafer Shifted");
|
|
|
- return true;
|
|
|
- }, () =>
|
|
|
- {
|
|
|
- if (_fimsModule.FIMSDevice.IsPLCLoadCompleted && !_fimsModule.FIMSDevice.IsRunning && _fimsModule.IsWaferOnRobot)
|
|
|
- {
|
|
|
- _fimsModule.LoadFailAlarm.Set($"The wafer on {Module} has shifted");
|
|
|
- return false;
|
|
|
- }
|
|
|
- return true;
|
|
|
- }, timeout * 1000);
|
|
|
-
|
|
|
- if (ret.Item1)
|
|
|
- {
|
|
|
- if (ret.Item2 == Result.FAIL)
|
|
|
- {
|
|
|
- throw (new RoutineFaildException());
|
|
|
- }
|
|
|
- else if (ret.Item2 == Result.TIMEOUT) //timeout
|
|
|
- {
|
|
|
- _fimsModule.LoadTimeoutAlarm.Set($"can not complete in {timeout} seconds");
|
|
|
- throw (new RoutineFaildException());
|
|
|
- }
|
|
|
- else
|
|
|
- throw (new RoutineBreakException());
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
private void CheckLoadFinish(int id, int timeout)
|
|
|
{
|
|
|
Tuple<bool, Result> ret = ExecuteAndWait(id, () =>
|