DataDefine.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. using Aitex.Core.Common;
  2. using Aitex.Sorter.Common;
  3. using MECF.Framework.Common.Equipment;
  4. using VirgoCommon;
  5. namespace VirgoRT
  6. {
  7. public enum CommunicationType { Analogue, RS232, Ethernet }
  8. //public enum BusyFlag { Idle, Busy, Error }
  9. public enum OnlineFlag { Offline, Online }
  10. public enum AutoFlag { Manual, Auto }
  11. public enum ActionStatus
  12. {
  13. Unknown, Pending, SendCmd, RecACK, RecINF, Completed, PartialDone, AllCompleted, Timeout, Error, Cancel
  14. }
  15. public enum LightType
  16. {
  17. RED, BLUE, GREEN, YELLOW, WHITE, BUZZER1
  18. }
  19. public enum LightStatus
  20. {
  21. OFF, ON, BLINK
  22. }
  23. public class Position
  24. {
  25. public ModuleName Module { get; set; }
  26. public byte Slot { get; set; }
  27. }
  28. public enum ExtendPos
  29. {
  30. //GetReady, GetTarget, GetBack, PutReady, PutTarget, PutBack
  31. G1, GB, G4, P1, PB, P4
  32. }
  33. /// <summary>
  34. /// Wafer transferring argument
  35. /// </summary>
  36. class MoveParam
  37. {
  38. public Position SrcPos { get; } = new Position();
  39. public Position DestPos { get; } = new Position();
  40. public ModuleName SrcModule => SrcPos.Module;
  41. public byte SrcSlot => SrcPos.Slot;
  42. public ModuleName DestModule => DestPos.Module;
  43. public byte DestSlot => DestPos.Slot;
  44. public WaferSize WaferSize { get; set; }
  45. public Hand Arm { get; }
  46. public MoveParam(Position src, Position dest)
  47. {
  48. this.SrcPos = src; this.DestPos = dest;
  49. }
  50. public MoveParam(ModuleName srcMod, byte srcSlot, ModuleName destMod, byte destSlot, Hand arm, WaferSize ws)
  51. {
  52. SrcPos.Module = srcMod;
  53. SrcPos.Slot = srcSlot;
  54. DestPos.Module = destMod;
  55. DestPos.Slot = destSlot;
  56. Arm = arm;
  57. WaferSize = ws;
  58. }
  59. public MoveParam(int p0, int p1, int p2, int p3, int arm, int ws)
  60. {
  61. SrcPos.Module = (ModuleName)p0;
  62. SrcPos.Slot = (byte)p1;
  63. SrcPos.Module = (ModuleName)p2;
  64. SrcPos.Slot = (byte)p3;
  65. Arm = (Hand)arm;
  66. WaferSize = (WaferSize)ws;
  67. }
  68. }
  69. class SwapParam
  70. {
  71. public Position SrcPos { get; } = new Position();
  72. public Position DestPos { get; } = new Position();
  73. public ModuleName SrcModule => SrcPos.Module;
  74. public byte SrcSlot => SrcPos.Slot;
  75. public ModuleName DestModule => DestPos.Module;
  76. public byte DestSlot => DestPos.Slot;
  77. public WaferSize WaferSize { get; set; }
  78. public Hand Arm { get; }
  79. public SwapParam(Position src, Position dest)
  80. {
  81. this.SrcPos = src; this.DestPos = dest;
  82. }
  83. public SwapParam(ModuleName srcMod, byte srcSlot, ModuleName destMod, byte destSlot, Hand arm, WaferSize ws)
  84. {
  85. SrcPos.Module = srcMod;
  86. SrcPos.Slot = srcSlot;
  87. DestPos.Module = destMod;
  88. DestPos.Slot = destSlot;
  89. Arm = arm;
  90. WaferSize = ws;
  91. }
  92. public SwapParam(int p0, int p1, int p2, int p3, int arm, int ws)
  93. {
  94. SrcPos.Module = (ModuleName)p0;
  95. SrcPos.Slot = (byte)p1;
  96. SrcPos.Module = (ModuleName)p2;
  97. SrcPos.Slot = (byte)p3;
  98. Arm = (Hand)arm;
  99. WaferSize = (WaferSize)ws;
  100. }
  101. }
  102. class ExtendParam
  103. {
  104. public ModuleName Module { get; set; }
  105. public ExtendPos Pos { get; set; }
  106. public Hand Arm { get; set; } = Hand.Blade1;
  107. public WaferSize ws { get; set; }
  108. }
  109. static class Extension
  110. {
  111. public static MovePath Path(this MoveParam mp)
  112. {
  113. return MovePath.LPToPM;
  114. }
  115. }
  116. enum MovePath
  117. {
  118. LPToPM,
  119. PMToLP
  120. }
  121. interface IHardwareMessage
  122. {
  123. string RawString { get; set; }
  124. }
  125. public enum GeneratorMFG
  126. {
  127. AdTec = 1,
  128. Comet = 2
  129. }
  130. public enum MatchMFG
  131. {
  132. AdTec =1,
  133. MKS = 2
  134. }
  135. public enum ChillerMFG
  136. {
  137. SMC = 1
  138. }
  139. public enum DryPumpMFG
  140. {
  141. SKY = 1,
  142. Edwards = 2,
  143. Kashiyama = 3
  144. }
  145. public enum MsgDirection
  146. {
  147. Unknown, To, From
  148. }
  149. }