Modbus RTU Server

I made this diagram for better understanding:

And this morning I implement this possible solution, but it not the idea because IT implies more $$$: