alejoseb / Modbus-STM32-HAL-FreeRTOS

Modbus TCP and RTU, Master and Slave for STM32 using Cube HAL and FreeRTOS
GNU Lesser General Public License v2.1
519 stars 182 forks source link

Implemented FC4 (input register read) #89

Closed ttelik closed 9 months ago

ttelik commented 9 months ago

Implemented using a separate memory block for input registers. (Sorry, no example project yet).

alejoseb commented 9 months ago

Hi, I have some comments:

ttelik commented 9 months ago

Hi, Thanks for your note. Unfortunately, I do not have time for a complete solution. You can use this example for inspiration or as a counter-example ;)

In general, most products don't implement the complete address space. It would certainly be possible to use a single memory block with offsets for different regions but seems more elegant to me to use separate blocks.

alejoseb commented 9 months ago

I understand. By now I will keep the library as is, since it needs some analysis for an holistic solution, and also keep the existing examples working