From 2f1fd1f77cb8ad46bcf0d18f19f7f0a7aeae57ec 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:46:03 +0800 Subject: [PATCH] =?UTF-8?q?172.18.4.100=20=E4=BF=AE=E5=A4=8DIp=20=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBlockHelper/DBHelpers/DB2105WriteHelper.cs | 1 - DataBlockHelper/PlcConnect.cs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs index 57c765e..d529b86 100644 --- a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs +++ b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs @@ -670,7 +670,6 @@ namespace DataBlockHelper.DBHelpers /// true 状态是停止 /// /// - public static List GetWaterStatus() { var siemensS7Net = PlcConnect.Instance; diff --git a/DataBlockHelper/PlcConnect.cs b/DataBlockHelper/PlcConnect.cs index b76a347..5565103 100644 --- a/DataBlockHelper/PlcConnect.cs +++ b/DataBlockHelper/PlcConnect.cs @@ -27,8 +27,8 @@ namespace DataBlockHelper SiemensPLCS siemensPLCS = SiemensPLCS.S1500; SiemensS7Net s7 = new SiemensS7Net(siemensPLCS); s7.SetPersistentConnection(); - //s7.IpAddress = "172.18.4.100"; - s7.IpAddress = "192.168.1.110"; + s7.IpAddress = "172.18.4.100"; + //s7.IpAddress = "192.168.1.110"; s7.Port = 102; var su = s7.ConnectServer();