Page 1 of 1

dpConnect keeps calling callback function

Posted: Thu Oct 03, 2024 4:26 pm
by Mgiacome
Hi

I've noticed that dpConnect() keeps calling the callback function, even if the value of the input parameters do not change.

dpConnect("callbackFunction", dp1:_online.._value)

If I put a DebugN inside the callbackFunction, I keep seeing in the log that the function is called.

dp input parameters have an OPCUA subscription as pheriphery address. But their value don't change.

There's something I'm missing ?

Thank you

Re: dpConnect keeps calling callback function

Posted: Tue Oct 08, 2024 2:55 pm
by kilianvp
https://www.winccoa.com/documentation/W ... =dpconnect

you need to set answer parameter to false

Re: dpConnect keeps calling callback function

Posted: Tue Oct 08, 2024 3:00 pm
by gschijndel
Perhaps the same value is written multiple times. Are other attributes (like the timestamp) changing?

Re: dpConnect keeps calling callback function

Posted: Wed Oct 09, 2024 9:11 am
by leoknipp
The "wantsAnswer" parameter only defines if the work function is triggered immediately when doing the dpConnect().
During runtime it has no effect if the parameter is set to to true/false.

Best Regards
Leopold Knipp
Senior Support Specialist

Re: dpConnect keeps calling callback function

Posted: Fri Oct 11, 2024 10:27 am
by kilianvp
Oh, sorry. I misunderstood Mgiacome's problem.

Re: dpConnect keeps calling callback function

Posted: Tue Oct 15, 2024 2:49 pm
by Mgiacome
Thanks all, the cause was the low level comparison setting unchecked inside the pheriphery address of the datapoint .... sorry