<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Retain Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/</id><updated>2020-02-27T14:23:31.689000Z</updated><subtitle>Recent posts to Retain Variables</subtitle><entry><title>Retain Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/?limit=25#147e" rel="alternate"/><published>2020-02-27T14:23:31.689000Z</published><updated>2020-02-27T14:23:31.689000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com9b07861dae1512f7acd03b69d2b64d8a6c4495b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Just use the Persistent variable list (add it to your application). This will write it to the battery backup memory.&lt;br/&gt;
The vendor of the PLC can tell you the details about the size and whether this is supported.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/?limit=25#9312" rel="alternate"/><published>2020-02-27T14:23:30.357000Z</published><updated>2020-02-27T14:23:30.357000Z</updated><author><name>yue-qi-qi</name><uri>https://forge.codesys.com/u/yue-qi-qi/</uri></author><id>https://forge.codesys.comd283755370210b9ade7fc49b343c77478fe06918</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How to store or restore retain variables in a PLC target where there is no such Os system as WinCE or linux,that is there is no file system?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/?limit=25#9aba" rel="alternate"/><published>2020-02-27T14:23:29.923000Z</published><updated>2020-02-27T14:23:29.923000Z</updated><author><name>yue-qi-qi</name><uri>https://forge.codesys.com/u/yue-qi-qi/</uri></author><id>https://forge.codesys.com891186f458bbc8d013a26774194d389ca2723601</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TimvH hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
"CmpApp.library":&lt;br/&gt;
AppStoreRetainsInFile() and&lt;br/&gt;
AppRestoreRetainsFromFile()&lt;br/&gt;
Save should always be done after change of a retain value, restore after boot up.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr/&gt;
&lt;p&gt;Another option is to use the Application Composer for this.&lt;br/&gt;
It takes some time to configure, but when this is done, you have a very flexible solution to store and restore variables to/from various files.&lt;/p&gt;
&lt;p&gt;============================================&lt;br/&gt;
I wander whether it works in a PLC in which there is no OS system such  as WinCE or linux,that is no file system.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/?limit=25#7a6a" rel="alternate"/><published>2020-02-27T14:23:29.510000Z</published><updated>2020-02-27T14:23:29.510000Z</updated><author><name>yue-qi-qi</name><uri>https://forge.codesys.com/u/yue-qi-qi/</uri></author><id>https://forge.codesys.com543c9596d1e3db621845cde491d39a329b50012a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TimvH hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
"CmpApp.library":&lt;br/&gt;
AppStoreRetainsInFile() and&lt;br/&gt;
AppRestoreRetainsFromFile()&lt;br/&gt;
Save should always be done after change of a retain value, restore after boot up.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr/&gt;
&lt;p&gt;Another option is to use the Application Composer for this.&lt;br/&gt;
It takes some time to configure, but when this is done, you have a very flexible solution to store and restore variables to/from various files.&lt;/p&gt;
&lt;p&gt;==========================================&lt;br/&gt;
Yes, it works! Thank!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/?limit=25#6dce" rel="alternate"/><published>2020-02-27T14:23:28.301000Z</published><updated>2020-02-27T14:23:28.301000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comff33ff086f20e0bf99da19bca0d82dac49f6afcb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;"CmpApp.library":&lt;br/&gt;
AppStoreRetainsInFile() and&lt;br/&gt;
AppRestoreRetainsFromFile()&lt;/p&gt;
&lt;p&gt;Save should always be done after change of a retain value, restore after boot up.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Another option is to use the Application Composer for this.&lt;br/&gt;
It takes some time to configure, but when this is done, you have a very flexible solution to store and restore variables to/from various files.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/?limit=25#d117" rel="alternate"/><published>2020-02-27T14:23:27.881000Z</published><updated>2020-02-27T14:23:27.881000Z</updated><author><name>yue-qi-qi</name><uri>https://forge.codesys.com/u/yue-qi-qi/</uri></author><id>https://forge.codesys.coma8948843a797f7d47a68a9a346dccc11e2dc6106</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;By the way, in CoDeSys v2.3, there is SysRestoreRetains() and SysSaveRetains() functions to call.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68601ade64/?limit=25#a47d" rel="alternate"/><published>2020-02-27T14:23:27.442000Z</published><updated>2020-02-27T14:23:27.442000Z</updated><author><name>yue-qi-qi</name><uri>https://forge.codesys.com/u/yue-qi-qi/</uri></author><id>https://forge.codesys.comb865d3acef1a83c926aa15f572b686e18724aa47</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We can define retain variables in global variable list. &lt;br/&gt;
Is there a way or a function to explicitly save retain variables to EEPROM or Flash memory that the CoDeSys application can call so that the program can save retain variables anytime when needed?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>