dpConnect keeps calling callback function

Find and share HowTos to various installations / configurations!
Search

Post Reply
6 posts • Page 1 of 1
Mgiacome
Posts: 20
Joined: Thu Sep 26, 2024 1:35 pm

dpConnect keeps calling callback function

Post 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

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: dpConnect keeps calling callback function

Post by kilianvp »

https://www.winccoa.com/documentation/W ... =dpconnect

you need to set answer parameter to false

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: dpConnect keeps calling callback function

Post by gschijndel »

Perhaps the same value is written multiple times. Are other attributes (like the timestamp) changing?

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: dpConnect keeps calling callback function

Post 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

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: dpConnect keeps calling callback function

Post by kilianvp »

Oh, sorry. I misunderstood Mgiacome's problem.

Mgiacome
Posts: 20
Joined: Thu Sep 26, 2024 1:35 pm

Re: dpConnect keeps calling callback function

Post by Mgiacome »

Thanks all, the cause was the low level comparison setting unchecked inside the pheriphery address of the datapoint .... sorry

Post Reply
6 posts • Page 1 of 1