<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry not retain var</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/2f7caec66a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/2f7caec66a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/2f7caec66a/</id><updated>2021-05-18T07:44:29.194000Z</updated><subtitle>Recent posts to Raspberry not retain var</subtitle><entry><title>Raspberry not retain var</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/2f7caec66a/?limit=250#7f64" rel="alternate"/><published>2021-05-18T07:44:29.194000Z</published><updated>2021-05-18T07:44:29.194000Z</updated><author><name>aliazzz</name><uri>https://forge.codesys.com/u/aliazzz/</uri></author><id>https://forge.codesys.comc48753b77309f51a55c120e6a3d9dd9f3069efa5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Without extra soft or hardware the Pi will never save retain variables out of its own.&lt;/p&gt;
&lt;p&gt;Either a non volatile ram hardware (nvram) solution is needed. I have built a special library for an RTC chip which has also NVRAM support or you could use to have a working UPS (uninterruptable power supply) connected to the pi. Then the runtime store the retain data to a file on exit of Linux (a graceful shutdown is needed) and restore them on restart. &lt;/p&gt;
&lt;p&gt;So without additional effort it won't work as the Pi has never been designed to support this via hardware.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry not retain var</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/2f7caec66a/?limit=25#4f74" rel="alternate"/><published>2021-05-18T07:07:34.871000Z</published><updated>2021-05-18T07:07:34.871000Z</updated><author><name>masterofplc</name><uri>https://forge.codesys.com/u/masterofplc/</uri></author><id>https://forge.codesys.comf2cdf41e63bb2b18d96cc0ab485b4850884241d5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Goodmorning.&lt;br/&gt;
I have a project on a raspberry pi 3. When reboot or turn of the raspberry, values of retain var are lost.&lt;br/&gt;
the codesys version is 3.5 sp16 patch 4.&lt;br/&gt;
The runtime raspberry is 4.0.1.0&lt;br/&gt;
I cheked in the application folder on raspberry,the .ret file dont exist.&lt;br/&gt;
if I issue the save command on the shell the file is created.&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>