DeprageElecScrewdriver.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace AmrControl.Clients
  2. {
  3. /// <summary>
  4. /// 德派的电动起子返回的数据结构
  5. /// </summary>
  6. public class DeprageElecScrewdriver
  7. {
  8. public GeneralState General { get; set; }
  9. //所有的螺丝扭力点监控数据
  10. public List<StepState> Steps { get; set; }
  11. }
  12. public class GeneralState
  13. {
  14. public DateTime Date { get; set; }
  15. public int SequenceNumber { get; set; }
  16. //状态 “OK/NotOK"
  17. public string State { get; set; }
  18. //持续运行时间
  19. public int Duration { get; set; }
  20. //错误码,0为正常,>0为错误
  21. public int ErrorCode { get; set; }
  22. //"超时"
  23. public string ErrorText { get; set; }
  24. }
  25. public class StepState
  26. {
  27. //步骤点
  28. public int StepNumber { get; set; }
  29. //扭力
  30. public ValueNode Torque { get; set; }
  31. //角度
  32. public ValueNode Angle { get; set; }
  33. //状态 “OK/NotOK"
  34. public string State { get; set; }
  35. }
  36. public class ValueNode
  37. {
  38. public string Unit{get;set;}
  39. public float Value { get;set; }
  40. public TargetNode Target { get;set; }
  41. }
  42. public class TargetNode
  43. {
  44. public float Target { get; set; }
  45. public float Lower { get; set; }
  46. public float Upper { get; set; }
  47. }
  48. }