Overview of the PyModbus Simulator (3.x)
devThe PyModbus Simulator is a standard Modbus server that includes an additional HTTP interface. It is designed to provide flexible data definitions for both standard servers and simulation environments.
Key capabilities include:
- Data Modeling: Define devices using
SimDevicearchitecture and manage data viaSimDatawith specificDataType(e.g., Registers, Coils). - Error Testing: Test how clients handle Modbus exceptions, communication errors (like divided messages), or malicious responses.
- Web Interface: Monitor requests/responses, inject errors, and change values online.
- Automation: Use the REST API to automate end-to-end testing, such as spinning up servers with Unix domain sockets and setting expected responses.
Warning: Beginning with v3.9.0 and ending with v4.0.0, this simulator will be replaced by a new version.