Modbus TCP to Modbus RTU gateway
I've only tested Modbus functions [01,02,03,04,06] so far because I don't need any other functions for my purpose. Maybe the gateway need to be exteded to support other functions.
The gateway receives a ModbusTCP frame, translates it into a ModbusRTU frame, takes the ModbusRTU response and converts that into the ModbusTCP response for the initial request.
How to use:
git clone https://github.com/Bouni/ModBusGateway.git cd ModBusGateway python modbus-gateway.py
The configuration can be changed by editing the modbus-gateway.cfg file.
A more detailed description can be found here: