<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to AC Persistence - values are not read from file during start?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2cc46f1e0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2cc46f1e0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/e2cc46f1e0/</id><updated>2025-09-03T16:07:39.777000Z</updated><subtitle>Recent posts to AC Persistence - values are not read from file during start?</subtitle><entry><title>AC Persistence - values are not read from file during start?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2cc46f1e0/?limit=25#5cd0" rel="alternate"/><published>2025-09-03T16:07:39.777000Z</published><updated>2025-09-03T16:07:39.777000Z</updated><author><name>pernockham</name><uri>https://forge.codesys.com/u/pernockham/</uri></author><id>https://forge.codesys.com6f58f92b53b4e08a136053577a6512636bf6cb7c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For the protocol. What also works is to do the process via ssh (using runtime on linux)&lt;/p&gt;
&lt;p&gt;sudo /etc/init.d/codesyscontrol stop&lt;br/&gt;
modify the persistence file values&lt;br/&gt;
sudo /etc/init.d/codesyscontrol start&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>AC Persistence - values are not read from file during start?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2cc46f1e0/?limit=25#695c" rel="alternate"/><published>2025-09-03T07:50:01.575000Z</published><updated>2025-09-03T07:50:01.575000Z</updated><author><name>pernockham</name><uri>https://forge.codesys.com/u/pernockham/</uri></author><id>https://forge.codesys.comaa9dab7f2039856f42be970346a1e649c47481d0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I swear I tested this like 20 times yesterday without success. Repeated it today and it works. Maybe the system needed a "real" power reboot? &lt;/p&gt;
&lt;p&gt;To note. To make a manual edit of a variable I tried some different approaches this is what worked for me. &lt;/p&gt;
&lt;p&gt;"system/online edited"&lt;br/&gt;
gvl_var.example_variable REAL:F16#2FFB334H-4 767.7&lt;/p&gt;
&lt;p&gt;"manually edited" (with runtime stopped followed by a "cold start" to read from file)&lt;br/&gt;
gvl_var.example_variable REAL:790.1&lt;br/&gt;
(the system will use the manual value but will not set an equivalent "hex" value until next online edit/write cycle)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>AC Persistence - values are not read from file during start?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2cc46f1e0/?limit=25#1733" rel="alternate"/><published>2025-09-02T14:03:50.278000Z</published><updated>2025-09-02T14:03:50.278000Z</updated><author><name>pernockham</name><uri>https://forge.codesys.com/u/pernockham/</uri></author><id>https://forge.codesys.com0ebc9c70f99cd80aaa515c3ed6b079f39f0f75af</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Im struggling with the AC Persistence. &lt;/p&gt;
&lt;p&gt;AC persistence seems to work for any variable that is changed online and values are kept during reboot. However, if I try to edit the persistence files offline or replace the persistence files with a previously downloaded older persistence file (with modified values), the online value will not follow, as if the system did not at all read the file at boot? &lt;/p&gt;
&lt;p&gt;My testing sequence. &lt;br/&gt;
- Edit a the value of a persistenced variable (with xSaveOnChange = True)&lt;br/&gt;
- Save/download &lt;a class="alink" href="/forge/talk-ru/1/"&gt;[1]&lt;/a&gt; the associated persistence file, (and confirm the value has changed).&lt;br/&gt;
- Edit the value online for a second time &lt;a class="alink" href="/forge/talk-ru/2/"&gt;[2]&lt;/a&gt;. &lt;br/&gt;
- Stop runtime&lt;br/&gt;
- Replace (upload) the persistence file with my previously downloaded file &lt;a class="alink" href="/forge/talk-ru/1/"&gt;[1]&lt;/a&gt;.&lt;br/&gt;
- Coldstart/Warmstart/Start runtime&lt;br/&gt;
- Whatever Im trying the value of my persistence variable will always be equal to that of my second edit &lt;a class="alink" href="/forge/talk-ru/2/"&gt;[2]&lt;/a&gt; as if the file is not read/considered during boot.&lt;/p&gt;
&lt;p&gt;What am I doing wrong? &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>