Modbus Simulator with GUI based on modbus-tk
$ git clone https://bitbucket.org/sanjaykv/modbus-simulator
$ cd modbus_simulator
-
install kivy
-
install modbus-tk
- On Mac kivy uses its own virtual env ,hence all required modules needs to be installed seperatly installing modules
- kivy -m pip install modbus-tk
- On Mac kivy uses its own virtual env ,hence all required modules needs to be installed seperatly installing modules
$ cd modbus_simulator
$ kivy main.py
A GUi should show up if all the requirements are met !!
- Select the interface (only TCP supported as of now)
- Enter the desired PORT
- Start Simulation
- Add Slave
- to add a single slave just click on 'add'
- one can play around with values in 'from'/'to'/'count' text fields to add multiple slaves
- to delete a selected slave use "delete' button
- 'enable all' button is not implemented yet
- Add Data blocks
- select a slave to enable Datablock tab pane
- use button 'add' in Datablock pane to add data (0 based offset)
- to delete a datablock ,select an item and use 'delete' button in Datablock pane
- To simulate data , press 'Simulate' button
- 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