using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BPASmartClient.Device; using System.Collections.Concurrent; using BPASmartClient.LebaiRobot; using BPASmartClient.DRCoffee; namespace BPASmartClient.MorkT_Container { public class GVL_MorkT : IStatus { #region 果汁机设备MORKT2 Lebai机器人 public const int 机器人安全位 = 10000;//一个位置(模组可移动,机器人不发生碰撞) public const int 机器人初始位 = 10001; public const int 初始位_机器人安全位 = 10002;//初始位---安全位 public const int 取纸杯 = 10005;//安全位---取杯位 public const int 二次取杯 = 10008;//取纸杯检测位---二次取杯位 public const int 取纸杯检测 = 10006;//取杯位---取杯检测位 public const int 取杯位_机器人安全位 = 10002;//取杯检测位---安全位 public const int 接咖啡 = 10010;//安全位---接咖啡位 public const int 接果汁过渡位 = 10002;//安全位---接果汁过渡位 public const int 接果汁1 = 10011;//接果汁过渡位---果汁1位 public const int 接果汁2 = 10012;//接果汁过渡位---果汁2位 public const int 接果汁3 = 10013;//接果汁过渡位---果汁3位 public const int 接果汁4 = 10014;//接果汁过渡位---果汁4位 public const int 接果汁_机器人安全位 = 10002;//接果汁过渡位---安全位 public const int 接茶叶 = 10015; public const int 接茶水 = 10016; public const int 接开水 = 10017; public const int 接水_机器人安全位 = 10002; public const int 接冰块 = 10018; public const int 接冰_机器人安全位 = 10002; public const int 放咖啡杯 = 10020; public const int 放果汁杯1 = 10021; public const int 放果汁杯2 = 10022; public const int 放果汁杯3 = 10023; public const int 放果汁杯4 = 10024; public const int 放水杯 = 10025; public const int 放杯 = 10001; public const int 放杯_机器人安全位 = 10001; #endregion #region 果汁机设备 MORKT1 JAKA机器人 public const int JUICE_初始位 = 20000; public const int JUICE_取杯 = 20001; public const int JUICE_取杯检测 = 20010; public const int JUICE_接咖啡 = 20020; public const int JUICE_接1号果汁 = 20030; public const int JUICE_接2号果汁 = 20040; public const int JUICE_接3号果汁 = 20050; public const int JUICE_接4号果汁 = 20060; public const int JUICE_接茶 = 20070; public const int JUICE_接茶水 = 20075; public const int JUICE_接水 = 20080; public const int JUICE_放咖啡杯 = 20090; public const int JUICE_放果汁杯 = 20100; public const int JUICE_放茶水杯 = 20110; public const int JUICE_放杯 = 20120; public const int JUICE_放杯检测 = 20120; #endregion /// <summary> /// <summary> /// 咖啡订单队列 /// </summary> public ConcurrentQueue<OrderLocInfo> morkOrderPushesCoffee = new ConcurrentQueue<OrderLocInfo>(); /// <summary> /// 是否有咖啡杯 /// </summary> public bool IsHaveCoffeeCup = false; /// <summary> /// 出咖啡完成,是否取咖啡杯 /// </summary> public bool MakeCoffeeEnd = false; /// <summary> /// 果汁订单队列 /// </summary> public ConcurrentQueue<OrderLocInfo> morkOrderPushesJuicer = new ConcurrentQueue<OrderLocInfo>(); /// <summary> /// 是否有果汁杯 /// </summary> public bool IsHaveJuiceCup = false; /// <summary> /// 出果汁完成,是否去取果汁 /// </summary> public bool MakeJuiceEnd = false; /// <summary> /// 做茶订单队列 /// </summary> public ConcurrentQueue<OrderLocInfo> morkOrderPushesTea = new ConcurrentQueue<OrderLocInfo>(); /// <summary> /// 接水口是否有茶水杯 /// </summary> public bool IsHaveTeaWaterCup = false; /// <summary> /// 水已经接完,是否去取水杯 /// </summary> public bool MakeTeaEnd = false; /// <summary> /// 做开水订单队列 /// </summary> public ConcurrentQueue<OrderLocInfo> morkOrderPushesWater = new ConcurrentQueue<OrderLocInfo>(); /// <summary> /// 等待取餐订单 /// </summary> public OrderLocInfo waitMorkOrder = new OrderLocInfo(); /// <summary> /// 当前正在制作咖啡 /// </summary> public OrderLocInfo MakeCoffeeOrder = new OrderLocInfo(); /// <summary> /// 订单ID /// </summary> public string SuborderId = null; #region [VariableMonitor("机器人连接状态")] public bool RobotIsConnected { get; set; } [VariableMonitor("机器人状态")] public ELebaiRModel RobotMode { get; set; } [VariableMonitor("机器人TCP输入状态")] public bool RobotGetTcpInput { get; set; } [VariableMonitor("机器人输入0状态")] public bool RobotGetInput0{ get; set; } [VariableMonitor("机器人输入1状态")] public bool RobotGetInput1 { get; set; } [VariableMonitor("机器人输入2状态")] public bool RobotGetInput2 { get; set; } [VariableMonitor("机器人输入3状态")] public bool RobotGetInput3 { get; set; } [VariableMonitor("咖啡机连接状态")] public bool CoffeeIsConnected { get; set; } [VariableMonitor("咖啡机状态")] public DrCoffeeStatus DrCoffeeStatus { get; set; } [VariableMonitor("咖啡机应用状态")] public DrCoffeeAppStatus CoffeeAppStatus { get; set; } [VariableMonitor("咖啡机告警")] public DrCoffeeWarning CoffeeWarning { get; set; } [VariableMonitor("咖啡机故障")] public DrCoffeeFault CaffeeFault { get; set; } [VariableMonitor("单片机连接状态")] public bool SCChipIsConnect { get; set; } [VariableMonitor("单片机输入0状态")] public bool SCChipInput0 { get; set; } [VariableMonitor("单片机输入1状态")] public bool SCChipInput1 { get; set; } [VariableMonitor("单片机输入2状态")] public bool SCChipInput2 { get; set; } [VariableMonitor("单片机输入3状态")] public bool SCChipInput3 { get; set; } [VariableMonitor("单片机输入4状态")] public bool SCChipInput4 { get; set; } [VariableMonitor("单片机输入5状态")] public bool SCChipInput5 { get; set; } [VariableMonitor("单片机输入6状态")] public bool SCChipInput6 { get; set; } [VariableMonitor("单片机输入7状态")] public bool SCChipInput7 { get; set; } [VariableMonitor("制冰机连接状态")] public bool IceMakerConnect { get; set; } [VariableMonitor("制冰机设备状态")] public byte IceMakerState { get; set; } [VariableMonitor("果汁机连接状态")] public bool JuicerConnected { get; set; } public int[] JuicerState{ get; set; } [VariableMonitor("果汁机制热")] public bool JuiceState_Heating { get; set; } [VariableMonitor("果汁机制冷")] public bool JuiceState_Cooling { get; set; } [VariableMonitor("果汁机缺水")] public bool JuiceState_LackOfWater { get; set; } [VariableMonitor("果汁机童锁")] public bool JuiceState_ChildLocks { get; set; } [VariableMonitor("果汁机使用")] public bool JuiceState_Using { get; set; } #endregion } }