<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Turn off raspberry</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/39c15cd7c9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/39c15cd7c9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/39c15cd7c9/</id><updated>2022-07-05T18:21:36.515000Z</updated><subtitle>Recent posts to Turn off raspberry</subtitle><entry><title>Turn off raspberry</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/39c15cd7c9/?limit=25#2855" rel="alternate"/><published>2022-07-05T18:21:36.515000Z</published><updated>2022-07-05T18:21:36.515000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com8b5ffb716f85dbe077020dce21d7eea5a71e920a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;remove the sudo!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Turn off raspberry</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/39c15cd7c9/?limit=25#86fe" rel="alternate"/><published>2022-07-05T17:57:28.387000Z</published><updated>2022-07-05T17:57:28.387000Z</updated><author><name>kleeswi</name><uri>https://forge.codesys.com/u/kleeswi/</uri></author><id>https://forge.codesys.com0138453d52e7d6ec14ae7fa7af70079746b98f4a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For me this does not work. I think my Raspberry Pi does restart, but not Codesys. I even cannot access the Pi via ssh or other remote communication protocols! I have to reconfigure the SD card of the Pi that it works again.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Turn off raspberry</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/39c15cd7c9/?limit=25#b02c" rel="alternate"/><published>2020-02-27T16:37:17.586000Z</published><updated>2020-02-27T16:37:17.586000Z</updated><author><name>bisquit</name><uri>https://forge.codesys.com/u/bisquit/</uri></author><id>https://forge.codesys.com14edea7964718fe666a1f850c045936d4fbbba88</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;pawel3410 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
&lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247&amp;amp;p=12699#p12699" rel="nofollow"&gt;http://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247&amp;amp;p=12699#p12699&lt;/a&gt;&lt;br/&gt;
I use this:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;PROGRAM&lt;/span&gt; &lt;span class="nv"&gt;power&lt;/span&gt;
&lt;span class="nv"&gt;VAR&lt;/span&gt;
   &lt;span class="nb"&gt;Result&lt;/span&gt;: &lt;span class="nv"&gt;UDINT&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_VAR&lt;/span&gt;
&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;GlobalVariables&lt;/span&gt;.&lt;span class="nv"&gt;resetFromVISU&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
   &lt;span class="nv"&gt;GlobalVariables&lt;/span&gt;.&lt;span class="nv"&gt;power_led&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;_&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;pszComand&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sudo reboot&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt; , &lt;span class="nv"&gt;pResult&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;ADR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_IF&lt;/span&gt;
&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;GlobalVariables&lt;/span&gt;.&lt;span class="nv"&gt;poweroffFromVISU&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
   &lt;span class="nv"&gt;GlobalVariables&lt;/span&gt;.&lt;span class="nv"&gt;power_led&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;_&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;pszComand&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sudo poweroff&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt; , &lt;span class="nv"&gt;pResult&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;ADR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysProcess]&lt;/span&gt;
&lt;span class="na"&gt;Command&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;AllowAll&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;in CODESYSControl_User.cfg file&lt;br/&gt;
I hope this will help.&lt;br/&gt;
When I write in code syntax &lt;em&gt;SysProcess_Execute_Command&lt;/em&gt; after submit I see only "_" why?&lt;/p&gt;
&lt;p&gt;I've got it all working now.&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Turn off raspberry</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/39c15cd7c9/?limit=25#8d60" rel="alternate"/><published>2020-02-27T16:37:15.105000Z</published><updated>2020-02-27T16:37:15.105000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.com2a3a88306a36cfb333e9c825473f98bd32c18662</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247&amp;amp;x=12699&amp;amp;p=12699&amp;amp;lan=en" rel="nofollow"&gt;http://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247&amp;amp;p=12699#p12699&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I use this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;PROGRAM&lt;/span&gt; &lt;span class="nv"&gt;power&lt;/span&gt;
&lt;span class="nv"&gt;VAR&lt;/span&gt;
   &lt;span class="nb"&gt;Result&lt;/span&gt;: &lt;span class="nv"&gt;UDINT&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_VAR&lt;/span&gt;
&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;GlobalVariables&lt;/span&gt;.&lt;span class="nv"&gt;resetFromVISU&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
   &lt;span class="nv"&gt;GlobalVariables&lt;/span&gt;.&lt;span class="nv"&gt;power_led&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;_&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;pszComand&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sudo reboot&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt; , &lt;span class="nv"&gt;pResult&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;ADR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_IF&lt;/span&gt;
&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;GlobalVariables&lt;/span&gt;.&lt;span class="nv"&gt;poweroffFromVISU&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
   &lt;span class="nv"&gt;GlobalVariables&lt;/span&gt;.&lt;span class="nv"&gt;power_led&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;_&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;pszComand&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sudo poweroff&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt; , &lt;span class="nv"&gt;pResult&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;ADR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysProcess]&lt;/span&gt;
&lt;span class="na"&gt;Command&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;AllowAll&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;in CODESYSControl_User.cfg file&lt;br/&gt;
I hope this will help.&lt;/p&gt;
&lt;p&gt;When I write in code syntax &lt;em&gt;SysProcess_Execute_Command&lt;/em&gt; after submit I see only "_" why?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bez tytułu.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3734"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Turn off raspberry</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/39c15cd7c9/?limit=25#43ef" rel="alternate"/><published>2020-02-27T16:37:14.240000Z</published><updated>2020-02-27T16:37:14.240000Z</updated><author><name>bisquit</name><uri>https://forge.codesys.com/u/bisquit/</uri></author><id>https://forge.codesys.coma3ec8b948f528dcc9ae5bb9656348e3f34845df8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good morning,&lt;/p&gt;
&lt;p&gt;I'm pretty new to codesys and the programming side of raspberry.&lt;/p&gt;
&lt;p&gt;I'm trying to power off my raspberry using my HMI. &lt;br/&gt;
I've found some other examples, but I couldnt get them to work:&lt;/p&gt;
&lt;p&gt;l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?t=8638" rel="nofollow"&gt;viewtopic.php?t=8638&lt;/a&gt; l             - Keep getting syntax errors&lt;br/&gt;
 l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=21&amp;amp;t=5714" rel="nofollow"&gt;viewtopic.php?f=21&amp;amp;t=5714&lt;/a&gt; l    - No errors, it just doesnt power off&lt;/p&gt;
&lt;p&gt;I'm using ladder logic to program the raspberry.&lt;/p&gt;
&lt;p&gt;Can somebody explain how to do it?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>