<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to CODESYS Pi PLC - execute python scripts in the PLC application</title><link href="https://forge.codesys.com/hax/blog/2018/01/codesys-pi-plc---execute-python-scripts-in-the-plc-application/" rel="alternate"/><link href="https://forge.codesys.com/hax/blog/2018/01/codesys-pi-plc---execute-python-scripts-in-the-plc-application/feed.atom" rel="self"/><id>https://forge.codesys.com/hax/blog/2018/01/codesys-pi-plc---execute-python-scripts-in-the-plc-application/</id><updated>2018-01-08T18:06:19.078000Z</updated><subtitle>Recent changes to CODESYS Pi PLC - execute python scripts in the PLC application</subtitle><entry><title>CODESYS Pi PLC - execute python scripts in the PLC application discussion</title><link href="https://forge.codesys.com/hax/blog/2018/01/codesys-pi-plc---execute-python-scripts-in-the-plc-application/?limit=25#3050" rel="alternate"/><published>2018-01-08T18:06:19.078000Z</published><updated>2018-01-08T18:06:19.078000Z</updated><author><name>codesys.com</name><uri>https://forge.codesys.com/u/codesys-com/</uri></author><id>https://forge.codesys.coma87323d65e6e6b7c94e5c48f7413bf655c27bc5e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Project and Screenshot&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CODESYS Pi PLC - execute python scripts in the PLC application</title><link href="https://forge.codesys.com/hax/blog/2018/01/codesys-pi-plc---execute-python-scripts-in-the-plc-application/" rel="alternate"/><published>2018-01-08T18:05:50.215000Z</published><updated>2018-01-08T18:05:50.215000Z</updated><author><name>codesys.com</name><uri>https://forge.codesys.com/u/codesys-com/</uri></author><id>https://forge.codesys.comae19711ad220654d52ad44703bcb1ddf22f3f6e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="grid-20"&gt;&lt;iframe height="270" src="https://www.youtube.com/embed/R9x-QX28to8?feature=oembed" width="480"&gt;&lt;/iframe&gt;&lt;/div&gt;

&lt;p&gt;This example shows, how to add python scripts in CODESYS as external files and execute them in your CODESYS application. In a similar way, you can execute virtually every other external program from your PLC application, which opens you a wide range of new possibilities.&lt;/p&gt;
&lt;p&gt;Unicorn HAT example Project is available here: &lt;a href="http://forge.codesys.com/hax/blog/_discuss/thread/82598d1c/3050/attachment/DownloadPythonScript_and_Exec_onPI.project" rel="nofollow"&gt;http://forge.codesys.com/hax/blog/_discuss/thread/82598d1c/3050/attachment/DownloadPythonScript_and_Exec_onPI.project&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="Screenshot" rel="nofollow" src="http://forge.codesys.com/hax/blog/_discuss/thread/82598d1c/3050/attachment/Python_as_ExternalFile.jpg"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>