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; }