- Modbus TCP support
- Single and Continuous Polling of registers
- Data display settings including:
- Data type
- Radix
- Byte and Word Endianness
- Modbus Error Response Handling
- Modbus Serial Support for the following framers:
- RTU
- ASCII
- Binary
- Writing Registers
- Logging to File
- Zero mode (1 or 0 index for registers)
- Full register address display (show what the full register number is)
- Read Device information metadata
- Unit ID Support
- Settings save to and load from file.
- Clone the repository and checkout the develop branch (default)
- Install dependencies with
pip install -r requirements.txt
(can be in virtualenv) - Install
pyqt5-tools
Global or user python installation (not virtualenv)
To edit the .ui
files navigate to where pyqt5-tools
installed and launch designer.exe
. Open the .ui
file in
QtDesigner and edit it. Save it in the ui_files
directory. Generate the related python file using the pyuic5
command
(part of pyqt5-tools
). Example:
pyuic5 ./ui_files/modbus_visualizer.ui > ./visualizer/gui_main_window.py
Run the program: python main.py
The provided test server hosts a live modbus server on the interface of choice specified by command line arguments. This allows for a manual test server to be used to verify new features or bugfixes to the program. Eventually we should write some automated test, but this will do for now.
Specify the network type and protocol framer (only for serial) when launching the test server by passing command line arguments.
For testing the server without a live modbus server or serial modbus device, run the testserver python test_server.py
.