Modbus Simulator with GUI based on modbus-tk and Pymodbus
$ git clone https://github.com/riptideio/modbus-simulator.git
$ cd modbus-simulator
-
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
- To run simulation with pymodbus backend, run
./tools/launcher
- To run sumulation with modbus-tk as backend run
./tools/launcher mtk
A GUi should show up if all the requirements are met !!
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)
A standalone application specific to target OS can be created with Kivy package manager
A cli version supporting both Modbus_RTU and Modbus_TCP is available here modbus_simu_cli