<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Saving data in powerfail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/</id><updated>2021-11-10T06:33:39.166000Z</updated><subtitle>Recent posts to Saving data in powerfail</subtitle><entry><title>Saving data in powerfail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/?limit=25#4700" rel="alternate"/><published>2021-11-10T06:33:39.166000Z</published><updated>2021-11-10T06:33:39.166000Z</updated><author><name>jauer</name><uri>https://forge.codesys.com/u/jauer/</uri></author><id>https://forge.codesys.comd2f2ccd52ac602b68fa082d635e5c4e435c20d8b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm declaring them exactly like explained in the file you mentioned...&lt;/p&gt;
&lt;p&gt;But if I watch the usage of the memory in the development system, the size of the retain memory stays the same.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Saving data in powerfail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/?limit=25#39f7" rel="alternate"/><published>2021-11-09T19:30:24.669000Z</published><updated>2021-11-09T19:30:24.669000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.com9aa153575eb365309f6a73c74fe15ded13253046</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How are you declaring your variables in your project?&lt;br/&gt;
&lt;a href="https://help.codesys.com/webapp/_cds_setting_up_persistence;product=codesys;version=3.5.17.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_cds_setting_up_persistence;product=codesys;version=3.5.17.0&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Saving data in powerfail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/?limit=25#d722" rel="alternate"/><published>2021-11-09T08:51:11.330000Z</published><updated>2021-11-09T08:51:11.330000Z</updated><author><name>jauer</name><uri>https://forge.codesys.com/u/jauer/</uri></author><id>https://forge.codesys.combd7091c23a1b9c14128bf16c384363ae8b76fb4f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your response &lt;a class="user-mention" href="/u/i-campbell/"&gt;@i-campbell&lt;/a&gt;. Unfortunately I wasn´t able to continue with my work until now.&lt;/p&gt;
&lt;p&gt;I added the settings in my config file but there is no difference to before and the variables get written in the normal memory.&lt;br/&gt;
I tried it with writing in the CODESYSControl.cfg and in the CODESYSControl_User.cfg but in both cases it didn't work. After implementing the settings I rebooted the system and I tried different address areas (beginning of the NVRAM and somewhere in the middle of the NVRAM-address area).&lt;br/&gt;
Did I forget something?&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;My Code:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[CmpRetain]&lt;/span&gt;&lt;br/&gt;
Retain.SRAM.Size = 0x20000&lt;br/&gt;
Retain.SRAM.Address = 0x9A8E2A4&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[CmpApp]&lt;/span&gt;&lt;br/&gt;
RetainType.Applications = InSRAM&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Saving data in powerfail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/?limit=25#519d" rel="alternate"/><published>2021-09-24T08:42:23.008000Z</published><updated>2021-09-24T08:42:23.008000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.coma0c85f738c1251a90e20a079b1d84fc7738fd749</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You need these settings in your &lt;a class="" href="https://faq.codesys.com/display/CDSFAQ/Location+of+the+configuration+file" rel="nofollow"&gt;config file&lt;/a&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[CmpRetain]&lt;/span&gt;
&lt;span class="na"&gt;Retain.SRAM.Size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x100000 &lt;/span&gt;
&lt;span class="na"&gt;Retain.SRAM.Address&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x30000000&lt;/span&gt;

&lt;span class="k"&gt;[CmpApp]&lt;/span&gt;
&lt;span class="na"&gt;RetainType.Applications&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;InSRAM&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;the address and size should match your actual NVRAM.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Saving data in powerfail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/?limit=25#ff43" rel="alternate"/><published>2021-09-24T06:37:59.233000Z</published><updated>2021-09-24T06:37:59.233000Z</updated><author><name>djole01</name><uri>https://forge.codesys.com/u/djole01/</uri></author><id>https://forge.codesys.comf8f17b1071994e1f55fe0c3da67ce3950f7ecb32</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_vartypes_retain_persistent/" rel="nofollow"&gt;https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_vartypes_retain_persistent/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Saving data in powerfail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/170a3edf96/?limit=25#ae63" rel="alternate"/><published>2021-09-24T06:20:02.541000Z</published><updated>2021-09-24T06:20:02.541000Z</updated><author><name>jauer</name><uri>https://forge.codesys.com/u/jauer/</uri></author><id>https://forge.codesys.comffdf406f527cfdbda660670825f48c09694c73c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I´m developing a hardware-project with CODESYS implementation and I need to ensure that the data on my PLC-hardware is saved in the case of a powerfail. I know that this works with a FRAM or a UPS and I have implemented both on my hardware. I want to use a real-time Linux OS and I have an ARM processor so I use the "CODESYS Control for Linux ARM" Runtime.&lt;/p&gt;
&lt;p&gt;My question is how I´m able to adjust that the persistent variables are saved on the FRAM? Do I only have to adjust it in Linux and the Runtime communicates with it or do I have to adjust something in the Runtime settings so that persistent variables are getting a own address?&lt;/p&gt;
&lt;p&gt;Thank you for your answers.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>