DataDefine.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. using Aitex.Core.Common;
  2. using Aitex.Sorter.Common;
  3. using MECF.Framework.Common.Equipment;
  4. using Virgo_DCommon;
  5. namespace Virgo_DRT
  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 ExtendParam
  70. {
  71. public ModuleName Module { get; set; }
  72. public ExtendPos Pos { get; set; }
  73. public Hand Arm { get; set; } = Hand.Blade1;
  74. }
  75. static class Extension
  76. {
  77. public static MovePath Path(this MoveParam mp)
  78. {
  79. return MovePath.LPToPM;
  80. }
  81. }
  82. enum MovePath
  83. {
  84. LPToPM,
  85. PMToLP
  86. }
  87. interface IHardwareMessage
  88. {
  89. string RawString { get; set; }
  90. }
  91. public enum GeneratorMFG
  92. {
  93. AdTec = 1,
  94. MKS = 2
  95. }
  96. public enum MatchMFG
  97. {
  98. AdTec =1,
  99. MKS = 2
  100. }
  101. public enum DryPumpMFG
  102. {
  103. SKY = 1,
  104. Edwards = 2
  105. }
  106. public enum MsgDirection
  107. {
  108. Unknown, To, From
  109. }
  110. }