From 8e42527cd0e8e5a0067d5f06fd0fd1d989213a8d Mon Sep 17 00:00:00 2001 From: kellergoech <38539019+kellergoech@users.noreply.github.com> Date: Thu, 9 Apr 2026 11:25:36 +0200 Subject: [PATCH] Add shared_procimg to run_plc function Shared Procimg can now also be actrivated when using the run_plc function --- src/revpimodio2/modio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/revpimodio2/modio.py b/src/revpimodio2/modio.py index ff7fa47..046e0ee 100644 --- a/src/revpimodio2/modio.py +++ b/src/revpimodio2/modio.py @@ -1530,7 +1530,7 @@ class RevPiModIODriver(RevPiModIOSelected): ) -def run_plc(func, cycletime=50, replace_io_file=None, debug=True, procimg=None, configrsc=None): +def run_plc(func, cycletime=50, replace_io_file=None, debug=True, procimg=None, configrsc=None, shared_procimg=False): """ Run Revoluton Pi as real plc with cycle loop and exclusive IO access. @@ -1557,6 +1557,7 @@ def run_plc(func, cycletime=50, replace_io_file=None, debug=True, procimg=None, debug=debug, procimg=procimg, configrsc=configrsc, + shared_procimg=shared_procimg ) rpi.handlesignalend() return rpi.cycleloop(func, cycletime)