Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Second very slow variable subscription

More
23 Sep 2019 15:41 #7756 by support
Hello.

It makes little sense to try to troubleshoot the issue you reported, unless you have a real reason to actually attempt to unsubscribe and subscribe again yourself. QuickOPC does it all for you, and trying to do so it consider a very bad practice (again, unless you have somewhat special case - if so, please explain why you feel you need to do it).

Please read:
opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...0OPC%20failure%20recovery.html

Best regards

Please Log in or Create an account to join the conversation.

  • phil56
  • Topic Author
  • Visitor
  • Visitor
23 Sep 2019 14:33 #7755 by phil56
Hi ! We work with librairies Quick OPC-UA 2018.3.
When we start the program, we subscribe to 2724 variables in 14 seconds :

PlcClient : subscribe event
PlcClient : open
PlcClient : subscribe data change
PlcClient : subscribe variable ns=2;i=3006287402(23/09/2019 15:24:13:1)
PlcClient : subscribe variable ns=2;i=2438195688(23/09/2019 15:24:13:2)
...
PlcClient : subscribe variable ns=2;i=3444163552(23/09/2019 15:24:27:2723)
PlcClient : subscribe variable ns=2;i=3632956119(23/09/2019 15:24:27:2724)
PlcClient : end


Then, if the program detects a connection's error, we close / open the connection.
We subscribe again to 2724 variables but in 5 minutes:

PlcClient : subscribe event
PlcClient : open
PlcClient : subscribe data change
PlcClient : subscribe variable ns=2;i=3006287402(23/09/2019 15:26:54:1)
PlcClient : subscribe variable ns=2;i=2438195688(23/09/2019 15:26:54:2)
....
PlcClient : subscribe variable ns=2;i=3444163552(23/09/2019 15:32:32:2723)
PlcClient : subscribe variable ns=2;i=3632956119(23/09/2019 15:32:32:2724)


This is the code implemented to close the connection :
client.DataChangeNotification -= Client_DataChangeNotification;
client.UnsubscribeAllMonitoredItems();
EasyUAClient.CloseAll();
client.Dispose();
client = null;
And this is the code implemented to subscribe :
client = new EasyUAClient();
endPointDescription = new UAEndpointDescriptor(ConnectionString);
client.SubscribeDataChange(endPointDescription, address, autoUpdateInterval);

Can you help me about this ?

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.052 seconds