Skip to content

pymodbus-dev/modbus-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c0869f8 · May 28, 2019
Sep 12, 2018
Jan 10, 2019
Aug 31, 2017
Sep 12, 2018
Sep 24, 2017
Mar 22, 2017
Dec 17, 2018
Jan 9, 2019
Sep 12, 2018

Repository files navigation

Modbus Simulator

Modbus Simulator with GUI based on modbus-tk and Pymodbus

Checking Out the Source

$ git clone https://github.com/riptideio/modbus-simulator.git
$ cd modbus-simulator

Development Instructions

  1. create virtualenv and install requirements

    $ # Kivy depends on Cython, Install Cython before running the requirements
    $ pip install Cython==0.29.2
    $ pip install -r requirements
    $ # Choose Modbus Backend modbus_tk or pymodbus (default)
    $ # To install pymodbus
    $ pip install pymodbus==1.5.2
    $ # To install modbus tk
    $ Pip install modbus-tk
    
    
  2. Setup development environment

Running/Testing application

  1. To run simulation with pymodbus backend, run ./tools/launcher
  2. To run sumulation with modbus-tk as backend run ./tools/launcher mtk

A GUi should show up if all the requirements are met !!

main_screen.png

All the settings for various modbus related settings (block size/minimum/maximun values/logging) could be set and accessed from settings panel (use F1 or click on Settings icon at the bottom) settings_screen.png

Usage instructions

Demo Modbus Simulator

Packaging for different OS (Standalone applications)

A standalone application specific to target OS can be created with Kivy package manager

  1. OSX
  2. Linux
  3. Windows

NOTE:

A cli version supporting both Modbus_RTU and Modbus_TCP is available here modbus_simu_cli