DeviceName.cs 3.6 KB

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