<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to load/save trend file on boot / power off?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8ad90b79b4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8ad90b79b4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/8ad90b79b4/</id><updated>2020-02-27T13:55:56.889000Z</updated><subtitle>Recent posts to How to load/save trend file on boot / power off?</subtitle><entry><title>How to load/save trend file on boot / power off?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8ad90b79b4/?limit=25#a920" rel="alternate"/><published>2020-02-27T13:55:56.889000Z</published><updated>2020-02-27T13:55:56.889000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com77ae2b3d015ba339f81a18d7ca32222091714d9e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can use fb_init and fb_exit of a funtion block&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to load/save trend file on boot / power off?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8ad90b79b4/?limit=25#7cd8" rel="alternate"/><published>2020-02-27T13:55:56.628000Z</published><updated>2020-02-27T13:55:56.628000Z</updated><author><name>k2teknik</name><uri>https://forge.codesys.com/u/k2teknik/</uri></author><id>https://forge.codesys.com49cfb4a5d4b34c1d0a4b0b2fcefcd47b3bf7ac61</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I would like to save my trend file so when the PLC boot up I then can load the old trend file, is there any way to do this?&lt;br/&gt;
I can give the file a name (I use "/home/pi/tend.txt"), but I have some problems to make a bool variable (that goes true at boot and power off) that I can use to trig the load/save.&lt;/p&gt;
&lt;p&gt;The help write about some system events called "PrepareStart" and "PrepareStop", but I get no chance to use these as triggers for an event.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>