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 eventfunktion(ioname, iovalue):
    """Event function, which is executed when the value changes."""
    print("Eingang {} hat jetzt Wert {}".format(ioname, iovalue))

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

# Catch Strg+C signal and exit program clean
rpi.handlesignalend()

# Register input events
rpi.io.I_1.reg_event(eventfunktion)
rpi.io.I_2.reg_event(eventfunktion)

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

More examples

Blog

Version 2.2.5

Important update! IOs of the Core / Connect modules are now managed statically, which is very important if new IO variants of the modules should appear in piCtory. If events are appended to IOs of the .core. class via .reg_event(…), the IO names now become a core. prefix. The name of the input X2 of …

Version 2.2.3

Improves module performance Set internal cycle time depending on the core version at instantiation. This improves the event system and responds much faster to IO changes – especially with Core3 Runtime monitoring integrated for event functions. Warnings are issued if functions have too long runtimes The “Export” flag from piCtory can now be retrieved via …