|
- using BPASmartClient.JXJFoodBigStation.Model.HK_PLC;
- using BPASmartClient.JXJFoodBigStation.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.JXJFoodBigStation.Model
- {
- public class GVL_BigStation
- {
- /// <summary>
- /// plc心跳上传
- /// </summary>
- public static bool HeartBeatFromPlc { get; set; }
- /// <summary>
- /// 订单取消的状态位
- /// </summary>
- public static bool Order_Cancel { get; set; }
- /// <summary>
- /// 订单取消的配方号
- /// </summary>
- public static string Order_CancelRecipeCode { get; set; } = "";
- public static int Order_CancelStep { get; set; }
- /// <summary>
- /// 第一个配方的配料时间
- /// </summary>
- public static DateTime DosingRecipe1Time { get; set; }
- /// <summary>
- /// 第二个配方的配料时间
- /// </summary>
- public static DateTime DosingRecipe2Time { get; set; }
- /// <summary>
- /// 第三个配方的配料时间
- /// </summary>
- public static DateTime DosingRecipe3Time { get; set; }
- /// <summary>
- /// 第四个配方的配料时间
- /// </summary>
- public static DateTime DosingRecipe4Time { get; set; }
-
- /// <summary>
- /// plc心跳下发
- /// </summary>
- public static bool HeartBeatToPlc { get; set; }
- /// <summary>
- /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
- /// </summary>
- public static int Recipe1DosingStatus { get; set; }
- /// <summary>
- /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
- /// </summary>
- public static int Recipe2DosingStatus { get; set; }
- /// <summary>
- /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
- /// </summary>
- public static int Recipe3DosingStatus { get; set; }
- /// <summary>
- /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
- /// </summary>
- public static int Recipe4DosingStatus { get; set; }
-
-
- public static int[] RecipeDosingStatus { get; set; } = new int[4] { 0, 0, 0, 0 };
- public static bool[] AllowIssueRecipe { get; set; } = new bool[4] { false, false, false, false };
- public static bool[] ReceviceFinishRecipe { get; set; } = new bool[4] { false, false, false, false };
- public static bool[] DosingFinishRecipe { get; set; } = new bool[4] { false, false, false, false };
-
- public static bool[] IsTrayArrive { get; set; } = new bool[5] { false, false, false, false,false };
- public static DateTime[] RecipeDosingTime { get; set; } = new DateTime[4] { DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now };
-
- /// <summary>
- /// 是否处于手动下发配方
- /// </summary>
- public static bool IsUseLocalRecipe { get; set; } = false;
-
- /// <summary>
- /// 洗桶的标识符
- /// </summary>
- public static bool BarrelWasherSign { get; set; }
- /// <summary>
- /// 订单请求
- /// </summary>
- public static bool Order_Request { get; set; } = false;
- /// <summary>
- /// 下发配方的状态位
- /// </summary>
- public static int SiemensSendRecipeStatus { get; set; } = 0;
-
- /// <summary>
- /// 大料站最大的料仓数目
- /// </summary>
- public const int Max_DosingSotckBinNum = 14;
- public static StockBinName stockBinName { get; set; } = new StockBinName();
-
- /// <summary>
- /// 原料的名称和原料编号对应,Mes提供的信息
- /// </summary>
- public static Dictionary<string, string> RawMaterialsNameCode { get; set; } = new Dictionary<string, string>();
-
- public static ushort AGVPutTray { get; set; }
- public static ushort AGVGetTray { get; set; }
-
- public static ushort TraySensor { get; set; }
- public static ushort TrayCylinder { get; set; }
-
- public static DB_Read HKPlc_Read = new DB_Read();
-
- /// <summary>
- /// 是否连接海科PLC
- /// </summary>
- public static bool IsAllowHKPlcConnect { get; set; }
- /// <summary>
- /// 是否连接西门子PLC
- /// </summary>
- public static bool IsAllowSiemensConnect { get; set; }
-
- /// <summary>
- /// 配方1配料完成
- /// </summary>
- public static bool Recipe1DosingFinish { get; set; } = false;
- /// <summary>
- /// 配方2配料完成
- /// </summary>
- public static bool Recipe2DosingFinish { get; set; } = false;
- /// <summary>
- /// 配方3配料完成
- /// </summary>
- public static bool Recipe3DosingFinish { get; set; } = false;
- /// <summary>
- /// 配方4配料完成
- /// </summary>
- public static bool Recipe4DosingFinish { get; set; } = false;
-
- /// <summary>
- /// 订单是否是洗桶
- /// </summary>
- public static bool Order_IsWashingBarrel { get; set; } = false;
- public static int TrayEnable { get; set; } = 15;
- }
- }
|