I'm perusing the pyModbusTCP with the intent of writing a Modbus slave running on Linux.
[begin rant]: pyModbusTCP uses the terms "client" and "server" instead of "slave/master", so the docs are a bit confusing. [end rant]
It seems all they do in the demos is use the library as a Master, either reading or writing from remote slave devices.
Is it possible to set up pyModbusTCP to act as a Modbus slave, listening to a port and allowing Modbus devices (PLCs, etc) to connect and read/write values from/to this slave?
As a bonus, is it possible to automatically execute a Python function (like an event) when a remote master reads or writes to/from this slave?
Thanks!