LoadLockModuleBase.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.LLModules
  9. {
  10. public abstract class LoadLockModuleBase : ModuleFsmDevice, ITransferTarget, IModuleDevice
  11. {
  12. private int _slot = 1;
  13. public int SlotCount { get { return _slot; } }
  14. public LoadLockModuleBase(int slot)
  15. {
  16. _slot = slot;
  17. }
  18. public override bool Initialize()
  19. {
  20. WaferManager.Instance.SubscribeLocation(Module, _slot);
  21. return base.Initialize();
  22. }
  23. //IModuleDevice
  24. public abstract bool IsReady { get; }
  25. public abstract bool IsError { get; }
  26. public abstract bool IsInit { get; }
  27. public abstract bool Home(out string reason);
  28. //Transfer
  29. public abstract bool PrepareTransfer(ModuleName robot, Hand blade, int[] targetSlot, EnumTransferType transferType, out string reason);
  30. public abstract bool TransferHandoff(ModuleName robot, Hand blade, int[] targetSlot, EnumTransferType transferType, out string reason);
  31. public abstract bool PostTransfer(ModuleName robot, Hand blade, int[] targetSlot, EnumTransferType transferType, out string reason);
  32. public abstract bool CheckReadyForTransfer(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
  33. public abstract void NoteTransferStart(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType);
  34. public abstract void NoteTransferStop(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType);
  35. }
  36. }