From de01c734b93bed9fe891725cfd4d75acbc7eb3d8 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 10:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=20true=20=E7=8A=B6=E6=80=81=E6=98=AF=E5=81=9C?= =?UTF-8?q?=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBlockHelper/DBHelpers/DB2105WriteHelper.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs index b87268f..b31ec8d 100644 --- a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs +++ b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs @@ -652,7 +652,7 @@ namespace DataBlockHelper.DBHelpers public static void StopWater(int no) { var siemensS7Net = PlcConnect.Instance; - siemensS7Net.Write($"{DbName}.{53}.{no}",false); + siemensS7Net.Write($"{DbName}.{53}.{no}",true); } /// @@ -663,9 +663,13 @@ namespace DataBlockHelper.DBHelpers public static void StartWater(int no) { var siemensS7Net = PlcConnect.Instance; - siemensS7Net.Write($"{DbName}.{53}.{no}", true); + siemensS7Net.Write($"{DbName}.{53}.{no}", false); } + /// + /// true 状态是停止 + /// + /// public List GetWaterStatus() {