Don’t forget there’s an issue involving Big Endian and Little Endian conversion of floating point numbers. I seem to recall posting about that issue with some feedback on using unions that helped me solve the problem. And yes, there is some confusion regarding register addressing. I found a modbus simulator that helped me debug my code since I did not have an actual modbus device handy for testing. It also allowed me to specify my own numbers in registers so I absolutely knew what data was expected.
ctmorrison
21
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| [MODBUS] Proper Solution for Modbus | 40 | 7646 | March 30, 2018 | |
| RS-485 modbus library | 146 | 48243 | September 10, 2020 | |
| Photon & rs-485 | 29 | 11756 | January 14, 2017 | |
| 7 in 1 soil sensor | 14 | 717 | January 10, 2024 | |
| ModbusMaster Library issue over E2 error code | 4 | 795 | October 10, 2024 |