DeviceName.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.Remoting.Messaging;
  4. namespace VirgoCommon
  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. }
  46. public class EfemConstant
  47. {
  48. public static readonly Dictionary<EfemOperation, string> OperationString = new Dictionary<EfemOperation, string>()
  49. {
  50. { EfemOperation.Ready, "READY" },
  51. { EfemOperation.Home, "INIT" },
  52. { EfemOperation.Orgsh, "ORGSH" },
  53. { EfemOperation.ClearError, "ERROR"},
  54. //{ EfemOperation.HomeLP, "INIT" },
  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. };
  77. public static EfemOperation ToOperation(string str)
  78. {
  79. foreach (var item in OperationString)
  80. {
  81. if (item.Value == str)
  82. {
  83. return item.Key;
  84. }
  85. }
  86. return default(EfemOperation);
  87. }
  88. }
  89. }