Browse Source

取消订单下发指令添加日志。

master
ZhaoGang 1 year ago
parent
commit
1ad7a6e3d6
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      BPASmartClient.JXJFoodBigStation/Model/ProcessControl.cs

+ 8
- 8
BPASmartClient.JXJFoodBigStation/Model/ProcessControl.cs View File

@@ -1133,8 +1133,8 @@ namespace BPASmartClient.JXJFoodBigStation.Model
case 31:
if (GVL_BigStation.Recipe1DosingStatus != 0)
{
HKDevice.HK_PLC_S7.Write("DB99.DBX230.0", true);
HKDevice.HK_PLC_S7.Write("DB99.DBW232", (short)TrayCode);
MessageNotify.GetInstance.ShowRunLog($"海科PLC写入{HKDevice.HK_PLC_S7.Write("DB99.DBX230.0", true)}");
MessageNotify.GetInstance.ShowRunLog($"海科PLC写入{HKDevice.HK_PLC_S7.Write("DB99.DBW232", (short)TrayCode)}");
GVL_BigStation.Recipe1DosingStatus = 0;
GVL_BigStation.Order_CancelStep = 32;
MessageNotify.GetInstance.ShowRunLog($"PLC正在执行配料流程,取消订单:{code}");
@@ -1167,8 +1167,8 @@ namespace BPASmartClient.JXJFoodBigStation.Model
case 41:
if (GVL_BigStation.Recipe2DosingStatus != 0)
{
HKDevice.HK_PLC_S7.Write("DB99.DBX230.0", true);
HKDevice.HK_PLC_S7.Write("DB99.DBW232", (short)TrayCode);
MessageNotify.GetInstance.ShowRunLog($"海科PLC写入{HKDevice.HK_PLC_S7.Write("DB99.DBX230.0", true)}");
MessageNotify.GetInstance.ShowRunLog($"海科PLC写入{HKDevice.HK_PLC_S7.Write("DB99.DBW232", (short)TrayCode)}");
GVL_BigStation.Recipe2DosingStatus = 0;
GVL_BigStation.Order_CancelStep = 42;
MessageNotify.GetInstance.ShowRunLog($"PLC正在执行配料流程,取消订单:{code}");
@@ -1201,8 +1201,8 @@ namespace BPASmartClient.JXJFoodBigStation.Model
case 51:
if (GVL_BigStation.Recipe3DosingStatus != 0)
{
HKDevice.HK_PLC_S7.Write("DB99.DBX230.0", true);
HKDevice.HK_PLC_S7.Write("DB99.DBW232", (short)TrayCode);
MessageNotify.GetInstance.ShowRunLog($"海科PLC写入{HKDevice.HK_PLC_S7.Write("DB99.DBX230.0", true)}");
MessageNotify.GetInstance.ShowRunLog($"海科PLC写入{HKDevice.HK_PLC_S7.Write("DB99.DBW232", (short)TrayCode)}");
GVL_BigStation.Recipe3DosingStatus = 0;
GVL_BigStation.Order_CancelStep = 52;
MessageNotify.GetInstance.ShowRunLog($"PLC正在执行配料流程,取消订单:{code}");
@@ -1235,8 +1235,8 @@ namespace BPASmartClient.JXJFoodBigStation.Model
case 61:
if (GVL_BigStation.Recipe4DosingStatus != 0)
{
HKDevice.HK_PLC_S7.Write("DB99.DBX230.0", true);
HKDevice.HK_PLC_S7.Write("DB99.DBW232", (short)TrayCode);
MessageNotify.GetInstance.ShowRunLog($"海科PLC写入{HKDevice.HK_PLC_S7.Write("DB99.DBX230.0", true)}");
MessageNotify.GetInstance.ShowRunLog($"海科PLC写入{HKDevice.HK_PLC_S7.Write("DB99.DBW232", (short)TrayCode)}");
GVL_BigStation.Recipe4DosingStatus = 0;
GVL_BigStation.Order_CancelStep = 62;
MessageNotify.GetInstance.ShowRunLog($"PLC正在执行配料流程,取消订单:{code}");


Loading…
Cancel
Save