using BPASmartClient.Device; using BPASmartClient.DRCoffee; using BPASmartClient.GSIceCream; using BPASmartClient.KLMCoffee.Protocal; using BPASmartClient.LebaiRobot; using BPASmartClient.Model.冰淇淋.Enum; using Robotc; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.MorkTHQ { public class GLV_MorkTHQ:IStatus { /// /// 咖啡订单队列 /// public ConcurrentQueue morkOrderPushesCoffee = new ConcurrentQueue(); /// /// 冰淇淋订单队列 /// public ConcurrentQueue morkOrderPushesIceCream = new ConcurrentQueue(); /// /// 果汁订单队列 /// public ConcurrentQueue morkOrderPushesJuice = new ConcurrentQueue(); /// /// 等待取餐订单 /// public OrderLocInfo waitMorkOrder = null; /// /// 物料存放位置 /// public Dictionary batchings = new Dictionary(); /// /// 当前正在制作咖啡 /// public OrderLocInfo MakeCoffeeOrder = new OrderLocInfo(); /// /// 咖啡机位置是否有咖啡在制作中 /// public bool IsCoffeeMake = false; /// /// 冰淇淋机器出料口传感器检测 /// public bool IceIsOK = true; /// /// 去咖啡杯成功 /// public bool GetCoffeeCup; /// /// 取冰淇淋杯成功 /// public bool GetIceCreamCup; /// /// 果汁机做法,true:热饮,false:冷饮 /// public bool GuMake = false; /// /// 果汁机控制信号 /// public byte JuicerNum; #region [VariableMonitor("机器人连接状态")] public bool RobotIsConnected { get; set; } [VariableMonitor("机器人状态")] public ELebaiRModel RobotMode { get; set; } [VariableMonitor("冰淇淋连接状态")] public bool IceCreamIsConnected { get; set; } [VariableMonitor("冰淇淋机器预冷温度")] public short YLWD { get; set; } [VariableMonitor("冰淇淋机器回气温度")] public short HQWD { get; set; } [VariableMonitor("冰淇淋机器环境温度")] public short HJWD { get; set; } [VariableMonitor("冰淇淋机器电流")] public short DL { get; set; } [VariableMonitor("冰淇淋机器电压")] public short DY { get; set; } [VariableMonitor("冰淇淋机器成型比")] public byte CBX { get; set; } [VariableMonitor("冰淇淋机器模式")] public MORKI_MODE IceCreamMode { get; set; } [VariableMonitor("冰淇淋机器故障")] public MORKI_FAULT IceCreamFault { get; set; } [VariableMonitor("冰淇淋机器打料完成")] public bool DLCompleted { get; set; } [VariableMonitor("咖啡机连接状态")] public bool CoffeeIsConnected { get; set; } [VariableMonitor("咖啡机状态")] public K95SysTemStatus DrCoffeeStatus { get; set; } [VariableMonitor("咖啡机应用状态")] public TaskIndex CoffeeAppStatus { get; set; } [VariableMonitor("咖啡机告警")] public FaultMessage CoffeeWarning { get; set; } [VariableMonitor("咖啡机故障")] public UpkeepMessage CaffeeFault { get; set; } [VariableMonitor("咖啡机制作进度")] public int Coffeeprogress { get; set; } [VariableMonitor("单片机连接状态")] public bool SCChipIsConnect { get; set; } [VariableMonitor("果汁机连接状态")] public bool JuiceIsConnect { get; set; } #endregion } public class Lebai_HQ { #region 环球设备 public const int SENCE_取咖啡杯 = 10001; public const int SENCE_取冰淇淋杯 = 10002; public const int SENCE_接咖啡后回原点 = 10003; public const int SENCE_取咖啡出餐 = 10004; public const int SENCE_接1号冰淇淋 = 10005; public const int SENCE_放冰淇淋位置 = 10006; public const int SENCE_取果汁杯位置 = 10007; public const int SENCE_接果汁公共位置 = 10008; public const int SENCE_接1号果汁位置 = 10009; public const int SENCE_接2号果汁位置 = 10010; public const int SENCE_接3号果汁位置 = 10011; public const int SENCE_接4号果汁位置 = 10012; public const int SENCE_放果汁杯位置后回原点 = 10013; #endregion } }