ResponseBody.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. 
  2. using DeviceServer.HttpServer;
  3. using System.Collections.Generic;
  4. namespace ResponseServer.HttpServer
  5. {
  6. public class ResponseBody
  7. {
  8. public int code
  9. { get; set; } = 0;
  10. public bool result
  11. { get; set; } = true;
  12. public string msg
  13. { get; set; } = "调用成功";
  14. public int statusCode { get; set; } = 200;
  15. public string toolsData { get; set; }
  16. public string errorsInfo { get; set; } = "";
  17. public string runDatasInfo { get; set; } = "";
  18. public string deviceState //设备状态
  19. { get; set; } = "离线";
  20. }
  21. public class ToolsInfo
  22. {
  23. public string position { get; set; }
  24. public string number { get; set; }
  25. public string name { get; set; }
  26. public string targetLife { get; set; }
  27. //额定寿命
  28. public string rateLife { get; set; }
  29. public string useLife { get; set; }
  30. public string curTime { get; set; }
  31. //0:时间 1:次数
  32. public int lifeType { get; set; } = 0;
  33. }
  34. public class RunDatasInfo
  35. {
  36. public string mainProg //主程序号
  37. { get; set; }
  38. public int partsCount //工件数
  39. { get; set; }
  40. public string actFeedSpeed //主轴进给速度
  41. { get; set; }
  42. public string spindleRateOvr //主轴倍率
  43. { get; set; }
  44. public string feedRateOvr //进给倍率
  45. { get; set; }
  46. public string spindleLoad //主轴负载
  47. { get; set; }
  48. public string feedAxisLoad //进给轴负载
  49. { get; set; }
  50. public string servoLoad //伺服负载
  51. { get; set; }
  52. public string actSpindleSpeed //主轴转速
  53. { get; set; }
  54. public string powerOnTime //开机时长
  55. { get; set; }
  56. public string ncSysTime //nc系统时间
  57. { get; set; }
  58. public string ncModel //nc型号
  59. { get; set; }
  60. public string machineCoordinate //机械坐标
  61. { get; set; }
  62. public string relativeCoordinate //相对坐标
  63. { get; set; }
  64. public string absoluteCoordinate //绝对坐标
  65. { get; set; }
  66. public string runMode //运行模式
  67. { get; set; }
  68. public string ncRunTime //NC运行时间
  69. { get; set; }
  70. public string currentToolNo //当前刀号
  71. { get; set; }
  72. public string runStatus //运行状态
  73. { get; set; } = "空闲";
  74. }
  75. public class AlmInfo
  76. {
  77. public string no { get; set; }
  78. public string msg { get; set; }
  79. }
  80. }