首次上传
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
using Aitex.Core.RT.Routine;
|
||||
using Aitex.Core.RT.SCCore;
|
||||
|
||||
namespace SicModules.Aligners.Routines
|
||||
{
|
||||
public class AlignerHomeRoutine : AlignerBaseRoutine
|
||||
{
|
||||
enum RoutineStep
|
||||
{
|
||||
Home,
|
||||
SME,
|
||||
MsgCheckWafer,
|
||||
TimeDelay1,
|
||||
}
|
||||
|
||||
public AlignerHomeRoutine()
|
||||
{
|
||||
Name = "Home";
|
||||
}
|
||||
|
||||
public override Result Start(params object[] objs)
|
||||
{
|
||||
Reset();
|
||||
|
||||
Notify("Start");
|
||||
return Result.RUN;
|
||||
}
|
||||
|
||||
public override Result Monitor()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (SC.GetValue<bool>($"System.IsSimulatorMode"))
|
||||
{
|
||||
TimeDelay((int)RoutineStep.TimeDelay1, 3);
|
||||
return Result.DONE;
|
||||
}
|
||||
|
||||
Home((int)RoutineStep.Home, 40);
|
||||
AlignerSME((int)RoutineStep.SME, 30);
|
||||
MsgCheckHaveWafer((int)RoutineStep.MsgCheckWafer, 30);
|
||||
}
|
||||
catch (RoutineBreakException)
|
||||
{
|
||||
return Result.RUN;
|
||||
}
|
||||
catch (RoutineFaildException)
|
||||
{
|
||||
return Result.FAIL;
|
||||
}
|
||||
return Result.DONE;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user