TransferModule.cs 3.8 KB

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