TransferModule.cs 3.9 KB

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