终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GVL_MorkT.cs 7.9 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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 果汁机设备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> morkOrderPushesCoffee = new ConcurrentQueue<OrderLocInfo>();
  67. /// <summary>
  68. /// 是否有咖啡杯
  69. /// </summary>
  70. public bool IsHaveCoffeeCup = false;
  71. /// <summary>
  72. /// 出咖啡完成,是否取咖啡杯
  73. /// </summary>
  74. public bool MakeCoffeeEnd = false;
  75. /// <summary>
  76. /// 果汁订单队列
  77. /// </summary>
  78. public ConcurrentQueue<OrderLocInfo> morkOrderPushesJuicer = new ConcurrentQueue<OrderLocInfo>();
  79. /// <summary>
  80. /// 是否有果汁杯
  81. /// </summary>
  82. public bool IsHaveJuiceCup = false;
  83. /// <summary>
  84. /// 出果汁完成,是否去取果汁
  85. /// </summary>
  86. public bool MakeJuiceEnd = false;
  87. /// <summary>
  88. /// 做茶订单队列
  89. /// </summary>
  90. public ConcurrentQueue<OrderLocInfo> morkOrderPushesTea = new ConcurrentQueue<OrderLocInfo>();
  91. /// <summary>
  92. /// 接水口是否有茶水杯
  93. /// </summary>
  94. public bool IsHaveTeaWaterCup = false;
  95. /// <summary>
  96. /// 水已经接完,是否去取水杯
  97. /// </summary>
  98. public bool MakeTeaEnd = false;
  99. /// <summary>
  100. /// 做开水订单队列
  101. /// </summary>
  102. public ConcurrentQueue<OrderLocInfo> morkOrderPushesWater = new ConcurrentQueue<OrderLocInfo>();
  103. /// <summary>
  104. /// 等待取餐订单
  105. /// </summary>
  106. public OrderLocInfo waitMorkOrder = new OrderLocInfo();
  107. /// <summary>
  108. /// 当前正在制作咖啡
  109. /// </summary>
  110. public OrderLocInfo MakeCoffeeOrder = new OrderLocInfo();
  111. /// <summary>
  112. /// 订单ID
  113. /// </summary>
  114. public string SuborderId = null;
  115. #region
  116. [VariableMonitor("机器人连接状态")]
  117. public bool RobotIsConnected { get; set; }
  118. [VariableMonitor("机器人状态")]
  119. public ELebaiRModel RobotMode { get; set; }
  120. [VariableMonitor("机器人TCP输入状态")]
  121. public bool RobotGetTcpInput { get; set; }
  122. [VariableMonitor("机器人输入0状态")]
  123. public bool RobotGetInput0{ get; set; }
  124. [VariableMonitor("机器人输入1状态")]
  125. public bool RobotGetInput1 { get; set; }
  126. [VariableMonitor("机器人输入2状态")]
  127. public bool RobotGetInput2 { get; set; }
  128. [VariableMonitor("机器人输入3状态")]
  129. public bool RobotGetInput3 { get; set; }
  130. [VariableMonitor("咖啡机连接状态")]
  131. public bool CoffeeIsConnected { get; set; }
  132. [VariableMonitor("咖啡机状态")]
  133. public DrCoffeeStatus DrCoffeeStatus { get; set; }
  134. [VariableMonitor("咖啡机应用状态")]
  135. public DrCoffeeAppStatus CoffeeAppStatus { get; set; }
  136. [VariableMonitor("咖啡机告警")]
  137. public DrCoffeeWarning CoffeeWarning { get; set; }
  138. [VariableMonitor("咖啡机故障")]
  139. public DrCoffeeFault CaffeeFault { get; set; }
  140. [VariableMonitor("单片机连接状态")]
  141. public bool SCChipIsConnect { get; set; }
  142. [VariableMonitor("单片机输入0状态")]
  143. public bool SCChipInput0 { get; set; }
  144. [VariableMonitor("单片机输入1状态")]
  145. public bool SCChipInput1 { get; set; }
  146. [VariableMonitor("单片机输入2状态")]
  147. public bool SCChipInput2 { get; set; }
  148. [VariableMonitor("单片机输入3状态")]
  149. public bool SCChipInput3 { get; set; }
  150. [VariableMonitor("单片机输入4状态")]
  151. public bool SCChipInput4 { get; set; }
  152. [VariableMonitor("单片机输入5状态")]
  153. public bool SCChipInput5 { get; set; }
  154. [VariableMonitor("单片机输入6状态")]
  155. public bool SCChipInput6 { get; set; }
  156. [VariableMonitor("单片机输入7状态")]
  157. public bool SCChipInput7 { get; set; }
  158. [VariableMonitor("制冰机连接状态")]
  159. public bool IceMakerConnect { get; set; }
  160. [VariableMonitor("制冰机设备状态")]
  161. public byte IceMakerState { get; set; }
  162. [VariableMonitor("果汁机连接状态")]
  163. public bool JuicerConnected { get; set; }
  164. public int[] JuicerState{ get; set; }
  165. [VariableMonitor("果汁机制热")]
  166. public bool JuiceState_Heating { get; set; }
  167. [VariableMonitor("果汁机制冷")]
  168. public bool JuiceState_Cooling { get; set; }
  169. [VariableMonitor("果汁机缺水")]
  170. public bool JuiceState_LackOfWater { get; set; }
  171. [VariableMonitor("果汁机童锁")]
  172. public bool JuiceState_ChildLocks { get; set; }
  173. [VariableMonitor("果汁机使用")]
  174. public bool JuiceState_Using { get; set; }
  175. #endregion
  176. }
  177. }