DeviceName.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.Remoting.Messaging;
  4. namespace Venus_Core
  5. {
  6. public class DeviceName
  7. {
  8. //Eefem
  9. public const string EfemRobot = "EfemRobot";
  10. }
  11. public enum EfemOperation
  12. {
  13. Home,
  14. //HomeLP,
  15. Pick,
  16. Place,
  17. Goto,
  18. Extend,
  19. Retract,
  20. Align,
  21. Map,
  22. Light,
  23. TurnOffBuzzer,
  24. //SwitchOnBuzzerAndRed,
  25. GetWaferInfo,
  26. Orgsh,
  27. Lift,
  28. SigStatus,
  29. Ready,
  30. Abort,
  31. ClearError,
  32. PmPinUp,
  33. PmPinDown,
  34. Load,
  35. Unload,
  36. CarrierId,
  37. Dock,
  38. Undock,
  39. Clamp,
  40. Unclamp,
  41. SetThickness,
  42. StateTrack,
  43. //WriteCarrierId,
  44. Grip,
  45. EmsStop,
  46. Swap,
  47. UnKnow
  48. }
  49. public class EfemConstant
  50. {
  51. public static readonly Dictionary<EfemOperation, string> OperationString = new Dictionary<EfemOperation, string>()
  52. {
  53. { EfemOperation.Ready, "READY" },
  54. { EfemOperation.Home, "INIT" },
  55. { EfemOperation.Orgsh, "ORGSH" },
  56. { EfemOperation.ClearError, "ERROR"},
  57. { EfemOperation.Map, "WAFSH" },
  58. { EfemOperation.GetWaferInfo, "MAPDT" },
  59. { EfemOperation.Pick, "LOAD" },
  60. { EfemOperation.Place, "UNLOAD" },
  61. { EfemOperation.Extend, "MPNT" },
  62. { EfemOperation.Align, "ALIGN" },
  63. { EfemOperation.SigStatus, "SIGSTAT" },
  64. { EfemOperation.Lift, "LIFT" },
  65. { EfemOperation.Light, "SIGOUT" },
  66. { EfemOperation.Abort, "ABORT" },
  67. { EfemOperation.Goto, "GOTO" },
  68. { EfemOperation.Load, "OPEN" },
  69. { EfemOperation.Unload, "CLOSE" },
  70. { EfemOperation.CarrierId, "CSTID" },
  71. { EfemOperation.Dock, "DOCK" },
  72. { EfemOperation.Undock, "UNDOCK" },
  73. { EfemOperation.Clamp, "LOCK" },
  74. { EfemOperation.Unclamp, "UNLOCK" },
  75. { EfemOperation.SetThickness, "THICKNESS" },
  76. { EfemOperation.StateTrack, "STATE" },
  77. { EfemOperation.Grip, "CLAMP" },
  78. { EfemOperation.EmsStop, "EMS"},
  79. };
  80. public static EfemOperation ToOperation(string str)
  81. {
  82. foreach (var item in OperationString)
  83. {
  84. if (item.Value == str)
  85. {
  86. return item.Key;
  87. }
  88. }
  89. return EfemOperation.UnKnow;
  90. }
  91. }
  92. public enum ChillerType
  93. {
  94. Chiller,
  95. WallChiller,
  96. InnerChiller,
  97. OuterChiller,
  98. TopChiller
  99. }
  100. public enum EPDType
  101. {
  102. Socket,
  103. WCF,
  104. None
  105. }
  106. }