wxw
8 天以前 6a738089d6471d048c32ce7f3dcbd15c935ada79
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; }