TransferModule.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. using MECF.Framework.Common.Equipment;
  2. using Venus_RT.Modules.Schedulers;
  3. using Venus_RT.Scheduler;
  4. using Aitex.Core.RT.Routine;
  5. using System.Collections.Generic;
  6. namespace Venus_RT.Modules
  7. {
  8. public class TransferModule
  9. {
  10. protected SchedulerEfemRobot _efemRobot = new SchedulerEfemRobot();
  11. protected SchedulerTMRobot _tmRobot = new SchedulerTMRobot();
  12. protected SchedulerLoadPort _lp1 = new SchedulerLoadPort(ModuleName.LP1);
  13. protected SchedulerLoadPort _lp2 = new SchedulerLoadPort(ModuleName.LP2);
  14. protected SchedulerLoadPort _lp3 = new SchedulerLoadPort(ModuleName.LP3);
  15. protected SchedulerLoadLock _lla = new SchedulerLoadLock(ModuleName.LLA);
  16. protected SchedulerLoadLock _llb = new SchedulerLoadLock(ModuleName.LLB);
  17. protected SchedulerAligner _aligner1 = new SchedulerAligner(ModuleName.Aligner1);
  18. protected SchedulerAligner _aligner2 = new SchedulerAligner(ModuleName.Aligner2);
  19. protected SchedulerAligner _cooling1 = new SchedulerAligner(ModuleName.Cooling1);
  20. protected SchedulerAligner _cooling2 = new SchedulerAligner(ModuleName.Cooling2);
  21. protected SchedulerPM _pma = new SchedulerPM(ModuleName.PMA);
  22. protected SchedulerPM _pmb = new SchedulerPM(ModuleName.PMB);
  23. protected SchedulerPM _pmc = new SchedulerPM(ModuleName.PMC);
  24. protected SchedulerPM _pmd = new SchedulerPM(ModuleName.PMD);
  25. public TransferModule()
  26. {
  27. }
  28. public SchedulerModule GetScheduler(ModuleName module)
  29. {
  30. if (!ModuleHelper.IsInstalled(module))
  31. return null;
  32. switch (module)
  33. {
  34. case ModuleName.LP1:
  35. return _lp1;
  36. case ModuleName.LP2:
  37. return _lp2;
  38. case ModuleName.LP3:
  39. return _lp3;
  40. case ModuleName.Aligner1:
  41. return _aligner1;
  42. case ModuleName.Aligner2:
  43. return _aligner2;
  44. case ModuleName.Cooling1:
  45. return _cooling1;
  46. case ModuleName.Cooling2:
  47. return _cooling2;
  48. case ModuleName.EfemRobot:
  49. return _efemRobot;
  50. case ModuleName.LLA:
  51. return _lla;
  52. case ModuleName.LLB:
  53. return _llb;
  54. case ModuleName.TMRobot:
  55. return _tmRobot;
  56. case ModuleName.PMA:
  57. return _pma;
  58. case ModuleName.PMB:
  59. return _pmb;
  60. case ModuleName.PMC:
  61. return _pmc;
  62. case ModuleName.PMD:
  63. return _pmd;
  64. }
  65. return null;
  66. }
  67. }
  68. public interface IAutoTransfer
  69. {
  70. bool HasJobRunning
  71. {
  72. get;
  73. }
  74. Result Monitor();
  75. bool CheckAllJobDone();
  76. bool CheckJobJustDone(out string sJobName);
  77. Result Start(params object[] objs);
  78. void Map(string moduleName);
  79. bool CheckRecipeUsedInJob(string pathName);
  80. bool CheckSequenceUsedInJob(string pathName);
  81. void CreateJob(Dictionary<string, object> param);
  82. void AbortJob(string jobName);
  83. void StopJob(string jobName);
  84. void ResumeJob(string jobName);
  85. void PauseJob(string jobName);
  86. void StartJob(string jobName);
  87. void ResetIdlePurgeTime(string module);
  88. void ResetIdleCleanTime(string module);
  89. void Clear();
  90. }
  91. }