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

RTU and TCP outputs only show the least significant byte of the registers #32

Open
jimhumphriesFMI opened this issue Dec 9, 2021 · 1 comment

Comments

@jimhumphriesFMI
Copy link

Hi, I am running this software on an STM32F407 running as a modbus slave device. Everything works fine except when i poll data from the device and read the holding registers via either RTU or TCP I only receive the least significant byte of the register even though the modbus master specifies to read INT16 data. Any idea why it is not transmitting the upper byte of the register? I inherited this project from a previous developer so I do not want to start modifying it until I know if there is a simple solution or not.

@karlp
Copy link

karlp commented Jun 9, 2022

This is an error in your own implementation, possibly in the callbacks implementing functions, or on your own receiving end. Plenty of us are using this quite happily with full 16bit 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