I have created a Modbus TCP Master Simulator using QT for python and its available here free to download, test and use. This is the first version of this implementation handling minimal usage to send Modbus requests to the slave. This is version 0.1 but further improvements will come in future. This software is free to use and user feed back and bug reports are highly appreciated.
Features
- The current implementation allows you to read and write data to slave registers. all the standard function codes have been implemented.
- The Modbus requests are sent once for every button click, cyclic request feature will be implemented in the next version
- This implementation is only for Modbus TCP. Modbus RTU will be included in later versions
Usage
To start using the Modbus TCP Master Simulator, download the software from here below
Unzip the file and run the software
First, configure your Modbus settings by entering the Slave IP address and port via the settings menu. Confirm the correct address and port has been set correctly from the status bar
After configuring your slave address, you should now select the request properties including function code, start address and number of registers. Once these have been set, you can now press the connect button to establish connection to the slave. If the connection is successful, the Disconnect and Send request buttons will activate, otherwise, an error message will be shown.
In case the connection was successful, you can now send the request by clicking on the Send Request Button. This is not a cyclic sending therefore each request is sent manually by clicking the button. You can modify the request properties as you wish and send new request in the same way. The disconnect button will terminate the connection with the slave device.
Remarks
This is version 0.1 and might contain bugs. Improvements to this implementation will be done in later versions