Welcome to the Revolution Pi with Python

Program your Revolution Pi of Kunbus GmbH with Python!

Python module

This module provides you with various functions to access the hardware of the Revolution Pi with your Python program. It does not matter whether you come from the PLC sector and program cyclically or event-based as an application developer of e.g. Raspberry Pi.

PLC System for software, network and MQTT

With our RevPiPyPLC system you can make fast IO-Checks over the network, upload your control program, start it at system start and transfer all IO data via MQTT. Or simply write data from any Python system to the process image.

And there are no license fees!

Source example RevPiModIO version 2 – current

import revpimodio2

def eventfunction(ioname, iovalue):
    """Event function, which is executed when the value changes."""
    print("Input {} has value {}".format(ioname, iovalue))

# Instantiate RevPiModIO
rpi = revpimodio2.RevPiModIO(autorefresh=True)

# Catch Ctrl+C signal and exit program clean

# Register input events

# Start event processing (program will block here)
print("start mainloop")

More examples


Version 2.4.2

Important update! This update fixes minor common errors and critical errors in network functions! Fixed an issue with all RevPiNetIO classes that prevented a reconnect under certain circumstances. Bug fix when using prefire and as_thread in .reg_event(…). Error correction in export file for replaced IOs Error correction, setting delayed events to .core.ios, such as. .core.a1green, …

Version 2.3.2

This version mainly fixes errors in counter IOs Counter IOs 8 – 16 can now also be reset with .reset () Runtime warnings have better error hints debug argument introduced to get complete error messages Format check implemented by .replace_io(…) for specific types Thanks to Nicolai Buchwitz Improved argument checking on instantiation DOWNLOAD

Version 2.3.1

This update introduces the counter-reset of DI / DIO modules! Counter IOs now have the function .reset() to reset the counters on the DI / DIO modules. Note: The Wheezy (7) system does not support this in the piControl! Counter can also be reset via RevPiNetIO over the network (RevPiPyLoad at least version 0.7.5). Iterators …