<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Update RPi Plc without Codesys Development System</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b4d387f2af/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b4d387f2af/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/b4d387f2af/</id><updated>2020-02-27T15:43:49.078000Z</updated><subtitle>Recent posts to Update RPi Plc without Codesys Development System</subtitle><entry><title>Update RPi Plc without Codesys Development System</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b4d387f2af/?limit=25#3b49" rel="alternate"/><published>2020-02-27T15:43:49.078000Z</published><updated>2020-02-27T15:43:49.078000Z</updated><author><name>pcpcdk</name><uri>https://forge.codesys.com/u/pcpcdk/</uri></author><id>https://forge.codesys.com86abeefe3565b7ec75e7b317388846b3294c650e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Viacheslav&lt;/p&gt;
&lt;p&gt;Nice Script, but how do you save the boot project as a PlcLogic.zip file.&lt;br/&gt;
I can only save the file as a Application.app file which I can not open as a zip-file ???&lt;br/&gt;
I am doing as discribed in the online help.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Create boot application.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3652"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Update RPi Plc without Codesys Development System</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b4d387f2af/?limit=25#58d2" rel="alternate"/><published>2020-02-27T15:43:48.219000Z</published><updated>2020-02-27T15:43:48.219000Z</updated><author><name>VincentGC</name><uri>https://forge.codesys.com/u/vincentgc/</uri></author><id>https://forge.codesys.com475454444543c1f838b78ca6cd997af9ff73abcf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;Sorry for the delay and but thank you for your answer.&lt;br/&gt;
I will try it soon when I have the opportunity.&lt;/p&gt;
&lt;p&gt;Vincent&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Update RPi Plc without Codesys Development System</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b4d387f2af/?limit=25#71c0" rel="alternate"/><published>2020-02-27T15:43:46.095000Z</published><updated>2020-02-27T15:43:46.095000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comb99984fa73d4a74f55a17dc774b051d3da87ee2b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
why not just use the official way to do this?&lt;/p&gt;
&lt;p&gt;sudo dpkg -i codesyscontrol_arm_raspberry_V3.5.12.0.de&lt;/p&gt;
&lt;p&gt;will update the plc runtime Version and bootprojekt runs imidiately in the new version... if already on the system running before the update&lt;br/&gt;
To update your application means-&amp;gt; update the content of /var/opt/codesys/PlcLogic/ (which are the application files)&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Update RPi Plc without Codesys Development System</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b4d387f2af/?limit=25#6b82" rel="alternate"/><published>2020-02-27T15:43:45.329000Z</published><updated>2020-02-27T15:43:45.329000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.coma630236e984053a194b655c22e2faaf6fc5f23be</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Viacheslav Mezentsev&lt;/p&gt;
&lt;p&gt;Yes, it is possible. You need something like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;\#&lt;span class="o"&gt;!/&lt;/span&gt;&lt;span class="nv"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;bash&lt;/span&gt;
&lt;span class="nv"&gt;CURRDIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;`&lt;span class="k"&gt;dirname&lt;/span&gt; &lt;span class="mh"&gt;$0&lt;/span&gt;`
&lt;span class="nv"&gt;systemctl&lt;/span&gt; &lt;span class="nv"&gt;stop&lt;/span&gt; &lt;span class="nv"&gt;codesyscontrol&lt;/span&gt;
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nv"&gt;kill&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt; `&lt;span class="nv"&gt;pidof&lt;/span&gt; &lt;span class="nv"&gt;codesyscontrol&lt;/span&gt;` &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;dev&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;null&lt;/span&gt;&lt;span class="c1"&gt;; do sleep 1; done&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;dir&lt;/span&gt; &lt;span class="nv"&gt;in&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;var&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;opt&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;codesys&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nv"&gt;PlcLogic&lt;/span&gt;&lt;span class="cm"&gt;/*; do&lt;/span&gt;
&lt;span class="cm"&gt;    [ -z "${dir##*trend*}" ] &amp;amp;&amp;amp; continue&lt;/span&gt;
&lt;span class="cm"&gt;    rm -rf "$dir"&lt;/span&gt;
&lt;span class="cm"&gt;done&lt;/span&gt;
&lt;span class="cm"&gt;if [ -f $CURRDIR/PlcLogic.zip ]; then unzip $CURRDIR/PlcLogic.zip -qo -d /var/opt/codesys; fi&lt;/span&gt;
&lt;span class="cm"&gt;sync&lt;/span&gt;
&lt;span class="cm"&gt;systemctl start codesyscontrol&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;PlcLogic.zip created manually using Codesys (save boot application).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Update RPi Plc without Codesys Development System</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b4d387f2af/?limit=25#5b42" rel="alternate"/><published>2020-02-27T15:43:43.199000Z</published><updated>2020-02-27T15:43:43.199000Z</updated><author><name>VincentGC</name><uri>https://forge.codesys.com/u/vincentgc/</uri></author><id>https://forge.codesys.com0240e59719e4b3721041d874ef35acf1c80a4287</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have several RPi running Codesys and I would like to know if I could update my PLC software (running with codesyscontrol service) without the Codesys Development System on my working station.&lt;br/&gt;
The idea is to run a shell script on the RPi that stop codesyscontrol, then it could copy some files to change the PLC software (or something else) and then restart codesyscontrol service.&lt;/p&gt;
&lt;p&gt;Is it possible?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vincent&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>