pymodbus-dev / pymodbus

A full modbus protocol written in python
Other
2.23k stars 913 forks source link

Question: Create ModBus Proxy using pymodbus #543

Closed JeremyRitchie closed 3 years ago

JeremyRitchie commented 3 years ago

Description

Hi,

I'm trying to create a modbus server which will act as a proxy for modbus. It will receive modbus commands and then execute those commands on a downstream modbus server, and then return the result to the original requester.

How can i implement this with pymodbus?

I've been searching online and unable to find something suitable.

Thanks

dhoomakethu commented 3 years ago

You can take a look in to the below examples https://github.com/riptideio/pymodbus/blob/master/examples/contrib/serial_forwarder.py https://github.com/riptideio/pymodbus/blob/master/examples/contrib/remote_server_context.py https://github.com/riptideio/pymodbus/blob/master/examples/common/callback_server.py