DeviceName.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. }
  47. public class EfemConstant
  48. {
  49. public static readonly Dictionary<EfemOperation, string> OperationString = new Dictionary<EfemOperation, string>()
  50. {
  51. { EfemOperation.Ready, "READY" },
  52. { EfemOperation.Home, "INIT" },
  53. { EfemOperation.Orgsh, "ORGSH" },
  54. { EfemOperation.ClearError, "ERROR"},
  55. { EfemOperation.Map, "WAFSH" },
  56. { EfemOperation.GetWaferInfo, "MAPDT" },
  57. { EfemOperation.Pick, "LOAD" },
  58. { EfemOperation.Place, "UNLOAD" },
  59. { EfemOperation.Extend, "MPNT" },
  60. { EfemOperation.Align, "ALIGN" },
  61. { EfemOperation.SigStatus, "SIGSTAT" },
  62. { EfemOperation.Lift, "LIFT" },
  63. { EfemOperation.Light, "SIGOUT" },
  64. { EfemOperation.Abort, "ABORT" },
  65. { EfemOperation.Goto, "GOTO" },
  66. { EfemOperation.Load, "OPEN" },
  67. { EfemOperation.Unload, "CLOSE" },
  68. { EfemOperation.CarrierId, "CSTID" },
  69. { EfemOperation.Dock, "DOCK" },
  70. { EfemOperation.Undock, "UNDOCK" },
  71. { EfemOperation.Clamp, "LOCK" },
  72. { EfemOperation.Unclamp, "UNLOCK" },
  73. { EfemOperation.SetThickness, "THICKNESS" },
  74. { EfemOperation.StateTrack, "STATE" },
  75. { EfemOperation.Grip, "CLAMP" },
  76. { EfemOperation.EmsStop, "EMS"},
  77. };
  78. public static EfemOperation ToOperation(string str)
  79. {
  80. foreach (var item in OperationString)
  81. {
  82. if (item.Value == str)
  83. {
  84. return item.Key;
  85. }
  86. }
  87. return default(EfemOperation);
  88. }
  89. }
  90. }