using BPASmartClient.DosingHKProject.Model.HK_PLC; using BPASmartClient.DosingHKProject.Model.Siemens; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.DosingHKProject.Model { public class GVL_SmallStation { private volatile static GVL_SmallStation SmallStation; public static GVL_SmallStation GetInstance => SmallStation ?? (SmallStation = new GVL_SmallStation()); private GVL_SmallStation() { } /// /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 /// public int RecipeStatusID { get; set; } = 0; /// /// Tray1的柔性味魔方配料标志(下发配方时,若柔性味魔方的状态=3,复位该状态) /// public bool DosingTray1 { get; set; } = true;//默认为true,初始时,判断柔性味魔方的状态。 /// /// Tray2的柔性味魔方配料标志 /// public bool DosingTray2 { get; set; } = true; /// /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 /// public int RecipeStatusIDTray2 { get; set; } = 0; /// /// 往输送带下发配方完成 /// public bool IssueRecipeFinishStation2 { get; set; } = false; public bool IsAllow { get; set; } = false; public bool IsAllowOut { set; get; } = false; /// /// 当前料仓的位置 /// public int StockInIsWork { get; set; } = 0; /// /// 单个配方执行完成标志 /// public bool RecipeFinish { get; set; } = false; /// /// 记录AGV进站送货的指令顺序 /// public int AgvDeliveryPosition { get; set; }= 0; /// /// 记录AGV进站取货的指令顺序 /// public int AgvPickUpPosition { get; set; } = 0; /// /// 是否使用粉仓 /// public bool IsUseWindSend; /// /// 风送配料完成标志 /// public bool WindSendDosingFinish; /// /// 是否占用托盘1 /// public bool IsOccupationTray1 { get; set; } = true; /// /// 是否占用托盘2 /// public bool IsOccupationTray2 { get; set; } = true; public HKPlcCommRead plcRead = new HKPlcCommRead(); public HKPlcCommWrite plcWrite = new HKPlcCommWrite(); /// /// 0:无意义,1=load位,2=1号位,3=2号位,4=3号位,5=4号位,6=5号位,7=6号位,8=unload位 /// public int[] Barrel_Location = new int[MaxBarrelNum]; public bool[] AllowDosing_Pos = new bool[MaxBarrelNum]; public bool[] AllowDosing_Sign = new bool[MaxBarrelNum]; public const int MaxBarrelNum = 6; #region 本地模拟配方 /// /// 是否使用本地模拟配方 /// public bool IsUseLocalRecipe { get; set; } /// /// 是否使用本地模拟订单+风送配方 /// public bool IsUseWindSendDosing { get; set; } #endregion } }