From b1158a6a178eaa0fea8a02f99ee50fd6b6de07a2 Mon Sep 17 00:00:00 2001 From: wangsr Date: Sat, 14 Oct 2023 03:32:49 +0800 Subject: [PATCH] =?UTF-8?q?debug=20-=20=E5=AE=9E=E4=BE=8B=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BC=BA=E5=B0=91=20-=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManualControl/InitAction.cs | 4 ++++ DataBlockHelper/DBHelpers/DB2107Helper.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/InitAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/InitAction.cs index dc4bb4c..39ec6cb 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/InitAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/InitAction.cs @@ -141,6 +141,10 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl MesnacServiceManager.Instance.LoggingService.Info("配置已加载"); ManualLogControl("配置已加载 "); + DB2107 = new DB2107Helper(); + + DB2103 = new DB2103Helper(); + timer = new Timer(); timer.Interval = 1000; timer.Enabled = true; diff --git a/DataBlockHelper/DBHelpers/DB2107Helper.cs b/DataBlockHelper/DBHelpers/DB2107Helper.cs index 32f700c..832f2cb 100644 --- a/DataBlockHelper/DBHelpers/DB2107Helper.cs +++ b/DataBlockHelper/DBHelpers/DB2107Helper.cs @@ -14,7 +14,7 @@ namespace DataBlockHelper.DBHelpers public DB2107Helper() { - _bytes = PlcConnect.Instance.Read("DB2107.0.0", 2063).Content; + _bytes = PlcConnect.Instance.Read("DB2107.0.0", 2064).Content; } // public OperateResult GetAll=>PlcConnect.Instance.Read("DB2107.0.0", 2057);