constant.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Aitex.Sorter.Common;
  6. using MECF.Framework.Common.Equipment;
  7. namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot
  8. {
  9. public enum Unit
  10. {
  11. Robot = 1,
  12. Aligner = 2,
  13. }
  14. public enum EventType
  15. {
  16. Error = 100,
  17. Aligner = 140,
  18. }
  19. public enum SpeedType
  20. {
  21. H, //No-wafer transfer speed,
  22. M, //With-wafer transfer speed
  23. L, //Low speed
  24. O, //Home speed
  25. B, //Speed in low-speed-area
  26. }
  27. public enum StateBit
  28. {
  29. LowBattery = 0x10, //1: Low battery voltage, 0: Normal state
  30. Ready = 0x20, //1: Ready, 0: Busy
  31. ServorOff = 0x40, //1: Servo OFF, 0: Servo ON
  32. Error = 0x80, //Error occurrence, 0: No error occurrence
  33. CtrlLowBattery =0x01, //1: Low battery voltage, 0: Normal state
  34. WaferOnBlade1 = 0x02, //(1: Has wafer, 0: No wafer)
  35. WaferOnBlade2 = 0x04, //(1: Has wafer, 0: No wafer)
  36. WaferOnBlade3 = 0x08, //(1: Has wafer, 0: No wafer)
  37. WaferOnBlade4 = 0x10, //(1: Has wafer, 0: No wafer)
  38. WaferOnGrip = 0x02, //
  39. WaferOnCCD = 0x04, //
  40. }
  41. public class ProtocolTag
  42. {
  43. public const string tag_end = "\r";
  44. public const string tag_cmd_start = "$";
  45. public const string cmd_token = ",";
  46. public const string resp_tag_normal = "$";
  47. public const string resp_tag_error = "?";
  48. public const string resp_tag_excute = "!";
  49. public const string resp_tag_event = ">";
  50. public const string resp_evt_error = "100";
  51. }
  52. }