Closed bergheil closed 1 year ago
I attach the screenshot of "modpoll" a simple client the read the same registry. Bye
Capture the requests from each software using Wireshark and see what’s different.
Thanks for the answer, I will do. Can I ask if I'm using in the right way request object?
Yes, but you're reading 3 registers instead of 1 like you are with modpoll
. You also need to read a short from the buffer (2 bytes), not an int (4 bytes), because each register is only 2 bytes.
I'm not sure if modpoll
uses 1-based or 0-based addressing, either, so the Wireshark capture may help determine the difference.
Hi, I'm using a master simulator, I have created some registries and I'm trying to read the value using the example documented in the home page of this project.
I'm trying to read a registry to the index 2 using the unitid 1. Here the code:
The result is
Risultato int = 0
but the correct value of the registry is "5". Can anyone help me?
Thanks
Francesco