终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

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