With this update you can program more PLC with less Python code.
- The new
cycleloopreads the inputs, executes the passed function and writes the outputs in the set cycle time “
If you call
.devices.cycleloop(cyclefunction)in your program, it blocks at this point and cyclically executes the function “
cyclefuntkion“. To this function an instance of class RevPiCycletools() is passed, which includes tools such as clock markers, edge flags, or timer objects.
- New function for easy exit a cyclic or event-based program
- If the set update rate of the process image (
auto_refresh) is exceeded, you will get a warning – each time!
auto_refreshvalues greater than 1000 milliseconds could produce errors with
- Module closes faster with
- The module no longer blocks exit when using the Python shell’s interactive mode