constant.cs 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. using System.Collections.Generic;
  2. namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.LoadPorts.TDK
  3. {
  4. public enum CommandType
  5. {
  6. SET, // Initialization setting command
  7. MOD, // Operation mode setting command
  8. GET, // Status acquisition command
  9. FIN, // Normal reception command
  10. MOV, // Operation command
  11. EVT, // Start/Stop event report command
  12. RST, // Resend initialization setting command comman
  13. RFN, // Resend normal reception command
  14. RMV, // Resend operation command
  15. }
  16. public enum RespType
  17. {
  18. NAK, // Initialization setting command
  19. ACK, // Operation mode setting command
  20. INF, // Status acquisition command
  21. ABS, // Normal reception command
  22. }
  23. //顺序不能变!!!
  24. public enum Indicator
  25. {
  26. LOAD = 0x01,
  27. UNLOAD = 0x02,
  28. ACCESSMANUL = 0x03,
  29. PRESENCE = 0x04,
  30. PLACEMENT = 0x05,
  31. ACCESSAUTO = 0x06,
  32. RESERVE1 = 0x07,
  33. ALARM = 0x08,
  34. RESERVE2 = 0x9,
  35. CLAMP,
  36. DOCK,
  37. ACCESS_SW,
  38. }
  39. //public enum IndicatorState
  40. //{
  41. // ON,
  42. // BLINK,
  43. // OFF,
  44. //}
  45. public enum Mode
  46. {
  47. ONMGV, //Changes to the online mode
  48. MENTE,
  49. }
  50. public enum QueryType
  51. {
  52. STATE, //Checks the status.
  53. VERSN, //Checks the version.
  54. LEDST, //Reports the indicator status.
  55. MAPDT, //Wafer search data (descending order)
  56. MAPRD, //Wafer search data (ascending order)
  57. WFCNT, //Wafer quantity check
  58. FSBxx //Checks whether the FOSB Mode is ON/OFF
  59. }
  60. public enum EvtType
  61. {
  62. EVTON, //Starts reporting all events.(FOUP events is excluded)
  63. EVTOF, //Stops reporting all events. (FOUP events is excluded)
  64. FPEON, //Starts reporting FOUP events.
  65. FPEOF, //Stops reporting FOUP events.
  66. }
  67. public enum MovType
  68. {
  69. ORGSH, //Moves the FOUP to the initial position.
  70. ABORG, //Aborts the operation and moves the FOUP to the initial position.
  71. CLOAD, //Loads the FOUP (transfers the FOUP to the process unit).
  72. CLDDK, //Loads the FOUP (same as CLOAD) to the point where the system is ready to open the door.
  73. CLDYD, //Clamps the FOUP and moves the FOUP to the Y-axis docking position.
  74. CLDOP, //Continues loading the FOUP after CLDDK.
  75. CLDMP, //Maps and loads the FOUP.
  76. CLMPO, //Continues mapping and loading the FOUP after CLDDK.
  77. CULOD, //Unloads the FOUP (at the ejection position).
  78. CULDK, //Closes the door (same as CULOD).
  79. CUDCL, //Undocks the FOUP (while being clamped) after CULDK.
  80. CUDNC, //Unloads the FOUP after CULDK.
  81. CULYD, //Unloads the FOUP to the docking status.
  82. CULFC, //Unloads the FOUP to the point where the system can release (unclamp) the FOUP.
  83. CUDMP, //Maps and unloads the FOUP from the loaded status.
  84. CUMDK, //Maps the FOUP and closes the door from the loaded status.
  85. CUMFC, //Maps the FOUP to the before-unclamp status from the loaded status.
  86. MAPDO, //Maps the FOUP while being loaded.
  87. REMAP, //Resumes the interrupted mapping.
  88. PODOP, //FOUP clamp: Open
  89. PODCL, //FOUP clamp: Close
  90. VACON, //Vacuum on
  91. VACOF, //Vacuum off
  92. DOROP, //Latch key: Open (Unlatches the FOUP door.)
  93. DORCL, //Latch key: Close (Latches the FOUP door.)
  94. MAPOP, //Mapper arm: Open
  95. MAPCL, //Mapper arm: Close
  96. ZDRUP, //Move to Z-axis up position (door open position)
  97. ZDRDW, //Move to Z-axis down position (transport unit handover possible position)
  98. ZDRMP, //Lower to Z-axis mapping end position and conduct mapping
  99. ZMPST, //Move the mapper to the start position
  100. YWAIT, //Move to Y-axis undock position
  101. YDOOR, //Move to Y-axis dock position
  102. DORBK, //Move to door open position
  103. DORFW, //Move to door close position
  104. RETRY, //Retry during recoverable error
  105. STOP_, //Immediate stop and command abort
  106. PAUSE, //Immediate stop
  107. ABORT, //Command abort
  108. RESUM, //Resume operation
  109. }
  110. public class ErrorCode
  111. {
  112. private Dictionary<string, string> dict = new Dictionary<string, string>
  113. {
  114. {"02","Z-axis position: NG (Down)"},
  115. {"42","Z-axis position: NG (Up)"},
  116. {"04","Y-axis position: NG (Dock)"},
  117. {"44","Y-axis position: NG (Undock)"},
  118. {"07","Wafer protrusion"},
  119. {"47","Grass wafer protrusion (Option)"},
  120. {"08","Door forward/backward position: NG(Open)"},
  121. {"48","Door forward/backward position: NG(Close)"},
  122. {"F2","FOUP door close error."},
  123. {"09","Mapper arm position: NG (Open)"},
  124. {"49","Mapper arm position: NG (Close)"},
  125. {"11","Mapper stopper position: NG (On)"},
  126. {"51","Mapper stopper position: NG (Off)"},
  127. {"12","Mapping end position: NG"},
  128. {"61","FOUP clamp open error (Up)"},
  129. {"21","FOUP clamp open error (Back)"},
  130. {"62","FOUP clamp open error (Down)"},
  131. {"22","FOUP clamp close error (Front)"},
  132. {"63","FOUP clamp close error (Middle)"},
  133. {"23","Latch key open error"},
  134. {"24","Latch key close error"},
  135. {"25","Vacuum on error"},
  136. {"26","Vacuum off error"},
  137. {"27","Main air error "},
  138. {"A1","Normal position error at FOUP open"},
  139. {"A2","Normal position error at FOUP close"},
  140. {"A3","Mapper storage error when Z-axis lowered"},
  141. {"A4","Parallel signal error from upper machine"},
  142. {"FD","Interlock relay failure"},
  143. {"FE","Communication failure"},
  144. {"FF","Obstacle detection sensor failure"},
  145. {"FC","Fan operation error"},
  146. {"EE","Mapping mechanical(Adjustment) error"},
  147. {"EF","Mapping mechanical(Sensor) error"},
  148. {"F1","Door detection error during dock"},
  149. {"31","Door detection error except dock"},
  150. };
  151. public ErrorCode()
  152. {
  153. }
  154. public string Code2Msg(string code)
  155. {
  156. if (dict.ContainsKey(code))
  157. {
  158. return string.Format("Code:{0},Message:{1}", code, dict[code]);
  159. }
  160. return code;
  161. }
  162. }
  163. /*
  164. public enum LoadportCassetteState
  165. {
  166. None, //Load sensor/Position sensor: All OFF
  167. Normal, //Load sensor/Position sensor: All ON
  168. Absent, //Load sensor: ON, Position sensor: 1 or 2: ON
  169. Unknown,//Load sensor: ON, Position sensor: All OFF
  170. //or Load sensor: OFF, Except Position sensor: All OFF
  171. }
  172. public enum FoupDoorState
  173. {
  174. Open,
  175. Close,
  176. Unknown,
  177. }
  178. public enum FoupClampState
  179. {
  180. Open,
  181. Close,
  182. Unknown,
  183. }
  184. */
  185. }