It can be done if your Runtime is mostly Linux based and you have open access to the OS. Otherwise it cannot be done. Besides that it can be done, why do you want to do that?
Last edit: hermsen 2020-12-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
my idea is to run a pythonprogram to read/write data into sql database.
Fisrt step for me is try to execute pythonscript.
Second step try to read tags vom codesysruntime with python, any idea wether this iss possible?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
its possible to call a pythonscript in Codesys 3.5 PLC code?
Thanks, Dumpfbacke
more posts ...
It can be done if your Runtime is mostly Linux based and you have open access to the OS. Otherwise it cannot be done. Besides that it can be done, why do you want to do that?
Last edit: hermsen 2020-12-18
hi,
my idea is to run a pythonprogram to read/write data into sql database.
Fisrt step for me is try to execute pythonscript.
Second step try to read tags vom codesysruntime with python, any idea wether this iss possible?
I do know this: https://forge.codesys.com/tol/scripting/home/Home/
Hope that helps
check the old example section:
https://forge.codesys.com/forge/talk/Runtime/thread/04361f89ec/?limit=25#333d
more in detail here:
https://forge.codesys.com/forge/talk/Runtime/thread/04361f89ec/?limit=25&page=1#d08c
hi,
i tried now based to your sample run python script.
My testpythonscript opens the broswer with goolgewebsite to see simple wether it works.
i allowed commands in
CODESYSControl_User.cfg and CODESYSControl.cfg
with
[SysProcess]
Command=AllowAll
i am not sure is runtime pi or root?
I also made thr sccriptfile executable.
i also copied the file int /var/opt/codesys similar your sample project.
my coding is this:
doesn not work, what i am doing wrong?
Can you please amser once more
Thanks
Last edit: dumpfbacke 2020-12-20
.. in the same section (old examples) there is a python OPC UA client example to
read symbols from the plc runtime