|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- 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
-
- }
- }
|