constant.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 SpeedType
  15. {
  16. H, //No-wafer transfer speed,
  17. M, //With-wafer transfer speed
  18. L, //Low speed
  19. O, //Home speed
  20. B, //Speed in low-speed-area
  21. }
  22. public enum StateBit
  23. {
  24. LowBattery = 0x10, //1: Low battery voltage, 0: Normal state
  25. Ready = 0x20, //1: Ready, 0: Busy
  26. ServorOff = 0x40, //1: Servo OFF, 0: Servo ON
  27. Error = 0x80, //Error occurrence, 0: No error occurrence
  28. CtrlLowBattery =0x01, //1: Low battery voltage, 0: Normal state
  29. WaferOnBlade1 = 0x02, //(1: Has wafer, 0: No wafer)
  30. WaferOnBlade2 = 0x04, //(1: Has wafer, 0: No wafer)
  31. WaferOnBlade3 = 0x08, //(1: Has wafer, 0: No wafer)
  32. WaferOnBlade4 = 0x10, //(1: Has wafer, 0: No wafer)
  33. WaferOnGrip = 0x02, //
  34. WaferOnCCD = 0x04, //
  35. }
  36. public class ProtocolTag
  37. {
  38. public const string tag_end = "\r";
  39. public const string tag_cmd_start = "$";
  40. public const string cmd_token = ",";
  41. public const string resp_tag_normal = "$";
  42. public const string resp_tag_error = "?";
  43. public const string resp_tag_excute = "!";
  44. public const string resp_tag_event = ">";
  45. public const string resp_evt_error = "100";
  46. }
  47. }