Skip to content

Modbus read node overflow #527

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

Open
alibei opened this issue May 6, 2025 · 1 comment
Open

Modbus read node overflow #527

alibei opened this issue May 6, 2025 · 1 comment
Labels

Comments

@alibei
Copy link

alibei commented May 6, 2025

Which node-red-contrib-modbus version are you using?

5.43.0

What happened?

I'm using the modbus read node to get the pv-inverter power from it's data logger.
If the power goes beyond 65535W the value overflows, showing for example 10000W instead of 75535W.

Server

Other/External server

How can this be reproduced?

Read a modbus address that has a higher value than 65535.

What did you expect to happen?

To show the correct value, for example 75535W instead of 10000W

Other Information

No response

@alibei alibei added the bug label May 6, 2025
@grewek
Copy link

grewek commented May 15, 2025

Hey @alibei,

The maximum a Modbus register can hold is 65,536 (16-bit) so i would say that the overflow is expected behavior.

If your value is larger than that you usually have to read out more than one registers and put the value in the right order again.

If you need further assistance please let me know.

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

No branches or pull requests

2 participants