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.

Issue in reading tags after a PLC reboot

More
07 Mar 2025 14:27 #13451 by support
Hello,
thank you.

It's good that you found this workaround, because it also tells me a bit more - although still not enough - about where the problem might be. It appears to be related to automatic session opening/closing.

If you want to keep your 5-seconds reading interval, can you please try a different workaround: Set the session HoldPeriod property to much smaller value (500 or 1000) - opclabs.doc-that.com/files/onlinedocs/QuickOpc/2022.1/User's...sionParameters~HoldPeriod.html .

Regards

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

More
07 Mar 2025 13:51 #13450 by Gardoni
Hi,

Version is: 5.63.246.1

 

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

More
07 Mar 2025 13:20 #13449 by support
Hello.

Which QuickOPC version are you using please?

Regards

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

More
07 Mar 2025 07:02 #13448 by Gardoni
The inner exception the system is giving back is: "No connection could be made because the target machine actively refused it".
It happens with 2 different PLC brands (Siemens and Beckhoff). 
Also, I found that increasing the delay beetween 2 "Read" to 10 seconds, the problem disappears.

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

More
06 Mar 2025 10:28 #13447 by support
Hello.

You are right that the expected behavior is that QuickOPC should reconnect, without extra effort on your coding side. So we need to investigate that.

First thing I need to know is, when you receive the null value, whether the .Exception in the UAAttributeData is also null, or - when it is not null - what are the exception details.

Best regards

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

More
05 Mar 2025 07:27 #13440 by Gardoni
Hello,

I'm facing a problem with OpcLabs 5.63.
In my windows service I'm reading a PLC tag every 5 seconds with this instruction: "UAAttributeData attributeData = easyUAclient.Read(opcServerName, itemName, UAReadParameters.FromDevice);" where easyUAclient is an instance of EasyUAClient class.
I found that after a PLC reboot the Read method is always returning null value. If I restart the windows service, everything is going to work fine, but of course I cannot restart the service every time the PLC is reeboted.
Is it there any way to restore the connection or something like that? 

Thank you!

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

Moderators: supportvaclav.zaloudek
Time to create page: 0.141 seconds