JetEfem.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Venus_Core;
  7. using MECF.Framework.Common.CommonData;
  8. using MECF.Framework.Common.Equipment;
  9. using Aitex.Sorter.Common;
  10. using Aitex.Core.Common;
  11. using Aitex.Core.RT.SCCore;
  12. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot;
  13. namespace Venus_RT.Devices.EFEM
  14. {
  15. class JetEfem :EfemBase
  16. {
  17. private RState _status;
  18. private bool _IsHomed;
  19. private RobotMoveInfo _robotMoveInfo = new RobotMoveInfo();
  20. private readonly Loadport[] _LPMs = new Loadport[2];
  21. private readonly AsyncSocket _socket;
  22. public override RState Status { get { return _status; } }
  23. public override bool IsHomed { get { return _IsHomed; } }
  24. public override RobotMoveInfo TMRobotMoveInfo { get { return _robotMoveInfo; } }
  25. public override ILoadport this[ModuleName mod]
  26. {
  27. get
  28. {
  29. if (!ModuleHelper.IsLoadPort(mod))
  30. throw new ApplicationException($"{mod} is NOT Loadport");
  31. return _LPMs[mod - ModuleName.LP1];
  32. }
  33. }
  34. public JetEfem()
  35. {
  36. _socket = new AsyncSocket("");
  37. _socket.Connect(SC.GetStringValue($"EFEM.IPAddress"));
  38. _socket.OnDataChanged += OnReceiveMessage;
  39. _socket.OnErrorHappened += OnErrorHappen;
  40. _status = RState.Init;
  41. _IsHomed = false;
  42. }
  43. public override void Monitor()
  44. {
  45. }
  46. public override void Terminate()
  47. {
  48. }
  49. public override void Reset()
  50. {
  51. }
  52. public override void SetOnline(bool online)
  53. {
  54. }
  55. public override void SetOnline(ModuleName mod, bool online)
  56. {
  57. }
  58. public override void SetBusy(ModuleName mod, bool online)
  59. {
  60. }
  61. public override bool HomeAll()
  62. {
  63. return true;
  64. }
  65. public override bool Home(ModuleName mod)
  66. {
  67. return true;
  68. }
  69. public override bool Halt()
  70. {
  71. return true;
  72. }
  73. public override bool ClearError()
  74. {
  75. return true;
  76. }
  77. public override bool PickExtend(ModuleName chamber, int slot, Hand hand)
  78. {
  79. return true;
  80. }
  81. public override bool PickRetract(ModuleName chamber, int slot, Hand hand)
  82. {
  83. return true;
  84. }
  85. public override bool PlaceExtend(ModuleName chamber, int slot, Hand hand)
  86. {
  87. return true;
  88. }
  89. public override bool PlaceRetract(ModuleName chamber, int slot, Hand hand)
  90. {
  91. return true;
  92. }
  93. public override bool Pick(ModuleName station, int slot, Hand hand)
  94. {
  95. return true;
  96. }
  97. public override bool Place(ModuleName station, int slot, Hand hand)
  98. {
  99. return true;
  100. }
  101. public override bool Goto(ModuleName station)
  102. {
  103. return true;
  104. }
  105. public override bool Grip(Hand blade, bool isGrip)
  106. {
  107. return true;
  108. }
  109. public override bool Map(ModuleName mod)
  110. {
  111. return true;
  112. }
  113. public override bool SetPinUp(ModuleName mod)
  114. {
  115. return true;
  116. }
  117. public override bool SetPinDown(ModuleName mod)
  118. {
  119. return true;
  120. }
  121. public override bool Align(ModuleName mod, float delayTime, WaferSize size)
  122. {
  123. return true;
  124. }
  125. public override bool SetLamp(LightType light, LightStatus status)
  126. {
  127. return true;
  128. }
  129. public override bool Load(ModuleName mod)
  130. {
  131. return true;
  132. }
  133. public override bool Unload(ModuleName mod)
  134. {
  135. return true;
  136. }
  137. public override bool ReadCarrierId(ModuleName mod)
  138. {
  139. return true;
  140. }
  141. public override bool WriteCarrierId(ModuleName mod, string id)
  142. {
  143. return true;
  144. }
  145. public override bool ReadTagData(ModuleName mod)
  146. {
  147. return true;
  148. }
  149. public override bool WriteTagData(ModuleName mod, string tagData)
  150. {
  151. return true;
  152. }
  153. public override bool Dock(ModuleName mod)
  154. {
  155. return true;
  156. }
  157. public override bool Undock(ModuleName mod)
  158. {
  159. return true;
  160. }
  161. public override bool Clamp(ModuleName mod, bool isUnloadClamp)
  162. {
  163. return true;
  164. }
  165. public override bool Unclamp(ModuleName mod)
  166. {
  167. return true;
  168. }
  169. public override bool SetThick(ModuleName mod)
  170. {
  171. return true;
  172. }
  173. public override bool SetThin(ModuleName mod)
  174. {
  175. return true;
  176. }
  177. public override void SetRobotMovingInfo(RobotAction action, Hand hand, ModuleName target)
  178. {
  179. }
  180. private void OnReceiveMessage(string RevMsg)
  181. {
  182. }
  183. private void OnErrorHappen(ErrorEventArgs args)
  184. {
  185. }
  186. }
  187. }