From 859f25f1e1124b01aa9a3959669d87c70d666c4c Mon Sep 17 00:00:00 2001 From: wangsr Date: Mon, 18 Dec 2023 11:29:48 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E5=8C=BA=E5=88=86=E9=85=8D?= =?UTF-8?q?=E6=96=99=E5=92=8C=E8=BE=93=E9=80=81=E7=9A=84IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBlockHelper/PlcConnect.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataBlockHelper/PlcConnect.cs b/DataBlockHelper/PlcConnect.cs index 8681fd3..04f91a1 100644 --- a/DataBlockHelper/PlcConnect.cs +++ b/DataBlockHelper/PlcConnect.cs @@ -21,8 +21,8 @@ namespace DataBlockHelper SiemensPLCS siemensPLCS = SiemensPLCS.S1500; SiemensS7Net s7 = new SiemensS7Net(siemensPLCS); s7.SetPersistentConnection(); - //s7.IpAddress = "192.168.1.110"; - s7.IpAddress = "127.18.4.100"; + s7.IpAddress = "192.168.1.110"; + //s7.IpAddress = "127.18.4.100"; s7.Port = 102; var su = s7.ConnectServer();