DeviceName.cs 2.8 KB

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