This project is a Python-based Modbus TCP server designed to facilitate communication between a PLC (or any Modbus-compatible device) and a client application.
It processes incoming data based on a JSON configuration file (datatypes.json), making it easy to parse and display structured Modbus messages.
- Starts a Modbus TCP server and logs incoming/outgoing data.
- Converts received data into human-readable ASCII and numeric formats.
- Uses a JSON-based configuration file to dynamically interpret incoming data.
- Provides flexibility for different Modbus test cases and PLC communication projects.
Ensure that the following dependencies are installed:
- Python 3.8+
- pymodbus library
- Git (Optional, for cloning the repository)
Before running the project, install the required dependencies:
pip install -r requirements.txtRun the server using the following command:
python ModBusTCPServer.py👤 Mehmet Solmaz, PhD
📧 Email: misolmaz@hotmail.com
🔗 GitHub: misolmaz
🔗 LinkedIn: linkedin.com/in/misolmaz
This project is licensed under the MIT License - see the LICENSE file for details.
- Fixed incorrect markdown formatting in the Author section.
- Closed missing markdown syntax issues.
- Properly formatted command blocks for better readability.
- Added a 'Running the Server' section for clarity.