diff --git a/BPASmartClient.JXJFoodBigStation/App.config b/BPASmartClient.JXJFoodBigStation/App.config
index 5ff78b1a..e5c7f162 100644
--- a/BPASmartClient.JXJFoodBigStation/App.config
+++ b/BPASmartClient.JXJFoodBigStation/App.config
@@ -1,9 +1,7 @@
-
-
+
-
\ No newline at end of file
diff --git a/BPASmartClient.JXJFoodBigStation/App.xaml.cs b/BPASmartClient.JXJFoodBigStation/App.xaml.cs
index baed6677..600674cb 100644
--- a/BPASmartClient.JXJFoodBigStation/App.xaml.cs
+++ b/BPASmartClient.JXJFoodBigStation/App.xaml.cs
@@ -46,6 +46,7 @@ namespace BPASmartClient.JXJFoodBigStation
{
base.OnExit(e);
MessageLog.GetInstance.LogSave();
+ Json.Save();
ThreadManage.GetInstance().Dispose();
}
@@ -169,6 +170,7 @@ namespace BPASmartClient.JXJFoodBigStation
{
//Config.GetInstance.Init();
//Json.Read();
+ Json.Read();
}
}
diff --git a/BPASmartClient.JXJFoodBigStation/Model/GVL_BigStation.cs b/BPASmartClient.JXJFoodBigStation/Model/GVL_BigStation.cs
index 28d2c8ca..4096510d 100644
--- a/BPASmartClient.JXJFoodBigStation/Model/GVL_BigStation.cs
+++ b/BPASmartClient.JXJFoodBigStation/Model/GVL_BigStation.cs
@@ -39,6 +39,6 @@ namespace BPASmartClient.JXJFoodBigStation.Model
///
/// 是否处于手动下发配方
///
- public bool IsAllowManual { get; set; }
+ public bool IsAllowManual { get; set; } = true;
}
}
diff --git a/BPASmartClient.JXJFoodBigStation/Model/ProcessControl.cs b/BPASmartClient.JXJFoodBigStation/Model/ProcessControl.cs
index 22d04b0f..5c66ea6c 100644
--- a/BPASmartClient.JXJFoodBigStation/Model/ProcessControl.cs
+++ b/BPASmartClient.JXJFoodBigStation/Model/ProcessControl.cs
@@ -91,11 +91,12 @@ namespace BPASmartClient.JXJFoodBigStation.Model
string Siemens_PLC_IP = ConfigurationManager.AppSettings["Siemens_IP"];
try
{
- //HKDevice.HK_PLC_S7.Connect(S7.Net.CpuType.S71500, HK_PLC_IP);
+ HKDevice.HK_PLC_S7.Connect(S7.Net.CpuType.S71500, HK_PLC_IP);
//SiemensDevice.Siemens_PLC_S7.Connect(S7.Net.CpuType.S71500, Siemens_PLC_IP);
if (HKDevice.IsConnected)
{
HKDevice.Init();
+ MessageLog.GetInstance.ShowRunLog("海科plc连接成功");
}
if (SiemensDevice.IsConnected)
{
@@ -106,11 +107,22 @@ namespace BPASmartClient.JXJFoodBigStation.Model
{
}
+
+ ActionManage.GetInstance.CancelRegister("ManualSendRecipe");
+ ActionManage.GetInstance.Register(new Action