|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.MorkCL
- {
- public class GVL_MorkCL : IStatus
- {
- public ConcurrentQueue<ControlData> cds { get; set; } = new ConcurrentQueue<ControlData>();
-
- #region 炒锅1
- /// <summary>
- /// 初始化完成
- /// </summary>
- [VariableMonitor("1号炒锅-初始化完成", "LB100")]
- public bool InitComplete1 { get; set; }
-
- /// <summary>
- /// 手自动状态模式
- /// </summary>
- [VariableMonitor("1号炒锅-手自动状态模式", "LB101")]
- public bool StatusMode1 { get; set; }
-
- /// <summary>
- /// 急停
- /// </summary>
- [VariableMonitor("1号炒锅-急停", "LB102")]
- public bool EStop1 { get; set; }
-
- /// <summary>
- /// 炒锅在调料投料位置反馈。
- /// </summary>
- [VariableMonitor("1号炒锅-在调料投料位置反馈", "LB103")]
- public bool FeedingSeasoningLocFB1 { get; set; }
-
- /// <summary>
- /// 炒制位置反馈(1-4)
- /// </summary>
- [VariableMonitor("1号炒锅-炒制位置反馈(1-3)", "LB104")]
- public bool[] StirFryingLocFB1 { get; set; } = new bool[3];
-
- /// <summary>
- /// 炒锅在出餐位置反馈
- /// </summary>
- [VariableMonitor("1号炒锅-炒锅在出餐位置反馈", "LB107")]
- public bool DiningOutLocFB1 { get; set; }
-
- /// <summary>
- /// 炒锅在投料位置反馈
- /// </summary>
- [VariableMonitor("1号炒锅-炒锅在主料投料位置反馈", "LB108")]
- public bool FeedingLocFB1 { get; set; }
-
- /// <summary>
- /// 炒锅在洗锅位置反馈
- /// </summary>
- [VariableMonitor("1号炒锅-炒锅在洗锅位置反馈", "LB109")]
- public bool WashingPotLocFB1 { get; set; }
-
- /// <summary>
- /// 通道出料完成反馈(1-3)
- /// </summary>
- [VariableMonitor("1号炒锅-通道出料完成反馈(1-3)", "LB110")]
- public bool[] ChannelDisCom1 { get; set; } = new bool[3];
-
- /// <summary>
- /// 清洗完成
- /// </summary>
- [VariableMonitor("1号炒锅-清洗完成", "LB113")]
- public bool CleanFinish1 { get; set; }
-
- /// <summary>
- /// 倒菜出餐完成。
- /// </summary>
- [VariableMonitor("1号炒锅-倒菜出餐完成", "LB114")]
- public bool OutDinningFinsh1 { get; set; }
- /// <summary>
- /// 炒锅倒菜减速位
- /// </summary>
- [VariableMonitor("1号炒锅-倒菜减速位", "LB115")]
- public bool OutDinningSlowDownFlag1 { get; set; }
-
- /// <summary>
- /// 当前锅底温度
- /// </summary>
- [VariableMonitor("1号炒锅-当前锅底温度", "LW20")]
- public float CurrentTemperature1 { get; set; }
-
- /// <summary>
- /// 当前炒锅搅拌转速
- /// </summary>
- [VariableMonitor("1号炒锅-当前炒锅搅拌转速", "LW21")]
- public ushort CurrentSpeed1 { get; set; }
-
- /// <summary>
- /// 当前加热档位
- /// </summary>
- [VariableMonitor("1号炒锅-当前加热档位", "LW22")]
- public ushort HeatingGear1 { get; set; }
-
- /// <summary>
- /// 搅拌电机运行频率
- /// </summary>
- [VariableMonitor("1号炒锅-搅拌电机运行频率", "LW30")]
- public ushort StirMotorFreq1 { get; set; }
-
- /// <summary>
- /// 搅拌电机运行电流
- /// </summary>
- [VariableMonitor("1号炒锅-搅拌电机运行电流", "LW31")]
- public ushort StirMotorCurrent1 { get; set; }
-
- /// <summary>
- /// 搅拌电机运行电压
- /// </summary>
- [VariableMonitor("1号炒锅-搅拌电机运行电压", "LW32")]
- public ushort StirMotorVoltage1 { get; set; }
-
- /// <summary>
- /// 搅拌电机运行温度
- /// </summary>
- [VariableMonitor("1号炒锅-搅拌电机运行温度", "LW33")]
- public ushort StirMotorTemprature1 { get; set; }
-
- /// <summary>
- /// 搅拌电机故障代码
- /// </summary>
- [VariableMonitor("1号炒锅-搅拌电机故障代码", "LW34")]
- public string StirMotorErrorCode1 { get; set; }
-
- /// <summary>
- /// 翻转电机运行频率
- /// </summary>
- [VariableMonitor("1号炒锅-翻转电机运行频率", "LW35")]
- public ushort TurnMotorFreq1 { get; set; }
-
- /// <summary>
- /// 翻转电机运行电流
- /// </summary>
- [VariableMonitor("1号炒锅-翻转电机运行电流", "LW36")]
- public ushort TurnMotorCurrent1 { get; set; }
-
- /// <summary>
- /// 翻转电机运行电压
- /// </summary>
- [VariableMonitor("1号炒锅-翻转电机运行电压", "LW37")]
- public ushort TurnMotorVoltage1 { get; set; }
-
- /// <summary>
- /// 翻转电机运行温度
- /// </summary>
- [VariableMonitor("1号炒锅-翻转电机运行温度", "LW38")]
- public ushort TurnMotorTemprature1 { get; set; }
-
- /// <summary>
- /// 翻转电机故障代码
- /// </summary>
- [VariableMonitor("1号炒锅-翻转电机故障代码", "LW39")]
- public string TurnMotorErrorCode1 { get; set; }
-
- #endregion
-
- #region 炒锅2
- /// <summary>
- /// 初始化完成
- /// </summary>
- [VariableMonitor("2号炒锅-初始化完成", "LB100")]
- public bool InitComplete2 { get; set; }
-
- /// <summary>
- /// 手自动状态模式
- /// </summary>
- [VariableMonitor("2号炒锅-手自动状态模式", "LB101")]
- public bool StatusMode2 { get; set; }
-
- /// <summary>
- /// 急停
- /// </summary>
- [VariableMonitor("2号炒锅-急停", "LB102")]
- public bool EStop2 { get; set; }
-
- /// <summary>
- /// 炒锅在调料投料位置反馈。
- /// </summary>
- [VariableMonitor("2号炒锅-在调料投料位置反馈", "LB103")]
- public bool FeedingSeasoningLocFB2 { get; set; }
-
- /// <summary>
- /// 炒制位置反馈(1-4)
- /// </summary>
- [VariableMonitor("2号炒锅-炒制位置反馈(1-3)", "LB104")]
- public bool[] StirFryingLocFB2 { get; set; } = new bool[3];
-
- /// <summary>
- /// 炒锅在出餐位置反馈
- /// </summary>
- [VariableMonitor("2号炒锅-炒锅在出餐位置反馈", "LB107")]
- public bool DiningOutLocFB2 { get; set; }
-
- /// <summary>
- /// 炒锅在投料位置反馈
- /// </summary>
- [VariableMonitor("2号炒锅-炒锅在主料投料位置反馈", "LB108")]
- public bool FeedingLocFB2 { get; set; }
-
- /// <summary>
- /// 炒锅在洗锅位置反馈
- /// </summary>
- [VariableMonitor("2号炒锅-炒锅在洗锅位置反馈", "LB109")]
- public bool WashingPotLocFB2 { get; set; }
-
- /// <summary>
- /// 通道出料完成反馈(1-3)
- /// </summary>
- [VariableMonitor("2号炒锅-通道出料完成反馈(1-3)", "LB110")]
- public bool[] ChannelDisCom2 { get; set; } = new bool[3];
-
-
- /// <summary>
- /// 清洗完成
- /// </summary>
- [VariableMonitor("2号炒锅-清洗完成", "LB113")]
- public bool CleanFinish2 { get; set; }
-
- /// <summary>
- /// 倒菜出餐完成。
- /// </summary>
- [VariableMonitor("2号炒锅-倒菜出餐完成", "LB114")]
- public bool OutDinningFinsh2 { get; set; }
-
- /// <summary>
- /// 炒锅倒菜减速位
- /// </summary>
- [VariableMonitor("2号炒锅-倒菜减速位", "LB115")]
- public bool OutDinningSlowDownFlag2 { get; set; }
- /// <summary>
- /// 当前锅底温度
- /// </summary>
- [VariableMonitor("2号炒锅-当前锅底温度", "LW20")]
- public float CurrentTemperature2 { get; set; }
-
- /// <summary>
- /// 当前炒锅搅拌转速
- /// </summary>
- [VariableMonitor("2号炒锅-当前炒锅搅拌转速", "LW21")]
- public ushort CurrentSpeed2 { get; set; }
-
- /// <summary>
- /// 当前加热档位
- /// </summary>
- [VariableMonitor("2号炒锅-当前加热档位", "LW22")]
- public ushort HeatingGear2 { get; set; }
-
-
- /// <summary>
- /// 搅拌电机运行频率
- /// </summary>
- [VariableMonitor("2号炒锅-搅拌电机运行频率", "LW30")]
- public ushort StirMotorFreq2 { get; set; }
-
- /// <summary>
- /// 搅拌电机运行电流
- /// </summary>
- [VariableMonitor("2号炒锅-搅拌电机运行电流", "LW31")]
- public ushort StirMotorCurrent2 { get; set; }
-
- /// <summary>
- /// 搅拌电机运行电压
- /// </summary>
- [VariableMonitor("2号炒锅-搅拌电机运行电压", "LW32")]
- public ushort StirMotorVoltage2 { get; set; }
-
- /// <summary>
- /// 搅拌电机运行温度
- /// </summary>
- [VariableMonitor("2号炒锅-搅拌电机运行温度", "LW33")]
- public ushort StirMotorTemprature2 { get; set; }
-
- /// <summary>
- /// 搅拌电机故障代码
- /// </summary>
- [VariableMonitor("2号炒锅-搅拌电机故障代码", "LW34")]
- public string StirMotorErrorCode2 { get; set; }
-
- /// <summary>
- /// 翻转电机运行频率
- /// </summary>
- [VariableMonitor("2号炒锅-翻转电机运行频率", "LW35")]
- public ushort TurnMotorFreq2 { get; set; }
-
- /// <summary>
- /// 翻转电机运行电流
- /// </summary>
- [VariableMonitor("2号炒锅-翻转电机运行电流", "LW36")]
- public ushort TurnMotorCurrent2 { get; set; }
-
- /// <summary>
- /// 翻转电机运行电压
- /// </summary>
- [VariableMonitor("2号炒锅-翻转电机运行电压", "LW37")]
- public ushort TurnMotorVoltage2 { get; set; }
-
- /// <summary>
- /// 翻转电机运行温度
- /// </summary>
- [VariableMonitor("2号炒锅-翻转电机运行温度", "LW38")]
- public ushort TurnMotorTemprature2 { get; set; }
-
- /// <summary>
- /// 翻转电机故障代码
- /// </summary>
- [VariableMonitor("2号炒锅-翻转电机故障代码", "LW39")]
- public string TurnMotorErrorCode2 { get; set; }
- #endregion
-
- #region 压力锅
-
- #endregion
-
- #region 机器人
- /// <summary>
- /// 倒料请求
- /// </summary>
- [VariableMonitor("机器人-倒料请求-[1,2:炒锅,3:高压锅]", "GM600")]
- public bool[] MaterialPouringRequest { get; set; } = new bool[3];
-
- /// <summary>
- /// 倒料完成
- /// </summary>
- [VariableMonitor("机器人-倒料完成-[1,2:炒锅,3:高压锅]", "GM601")]
- public bool[] MaterialPouringComplete { get; set; } = new bool[3];
-
- /// <summary>
- /// 出餐请求,机器人到位请求炒锅出餐
- /// </summary>
- [VariableMonitor("机器人-出餐请求-[1,2:炒锅,3:高压锅]", "GM602")]
- public bool[] DiningOutRequest { get; set; } = new bool[3];
-
- /// <summary>
- /// 入库完成
- /// </summary>
- [VariableMonitor("机器人-入库完成", "GM630")]
- public bool[] WarehousingComplete { get; set; } = new bool[12];
-
- /// <summary>
- /// 机器人原点状态
- /// </summary>
- [VariableMonitor("机器人-机器人原点状态", "GM620")]
- public bool Home { get; set; }
-
- /// <summary>
- /// 机器人使能状态
- /// </summary>
- [VariableMonitor("机器人-机器人使能状态", "LW22")]
- public bool EnableState { get; set; }
-
- /// <summary>
- /// 机器人远程模式
- /// </summary>
- [VariableMonitor("机器人-机器人远程模式,为True时,代表可下单", "GM130")]
- public bool RemoteMode { get; set; }
-
- /// <summary>
- /// 机器人程序运行中
- /// </summary>
- [VariableMonitor("机器人-机器人程序运行中")]
- public bool ProgramRuning { get; set; }
-
-
- /// <summary>
- /// 机器人空闲中
- /// </summary>
- [VariableMonitor("机器人-机器人空闲中")]
- public bool IsIdle { get; set; }
-
- /// <summary>
- /// 机器人任务反馈
- /// </summary>
- [VariableMonitor("机器人-机器人任务反馈", "GI5")]
- public RobotMainTask TaskFeedback { get; set; }
- #endregion
-
- #region 其它外部设备
- /// <summary>
- /// 电子秤当前重量
- /// </summary>
- [VariableMonitor("电子秤当前重量", "0")]
- public float CurrentWeight { get; set; }
- /// <summary>
- /// 空箱子检测
- /// </summary>
- [VariableMonitor("出餐箱子在位检测", "LW630")]
- public bool[] BoxDetection { get; set; } = new bool[4];
-
- #region 其他变量
- /// <summary>
- /// 入库操作许可
- /// </summary>
- [VariableMonitor("入库操作许可")]
- public bool CanItemStorage { get; set; }
- /// <summary>
- /// 辅料库位是否根据炒锅分库位。
- /// </summary>
- [VariableMonitor("辅料库位是否根据炒锅分库位")]
- public bool IsUseSplitStorage { get; set; } = false;
- /// <summary>
- /// 总任务排队数量
- /// </summary>
- [VariableMonitor("总任务排队数量")]
- public int RecipeQueueCount { get; set; }
-
- /// <summary>
- /// 炒锅1#排队任务数量
- /// </summary>
- [VariableMonitor("炒锅1#排队任务数量")]
- public int FryingPanTaskCount_1 { get; set; }
-
- /// <summary>
- /// 炒锅2#排队任务数量
- /// </summary>
- [VariableMonitor("炒锅2#排队任务数量")]
- public int FryingPanTaskCount_2 { get; set; }
- #endregion
- #endregion
-
- }
- }
|