终端一体化运控平台
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.
 
 
 

212 rivejä
7.9 KiB

  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. using BPASmartClient.IceMaker;
  11. namespace BPASmartClient.MorkT_Container
  12. {
  13. public class GVL_MorkT : IStatus
  14. {
  15. #region 果汁机设备MORKT2 Lebai机器人
  16. public const int 机器人安全位 = 10000;//一个位置(模组可移动,机器人不发生碰撞)
  17. public const int 机器人初始位 = 10001;
  18. public const int 初始位_机器人安全位 = 10002;//初始位---安全位
  19. public const int 取纸杯 = 10005;//安全位---取杯位
  20. public const int 二次取杯 = 10008;//取纸杯检测位---二次取杯位
  21. public const int 取纸杯检测 = 10006;//取杯位---取杯检测位
  22. public const int 取杯位_机器人安全位 = 10002;//取杯检测位---安全位
  23. public const int 接咖啡 = 10010;//安全位---接咖啡位
  24. public const int 接果汁过渡位 = 10002;//安全位---接果汁过渡位
  25. public const int 接果汁1 = 10011;//接果汁过渡位---果汁1位
  26. public const int 接果汁2 = 10012;//接果汁过渡位---果汁2位
  27. public const int 接果汁3 = 10013;//接果汁过渡位---果汁3位
  28. public const int 接果汁4 = 10014;//接果汁过渡位---果汁4位
  29. public const int 接果汁_机器人安全位 = 10002;//接果汁过渡位---安全位
  30. public const int 接茶叶 = 10015;
  31. public const int 接茶水 = 10016;
  32. public const int 接开水 = 10017;
  33. public const int 接水_机器人安全位 = 10002;
  34. public const int 接冰块 = 10018;
  35. public const int 接冰_机器人安全位 = 10002;
  36. public const int 放咖啡杯 = 10020;
  37. public const int 放果汁杯1 = 10021;
  38. public const int 放果汁杯2 = 10022;
  39. public const int 放果汁杯3 = 10023;
  40. public const int 放果汁杯4 = 10024;
  41. public const int 放水杯 = 10025;
  42. public const int 放杯 = 10001;
  43. public const int 放杯_机器人安全位 = 10001;
  44. #endregion
  45. #region 果汁机设备 MORKT1 JAKA机器人
  46. public const int JUICE_初始位 = 20000;
  47. public const int JUICE_取杯 = 20001;
  48. public const int JUICE_取杯检测 = 20010;
  49. public const int JUICE_接咖啡 = 20020;
  50. public const int JUICE_接1号果汁 = 20030;
  51. public const int JUICE_接2号果汁 = 20040;
  52. public const int JUICE_接3号果汁 = 20050;
  53. public const int JUICE_接4号果汁 = 20060;
  54. public const int JUICE_接茶 = 20070;
  55. public const int JUICE_接茶水 = 20075;
  56. public const int JUICE_接水 = 20080;
  57. public const int JUICE_放咖啡杯 = 20090;
  58. public const int JUICE_放果汁杯 = 20100;
  59. public const int JUICE_放茶水杯 = 20110;
  60. public const int JUICE_放杯 = 20120;
  61. public const int JUICE_放杯检测 = 20120;
  62. #endregion
  63. /// <summary>
  64. /// <summary>
  65. /// 咖啡订单队列
  66. /// </summary>
  67. public ConcurrentQueue<OrderLocInfo> morkOrderPushesCoffee = new ConcurrentQueue<OrderLocInfo>();
  68. /// <summary>
  69. /// 是否有咖啡杯
  70. /// </summary>
  71. public bool IsHaveCoffeeCup = false;
  72. /// <summary>
  73. /// 出咖啡完成,是否取咖啡杯
  74. /// </summary>
  75. public bool MakeCoffeeEnd = false;
  76. /// <summary>
  77. /// 果汁订单队列
  78. /// </summary>
  79. public ConcurrentQueue<OrderLocInfo> morkOrderPushesJuicer = new ConcurrentQueue<OrderLocInfo>();
  80. /// <summary>
  81. /// 是否有果汁杯
  82. /// </summary>
  83. public bool IsHaveJuiceCup = false;
  84. /// <summary>
  85. /// 出果汁完成,是否去取果汁
  86. /// </summary>
  87. public bool MakeJuiceEnd = false;
  88. /// <summary>
  89. /// 做茶订单队列
  90. /// </summary>
  91. public ConcurrentQueue<OrderLocInfo> morkOrderPushesTea = new ConcurrentQueue<OrderLocInfo>();
  92. /// <summary>
  93. /// 接水口是否有茶水杯
  94. /// </summary>
  95. public bool IsHaveTeaWaterCup = false;
  96. /// <summary>
  97. /// 水已经接完,是否去取水杯
  98. /// </summary>
  99. public bool MakeTeaEnd = false;
  100. /// <summary>
  101. /// 做开水订单队列
  102. /// </summary>
  103. public ConcurrentQueue<OrderLocInfo> morkOrderPushesWater = new ConcurrentQueue<OrderLocInfo>();
  104. /// <summary>
  105. /// 等待取餐订单
  106. /// </summary>
  107. public OrderLocInfo waitMorkOrder = new OrderLocInfo();
  108. /// <summary>
  109. /// 当前正在制作咖啡
  110. /// </summary>
  111. public OrderLocInfo MakeCoffeeOrder = new OrderLocInfo();
  112. /// <summary>
  113. /// 订单ID
  114. /// </summary>
  115. public string SuborderId = null;
  116. #region
  117. [VariableMonitor("机器人连接状态")]
  118. public bool RobotIsConnected { get; set; }
  119. [VariableMonitor("机器人状态")]
  120. public ELebaiRModel RobotMode { get; set; }
  121. [VariableMonitor("机器人TCP输入状态")]
  122. public bool RobotGetTcpInput { get; set; }
  123. [VariableMonitor("机器人输入0状态")]
  124. public bool RobotGetInput0{ get; set; }
  125. [VariableMonitor("机器人输入1状态")]
  126. public bool RobotGetInput1 { get; set; }
  127. [VariableMonitor("机器人输入2状态")]
  128. public bool RobotGetInput2 { get; set; }
  129. [VariableMonitor("机器人输入3状态")]
  130. public bool RobotGetInput3 { get; set; }
  131. [VariableMonitor("咖啡机连接状态")]
  132. public bool CoffeeIsConnected { get; set; }
  133. [VariableMonitor("咖啡机状态")]
  134. public DrCoffeeStatus DrCoffeeStatus { get; set; }
  135. [VariableMonitor("咖啡机应用状态")]
  136. public DrCoffeeAppStatus CoffeeAppStatus { get; set; }
  137. [VariableMonitor("咖啡机告警")]
  138. public DrCoffeeWarning CoffeeWarning { get; set; }
  139. [VariableMonitor("咖啡机故障")]
  140. public DrCoffeeFault CaffeeFault { get; set; }
  141. [VariableMonitor("单片机连接状态")]
  142. public bool SCChipIsConnect { get; set; }
  143. [VariableMonitor("单片机输入0状态")]
  144. public bool SCChipInput0 { get; set; }
  145. [VariableMonitor("单片机输入1状态")]
  146. public bool SCChipInput1 { get; set; }
  147. [VariableMonitor("单片机输入2状态")]
  148. public bool SCChipInput2 { get; set; }
  149. [VariableMonitor("单片机输入3状态")]
  150. public bool SCChipInput3 { get; set; }
  151. [VariableMonitor("单片机输入4状态")]
  152. public bool SCChipInput4 { get; set; }
  153. [VariableMonitor("单片机输入5状态")]
  154. public bool SCChipInput5 { get; set; }
  155. [VariableMonitor("单片机输入6状态")]
  156. public bool SCChipInput6 { get; set; }
  157. [VariableMonitor("单片机输入7状态")]
  158. public bool SCChipInput7 { get; set; }
  159. [VariableMonitor("制冰机连接状态")]
  160. public bool IceMakerConnect { get; set; }
  161. [VariableMonitor("制冰机设备状态")]
  162. public byte IceMakerState { get; set; }
  163. [VariableMonitor("果汁机连接状态")]
  164. public bool JuicerConnected { get; set; }
  165. public int[] JuicerState{ get; set; }
  166. [VariableMonitor("果汁机制热")]
  167. public bool JuiceState_Heating { get; set; }
  168. [VariableMonitor("果汁机制冷")]
  169. public bool JuiceState_Cooling { get; set; }
  170. [VariableMonitor("果汁机缺水")]
  171. public bool JuiceState_LackOfWater { get; set; }
  172. [VariableMonitor("果汁机童锁")]
  173. public bool JuiceState_ChildLocks { get; set; }
  174. [VariableMonitor("果汁机使用")]
  175. public bool JuiceState_Using { get; set; }
  176. #endregion
  177. }
  178. }