Download Latest Version pyModSlave-0.4.4-beta-Win64-exe.zip (39.0 MB)
Email in envelope

Get an email when there's a new version of pyModSlave

Home / ScreenCasts
Name Modified Size InfoDownloads / Week
Parent folder
pyModSlave-TCP-2019-09-10.mp4 2019-10-26 3.3 MB
pyModSlave-Session-2019-09-10.mp4 2019-10-26 5.7 MB
pyModSlave-RTU-2019-09-10.mp4 2019-10-26 4.3 MB
Totals: 3 Items   13.3 MB 0
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. 

1.Description 
pyModSlave is a free python-based implementation of a ModBus slave application for simulation purposes.
2.Software
pyModSlave is based on modbus-tk <http://code.google.com/p/modbus-tk/>, pySerial <http://pyserial.sourceforge.net/> and PyQt4 or PyQt5 for version 0.4.3 and higher <http://www.riverbankcomputing.co.uk>.
3.Compatibility
Tested with python 2.7 (most probably is compatible with previous versions of python) and python 3.7 for version 0.4.3 and higher.
4.Installation 
- Download and install the latest python 2.x version or python 3.x for version 0.4.3 and higher. 
- Download and install modbus-tk, pySerial and PyQt4 or PyQt5 for version 0.4.3 and higher.
- Download pyModSlave and run using the command : 'python pyModSlave.py' from the installation folder. 
5.Usage
Starts a TCP/RTU ModBus Slave.Builds 4 data blocks (coils,discrete inputs,input registers,holding registers) and sets random values. You can also set values for individual registers.
6.To configure the logging level set the 'LoggingLevel' in pyModSlave.ini file
- CRITICAL : 50
- ERROR : 40
- WARNING : 30 [default]
- INFO : 20
- DEBUG : 10
- NOTSET : 0

For Windows a pre-compiled binary is availiable. It does not require installation, just unzip and run.
You can easily build the standalone 'exe' version using the command : 'pyInstaller pyModSlave.spec' from the installation folder (you will need to install 'pyInstaller' package). 

Source: README.txt, updated 2019-10-18