diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/InitAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/InitAction.cs index 39ec6cb..6d5886b 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/InitAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/InitAction.cs @@ -141,9 +141,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl MesnacServiceManager.Instance.LoggingService.Info("配置已加载"); ManualLogControl("配置已加载 "); - DB2107 = new DB2107Helper(); - - DB2103 = new DB2103Helper(); + timer = new Timer(); timer.Interval = 1000; @@ -210,7 +208,10 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl private void ReadFromPlc(object sender, EventArgs e) { - + DB2107 = new DB2107Helper(); + + DB2103 = new DB2103Helper(); + flag += 1; if (flag > 10) diff --git a/Main/MCRun/Data/SysConfig/MenuConfig.dat b/Main/MCRun/Data/SysConfig/MenuConfig.dat index b5c8e4e..67c7f05 100644 Binary files a/Main/MCRun/Data/SysConfig/MenuConfig.dat and b/Main/MCRun/Data/SysConfig/MenuConfig.dat differ