Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue With Data Change Filter in OpcUa-Client Node #712

Closed
ParkMartins opened this issue Jul 3, 2024 · 4 comments
Closed

Issue With Data Change Filter in OpcUa-Client Node #712

ParkMartins opened this issue Jul 3, 2024 · 4 comments

Comments

@ParkMartins
Copy link

When using the 'MONITOR' action in the 'OpcUa-Client' node of the node-red-contrib-opcua package, I have encountered an issue with the configuration of the deadband in 'Absolute' or 'Percentage' mode. Upon initial deployment, both deadband configurations function as expected for the first subscription. However, subsequent subscriptions do not maintain this functionality, leading to the deadbands becoming inactive for all monitored value changes.

I have tried to define the configuration directly in the 'Opc Ua-Client' node and also on a function node. Both implementations work exactly the same way, like described above.

image

Expected Behavior: The 'Absolute' and 'Percentage' deadband configurations should consistently remain active for every monitored item. This is crucial for reliable data change monitoring.

@ParkMartins ParkMartins changed the title Issue With Data Change Filter in 'MONITOR' Issue With Data Change Filter in OpcUa-Client Node Jul 3, 2024
@mikakaraila
Copy link
Owner

Hmm, I expect root cause could be without seeing your address space that variable should contain EURange that it could calculate from the min & max the percentage.

I need example flow to check & repeat problem, can you provide it?

@ParkMartins
Copy link
Author

Thanks for your answer, here is the flow so you can analyse it in detail.

DataChangeFilter Nodes.json

For your information, I have also tested the behaviour in parallel with UaExpert and it works fine, so the problem can't be related to the variable being read from the server. In the printscreens bellow you can see this behaviour with a configured absolute value change of 1. In this example, with value = 111, the monitoring funtion should only change when I the absolute is > 1, which is not happening. I have the exact same configuration in UaExpert and the behaviour there is correct. The server value that is being forced is the left picture on the second image.

image

image

@mikakaraila
Copy link
Owner

Inject empty string instead of timestamp. Timestamp in the payload is used for publish interval...

@ParkMartins
Copy link
Author

Thanks a lot, this was actually the cause of the problem. I can confirm that the data change filter is now working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants