<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Memory of a PLC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/616dbe0f47/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/616dbe0f47/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/616dbe0f47/</id><updated>2020-02-27T13:58:28.482000Z</updated><subtitle>Recent posts to Memory of a PLC</subtitle><entry><title>Memory of a PLC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/616dbe0f47/?limit=25#0185" rel="alternate"/><published>2020-02-27T13:58:28.482000Z</published><updated>2020-02-27T13:58:28.482000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.comb642a6d4cccf9ffe510a27c4eedaa12f2fc01b1d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello there,&lt;/p&gt;
&lt;p&gt;can't say about memory management of codesys runtime, but you should know that PLC is not made of dynamic memory allocation (excluding NEW keyword).&lt;br/&gt;
So if your overall memory consumption is too high, to cut into your code variable définitions would be a way too reduce memory imprint.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
dFx&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Memory of a PLC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/616dbe0f47/?limit=25#e0ba" rel="alternate"/><published>2020-02-27T13:58:28.251000Z</published><updated>2020-02-27T13:58:28.251000Z</updated><author><name>Zavakh</name><uri>https://forge.codesys.com/u/zavakh/</uri></author><id>https://forge.codesys.com5d9e0ded352b271c048d4b25e1123c3eeb596fd8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm working righ now on a project which involves executing aplication on a RPi then I connect with my laptop using OPC and storing data in MySQL. The data I store is time of each process (I did a simple simulation of a line in which I replaced all unnecessary programs with timers of random value (using Oscat lib)). &lt;br/&gt;
My goal is to free some of codesys memory usage somehow after each cycle. I figured out that probably the only way to save some space while executing a program is to clear value of variables after the whole cycle is done. Here's my question, how? Are they saved in any file on a device and I can remove it with python or maybe it is possible to do that form a codesys level? Mb there's another option which I don't know. &lt;br/&gt;
I'd appreciate any type of help.&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>