From 09e043b21212f355951fbeec3c9870046bea37f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Thu, 14 Dec 2023 18:27:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9IP=E4=B8=BA=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBlockHelper/PlcConnect.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/DataBlockHelper/PlcConnect.cs b/DataBlockHelper/PlcConnect.cs index cef81aa..888d8c5 100644 --- a/DataBlockHelper/PlcConnect.cs +++ b/DataBlockHelper/PlcConnect.cs @@ -1,12 +1,6 @@ -using HslCommunication.Instrument.DLT; + using HslCommunication.Profinet.Siemens; using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Text; -using System.Threading.Tasks; namespace DataBlockHelper @@ -29,7 +23,6 @@ namespace DataBlockHelper s7.SetPersistentConnection(); s7.IpAddress = "172.18.4.100"; - //s7.IpAddress = "192.168.1.110"; s7.Port = 102; var su = s7.ConnectServer();