Looking for Python code to act as a MODBUS slave

fred basset picture fred basset · Dec 16, 2012 · Viewed 8.5k times · Source

Does anyone know of an easy to use Python program that acts as a MODBUS slave? I need to do some integration testing with a MODBUS master. Code can be for serial or TCP.

TY, Fred

Answer

CezarySzulc picture CezarySzulc · Nov 18, 2016

Try this https://pypi.python.org/pypi/modbus_tk Modbus Test Kit provides implementation of slave and master for Modbus TCP and RTU. The main goal is to be used as testing tools.