Thanks, Claes!
If Modbus_RTU_Server contains several slaves - Modbus_RTU_ServerModule (eg UnitId=1 and UnitId=2), the sum of all the registers should not exceed 256 bytes (128Reg type int16)? Or can each slave have up to 128 registers??
(I'm not very strong with source code)
It would be nice to organize a server with several units, where each unit could have a Input and Output area of 256 bytes.
In my example, the Modbus_RTU_Server works well, where UnitId=1 contains 40Reg (int16) and UnitId=2 contains 44Reg (43-int16, 1-float32)
But when UnitId=1 contains 64Reg (32-float32, 32-int16) and UnitId=2 contains 40Reg (float32) - this does not work! (oversize buffer)
Thanks again for the help, Claes
/Sergey