TransferModule.cs 4.0 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 ;
  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(ModuleHelper.IsInstalled(ModuleName.SETM))
  30. _setm = new SchedulerSETMRobot(ModuleName.SETM);
  31. if (ModuleHelper.IsInstalled(ModuleName.DETM))
  32. _setm = new SchedulerSETMRobot(ModuleName.DETM);
  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. case ModuleName.DETM:
  72. return _setm;
  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. }