Skip to content

Standalone ModBus TCP Server implementation in Python for industrial communication simulation and testing.

License

Notifications You must be signed in to change notification settings

misolmaz/ModBusTCPServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ModBusTCPServer

📖 Project Description

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.

🎯 Features

  • 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.

🚀 Installation & Usage

1️⃣ Requirements

Ensure that the following dependencies are installed:

  • Python 3.8+
  • pymodbus library
  • Git (Optional, for cloning the repository)

2️⃣ Installing Dependencies

Before running the project, install the required dependencies:

pip install -r requirements.txt

3️⃣ Running the Modbus TCP Server

Run the server using the following command:

python ModBusTCPServer.py

📝 Author

👤 Mehmet Solmaz, PhD
📧 Email: misolmaz@hotmail.com 🔗 GitHub: misolmaz
🔗 LinkedIn: linkedin.com/in/misolmaz


🛡️ License

This project is licensed under the MIT License - see the LICENSE file for details.


✅ Fixes & Improvements in This Version

  • 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.

About

Standalone ModBus TCP Server implementation in Python for industrial communication simulation and testing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages