From fe2aa4880d5c9fd88088ad0ed81ebaca05629f5f Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 17:59:45 +0800
Subject: [PATCH] feat: 集成CAN驱动/模拟器 + 仪器仪表注册/硬件调试模块

---
 Plugin.DODriverControl/Api/ModBusTcpController.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Plugin.DODriverControl/Api/ModBusTcpController.cs b/Plugin.DODriverControl/Api/ModBusTcpController.cs
index f366f5e..e1b9fbf 100644
--- a/Plugin.DODriverControl/Api/ModBusTcpController.cs
+++ b/Plugin.DODriverControl/Api/ModBusTcpController.cs
@@ -51,5 +51,13 @@
         {
             client?.Dispose();
         }
+
+        public bool ReadDIDouble(string address, out double? res, out string msg)
+        {
+            var result = client?.ReadDouble($"x=2;{address}");
+            msg = result?.Message;
+            res = result?.Content;
+            return result?.IsSuccess == true;
+        }
     }
 }

--
Gitblit v1.9.1