|
@@ -15,79 +15,101 @@ namespace BPASmartClient.JXJFoodBigStation.Model |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// plc心跳上传 |
|
|
/// plc心跳上传 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("plc心跳上传")] |
|
|
public static bool HeartBeatFromPlc { get; set; } |
|
|
public static bool HeartBeatFromPlc { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 订单取消的状态位 |
|
|
/// 订单取消的状态位 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("订单取消的状态位")] |
|
|
public static bool Order_Cancel { get; set; } |
|
|
public static bool Order_Cancel { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 订单取消的配方号 |
|
|
/// 订单取消的配方号 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("订单取消的配方号")] |
|
|
public static string Order_CancelRecipeCode { get; set; } = ""; |
|
|
public static string Order_CancelRecipeCode { get; set; } = ""; |
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// 订单取消的状态步 |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("订单取消的状态步")] |
|
|
public static int Order_CancelStep { get; set; } |
|
|
public static int Order_CancelStep { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 第一个配方的配料时间 |
|
|
/// 第一个配方的配料时间 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("第一个配方的配料时间")] |
|
|
public static DateTime DosingRecipe1Time { get; set; } |
|
|
public static DateTime DosingRecipe1Time { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 第二个配方的配料时间 |
|
|
/// 第二个配方的配料时间 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("第二个配方的配料时间")] |
|
|
public static DateTime DosingRecipe2Time { get; set; } |
|
|
public static DateTime DosingRecipe2Time { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 第三个配方的配料时间 |
|
|
/// 第三个配方的配料时间 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("第三个配方的配料时间")] |
|
|
public static DateTime DosingRecipe3Time { get; set; } |
|
|
public static DateTime DosingRecipe3Time { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 第四个配方的配料时间 |
|
|
/// 第四个配方的配料时间 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("第四个配方的配料时间")] |
|
|
public static DateTime DosingRecipe4Time { get; set; } |
|
|
public static DateTime DosingRecipe4Time { get; set; } |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// plc心跳下发 |
|
|
/// plc心跳下发 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("plc心跳下发")] |
|
|
public static bool HeartBeatToPlc { get; set; } |
|
|
public static bool HeartBeatToPlc { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 |
|
|
/// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("配方1下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方")] |
|
|
public static int Recipe1DosingStatus { get; set; } |
|
|
public static int Recipe1DosingStatus { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 |
|
|
/// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("配方2下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方")] |
|
|
public static int Recipe2DosingStatus { get; set; } |
|
|
public static int Recipe2DosingStatus { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 |
|
|
/// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("配方3下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方")] |
|
|
public static int Recipe3DosingStatus { get; set; } |
|
|
public static int Recipe3DosingStatus { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 |
|
|
/// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("配方4下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方")] |
|
|
public static int Recipe4DosingStatus { get; set; } |
|
|
public static int Recipe4DosingStatus { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static int[] RecipeDosingStatus { get; set; } = new int[4] { 0, 0, 0, 0 }; |
|
|
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[] 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[] 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[] 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 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 }; |
|
|
public static DateTime[] RecipeDosingTime { get; set; } = new DateTime[4] { DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now }; |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 是否处于手动下发配方 |
|
|
/// 是否处于手动下发配方 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("是否处于手动下发配方")] |
|
|
public static bool IsUseLocalRecipe { get; set; } = false; |
|
|
public static bool IsUseLocalRecipe { get; set; } = false; |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 洗桶的标识符 |
|
|
/// 洗桶的标识符 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("洗桶的标识符")] |
|
|
public static bool BarrelWasherSign { get; set; } |
|
|
public static bool BarrelWasherSign { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 订单请求 |
|
|
/// 订单请求 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("订单请求")] |
|
|
public static bool Order_Request { get; set; } = false; |
|
|
public static bool Order_Request { get; set; } = false; |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 下发配方的状态位 |
|
|
/// 下发配方的状态位 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("下发配方的状态位")] |
|
|
public static int SiemensSendRecipeStatus { get; set; } = 0; |
|
|
public static int SiemensSendRecipeStatus { get; set; } = 0; |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
@@ -101,10 +123,14 @@ namespace BPASmartClient.JXJFoodBigStation.Model |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
public static Dictionary<string, string> RawMaterialsNameCode { get; set; } = new Dictionary<string, string>(); |
|
|
public static Dictionary<string, string> RawMaterialsNameCode { get; set; } = new Dictionary<string, string>(); |
|
|
|
|
|
|
|
|
|
|
|
[PlcComm("AGV送托盘")] |
|
|
public static ushort AGVPutTray { get; set; } |
|
|
public static ushort AGVPutTray { get; set; } |
|
|
|
|
|
[PlcComm("AGV取托盘")] |
|
|
public static ushort AGVGetTray { get; set; } |
|
|
public static ushort AGVGetTray { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[PlcComm("托盘传感器信号")] |
|
|
public static ushort TraySensor { get; set; } |
|
|
public static ushort TraySensor { get; set; } |
|
|
|
|
|
[PlcComm("托盘气缸信号")] |
|
|
public static ushort TrayCylinder { get; set; } |
|
|
public static ushort TrayCylinder { get; set; } |
|
|
|
|
|
|
|
|
public static DB_Read HKPlc_Read = new DB_Read(); |
|
|
public static DB_Read HKPlc_Read = new DB_Read(); |
|
@@ -112,33 +138,41 @@ namespace BPASmartClient.JXJFoodBigStation.Model |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 是否连接海科PLC |
|
|
/// 是否连接海科PLC |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("是否连接海科PLC")] |
|
|
public static bool IsAllowHKPlcConnect { get; set; } |
|
|
public static bool IsAllowHKPlcConnect { get; set; } |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 是否连接西门子PLC |
|
|
/// 是否连接西门子PLC |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("是否连接西门子PLC")] |
|
|
public static bool IsAllowSiemensConnect { get; set; } |
|
|
public static bool IsAllowSiemensConnect { get; set; } |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 配方1配料完成 |
|
|
/// 配方1配料完成 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("配方1配料完成")] |
|
|
public static bool Recipe1DosingFinish { get; set; } = false; |
|
|
public static bool Recipe1DosingFinish { get; set; } = false; |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 配方2配料完成 |
|
|
/// 配方2配料完成 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("配方2配料完成")] |
|
|
public static bool Recipe2DosingFinish { get; set; } = false; |
|
|
public static bool Recipe2DosingFinish { get; set; } = false; |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 配方3配料完成 |
|
|
/// 配方3配料完成 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("配方3配料完成")] |
|
|
public static bool Recipe3DosingFinish { get; set; } = false; |
|
|
public static bool Recipe3DosingFinish { get; set; } = false; |
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 配方4配料完成 |
|
|
/// 配方4配料完成 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("配方4配料完成")] |
|
|
public static bool Recipe4DosingFinish { get; set; } = false; |
|
|
public static bool Recipe4DosingFinish { get; set; } = false; |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// 订单是否是洗桶 |
|
|
/// 订单是否是洗桶 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
|
|
|
[PlcComm("订单是否是洗桶")] |
|
|
public static bool Order_IsWashingBarrel { get; set; } = false; |
|
|
public static bool Order_IsWashingBarrel { get; set; } = false; |
|
|
|
|
|
[PlcComm("TrayEnable")] |
|
|
public static int TrayEnable { get; set; } = 15; |
|
|
public static int TrayEnable { get; set; } = 15; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |