DeviceName.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.Remoting.Messaging;
  4. namespace CyberX8_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. PickExtend,
  18. PickRetract,
  19. PlaceExtend,
  20. PlaceRetract,
  21. Goto,
  22. Extend,
  23. Retract,
  24. Align,
  25. Light,
  26. TurnOffBuzzer,
  27. //SwitchOnBuzzerAndRed,
  28. GetWaferInfo,
  29. Orgsh,
  30. Lift,
  31. SigStatus,
  32. Ready,
  33. Abort,
  34. ClearError,
  35. PmPinUp,
  36. PmPinDown,
  37. Load,
  38. Unload,
  39. CarrierId,
  40. Dock,
  41. Undock,
  42. Map,
  43. DummyMap,
  44. Clamp,
  45. Unclamp,
  46. SetThickness,
  47. StateTrack,
  48. //WriteCarrierId,
  49. Grip,
  50. EmsStop,
  51. Swap,
  52. Size,
  53. Speed,
  54. Vacuum,
  55. PowerOn,
  56. Error
  57. }
  58. public class EfemConstant
  59. {
  60. public static readonly Dictionary<EfemOperation, string> OperationString = new Dictionary<EfemOperation, string>()
  61. {
  62. { EfemOperation.Ready, "READY" },
  63. { EfemOperation.Home, "INIT" },
  64. { EfemOperation.Orgsh, "ORGSH" },
  65. { EfemOperation.ClearError, "ERROR"},
  66. { EfemOperation.Map, "WAFSH" },
  67. { EfemOperation.GetWaferInfo, "MAPDT" },
  68. { EfemOperation.Pick, "LOAD" },
  69. { EfemOperation.Place, "UNLOAD" },
  70. { EfemOperation.Extend, "MPNT" },
  71. { EfemOperation.Align, "ALIGN" },
  72. { EfemOperation.SigStatus, "SIGSTAT" },
  73. { EfemOperation.Lift, "LIFT" },
  74. { EfemOperation.Light, "SIGOUT" },
  75. { EfemOperation.Abort, "ABORT" },
  76. { EfemOperation.Goto, "GOTO" },
  77. { EfemOperation.Load, "OPEN" },
  78. { EfemOperation.Unload, "CLOSE" },
  79. { EfemOperation.CarrierId, "CSTID" },
  80. { EfemOperation.Dock, "DOCK" },
  81. { EfemOperation.Undock, "UNDOCK" },
  82. { EfemOperation.Clamp, "LOCK" },
  83. { EfemOperation.Unclamp, "UNLOCK" },
  84. { EfemOperation.SetThickness, "THICKNESS" },
  85. { EfemOperation.StateTrack, "STATE" },
  86. { EfemOperation.Grip, "CLAMP" },
  87. { EfemOperation.EmsStop, "EMS"},
  88. { EfemOperation.PickExtend, "LOAD_EXTEND"},
  89. { EfemOperation.PickRetract, "LOAD_RETRACT"},
  90. { EfemOperation.PlaceExtend, "UNLOAD_EXTEND"},
  91. { EfemOperation.PlaceRetract, "UNLOAD_RETRACT"},
  92. { EfemOperation.Size, "SIZE"},
  93. {EfemOperation.Speed,"SPEED"},
  94. {EfemOperation.Vacuum,"VAC"},
  95. {EfemOperation.PowerOn,"SERVOS"}
  96. };
  97. public static EfemOperation ToOperation(string str)
  98. {
  99. foreach (var item in OperationString)
  100. {
  101. if (item.Value == str)
  102. {
  103. return item.Key;
  104. }
  105. }
  106. return default(EfemOperation);
  107. }
  108. }
  109. public enum ChillerType
  110. {
  111. Chiller,
  112. InnerChiller,
  113. OuterChiller,
  114. TopChiller
  115. }
  116. }