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

Emit only when value changes not working with array of bits #33

Closed
AlexanderLL95 opened this issue Dec 8, 2018 · 3 comments
Closed

Comments

@AlexanderLL95
Copy link

Hi,

I think this is a new issue.

I found out how to read an array of bits from a PLC.
This is actually working. I get the correct values.

I use the following address to read the array of bits: DB60,X0.0.100

I checked the node property 'Emit only when value changes (diff)'.

This has no effect. The node ignores this setting.
The values are readed cyclic.

When i just ask for a specific bit. The setting is working.
See the screenshot of the debug output.

See the other screenshots for more details.

Node configuration
image

Flow
image

Debug output
image

@gfcittolin
Copy link
Member

Great catch! Indeed, we just check for plain javascript equality (==), and for arrays it won't work, as javascript will try to compare the references and will obviously fail (as they're not the same object, but may have the same content)
I'll try to fix it asap and report here so you can test it.

@AlexanderLL95
Copy link
Author

Hi gfcittolin,
Thanks for the quick respons.
I'm looking forward for this fix.

@gfcittolin
Copy link
Member

Just published 1.5.3 with the fix for that, sorry for the huge delay. Let me know if you have any other issue

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

No branches or pull requests

2 participants