liudl
2025-04-14 a815f0c44f8e435b0261c469f07654f0114726b9
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; }