h-opc icon indicating copy to clipboard operation
h-opc copied to clipboard

Check Plc Connection Status

Open trycatchjs opened this issue 7 years ago • 1 comments

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

trycatchjs avatar Feb 05 '18 07:02 trycatchjs

Do you help me a sent to me file install LGIS OPC [email protected]

Hoan96 avatar May 11 '22 07:05 Hoan96