终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GVL_MorkT.cs 5.6 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using BPASmartClient.Device;
  7. using System.Collections.Concurrent;
  8. using BPASmartClient.LebaiRobot;
  9. using BPASmartClient.DRCoffee;
  10. namespace BPASmartClient.MorkT_Container
  11. {
  12. public class GVL_MorkT : IStatus
  13. {
  14. #region 攀华MorkT
  15. public const int 攀华_初始位 = 10023;
  16. public const int 攀华_安全位 = 10024;
  17. public const int 攀华_取杯 = 10025;
  18. public const int 攀华_落杯 = 10026;
  19. public const int 攀华_二次取杯 = 10027;
  20. public const int 攀华_接咖啡 = 10028;
  21. public const int 攀华_放杯 = 10029;
  22. #endregion
  23. /// <summary>
  24. /// <summary>
  25. /// 咖啡订单队列
  26. /// </summary>
  27. public ConcurrentQueue<OrderLocInfo> morkOrderPushesCoffee = new ConcurrentQueue<OrderLocInfo>();
  28. /// <summary>
  29. /// 是否有咖啡杯
  30. /// </summary>
  31. public bool IsHaveCoffeeCup = false;
  32. /// <summary>
  33. /// 出咖啡完成,是否取咖啡杯
  34. /// </summary>
  35. public bool MakeCoffeeEnd = false;
  36. /// <summary>
  37. /// 果汁订单队列
  38. /// </summary>
  39. public ConcurrentQueue<OrderLocInfo> morkOrderPushesJuicer = new ConcurrentQueue<OrderLocInfo>();
  40. /// <summary>
  41. /// 是否有果汁杯
  42. /// </summary>
  43. public bool IsHaveJuiceCup = false;
  44. /// <summary>
  45. /// 出果汁完成,是否去取果汁
  46. /// </summary>
  47. public bool MakeJuiceEnd = false;
  48. /// <summary>
  49. /// 做茶订单队列
  50. /// </summary>
  51. public ConcurrentQueue<OrderLocInfo> morkOrderPushesTea = new ConcurrentQueue<OrderLocInfo>();
  52. /// <summary>
  53. /// 接水口是否有茶水杯
  54. /// </summary>
  55. public bool IsHaveTeaWaterCup = false;
  56. /// <summary>
  57. /// 水已经接完,是否去取水杯
  58. /// </summary>
  59. public bool MakeTeaEnd = false;
  60. /// <summary>
  61. /// 做开水订单队列
  62. /// </summary>
  63. public ConcurrentQueue<OrderLocInfo> morkOrderPushesWater = new ConcurrentQueue<OrderLocInfo>();
  64. /// <summary>
  65. /// 等待取餐订单
  66. /// </summary>
  67. public OrderLocInfo waitMorkOrder = new OrderLocInfo();
  68. /// <summary>
  69. /// 当前正在制作咖啡
  70. /// </summary>
  71. public OrderLocInfo MakeCoffeeOrder = new OrderLocInfo();
  72. /// <summary>
  73. /// 订单ID
  74. /// </summary>
  75. public string SuborderId = null;
  76. #region
  77. [VariableMonitor("机器人连接状态")]
  78. public bool RobotIsConnected { get; set; }
  79. [VariableMonitor("机器人状态")]
  80. public ELebaiRModel RobotMode { get; set; }
  81. [VariableMonitor("机器人TCP输入状态")]
  82. public bool RobotGetTcpInput { get; set; }
  83. [VariableMonitor("机器人输入0状态")]
  84. public bool RobotGetInput0{ get; set; }
  85. [VariableMonitor("机器人输入1状态")]
  86. public bool RobotGetInput1 { get; set; }
  87. [VariableMonitor("机器人输入2状态")]
  88. public bool RobotGetInput2 { get; set; }
  89. [VariableMonitor("机器人输入3状态")]
  90. public bool RobotGetInput3 { get; set; }
  91. [VariableMonitor("咖啡机连接状态")]
  92. public bool CoffeeIsConnected { get; set; }
  93. [VariableMonitor("咖啡机状态")]
  94. public DrCoffeeStatus DrCoffeeStatus { get; set; }
  95. [VariableMonitor("咖啡机应用状态")]
  96. public DrCoffeeAppStatus CoffeeAppStatus { get; set; }
  97. [VariableMonitor("咖啡机告警")]
  98. public DrCoffeeWarning CoffeeWarning { get; set; }
  99. [VariableMonitor("咖啡机故障")]
  100. public DrCoffeeFault CaffeeFault { get; set; }
  101. [VariableMonitor("单片机连接状态")]
  102. public bool SCChipIsConnect { get; set; }
  103. [VariableMonitor("单片机输入0状态")]
  104. public bool SCChipInput0 { get; set; }
  105. [VariableMonitor("单片机输入1状态")]
  106. public bool SCChipInput1 { get; set; }
  107. [VariableMonitor("单片机输入2状态")]
  108. public bool SCChipInput2 { get; set; }
  109. [VariableMonitor("单片机输入3状态")]
  110. public bool SCChipInput3 { get; set; }
  111. [VariableMonitor("单片机输入4状态")]
  112. public bool SCChipInput4 { get; set; }
  113. [VariableMonitor("单片机输入5状态")]
  114. public bool SCChipInput5 { get; set; }
  115. [VariableMonitor("单片机输入6状态")]
  116. public bool SCChipInput6 { get; set; }
  117. [VariableMonitor("单片机输入7状态")]
  118. public bool SCChipInput7 { get; set; }
  119. [VariableMonitor("制冰机连接状态")]
  120. public bool IceMakerConnect { get; set; }
  121. [VariableMonitor("制冰机设备状态")]
  122. public byte IceMakerState { get; set; }
  123. [VariableMonitor("果汁机连接状态")]
  124. public bool JuicerConnected { get; set; }
  125. public int[] JuicerState{ get; set; }
  126. [VariableMonitor("果汁机制热")]
  127. public bool JuiceState_Heating { get; set; }
  128. [VariableMonitor("果汁机制冷")]
  129. public bool JuiceState_Cooling { get; set; }
  130. [VariableMonitor("果汁机缺水")]
  131. public bool JuiceState_LackOfWater { get; set; }
  132. [VariableMonitor("果汁机童锁")]
  133. public bool JuiceState_ChildLocks { get; set; }
  134. [VariableMonitor("果汁机使用")]
  135. public bool JuiceState_Using { get; set; }
  136. #endregion
  137. }
  138. }