OPC connection problem

This is the main technical forum for discussing problems that were encountered by users while developing PROMOTIC applications, and their possible solutions.

OPC connection problem

Postby pavlos77 » Thu 20. Mar 2025 11:42:09

I have one OPC UA connection but some times if there is no communication the system stops trying to connect.
And then i have to stop and start again the runtime.
How i can overcome this problem?
e.g. Lets say with a timer and the quality of a tag and then what?
Attachments
opc_settings.png
opc_settings.png (14.92 KiB) Viewed 2898 times
pavlos77
 
Posts: 5
Joined: Thu 10. Nov 2022 13:13:50

Re: OPC connection problem

Postby Petr Návrat » Mon 24. Mar 2025 10:40:50

Please tell me which version of Promotic you are working with.
Petr Návrat
navrat@microsys.cz
Petr Návrat
Administrátor
 
Posts: 102
Joined: Thu 13. Dec 2012 14:32:08

Re: OPC connection problem

Postby pavlos77 » Thu 03. Apr 2025 12:16:01

Version: Promotic9.0.18.0 (05.11.2021)

Also for now i used a timer every 5 sec with below code and it seems ok but i don;t know if it is the correct way.

if (pMe.Pm("../Data/#vars/Thoughput").Quality < 192)
{
pMe.Pm("../Comm").ClosePort()
}
pavlos77
 
Posts: 5
Joined: Thu 10. Nov 2022 13:13:50

Re: OPC connection problem

Postby Petr Návrat » Mon 07. Apr 2025 7:21:07

Yes, you can solve it with a timer like this.
But it is better if you take the new version Pm9.0.31 where the problem will probably be solved.
Petr Návrat
Administrátor
 
Posts: 102
Joined: Thu 13. Dec 2012 14:32:08


Return to I don't know how to...

Who is online

Users browsing this forum: No registered users and 2 guests