<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to how do I save real values every houre</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/ee243628b6/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/ee243628b6/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/ee243628b6/</id><updated>2020-02-27T21:57:25.259000Z</updated><subtitle>Recent posts to how do I save real values every houre</subtitle><entry><title>how do I save real values every houre</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ee243628b6/?limit=25#6e13" rel="alternate"/><published>2020-02-27T21:57:25.259000Z</published><updated>2020-02-27T21:57:25.259000Z</updated><author><name>espenbo</name><uri>https://forge.codesys.com/u/espenbo/</uri></author><id>https://forge.codesys.com836ef71f70a6e83df1a23ce0c7f81c84a8f33172</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;br/&gt;
I think I found an easier way and bring out the effects of each hour. And take care of the highest impact measured.&lt;br/&gt;
But I have not found any good solution and take care of the daily value so I can find the 3 highest values ​​in months. Or how to save the months view.&lt;br/&gt;
I thought ARRAY can be used. Also had been fine and could list the date, time measurements were from.&lt;/p&gt;
&lt;p&gt;Do you have any good ideas? I have tested some, and tryied to find som more information. &lt;/p&gt;
&lt;p&gt;Here is a link to the program.&lt;br/&gt;
&lt;a class="" href="https://www.dropbox.com/.../8cdsdg07.../effektvokter3.pro.." rel="nofollow"&gt;https://www.dropbox.com/.../8cdsdg07... ... ter3.pro..&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Espen&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>how do I save real values every houre</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ee243628b6/?limit=25#6cd0" rel="alternate"/><published>2020-02-27T21:57:21.105000Z</published><updated>2020-02-27T21:57:21.105000Z</updated><author><name>espenbo</name><uri>https://forge.codesys.com/u/espenbo/</uri></author><id>https://forge.codesys.com07a95c79da2bc9781d21019e9794087c86f501b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
Thanks for your replay.&lt;/p&gt;
&lt;p&gt;I now have a WAGO 750-849. Otherwise, I tend to use WAGO 750-831.&lt;br/&gt;
So it should work on both PLCs.&lt;/p&gt;
&lt;p&gt;I read the documentation codesys_network_121_hf1&lt;br/&gt;
and thought DLOG_REAL can be used.&lt;br/&gt;
But when I enter lib file and compiles then I get an error message.&lt;br/&gt;
&amp;lt;maximum of="" is="" number="" pous="" compile="" (1023)="" aborted="" exceeded=""&amp;gt;&amp;lt;/maximum&amp;gt;&lt;/p&gt;
&lt;p&gt;I changed the settings in &amp;lt;of target=""&amp;gt; maximum number of Pous 2023&amp;gt;&lt;br/&gt;
When I get errors&lt;br/&gt;
BASE64_DECODE_STR&lt;br/&gt;
BASE64_DECODE_STREAM&lt;br/&gt;
DLOG_DT&lt;br/&gt;
DLOG_FILE_TO_SMTP&lt;br/&gt;
...&lt;br/&gt;
XML_READER&amp;lt;/of&amp;gt;&lt;/p&gt;
&lt;p&gt;I tried and create a new small program. With only a few blocks.&lt;br/&gt;
I increased max POUs and it gets compiled but with error on memory.&lt;br/&gt;
When I chose 'exclude unused' and got compiled and downloaded.&lt;/p&gt;
&lt;p&gt;But how do I get used values from DLOG on.&lt;br/&gt;
Is there a better approach?&lt;/p&gt;
&lt;p&gt;Espen (Newbie)&lt;/p&gt;
&lt;p&gt;(Does this also as sign so I know what I've done and how I got it fixed.)&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2305" rel="nofollow"&gt;DLOGTEST.pro &lt;span&gt;&lt;span&gt;[361.03 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>how do I save real values every houre</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ee243628b6/?limit=25#b2e5" rel="alternate"/><published>2020-02-27T21:57:19.587000Z</published><updated>2020-02-27T21:57:19.587000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comca79262c2974eb23abe742eb1f8002a309a77ecd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;what PLC are you using, and where do you like to save the data.&lt;br/&gt;
and indeed have a look in oscat network.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>how do I save real values every houre</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ee243628b6/?limit=25#d3b6" rel="alternate"/><published>2020-02-27T21:57:18.082000Z</published><updated>2020-02-27T21:57:18.082000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com741938615bb5f4b4855f25ce6e9f24cda9832a07</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; AntonZ&lt;/p&gt;
&lt;p&gt;Since you are already using Oscat basic, I suggest you look into the Oscat Network lib for this. It has the DATA_LOGGER component to store data. You can store in a CSV file on the PLC itself with the DLOG_STORE_FILE_CSV component. Or HTML, XML. Store on an SD card if your PLC has this. Use DLOG_FILE_TO_SMTP or DLOG_FILE_TO_FTP to have your PLC send the file to an email address or upload to an FTP server.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>how do I save real values every houre</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ee243628b6/?limit=25#2c13" rel="alternate"/><published>2020-02-27T21:57:13.702000Z</published><updated>2020-02-27T21:57:13.702000Z</updated><author><name>espenbo</name><uri>https://forge.codesys.com/u/espenbo/</uri></author><id>https://forge.codesys.com3f8c65556a7279a6e64454684608d172c88d9f80</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
I try and save real assets from an energy meter.&lt;br/&gt;
But I'm not sure how I can do it.&lt;/p&gt;
&lt;p&gt;I've used oscat_basic.lib and METER, METER_STAT to see my meter values. But how can I save real values every hour.&lt;/p&gt;
&lt;p&gt;I want to log kW top average value for every houre.&lt;/p&gt;
&lt;p&gt;Duration in minutes: M1, M2, M3, M4 ... M60&lt;br/&gt;
kW value: kW1, kW2, KW3, kW4 ... kW60&lt;br/&gt;
Average hourly kW value: H1, H2, H3, H4 ... H24&lt;/p&gt;
&lt;p&gt;Then I want to save the 3 highest values for the months.&lt;br/&gt;
3 highest values in months: Mont_1_1, Mont_1_2, Mont_1_3, Mont_2_1, Mont_2_2, Mont_3_3 ... Mont_12_1, Mont_12_2, Mont_12_3&lt;/p&gt;
&lt;p&gt;When a new year starts the values for the months will be overwrithen.&lt;/p&gt;
&lt;p&gt;I need some help to start on how to do this. An example on how to store a value in specified intervals would be grate, what function blocks should I use? Please try to explain inn FBD or CFC.&lt;/p&gt;
&lt;p&gt;Thanks for all the help&lt;/p&gt;
&lt;p&gt;Espen (newbie)&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2300" rel="nofollow"&gt;Effektvokter.zip &lt;span&gt;&lt;span&gt;[617.58 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>