From cd4282af76340b49d72dc71d37c376d2bd4caf92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Sat, 9 Dec 2023 09:13:54 +0800 Subject: [PATCH] =?UTF-8?q?WriteM=20=E8=AF=BB=E5=8F=96=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBlockHelper/DBHelpers/DB2105WriteHelper.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs index 96d304e..364ed1a 100644 --- a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs +++ b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs @@ -379,11 +379,11 @@ namespace DataBlockHelper.DBHelpers private static bool WriteM(int start) { var siemensS7Net = PlcConnect.Instance; - var operateResult = siemensS7Net.ReadBool($"{DbName}.{start}.1"); - if (!operateResult.Content) - { - return false; - } + //var operateResult = siemensS7Net.ReadBool($"{DbName}.{start}.1"); + //if (!operateResult.Content) + //{ + // return false; + //} var operate= siemensS7Net.Write($"{DbName}.{start}.0", true); return operate.IsSuccess;