<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Datalogging</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e401d4770b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e401d4770b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/e401d4770b/</id><updated>2020-04-08T08:40:15.386000Z</updated><subtitle>Recent posts to Datalogging</subtitle><entry><title>Datalogging</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e401d4770b/?limit=25#6243/55ef" rel="alternate"/><published>2020-04-08T08:40:15.386000Z</published><updated>2020-04-08T08:40:15.386000Z</updated><author><name>dpetrutiu</name><uri>https://forge.codesys.com/u/dpetrutiu/</uri></author><id>https://forge.codesys.com1cfd25f24acf4cda0b01b8630207cafe04458e85</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Leifjoh, &lt;/p&gt;
&lt;p&gt;Can you let us know how you've made the totalizer? &lt;br/&gt;
Which time did you choose for the the integral function?&lt;br/&gt;
I'm struggling with this choosing a right time for L/min or L/sec. &lt;/p&gt;
&lt;p&gt;The integral functions that I'm using come from the Util.library or CAAMathematics and Basic.OSCAT&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Dragos&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Datalogging</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e401d4770b/?limit=25#f5c1" rel="alternate"/><published>2020-02-27T13:59:17.387000Z</published><updated>2020-02-27T13:59:17.387000Z</updated><author><name>leifjoh</name><uri>https://forge.codesys.com/u/leifjoh/</uri></author><id>https://forge.codesys.comc623a10b247c78ced84d5189c3f08c088d6da4b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for that answer Scott,&lt;br/&gt;
A much simpler solution to this and it works perfectly. &lt;br/&gt;
BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Datalogging</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e401d4770b/?limit=25#e2bc" rel="alternate"/><published>2020-02-27T13:59:17.091000Z</published><updated>2020-02-27T13:59:17.091000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com8e935a1fbfc86796108b82c8befd5e4d392fcc94</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;Move your variable to a VAR PERSISTENT. These are retained even after power cycle (if your hardware supports it). Then, your SD card is only a report of the value of your variable.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Datalogging</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e401d4770b/?limit=25#6243" rel="alternate"/><published>2020-02-27T13:59:16.197000Z</published><updated>2020-02-27T13:59:16.197000Z</updated><author><name>leifjoh</name><uri>https://forge.codesys.com/u/leifjoh/</uri></author><id>https://forge.codesys.comea8cd1ebb010b3b218680c74b40ff7824f4ac5bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have a question and hope someone can help me a bit with this.&lt;/p&gt;
&lt;p&gt;I have made type of Energy meter used for a water heat exchanger.&lt;br/&gt;
I measure flow (L/sec), temperature in and out of water to be heated.&lt;/p&gt;
&lt;p&gt;With these values I have made a totalizer with the Integral function.&lt;/p&gt;
&lt;p&gt;I am logging the values to a txt file on a SD card continuisly as such:&lt;br/&gt;
0 (kJ)&lt;br/&gt;
2&lt;br/&gt;
4&lt;br/&gt;
6&lt;br/&gt;
7&lt;br/&gt;
7&lt;br/&gt;
8&lt;br/&gt;
9 (kJ)&lt;/p&gt;
&lt;p&gt;The kilojoules are counting up and the newest logged value is the total kJ.&lt;/p&gt;
&lt;p&gt;The problem now is that if there is a power outage and the PLC starts at zero again.&lt;br/&gt;
I need to load the previous latest logged value to a variable and add it to the formula.&lt;/p&gt;
&lt;p&gt;Is there a way to load a value from the SD card? Or how would you solve this?&lt;/p&gt;
&lt;p&gt;Any input is very much appriciated &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>