By installing the Python app, the interpreter stays present on the ctrlX-CORE.
Since the functionality had been upgraded and its interfaces changed incompatible - latest created script files (maybe Tiger-generated form promoter-package) are not executable anymore. The attached Interpreter description will offer the info needed to update the former script coding.
The upcoming script-manager-functionality/app is supposed to provide an easy and intuitive way to place and execute scripts on the ctrlX-CORE. Meanwhile we need to get familiar with interims solution.
Goal of the paper is to get familiar with the script-handling-workaround, which will be dispensable soon. Â Â
How to place the script file(s) on the ctrlX?
Transfer the script files using the Configuration interface.
a) Use the Configuration-Website to download the config to the PC.
b) Unzip and add the python script file(s) and zip again.
c) Create a new/empty configuration by clicking + and upload the modified zip file.
d) The prepared configuration gets active by clicking the Hook-button – which registers the *py file(s) at the Ubuntu OS
(do not care about the storage location – you may not find easily viewing with SSH/MobaXterm).
How to execute the scripts using Rest-clients e.g. Yarc
e) Get the authentification token first
f) Create a new script instance by sending a similar Rest-payload.
g) Finally the script can be started by sending the payload containing path and filename of the related script.
with the payload:
{"name":"/var/snap/rexroth-automationcore/common/solutions/activeConfiguration/PythonBsp2.py"}