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

How to read data from multiple RTU slaves? #77

Closed
enp6s0 opened this issue Oct 11, 2021 · 1 comment
Closed

How to read data from multiple RTU slaves? #77

enp6s0 opened this issue Oct 11, 2021 · 1 comment

Comments

@enp6s0
Copy link

enp6s0 commented Oct 11, 2021

Let's say my setup is two Modbus RTU sensors connected over RS485. Both sensors have the same input register, say, at ID 1 and 2 I can read from. One sensor is at address 1, and the other is at address 2. They are on the same RS485 bus.

Not sure if I'm understanding Modbus TCP correctly, but how could I read those two distinct sensors through mbusd? I'm using pyModbusTCP to do the reading and so far could only read the first sensor on the RTU network. Is the second sensor mapped to a different register ID or something?

Thanks!

@enp6s0
Copy link
Author

enp6s0 commented Oct 11, 2021

Nevermind, solved it, turns out I have a misunderstanding of Modbus TCP and I just needed to specify the unit ID to be the RTU slave ID. Now it's working.

I'll leave this here though, just in case someone have this same question in the future.

@enp6s0 enp6s0 closed this as completed Oct 11, 2021
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

1 participant