Replies: 1 comment
-
I believe this is the correct use of the notification, my understanding of the notification system is that, when you create the notification, if there was a change previously in the buffer (changed since PLC startup), you may get the "initial" value. If the value hasn't changed at all since PLC startup when registering the notification, you may not get a notification, although I don't think this is 100% true, someone else may have more knowledge. I think there is not much you can do to guarantee you get the initial value, unfortunately. Sending the notification or not is in the ADS layer, pyads is just choosing to subscribe to it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I met a problem when trying to use
NotificationAttrib
What I want is I can get an initial value when startup and whenever data changes, I can immediately get the changed value.
How do I set
trans_mode
andmax_delay
andcycle_time
param?I have read https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_adsdll2/117553803.html&id=1821528703544766287 but it seems that we can't always get
initial value
when plc value is not changed.What is weird is that sometimes I can get the initial value while other time I can not get the initial value when the value is always constant.
Beta Was this translation helpful? Give feedback.
All reactions