AlignerModuleBase.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using Aitex.Core.RT.Device;
  2. using Aitex.Sorter.Common;
  3. using MECF.Framework.Common.Equipment;
  4. using MECF.Framework.Common.Schedulers;
  5. using MECF.Framework.Common.SubstrateTrackings;
  6. using MECF.Framework.RT.EquipmentLibrary.LogicUnits;
  7. using MECF.Framework.RT.ModuleLibrary.Commons;
  8. namespace MECF.Framework.RT.ModuleLibrary.AlignerModules
  9. {
  10. public abstract class AlignerModuleBase : ModuleFsmDevice, ITransferTarget, IModuleDevice
  11. {
  12. private int _slot = 1;
  13. public AlignerModuleBase(int slot)
  14. {
  15. _slot = slot;
  16. }
  17. public override bool Initialize()
  18. {
  19. WaferManager.Instance.SubscribeLocation(Module, _slot);
  20. return base.Initialize();
  21. }
  22. //IModuleDevice
  23. public abstract bool IsReady { get; }
  24. public abstract bool IsError { get; }
  25. public abstract bool IsInit { get; }
  26. public abstract bool Home(out string reason);
  27. //Transfer
  28. public abstract bool PrepareTransfer(ModuleName robot, Hand blade, int[] targetSlot, EnumTransferType transferType, out string reason);
  29. public abstract bool TransferHandoff(ModuleName robot, Hand blade, int[] targetSlot, EnumTransferType transferType, out string reason);
  30. public abstract bool PostTransfer(ModuleName robot, Hand blade, int[] targetSlot, EnumTransferType transferType, out string reason);
  31. public abstract bool CheckReadyForTransfer(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
  32. public abstract void NoteTransferStart(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType);
  33. public abstract void NoteTransferStop(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType);
  34. //Align
  35. public abstract bool Align(double angle);
  36. //Lift
  37. public abstract bool Lift(bool up);
  38. }
  39. }