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

160 linhas
5.0 KiB

  1. using BPASmartClient.Device;
  2. using BPASmartClient.DRCoffee;
  3. using BPASmartClient.GSIceCream;
  4. using BPASmartClient.LebaiRobot;
  5. using BPASmartClient.Model.冰淇淋.Enum;
  6. using Robotc;
  7. using System;
  8. using System.Collections.Concurrent;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. namespace BPASmartClient.MorkTHQ
  14. {
  15. public class GLV_MorkTHQ:IStatus
  16. {
  17. /// <summary>
  18. /// 咖啡订单队列
  19. /// </summary>
  20. public ConcurrentQueue<OrderLocInfo> morkOrderPushesCoffee = new ConcurrentQueue<OrderLocInfo>();
  21. /// <summary>
  22. /// 冰淇淋订单队列
  23. /// </summary>
  24. public ConcurrentQueue<OrderLocInfo> morkOrderPushesIceCream = new ConcurrentQueue<OrderLocInfo>();
  25. /// <summary>
  26. /// 果汁订单队列
  27. /// </summary>
  28. public ConcurrentQueue<OrderLocInfo> morkOrderPushesJuice = new ConcurrentQueue<OrderLocInfo>();
  29. /// <summary>
  30. /// 等待取餐订单
  31. /// </summary>
  32. public OrderLocInfo waitMorkOrder = null;
  33. /// <summary>
  34. /// 物料存放位置
  35. /// </summary>
  36. public Dictionary<string, PolymerBatching> batchings = new Dictionary<string, PolymerBatching>();
  37. /// <summary>
  38. /// 当前正在制作咖啡
  39. /// </summary>
  40. public OrderLocInfo MakeCoffeeOrder = new OrderLocInfo();
  41. /// <summary>
  42. /// 咖啡机位置是否有咖啡在制作中
  43. /// </summary>
  44. public bool IsCoffeeMake = false;
  45. /// <summary>
  46. /// 冰淇淋机器出料口传感器检测
  47. /// </summary>
  48. public bool IceIsOK = true;
  49. /// <summary>
  50. /// 去咖啡杯成功
  51. /// </summary>
  52. public bool GetCoffeeCup;
  53. /// <summary>
  54. /// 取冰淇淋杯成功
  55. /// </summary>
  56. public bool GetIceCreamCup;
  57. /// <summary>
  58. /// 果汁机做法,true:热饮,false:冷饮
  59. /// </summary>
  60. public bool GuMake = false;
  61. /// <summary>
  62. /// 果汁机控制信号
  63. /// </summary>
  64. public byte JuicerNum;
  65. #region
  66. [VariableMonitor("机器人连接状态")]
  67. public bool RobotIsConnected { get; set; }
  68. [VariableMonitor("机器人状态")]
  69. public ELebaiRModel RobotMode { get; set; }
  70. [VariableMonitor("冰淇淋连接状态")]
  71. public bool IceCreamIsConnected { get; set; }
  72. [VariableMonitor("冰淇淋机器预冷温度")]
  73. public short YLWD { get; set; }
  74. [VariableMonitor("冰淇淋机器回气温度")]
  75. public short HQWD { get; set; }
  76. [VariableMonitor("冰淇淋机器环境温度")]
  77. public short HJWD { get; set; }
  78. [VariableMonitor("冰淇淋机器电流")]
  79. public short DL { get; set; }
  80. [VariableMonitor("冰淇淋机器电压")]
  81. public short DY { get; set; }
  82. [VariableMonitor("冰淇淋机器成型比")]
  83. public byte CBX { get; set; }
  84. [VariableMonitor("冰淇淋机器模式")]
  85. public MORKI_MODE IceCreamMode { get; set; }
  86. [VariableMonitor("冰淇淋机器故障")]
  87. public MORKI_FAULT IceCreamFault { get; set; }
  88. [VariableMonitor("冰淇淋机器打料完成")]
  89. public bool DLCompleted { get; set; }
  90. [VariableMonitor("咖啡机连接状态")]
  91. public bool CoffeeIsConnected { get; set; }
  92. [VariableMonitor("咖啡机状态")]
  93. public DrCoffeeStatus DrCoffeeStatus { get; set; }
  94. [VariableMonitor("咖啡机应用状态")]
  95. public DrCoffeeAppStatus CoffeeAppStatus { get; set; }
  96. [VariableMonitor("咖啡机告警")]
  97. public DrCoffeeWarning CoffeeWarning { get; set; }
  98. [VariableMonitor("咖啡机故障")]
  99. public DrCoffeeFault CaffeeFault { get; set; }
  100. [VariableMonitor("咖啡机制作进度")]
  101. public int Coffeeprogress { get; set; }
  102. [VariableMonitor("单片机连接状态")]
  103. public bool SCChipIsConnect { get; set; }
  104. [VariableMonitor("果汁机连接状态")]
  105. public bool JuiceIsConnect { get; set; }
  106. #endregion
  107. }
  108. public class Lebai_HQ
  109. {
  110. #region 环球设备
  111. public const int SENCE_取咖啡杯 = 10001;
  112. public const int SENCE_取冰淇淋杯 = 10002;
  113. public const int SENCE_接咖啡后回原点 = 10003;
  114. public const int SENCE_取咖啡出餐 = 10004;
  115. public const int SENCE_接1号冰淇淋 = 10005;
  116. public const int SENCE_放冰淇淋位置 = 10006;
  117. public const int SENCE_取果汁杯位置 = 10007;
  118. public const int SENCE_接果汁公共位置 = 10008;
  119. public const int SENCE_接1号果汁位置 = 10009;
  120. public const int SENCE_接2号果汁位置 = 10010;
  121. public const int SENCE_接3号果汁位置 = 10011;
  122. public const int SENCE_接4号果汁位置 = 10012;
  123. public const int SENCE_放果汁杯位置后回原点 = 10013;
  124. #endregion
  125. }
  126. }