diff --git a/HighWayIot.Plc/HighWayIot.Plc.csproj b/HighWayIot.Plc/HighWayIot.Plc.csproj
index 0dcc92f..dd306dc 100644
--- a/HighWayIot.Plc/HighWayIot.Plc.csproj
+++ b/HighWayIot.Plc/HighWayIot.Plc.csproj
@@ -32,10 +32,6 @@
4
-
- False
- ..\HighWayIot.Library\HslCommunication.dll
-
@@ -63,5 +59,8 @@
+
+
+
\ No newline at end of file
diff --git a/HighWayIot.Plc/PlcConnect.cs b/HighWayIot.Plc/PlcConnect.cs
index fc4af51..a926655 100644
--- a/HighWayIot.Plc/PlcConnect.cs
+++ b/HighWayIot.Plc/PlcConnect.cs
@@ -54,22 +54,23 @@ namespace HighWayIot.Plc
return plc;
}
- /////
- ///// plc 是不是保持链接
- /////
- //public static bool IsConnect
- //{
- // get
- // {
- // if (MelsecInstance == null) return false;
- // var result = MelsecInstance.ReadPlcType();
- // logHelper.Info($"PLC型号:{result.Content}");
- // return result.IsSuccess;
- // }
- //}
+ ///
+ /// plc 是不是保持链接
+ ///
+ public static bool IsConnect
+ {
+ get
+ {
+ if (MelsecInstance == null) return false;
+ var result = MelsecInstance.ReadPlcType();
+ logHelper.Info($"PLC型号 信息:[{result.Message}] 内容:[{result.Message}]");
+ return result.IsSuccess;
+ }
+ }
public static int Test()
{
+ var s = IsConnect;
return MelsecInstance.ReadInt16("D1").Content;
}
diff --git a/HighWayIot.Plc/packages.config b/HighWayIot.Plc/packages.config
new file mode 100644
index 0000000..277ca52
--- /dev/null
+++ b/HighWayIot.Plc/packages.config
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/HighWayIot.Winform/App.config b/HighWayIot.Winform/App.config
index 193aecc..98452d4 100644
--- a/HighWayIot.Winform/App.config
+++ b/HighWayIot.Winform/App.config
@@ -1,6 +1,18 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HighWayIot.Winform/HighWayIot.Winform.csproj b/HighWayIot.Winform/HighWayIot.Winform.csproj
index f042a9b..309ccc6 100644
--- a/HighWayIot.Winform/HighWayIot.Winform.csproj
+++ b/HighWayIot.Winform/HighWayIot.Winform.csproj
@@ -312,10 +312,5 @@
Always
-
-
- 12.1.3
-
-
\ No newline at end of file