Menu

Tree [bb8389] default tip /
 History

Read Only access


File Date Author Commit
 ManModbus unknown
 modbus_tk 2021-12-05 ElBar ElBar [bc4489] Fix issue#22-Communication stops when raw data ...
 pypi 2019-03-31 ElBar ElBar [98a77c] Prepared for pypi
 ui 2021-09-30 ElBar ElBar [c4177a] Change max node address to 255
 .hgtags 2020-12-08 ElBar ElBar [f9cb22] Added tag 0.4.3.-2 for changeset 022cf9bbe1f0
 LICENSE unknown
 ModFactory.py 2022-01-05 ElBar ElBar [bb8389] Fix issue#23
 ModSlaveAbout.py 2021-01-23 ElBar ElBar [821b38] Fix Ticket#19 (crash if 'QMessageBox' was called).
 ModSlaveBusMonitor.py 2021-12-05 ElBar ElBar [bc4489] Fix issue#22-Communication stops when raw data ...
 ModSlaveMBData.py 2020-11-19 ElBar ElBar [665cba] working on support float registers
 ModSlaveMBDataItemDelegate.py 2020-10-04 ElBar ElBar [5bbe78] Ui header color. Add float code.
 ModSlaveMBDataModel.py 2022-01-05 ElBar ElBar [bb8389] Fix issue#23
 ModSlaveSettings.py 2020-12-08 ElBar ElBar [022cf9] Add min-max values for sim. Change logging hand...
 ModSlaveSettingsRTU.py unknown
 ModSlaveSettingsTCP.py unknown
 README.txt unknown
 RepeatTimer.py unknown
 Ui_about.py 2019-10-13 ElBar ElBar [8d93e0] Upgrade to pyQt5/python 3.x.
 Ui_busmonitor.py 2020-05-17 ElBar ElBar [8e9b5e] Minor UI changes
 Ui_mainwindow.py 2021-09-30 ElBar ElBar [c4177a] Change max node address to 255
 Ui_settings.py unknown
 Ui_settingsModbusRTU.py unknown
 Ui_settingsModbusTCP.py unknown
 Utils.py 2021-01-23 ElBar ElBar [821b38] Fix Ticket#19 (crash if 'QMessageBox' was called).
 __init__.py 2019-03-11 ElBar ElBar [6b5ebb] Prepare uploading to pypi.org
 pyModSlave.exe.manifest 2017-05-30 eleftherios.barbas@gmail.com eleftherios.barbas@gmail.com [929bcb] Add manifest file.
 pyModSlave.py 2021-01-23 ElBar ElBar [821b38] Fix Ticket#19 (crash if 'QMessageBox' was called).
 pyModSlave.spec 2021-01-23 ElBar ElBar [821b38] Fix Ticket#19 (crash if 'QMessageBox' was called).
 pyModSlaveQt_rc.py unknown

Read Me

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).