From ec346e4e9189311e7c1e8217cf7beb34e72f7943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Wed, 13 Dec 2023 11:08:47 +0800 Subject: [PATCH] =?UTF-8?q?GetWaterStatus=20=E4=BF=AE=E6=94=B9=E6=88=90?= =?UTF-8?q?=E9=9D=99=E6=80=81=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mesnac.Action.ChemicalWeighing/Test/TestAction.cs | 4 +++- DataBlockHelper/DBHelpers/DB2105WriteHelper.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs index bf205f1..f2222b7 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs @@ -78,7 +78,9 @@ namespace Mesnac.Action.ChemicalWeighing.Test private void MCButton_Click(object sender, EventArgs e) { - ReportReadDb.ReadFeededDry(); + // ReportReadDb.ReadFeededDry(); + + var list= DB2105WriteHelper.GetWaterStatus(); } } } diff --git a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs index b31ec8d..57c765e 100644 --- a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs +++ b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs @@ -671,7 +671,7 @@ namespace DataBlockHelper.DBHelpers /// /// - public List GetWaterStatus() + public static List GetWaterStatus() { var siemensS7Net = PlcConnect.Instance; List status = new List();