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

Help needed with register addresses. #509

Open
MIJAS86 opened this issue Aug 27, 2023 · 1 comment
Open

Help needed with register addresses. #509

MIJAS86 opened this issue Aug 27, 2023 · 1 comment

Comments

@MIJAS86
Copy link

MIJAS86 commented Aug 27, 2023

Hi,

I'm quite new to Modbus RTU protocol and I'm bit confused about the register addresses.
This is the data I read from Easton SDM72DM power meter with readInputRegisters(1,100) :
[
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
50108, 52674, 50059, 1730, 17030, 23989, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 50195, 7819, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 17903, 45703, 17826, 26757, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0
]
And here is a list of input registers for that power meter:
https://xn--stromzhler-v5a.eu/media/pdf/93/17/d7/SDM72DM-V2.pdf
image

So my confusion is how the data I read relates to the addresses in the power meter ?
If I would like to read one register, let's say 30013 - Phase 1 active power, what parameters I should pass to readInputRegisters?

Thanks in advance for any help!

@sigma-design
Copy link
Contributor

sigma-design commented Sep 19, 2023

I believe that for your example of reading 1 floating point value (not 1 register !), i.e. read "30013 - Phase 1 active power" the following parameters should be used readInputRegisters(12, 2).

In other words you should use the Modbus 'start' address (last two columns in your table) and required number of registers (keeping in mind that one floating point value occupies 2 Modbus RTU registers).

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