hylasoft-usa / h-opc

OPC client made simpler, for UA and DA
MIT License
300 stars 144 forks source link

Check Plc Connection Status #72

Open trycatchjs opened 6 years ago

trycatchjs commented 6 years ago

When I Connect to Opc Server, I get Client.Status is Connected But How I Check connection quality between Opc Server And Lg Plc In C# Code after Connect to Opc Server. I use below sample code:

public static DaClient client = new DaClient(new Uri("opcda://localhost/LGIS.LGEOPC"));
...
 client.Connect();
...
 if (PLCCommon.client.Status == OpcStatus.Connected)
  {
      // Connect To Opc Server is Ok.
  }
...
 if (OpcQualityConnectToPlc==Good)
 {
      // Connect To Lg PLc is Ok.
 }
Hoan96 commented 2 years ago

Do you help me a sent to me file install LGIS OPC SERVER?khaihoanhaui@gmail.com