From 6a738089d6471d048c32ce7f3dcbd15c935ada79 Mon Sep 17 00:00:00 2001 From: wxw <Administrator@DESKTOP-5BIMHQ3> Date: 星期六, 14 六月 2025 14:49:42 +0800 Subject: [PATCH] Merge branch 'master' into wxw --- Admin.NET/WCS.Application/PLC/PLCUtil.cs | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Admin.NET/WCS.Application/PLC/PLCUtil.cs b/Admin.NET/WCS.Application/PLC/PLCUtil.cs index b771e4e..d441f6b 100644 --- a/Admin.NET/WCS.Application/PLC/PLCUtil.cs +++ b/Admin.NET/WCS.Application/PLC/PLCUtil.cs @@ -17,6 +17,7 @@ public readonly string PlcIP; private SiemensClient _client; private WcsPlc _modPlc; + private Task<WcsPlc> modPlc; private readonly object OLock = new object(); public PLCUtil(WcsPlc modPlc) { @@ -26,6 +27,7 @@ _client = new SiemensClient((SiemensVersion)modPlc.PLCType, modPlc.IP, modPlc.Port); _client.Open(); } + public bool Connected { get { return _client.Connected; } -- Gitblit v1.8.0