From adbeeccfcddddbba49718136a1ebb3429ab3b7ae Mon Sep 17 00:00:00 2001
From: lss <Lss@HanInfo>
Date: 星期三, 04 六月 2025 08:35:50 +0800
Subject: [PATCH] 电梯流程开发

---
 HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/device/S7Helper.cs |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/device/S7Helper.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/device/S7Helper.cs
index 7842918..4ce8f34 100644
--- a/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/device/S7Helper.cs
+++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/device/S7Helper.cs
@@ -95,9 +95,10 @@
         /// <param name="startByte">鍋忕Щ閲忓湴鍧�vb2001</param>
         ///  /// <param name="varType">鍊肩被鍨�/param>
         /// <returns></returns>
-        public static int ReadDpj(int startByte, S7.Net.VarType varType)
+        public static int ReadDpj(string ip,int startByte, S7.Net.VarType varType)
         {
-            string ip = "10.68.9.15"; short port = 102;
+           // string ip = "10.68.9.15"; 
+            short port = 102;
             lock (_lockdpj)
             {
                 try
@@ -125,7 +126,7 @@
                 }
                 catch (Exception ex)
                 {
-                    LogHelper.Error($"ReadDpj Error:{ex}", ex);
+                    LogHelper.Error($"ReadDpj ip:{ip},startByte:{startByte} Error:{ex}", ex);
                     throw;
                 }
             }
@@ -139,10 +140,11 @@
         /// <param name="startByte">鍋忕Щ閲忓湴鍧�/param>
         /// <param name="value">鍐欏叆鍊�byte绫诲瀷鍙兘0 1</param>
         /// <returns></returns>
-        public static bool WriteDpj(int startByte, byte value)
+        public static bool WriteDpj(string ip,int startByte, byte value)
         {
             bool result = false;
-            string ip = "10.68.9.15"; short port = 102;
+           // string ip = "10.68.9.15"; 
+            short port = 102;
             lock (_lockdpj)
             {
                 try

--
Gitblit v1.9.1