From a79e67a57a67645b20ae876e09690ac4b07679a6 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:26:13 +0800 Subject: [PATCH 1/2] Ip127.0.0.1 --- Main/MCEdit/Data/MCProject/nodeDataSource.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Main/MCEdit/Data/MCProject/nodeDataSource.xml b/Main/MCEdit/Data/MCProject/nodeDataSource.xml index 3c73a6a..3600a0d 100644 --- a/Main/MCEdit/Data/MCProject/nodeDataSource.xml +++ b/Main/MCEdit/Data/MCProject/nodeDataSource.xml @@ -1,3 +1,3 @@ - + \ No newline at end of file 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 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9IP=E4=B8=BA=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0IP?= 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();