mirror of
https://github.com/naruxde/revpimodio2.git
synced 2026-05-16 00:17:24 +02:00
Add shared_procimg to run_plc function
Shared Procimg can now also be actrivated when using the run_plc function
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user