Mag7RobotConvertor.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.MAG7
  8. {
  9. public class ProtocolTag
  10. {
  11. public const string tag_end = "\r";
  12. public const string cmd_token = " ";
  13. public const string resp_tag_error = "_ERR";
  14. public const string resp_tag_excute = "_RDY";
  15. public const string resp_tag_event = "_EVENT";
  16. public const string resp_evt_error = "100";
  17. }
  18. public class Mag7RobotConvertor
  19. {
  20. public static string MapModuleSlot(ModuleName chamber,int slot)
  21. {
  22. return "";
  23. }
  24. public static string hand2string(Hand hand)
  25. {
  26. string st = "";
  27. switch (hand)
  28. {
  29. case Hand.Blade1:
  30. st = "A";
  31. break;
  32. case Hand.Blade2:
  33. st = "B";
  34. break;
  35. case Hand.Both:
  36. st = "AB";
  37. break;
  38. }
  39. return st;
  40. }
  41. public static string MapModule(ModuleName moduleName)
  42. {
  43. return "";
  44. }
  45. }
  46. }