-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to write single register #348
Comments
If you are a server: Hreg(register, value) |
Thanks for the guidance, just to clarify, server meaning is Master, client meaning is Slave? Thanks in advanced. |
Client is Master, Server is Slave |
I've tried with mb.writeHreg(slaveid, 5, 1, NULL) it managed to transmit value of 1 to slave, then I tried with mb.writeHreg(slaveid, 5, 0, NULL), it just hang there without transmitting the 0 to slave. Compilation is success. Is there anything I had missed out? |
mb.addHreg(REG_TARGET_POSITION, 12, 1); <-- What happens if i set 1 to 2? Can i hold float there then? |
Handling of long/float over Modbus is described in #158 |
Appreciated if you could show and guide me how to write single register, thanks.
The text was updated successfully, but these errors were encountered: