|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801 |
- using BPASmartClient.Device;
- using BPASmartClient.Model.大炒;
- using BPASmartClient.MorkBF.Model;
- using System;
- using System.Collections.Concurrent;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.MorkBF
- {
- internal class GVL_MorkBF : IStatus
- {
- /// <summary>
- /// 炒锅1订单队列
- /// </summary>
- public ConcurrentQueue<FryPotMessages> FirePan1_Order { get; set; } = new ConcurrentQueue<FryPotMessages>();
- /// <summary>
- /// 炒锅2订单队列
- /// </summary>
- public ConcurrentQueue<FryPotMessages> FirePan2_Order { get; set; } = new ConcurrentQueue<FryPotMessages>();
- /// <summary>
- /// 机器人队列
- /// </summary>
- public ConcurrentQueue<RobotAction_Pot> RobotActinQueue { get; set; } = new ConcurrentQueue<RobotAction_Pot>();
- /// <summary>
- /// 炒锅1忙碌
- /// </summary>
- public bool FirePan1_Busy = false;
- /// <summary>
- /// 炒锅2忙碌
- /// </summary>
- public bool FirePan2_Busy = false;
- /// <summary>
- /// 炒锅1当前流程
- /// </summary>
- public List<FryPotProcess> FryPot1_CurrentProcess;
- /// <summary>
- /// 炒锅2当前流程
- /// </summary>
- public List<FryPotProcess> FryPot2_CurrentProcess;
-
- #region 旧数据
- /*#region 炒锅1读取数据
- /// <summary>
- /// 炒锅1锅低温度
- /// </summary>
- [VariableMonitor("炒锅1锅低温度", "VW120", "160")]
- public int FirePot1_Temperature { get; set; }
- /// <summary>
- /// 炒锅1脉冲值
- /// </summary>
- [VariableMonitor("炒锅1脉冲值", "VW122", "161")]
- public int FirePot1_Pulse { get; set; }
- /// <summary>
- /// 炒锅1初始化完成
- /// </summary>
- [VariableMonitor("炒锅1初始化完成", "M20.0", "480")]
- public bool FirePot1_InitCompleted { get; set; } = false;
-
- /// <summary>
- /// 炒锅1手动自动模式
- /// </summary>
- [VariableMonitor("炒锅1手动自动模式", "M20.1", "481")]
- public bool FirePot1_IsAuto { get; set; }
- /// <summary>
- /// 炒锅1急停
- /// </summary>
- [VariableMonitor("炒锅1急停", "M20.2", "482")]
- public bool FirePot1_Emergencystop { get; set; }
- /// <summary>
- /// 1#炒锅荤菜盆有无检测
- /// </summary>
- [VariableMonitor("1#炒锅1锅低温度", "M20.3", "483")]
- public bool FirePot1_MealTubExist { get; set; }
- /// <summary>
- /// 1#炒锅素菜盆1有无检测
- /// </summary>
- [VariableMonitor("炒锅素菜盆1有无检测", "M20.4", "484")]
- public bool FirePot1_VegetablesTub1Exist { get; set; }
- /// <summary>
- /// 1#炒锅素菜盆2有无检测
- /// </summary>
- [VariableMonitor("1#炒锅素菜盆2有无检测", "M20.5", "485")]
- public bool FirePot1_VegetablesTub2Exist { get; set; }
- /// <summary>
- /// 1#炒锅调料盆1有无检测
- /// </summary>
- [VariableMonitor("1#炒锅调料盆1有无检测", "M20.6", "486")]
- public bool FirePot1_Seasoning1Exist { get; set; }
- /// <summary>
- /// 1#炒锅调料盆2有无检测
- /// </summary>
- [VariableMonitor("1#炒锅调料盆2有无检测", "M20.7", "487")]
- public bool FirePot1_Seasoning2Exist { get; set; }
- /// <summary>
- /// 1#炒锅辅料盆1有无检测
- /// </summary>
- [VariableMonitor("1#炒锅辅料盆1有无检测", "M21.0", "488")]
- public bool FirePot1_Accessories1Exist { get; set; }
- /// <summary>
- /// 1#炒锅辅料盆2有无检测
- /// </summary>
- [VariableMonitor("1#炒锅辅料盆2有无检测", "M21.1", "489")]
- public bool FirePot1_Accessories2Exist { get; set; }
- /// <summary>
- /// 1#炒锅出餐空盆有无检测
- /// </summary>
- [VariableMonitor("1#炒锅出餐空盆有无检测", "M21.2", "490")]
- public bool FirePot1_OutFoodTubExist { get; set; }
- /// <summary>
- /// 1#炒锅在原点反馈
- /// </summary>
- [VariableMonitor("1#炒锅在原点反馈", "M21.3", "491")]
- public bool FirePot1_OnOrigin { get; set; }
- /// <summary>
- /// 1#炒制位置1反馈
- /// </summary>
- [VariableMonitor("1#炒制位置1反馈", "M21.4", "492")]
- public bool FirePot1_FirePosition1 { get; set; }
- /// <summary>
- /// 1#炒制位置2反馈
- /// </summary>
- [VariableMonitor("1#炒制位置2反馈", "M21.5", "493")]
- public bool FirePot1_FirePosition2 { get; set; }
- /// <summary>
- /// 1#炒制位置3反馈
- /// </summary>
- [VariableMonitor("1#炒制位置3反馈", "M21.6", "494")]
- public bool FirePot1_FirePosition3 { get; set; }
- /// <summary>
- /// 1#炒制位置4反馈
- /// </summary>
- [VariableMonitor("1#炒制位置4反馈", "M21.7", "495")]
- public bool FirePot1_FirePosition4 { get; set; }
- /// <summary>
- /// 1#炒锅在出餐倒料位置反馈
- /// </summary>
- [VariableMonitor("1#炒锅在出餐倒料位置反馈", "M22.0", "496")]
- public bool FirePot1_PotOnOutFoodPosition { get; set; }
- /// <summary>
- /// 1#炒锅在投料位置反馈、
- /// </summary>
- [VariableMonitor("1#炒锅在投料位置反馈", "M22.1", "497")]
- public bool FirePot1_PotOnIntoFoodPosition { get; set; }
- /// <summary>
- /// 1#炒锅在洗锅位置反馈
- /// </summary>
- [VariableMonitor("1#炒锅在洗锅位置反馈", "M22.2", "498")]
- public bool FirePot1_PotOnCleanPosition { get; set; }
-
- public int FirePot1_FireGear { get; set; } = 0;
- public int FirePot1_StirGear { get; set; } = 0;
- public int FirePot1_FlipSpeed { get; set; } = 0;
-
- #endregion
- #region 炒锅2读取数据
- /// <summary>
- /// 炒锅2锅低温度
- /// </summary>
- [VariableMonitor("炒锅2锅低温度", "VW150", "175")]
- public int FirePot2_Temperature { get; set; }
- /// <summary>
- /// 炒锅2脉冲值
- /// </summary>
- [VariableMonitor("炒锅2脉冲值", "VW152", "176")]
- public int FirePot2_Pulse { get; set; }
- /// <summary>
- /// 炒锅2初始化完成
- /// </summary>
- [VariableMonitor("炒锅2初始化完成", "M25.0", "520")]
- public bool FirePot2_InitCompleted { get; set; } = false;
-
- /// <summary>
- /// 炒锅2手动自动模式
- /// </summary>
- [VariableMonitor("炒锅2手动自动模式", "M25.1", "521")]
- public bool FirePot2_IsAuto { get; set; }
- /// <summary>
- /// 炒锅2急停
- /// </summary>
- [VariableMonitor("炒锅2急停", "M25.2", "522")]
- public bool FirePot2_Emergencystop { get; set; }
- /// <summary>
- /// 2#炒锅荤菜盆有无检测
- /// </summary>
- [VariableMonitor("2#炒锅荤菜盆有无检测", "M25.3", "523")]
- public bool FirePot2_MealTubExist { get; set; }
- /// <summary>
- /// 2#炒锅素菜盆1有无检测
- /// </summary>
- [VariableMonitor("2#炒锅素菜盆1有无检测", "M25.4", "524")]
- public bool FirePot2_VegetablesTub1Exist { get; set; }
- /// <summary>
- /// 2#炒锅素菜盆2有无检测
- /// </summary>
- [VariableMonitor("2#炒锅素菜盆2有无检测", "M25.5", "525")]
- public bool FirePot2_VegetablesTub2Exist { get; set; }
- /// <summary>
- /// 2#炒锅调料盆1有无检测
- /// </summary>
- [VariableMonitor("2#炒锅调料盆1有无检测", "M25.6", "526")]
- public bool FirePot2_Seasoning1Exist { get; set; }
- /// <summary>
- /// 2#炒锅调料盆2有无检测
- /// </summary>
- [VariableMonitor("2#炒锅调料盆2有无检测", "M25.7", "527")]
- public bool FirePot2_Seasoning2Exist { get; set; }
- /// <summary>
- /// 2#炒锅辅料盆1有无检测
- /// </summary>
- [VariableMonitor("2#炒锅1锅低温度", "M26.0", "528")]
- public bool FirePot2_Accessories1Exist { get; set; }
- /// <summary>
- /// 2#炒锅辅料盆2有无检测
- /// </summary>
- [VariableMonitor("2#炒锅辅料盆2有无检测", "M26.1", "529")]
- public bool FirePot2_Accessories2Exist { get; set; }
- /// <summary>
- /// 2#炒锅出餐空盆有无检测
- /// </summary>
- [VariableMonitor("2#炒锅出餐空盆有无检测", "M26.2", "530")]
- public bool FirePot2_OutFoodTubExist { get; set; }
- /// <summary>
- /// 2#炒锅在原点反馈
- /// </summary>
- [VariableMonitor("2#炒锅在原点反馈", "M26.3", "531")]
- public bool FirePot2_OnOrigin { get; set; }
- /// <summary>
- /// 2#炒制位置1反馈
- /// </summary>
- [VariableMonitor("2#炒制位置1反馈", "M26.4", "532")]
- public bool FirePot2_FirePosition1 { get; set; }
- /// <summary>
- /// 2#炒制位置2反馈
- /// </summary>
- [VariableMonitor("2#炒制位置2反馈", "M26.5", "533")]
- public bool FirePot2_FirePosition2 { get; set; }
- /// <summary>
- /// 2#炒制位置3反馈
- /// </summary>
- [VariableMonitor("2#炒制位置3反馈", "M26.6", "534")]
- public bool FirePot2_FirePosition3 { get; set; }
- /// <summary>
- /// 2#炒制位置4反馈
- /// </summary>
- [VariableMonitor("2#炒制位置4反馈", "M26.7", "535")]
- public bool FirePot2_FirePosition4 { get; set; }
- /// <summary>
- /// 2#炒锅在出餐倒料位置反馈
- /// </summary>
- [VariableMonitor("2#炒锅在出餐倒料位置反馈", "M27.0", "536")]
- public bool FirePot2_PotOnOutFoodPosition { get; set; }
- /// <summary>
- /// 2#炒锅在投料位置反馈、
- /// </summary>
- [VariableMonitor("2#炒锅在投料位置反馈", "M27.1", "537")]
- public bool FirePot2_PotOnIntoFoodPosition { get; set; }
- /// <summary>
- /// 2#炒锅在洗锅位置反馈
- /// </summary>
- [VariableMonitor("2#炒锅在洗锅位置反馈", "M27.2", "538")]
- public bool FirePot2_PotOnCleanPosition { get; set; }
-
- public int FirePot2_FireGear { get; set; } = 0;
- public int FirePot2_StirGear { get; set; } = 0;
-
- public int FirePot2_FlipSpeed { get; set; } = 0;
- #endregion
- #region 机器人数据读取
- //public bool Robot_IsBusy;
-
-
- ///// <summary>
- ///// 机器人倒料完成
- ///// </summary>
- //[VariableMonitor("机器人倒料完成", "GM500", "4596")]
- //public bool Robot_OutMaterialCompleted { get; set; }
-
- ///// <summary>
- ///// 机器人上使能
- ///// </summary>
- //[VariableMonitor("机器人上使能", "GM600.0", "4596")]
- //public bool Robot_Enable { get; set; }
- ///// <summary>
- ///// 机器人复位
- ///// </summary>
- //[VariableMonitor("机器人复位", "GM600.1", "4597")]
- //public bool Robot_Reset { get; set; }
- ///// <summary>
- ///// 机器人启动
- ///// </summary>
- //[VariableMonitor("机器人启动", "GM600.2", "4598")]
- //public bool Robot_Start { get; set; }
- ///// <summary>
- ///// 机器人停止
- ///// </summary>
- //[VariableMonitor("机器人停止", "GM600.3", "4599")]
- //public bool Robot_Stop { get; set; }
- ///// <summary>
- ///// 机器人动作反馈GI0
- ///// </summary>
- //[VariableMonitor("机器人动作反馈GI0", "GI0", "0")]
- //public int Robot_GI0ActionCallback { get; set; }
- ///// <summary>
- ///// 机器人动作反馈GI1
- ///// </summary>
- //[VariableMonitor("机器人动作反馈GI1", "GI1", "1")]
- //public int Robot_GI1ActionCallback { get; set; }
- ///// <summary>
- ///// 机器人动作反馈GI2
- ///// </summary>
- //[VariableMonitor("机器人动作反馈GI2", "GI2", "2")]
- //public int Robot_GI2ActionCallback { get; set; }
- ///// <summary>
- ///// 机器人动作反馈GI3
- ///// </summary>
- //[VariableMonitor("机器人动作反馈GI3", "GI3", "3")]
- //public int Robot_GI3ActionCallback { get; set; }
- ///// <summary>
- ///// 机器人动作反馈GI4
- ///// </summary>
- //[VariableMonitor("机器人动作反馈GI4", "GI4", "4")]
- //public int Robot_GI4ActionCallback { get; set; }
-
- #endregion*/
- #endregion
- //新版大炒的通讯协议 2023/01/15
- #region 炒锅1读取数据
- [VariableMonitor("1#炒锅初始化完成", "M40.0")]
- public bool FryPan1_InitComplete { get; set; }
- [VariableMonitor("1#炒锅手动/自动模式切换", "M40.1")]
- public bool FryPan1_ManualOrAutoMode { get; set; }
- [VariableMonitor("1#炒锅急停", "M40.2")]
- public bool FryPan1_EStop { get; set; }
- [VariableMonitor("1#炒锅在位置1反馈", "M40.3")]
- public bool FryPan1_InPosition1 { get; set; }
- [VariableMonitor("1#炒锅在位置2反馈", "M40.4")]
- public bool FryPan1_InPosition2 { get; set; }
- [VariableMonitor("1#炒锅在位置3反馈", "M40.5")]
- public bool FryPan1_InPosition3 { get; set; }
- [VariableMonitor("1#炒锅在位置4反馈", "M40.6")]
- public bool FryPan1_InPosition4 { get; set; }
- [VariableMonitor("1#炒锅在出餐口倒料位置", "M40.7")]
- public bool FryPan1_InPositionUnload { get; set; }
- [VariableMonitor("1#炒锅在进料口位置", "M41.0")]
- public bool FryPan1_InPositionload { get; set; }
- [VariableMonitor("1#炒锅在洗锅位置", "M41.1")]
- public bool FryPan1_InPositionWashPot { get; set; }
- [VariableMonitor("1#炒锅通道1出料完成", "M41.2")]
- public bool FryPan1_UnloadFinishCH1 { get; set; }
- [VariableMonitor("1#炒锅通道2出料完成", "M41.3")]
- public bool FryPan1_UnloadFinishCH2 { get; set; }
- [VariableMonitor("1#炒锅通道3出料完成", "M41.4")]
- public bool FryPan1_UnloadFinishCH3 { get; set; }
- [VariableMonitor("1#炒锅通道4出料完成", "M41.5")]
- public bool FryPan1_UnloadFinishCH4 { get; set; }
- [VariableMonitor("1#炒锅通道5出料完成", "M41.6")]
- public bool FryPan1_UnloadFinishCH5 { get; set; }
- [VariableMonitor("1#炒锅通道6出料完成", "M41.7")]
- public bool FryPan1_UnloadFinishCH6 { get; set; }
- [VariableMonitor("1#炒锅通道7出料完成", "M42.0")]
- public bool FryPan1_UnloadFinishCH7 { get; set; }
- [VariableMonitor("1#炒锅通道8出料完成", "M42.1")]
- public bool FryPan1_UnloadFinishCH8 { get; set; }
- [VariableMonitor("1#炒锅当前温度", "VM200")]
- public short FryPan1_TemperatureNow { get; set; }
- [VariableMonitor("1#炒锅当前搅拌转速", "VM202")]
- public short FryPan1_MixingSpeedNow { get; set; }
- [VariableMonitor("1#炒锅当前炒制角度", "VM204")]
- public short FryPan1_FryAngle{ get; set; }
- [VariableMonitor("1#炒锅当前加热挡位", "VM206")]
- public short FryPan1_HeatingGearNow{ get; set; }
- #endregion
- #region 炒锅2读取数据
- [VariableMonitor("2#炒锅初始化完成", "M40.0")]
- public bool FryPan2_InitComplete { get; set; }
- [VariableMonitor("2#炒锅手动/自动模式切换", "M40.1")]
- public bool FryPan2_ManualOrAutoMode { get; set; }
- [VariableMonitor("2#炒锅急停", "M40.2")]
- public bool FryPan2_EStop { get; set; }
- [VariableMonitor("2#炒锅在位置1反馈", "M40.3")]
- public bool FryPan2_InPosition1 { get; set; }
- [VariableMonitor("2#炒锅在位置2反馈", "M40.4")]
- public bool FryPan2_InPosition2 { get; set; }
- [VariableMonitor("2#炒锅在位置3反馈", "M40.5")]
- public bool FryPan2_InPosition3 { get; set; }
- [VariableMonitor("2#炒锅在位置4反馈", "M40.6")]
- public bool FryPan2_InPosition4 { get; set; }
- [VariableMonitor("2#炒锅在出餐口倒料位置", "M40.7")]
- public bool FryPan2_InPositionUnload { get; set; }
- [VariableMonitor("2#炒锅在进料口位置", "M41.0")]
- public bool FryPan2_InPositionload { get; set; }
- [VariableMonitor("2#炒锅在洗锅位置", "M41.1")]
- public bool FryPan2_InPositionWashPot { get; set; }
- [VariableMonitor("2#炒锅通道1出料完成", "M41.2")]
- public bool FryPan2_UnloadFinishCH1 { get; set; }
- [VariableMonitor("2#炒锅通道2出料完成", "M41.3")]
- public bool FryPan2_UnloadFinishCH2 { get; set; }
- [VariableMonitor("2#炒锅通道3出料完成", "M41.4")]
- public bool FryPan2_UnloadFinishCH3 { get; set; }
- [VariableMonitor("2#炒锅通道4出料完成", "M41.5")]
- public bool FryPan2_UnloadFinishCH4 { get; set; }
- [VariableMonitor("2#炒锅通道5出料完成", "M41.6")]
- public bool FryPan2_UnloadFinishCH5 { get; set; }
- [VariableMonitor("2#炒锅通道6出料完成", "M41.7")]
- public bool FryPan2_UnloadFinishCH6 { get; set; }
- [VariableMonitor("2#炒锅通道7出料完成", "M42.0")]
- public bool FryPan2_UnloadFinishCH7 { get; set; }
- [VariableMonitor("2#炒锅通道8出料完成", "M42.1")]
- public bool FryPan2_UnloadFinishCH8 { get; set; }
- [VariableMonitor("2#炒锅当前温度", "VM200")]
- public short FryPan2_TemperatureNow { get; set; }
- [VariableMonitor("2#炒锅当前搅拌转速", "VM202")]
- public short FryPan2_MixingSpeedNow { get; set; }
- [VariableMonitor("2#炒锅当前炒制角度", "VM204")]
- public short FryPan2_FryAngle { get; set; }
- [VariableMonitor("2#炒锅当前加热挡位", "VM206")]
- public short FryPan2_HeatingGearNow { get; set; }
- #endregion
- #region 机器人数据读取
- public bool Robot_IsBusy;
-
-
- /// <summary>
- /// 机器人倒料完成
- /// </summary>
- [VariableMonitor("机器人倒料完成", "GM500", "4596")]
- public bool Robot_OutMaterialCompleted { get; set; }
-
- /// <summary>
- /// 机器人上使能
- /// </summary>
- [VariableMonitor("机器人上使能", "GM600.0", "4596")]
- public bool Robot_Enable { get; set; }
- /// <summary>
- /// 机器人复位
- /// </summary>
- [VariableMonitor("机器人复位", "GM600.1", "4597")]
- public bool Robot_Reset { get; set; }
- /// <summary>
- /// 机器人启动
- /// </summary>
- [VariableMonitor("机器人启动", "GM600.2", "4598")]
- public bool Robot_Start { get; set; }
- /// <summary>
- /// 机器人停止
- /// </summary>
- [VariableMonitor("机器人停止", "GM600.3", "4599")]
- public bool Robot_Stop { get; set; }
- /// <summary>
- /// 机器人动作反馈GI0
- /// </summary>
- [VariableMonitor("机器人动作反馈GI5", "GI5", "5")]
- public int Robot_GI0ActionCallback { get; set; }
- /// <summary>
- /// 机器人动作反馈GI1
- /// </summary>
- [VariableMonitor("机器人动作反馈GI6", "GI6", "6")]
- public int Robot_GI1ActionCallback { get; set; }
- /// <summary>
- /// 机器人动作反馈GI2
- /// </summary>
- [VariableMonitor("机器人动作反馈GI7", "GI7", "7")]
- public int Robot_GI2ActionCallback { get; set; }
- /// <summary>
- /// 机器人动作反馈GI3
- /// </summary>
- [VariableMonitor("机器人动作反馈GI8", "GI8", "8")]
- public int Robot_GI3ActionCallback { get; set; }
- /// <summary>
- /// 机器人动作反馈GI4
- /// </summary>
- [VariableMonitor("机器人动作反馈GI9", "GI9", "9")]
- public int Robot_GI4ActionCallback { get; set; }
-
- #endregion
- public Dictionary<int, bool> FirePot1_CompleteSingle { get; set; }
-
- public Dictionary<int, bool> FirePot2_CompleteSingle { get; set; }
-
-
- public GVL_MorkBF()
- {
-
- //FirePot1_CompleteSingle = new Dictionary<int, bool>
- //{
- // {1,Robot_FirePot1OutMeal },
- // {2,Robot_FirePot1OutVegetables1 },
- // {3,Robot_FirePot1OutVegetables2 },
- //};
-
-
- //炒锅1通道完成信号
- Fire1_PasswayCompleteSingle = new Dictionary<int, bool>
- {
- {1,Fire1_OutMaterial1 },
- {2,Fire1_OutMaterial2 },
- {3,Fire1_OutMaterial3 },
- {4,Fire1_OutMaterial4 },
- {5,Fire1_OutMaterial5 },
- {6,Fire1_OutMaterial6 },
- {7,Fire1_OutMaterial7 },
- {8,Fire1_OutMaterial8 },
- };
- Fire2_PasswayCompleteSingle = new Dictionary<int, bool>
- {
- {1,Fire2_OutMaterial1 },
- {2,Fire2_OutMaterial2 },
- {3,Fire2_OutMaterial3 },
- {4,Fire2_OutMaterial4 },
- {5,Fire2_OutMaterial5 },
- {6,Fire2_OutMaterial6 },
- {7,Fire2_OutMaterial7 },
- {8,Fire2_OutMaterial8 },
- };
-
-
-
-
- }
-
- public DateTime FirePan1_Date;
- public DateTime FirePan2_Date;
-
- #region 新大炒
-
- /// <summary>
- /// 炒锅1通道完成信号
- /// </summary>
- public Dictionary<int, bool> Fire1_PasswayCompleteSingle { get; set; }
-
- /// <summary>
- /// 炒锅2通道完成信号
- /// </summary>
- public Dictionary<int, bool> Fire2_PasswayCompleteSingle { get; set; }
-
- /// <summary>
- /// 炒锅通道出料写入点位
- /// </summary>
- public Dictionary<int, string> Fire_PasswayWrite { get; set; } = new Dictionary<int, string>
- {
- {1,"M11.3"},
- {2,"M11.4"},
- {3,"M11.5"},
- {4,"M11.6"},
- {5,"M11.7"},
- {6,"M12.0"},
- {7,"M12.1"},
- {8,"M12.2"},
- };
-
- /// <summary>
- /// 炒锅通道出料需求值点位
- /// </summary>
- public Dictionary<int, string> Fire_PasswayValue { get; set; } = new Dictionary<int, string>
- {
- {1,"VW108"},
- {2,"VW110"},
- {3,"VW112"},
- {4,"VW114"},
- {5,"VW116"},
- {6,"VW118"},
- {7,"VW120"},
- {8,"VW122"},
- };
-
-
- #region 炒锅1
- /// <summary>
- /// 炒锅1初始化完成
- /// </summary>
- [VariableMonitor("炒锅1初始化完成", "M40.0", "640")]
- public bool Fire1_InitComplete { get; set; }
- /// <summary>
- /// 炒锅1自动模式切换
- /// </summary>
- [VariableMonitor("炒锅1自动模式切换", "M40.1", "641")]
- public bool Fire1_AutoMode { get; set; }
- /// <summary>
- /// 炒锅1急停
- /// </summary>
- [VariableMonitor("炒锅1急停", "M40.2", "642")]
- public bool Fire1_EmergencyStop { get; set; }
- /// <summary>
- /// 炒锅1炒制位置1反馈
- /// </summary>
- [VariableMonitor("炒锅1炒制位置1反馈", "M40.3", "643")]
- public bool Fire1_IsPosition1 { get; set; }
- /// <summary>
- /// 炒锅1炒制位置2反馈
- /// </summary>
- [VariableMonitor("炒锅1炒制位置2反馈", "M40.4", "644")]
- public bool Fire1_IsPosition2 { get; set; }
- /// <summary>
- /// 炒锅1炒制位置3反馈
- /// </summary>
- [VariableMonitor("炒锅1炒制位置3反馈", "M40.5", "645")]
- public bool Fire1_IsPosition3 { get; set; }
- /// <summary>
- /// 炒锅1炒制位置4反馈
- /// </summary>
- [VariableMonitor("炒锅1炒制位置4反馈", "M40.6", "646")]
- public bool Fire1_IsPosition4 { get; set; }
- /// <summary>
- /// 炒锅1在出餐倒料位置
- /// </summary>
- [VariableMonitor("炒锅1在出餐倒料位置", "M40.7", "647")]
- public bool Fire1_InOutFoodPosition { get; set; }
- /// <summary>
- /// 炒锅1在投料位置
- /// </summary>
- [VariableMonitor("炒锅1在投料位置", "M41.0", "648")]
- public bool Fire1_InFoodPosition { get; set; }
- /// <summary>
- /// 炒锅1在洗锅位置
- /// </summary>
- [VariableMonitor("炒锅1在洗锅位置", "M41.1", "649")]
- public bool Fire1_InWashPosition { get; set; }
-
- /// <summary>
- /// 炒锅1通道1出料完成
- /// </summary>
- [VariableMonitor("炒锅1通道1出料完成", "M41.2", "650")]
- public bool Fire1_OutMaterial1 { get; set; }
- /// <summary>
- /// 炒锅1通道2出料完成
- /// </summary>
- [VariableMonitor("炒锅1通道2出料完成", "M41.3", "651")]
- public bool Fire1_OutMaterial2 { get; set; }
- /// <summary>
- /// 炒锅1通道3出料完成
- /// </summary>
- [VariableMonitor("炒锅1通道3出料完成", "M41.4", "652")]
- public bool Fire1_OutMaterial3 { get; set; }
- /// <summary>
- /// 炒锅1通道4出料完成
- /// </summary>
- [VariableMonitor("炒锅1通道4出料完成", "M41.5", "653")]
- public bool Fire1_OutMaterial4 { get; set; }
- /// <summary>
- /// 炒锅1通道5出料完成
- /// </summary>
- [VariableMonitor("炒锅1通道5出料完成", "M41.6", "654")]
- public bool Fire1_OutMaterial5 { get; set; }
- /// <summary>
- /// 炒锅1通道6出料完成
- /// </summary>
- [VariableMonitor("炒锅1通道6出料完成", "M41.7", "655")]
- public bool Fire1_OutMaterial6 { get; set; }
- /// <summary>
- /// 炒锅1通道7出料完成
- /// </summary>
- [VariableMonitor("炒锅1通道7出料完成", "M42.0", "656")]
- public bool Fire1_OutMaterial7{ get; set; }
- /// <summary>
- /// 炒锅1通道8出料完成
- /// </summary>
- [VariableMonitor("炒锅1通道8出料完成", "M42.1", "657")]
- public bool Fire1_OutMaterial8 { get; set; }
-
- /// <summary>
- /// 炒锅1当前锅底温度
- /// </summary>
- [VariableMonitor("炒锅1当前锅底温度", "VW200", "200")]
- public int Fire1_PotTemperature { get; set; }
- /// <summary>
- /// 炒锅1搅拌速度
- /// </summary>
- [VariableMonitor("炒锅1搅拌速度", "VW202", "201")]
- public int Fire1_StirSpeed { get; set; }
- /// <summary>
- /// 炒锅1炒制角度
- /// </summary>
- [VariableMonitor("炒锅1炒制角度", "VW204", "202")]
- public int Fire1_FireAngle { get; set; }
- /// <summary>
- /// 炒锅1当前加热挡位
- /// </summary>
- [VariableMonitor("炒锅1当前加热挡位", "VW205", "203")]
- public int Fire1_CurrentFire { get; set; }
- #endregion
-
- #region 炒锅2
- /// <summary>
- /// 炒锅2初始化完成
- /// </summary>
- [VariableMonitor("炒锅2初始化完成", "M40.0", "640")]
- public bool Fire2_InitComplete { get; set; }
- /// <summary>
- /// 炒锅2自动模式切换
- /// </summary>
- [VariableMonitor("炒锅2自动模式切换", "M40.1", "641")]
- public bool Fire2_AutoMode { get; set; }
- /// <summary>
- /// 炒锅2急停
- /// </summary>
- [VariableMonitor("炒锅2急停", "M40.2", "642")]
- public bool Fire2_EmergencyStop { get; set; }
- /// <summary>
- /// 炒锅2炒制位置1反馈
- /// </summary>
- [VariableMonitor("炒锅2炒制位置1反馈", "M40.3", "643")]
- public bool Fire2_IsPosition1 { get; set; }
- /// <summary>
- /// 炒锅2炒制位置2反馈
- /// </summary>
- [VariableMonitor("炒锅2炒制位置2反馈", "M40.4", "644")]
- public bool Fire2_IsPosition2 { get; set; }
- /// <summary>
- /// 炒锅2炒制位置3反馈
- /// </summary>
- [VariableMonitor("炒锅2炒制位置3反馈", "M40.5", "645")]
- public bool Fire2_IsPosition3 { get; set; }
- /// <summary>
- /// 炒锅2炒制位置4反馈
- /// </summary>
- [VariableMonitor("炒锅2炒制位置4反馈", "M40.6", "646")]
- public bool Fire2_IsPosition4 { get; set; }
- /// <summary>
- /// 炒锅2在出餐倒料位置
- /// </summary>
- [VariableMonitor("炒锅2在出餐倒料位置", "M40.7", "647")]
- public bool Fire2_InOutFoodPosition { get; set; }
- /// <summary>
- /// 炒锅2在投料位置
- /// </summary>
- [VariableMonitor("炒锅2在投料位置", "M41.0", "648")]
- public bool Fire2_InFoodPosition { get; set; }
- /// <summary>
- /// 炒锅2在洗锅位置
- /// </summary>
- [VariableMonitor("炒锅2在洗锅位置", "M41.1", "649")]
- public bool Fire2_InWashPosition { get; set; }
-
- /// <summary>
- /// 炒锅2通道1出料完成
- /// </summary>
- [VariableMonitor("炒锅2通道1出料完成", "M41.2", "650")]
- public bool Fire2_OutMaterial1 { get; set; }
- /// <summary>
- /// 炒锅2通道2出料完成
- /// </summary>
- [VariableMonitor("炒锅2通道2出料完成", "M41.3", "651")]
- public bool Fire2_OutMaterial2 { get; set; }
- /// <summary>
- /// 炒锅2通道3出料完成
- /// </summary>
- [VariableMonitor("炒锅2通道3出料完成", "M41.4", "652")]
- public bool Fire2_OutMaterial3 { get; set; }
- /// <summary>
- /// 炒锅2通道4出料完成
- /// </summary>
- [VariableMonitor("炒锅2通道4出料完成", "M41.5", "653")]
- public bool Fire2_OutMaterial4 { get; set; }
- /// <summary>
- /// 炒锅2通道5出料完成
- /// </summary>
- [VariableMonitor("炒锅2通道5出料完成", "M41.6", "654")]
- public bool Fire2_OutMaterial5 { get; set; }
- /// <summary>
- /// 炒锅2通道6出料完成
- /// </summary>
- [VariableMonitor("炒锅2通道6出料完成", "M41.7", "655")]
- public bool Fire2_OutMaterial6 { get; set; }
- /// <summary>
- /// 炒锅2通道7出料完成
- /// </summary>
- [VariableMonitor("炒锅2通道7出料完成", "M42.0", "656")]
- public bool Fire2_OutMaterial7 { get; set; }
- /// <summary>
- /// 炒锅2通道8出料完成
- /// </summary>
- [VariableMonitor("炒锅2通道8出料完成", "M42.1", "657")]
- public bool Fire2_OutMaterial8 { get; set; }
-
- /// <summary>
- /// 炒锅2当前锅底温度
- /// </summary>
- [VariableMonitor("炒锅2当前锅底温度", "VW200", "200")]
- public int Fire2_PotTemperature { get; set; }
- /// <summary>
- /// 炒锅2搅拌速度
- /// </summary>
- [VariableMonitor("炒锅2搅拌速度", "VW202", "201")]
- public int Fire2_StirSpeed { get; set; }
- /// <summary>
- /// 炒锅2炒制角度
- /// </summary>
- [VariableMonitor("炒锅2炒制角度", "VW204", "202")]
- public int Fire2_FireAngle { get; set; }
- /// <summary>
- /// 炒锅2当前加热挡位
- /// </summary>
- [VariableMonitor("炒锅2当前加热挡位", "VW205", "203")]
- public int Fire2_CurrentFire { get; set; }
- #endregion
- #endregion
- }
- }
|