|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using HBLConsole.Interface;
- using System.Collections.Concurrent;
-
- namespace HBLConsole.GVL
- {
- /// <summary>
- /// MORKS 设备数据
- /// </summary>
- public class MORKS : IGvl
- {
-
-
- /// <summary>
- /// 机器人取面
- /// PLC -> M0.3
- /// ModbusTcp -> 323
- /// </summary>
- public bool RobotTakeNoodle { get; set; }
-
- /// <summary>
- /// 机器人出餐
- /// PLC -> M0.4
- /// ModbusTcp -> 324
- /// </summary>
- public bool RobotOutMeal { get; set; }
-
- /// <summary>
- /// 移动转台
- /// PLC -> M0.5
- /// ModbusTcp -> 325
- /// </summary>
- public bool MoveTurntable { get; set; }
-
-
-
-
- /// <summary>
- /// 初始化完成
- /// PLC -> M100.0
- /// ModbusTcp -> 1120
- /// </summary>
- public bool InitComplete { get; set; }
-
- /// <summary>
- /// 取碗机构空闲,True:忙碌,false:空闲
- /// PLC -> M100.1
- /// ModbusTcp -> 1121
- /// </summary>
- public bool TakeBowlIdle { get; set; }
-
- /// <summary>
- /// 温度到达,True:表示到达,false:未到达
- /// PLC -> M100.2
- /// ModbusTcp -> 1122
- /// </summary>
- public bool TemperatureReached { get; set; }
-
- /// <summary>
- /// 允许到面,配料完成
- /// PLC -> M100.3
- /// ModbusTcp -> 1123
- /// </summary>
- public bool AllowFallNoodle { get; set; }
-
- /// <summary>
- /// 机器人取面完成
- /// PLC -> M100.4
- /// ModbusTcp -> 1124
- /// </summary>
- public bool RbTakeNoodleComplete { get; set; }
-
- /// <summary>
- /// 机器人倒面完成
- /// PLC -> M100.5
- /// ModbusTcp -> 1125
- /// </summary>
- public bool RbFallNoodleComplete { get; set; }
-
- /// <summary>
- /// 机器人出餐完成,上报取餐完成
- /// PLC -> M100.6
- /// ModbusTcp -> 1126
- /// </summary>
- public bool RbOutMealComplete { get; set; }
-
- /// <summary>
- /// 机器人空闲
- /// PLC -> M100.7
- /// ModbusTcp -> 1127
- /// </summary>
- public bool RobotIdle { get; set; }
-
- /// <summary>
- /// 取餐口检测
- /// PLC -> M101.0
- /// ModbusTcp -> 1128
- /// </summary>
- public bool TakeMealDetect { get; set; }
-
- /// <summary>
- /// 缺碗信号,false:缺碗,true:有碗
- /// PLC -> M101.1
- /// ModbusTcp -> 1129
- /// </summary>
- public bool MissingBowl { get; set; }
-
- /// <summary>
- /// 转台下限检测
- /// PLC -> M101.3
- /// ModbusTcp -> 1131
- /// </summary>
- public bool TurntableLowerLimit { get; set; }
-
- /// <summary>
- /// 煮面炉状态,True:忙碌,false:空闲
- /// M102.0 - M102.5
- /// 1136 - 1141
- /// </summary>
- public bool[] NoodleCookerStatus { get; set; } = new bool[6] { false, false, false, false, false, false };
-
- /// <summary>
- /// 煮面完成,上升后给信号
- /// M103.0 - M103.5
- /// 1144 - 1149
- /// </summary>
- public bool[] CookNoodlesComplete { get; set; } = new bool[6] { false, false, false, false, false, false };
-
- /// <summary>
- /// 配方编号
- /// PLC -> VW0
- /// ModbusTcp -> 100
- /// </summary>
- public ushort RecipeNumber { get; set; }
-
- /// <summary>
- /// 转台位置
- /// PLC -> VW2
- /// ModbusTcp -> 101
- /// </summary>
- public ushort TurntableLoc { get; set; }
-
- /// <summary>
- /// 到面至煮面炉位置
- /// PLC -> VW4
- /// ModbusTcp -> 102
- /// </summary>
- public ushort FallNoodleLoc { get; set; }
-
- /// <summary>
- /// 取面位置
- /// PLC -> VW6
- /// ModbusTcp -> 103
- /// </summary>
- public ushort TakeNoodleLoc { get; set; }
-
-
-
-
- /// <summary>
- /// 机器人取面位置队列
- /// </summary>
- public ConcurrentQueue<OrderLocInfo> RBTakeNoodleTask { get; set; } = new ConcurrentQueue<OrderLocInfo>();
-
- public ConcurrentQueue<OrderLocInfo> TakeBowlTask { get; set; } = new ConcurrentQueue<OrderLocInfo>();
-
- }
-
- public class OrderLocInfo
- {
- public string SuborderId { get; set; }
- public ushort Loc { get; set; }
- public ushort RecipeNumber { get; set; }
- }
-
-
-
-
- }
|