<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Newbe need help to understand memory usage in Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cdb64966ee/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cdb64966ee/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/cdb64966ee/</id><updated>2020-02-27T13:50:04.253000Z</updated><subtitle>Recent posts to Newbe need help to understand memory usage in Codesys</subtitle><entry><title>Newbe need help to understand memory usage in Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cdb64966ee/?limit=25#3efb" rel="alternate"/><published>2020-02-27T13:50:04.253000Z</published><updated>2020-02-27T13:50:04.253000Z</updated><author><name>rickj</name><uri>https://forge.codesys.com/u/rickj/</uri></author><id>https://forge.codesys.com01a4441a5f93bbc1c150c44e9e9bb775851b0c34</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If the platform is PC based you are swimming in a vast sea of bytes and will take quite some time before you reach any shore. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Newbe need help to understand memory usage in Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cdb64966ee/?limit=25#016e" rel="alternate"/><published>2020-02-27T13:50:04.150000Z</published><updated>2020-02-27T13:50:04.150000Z</updated><author><name>sundbergad</name><uri>https://forge.codesys.com/u/sundbergad/</uri></author><id>https://forge.codesys.com0a6edf7ac68dfd4115cc98755dc3b79428e7b15e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi to myself &lt;/p&gt;
&lt;p&gt;I've managed to resolve my problem, as to understanding that: &lt;br/&gt;
I can have one implementation of my function block and &lt;/p&gt;
&lt;p&gt;I've also understood that I have to make input assignment to make a controlled usage, ie I'm creating my own datatype, make variables and configure them on startup and modify during runtime and use as input on function calls.&lt;/p&gt;
&lt;p&gt;What I don't understand sofar is how the memory usage is for my instances above. Will I run out of memory a.s.o.&lt;br/&gt;
Time will tell &lt;/p&gt;
&lt;p&gt;/a&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Newbe need help to understand memory usage in Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cdb64966ee/?limit=25#70bb" rel="alternate"/><published>2020-02-27T13:50:03.758000Z</published><updated>2020-02-27T13:50:03.758000Z</updated><author><name>sundbergad</name><uri>https://forge.codesys.com/u/sundbergad/</uri></author><id>https://forge.codesys.comb80566c720b745923497d6b68823c8a8969ab738</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi guys, I'm new to this tool Codesys and is trying to create a plc system as the client and a pc as the server/controller of the PLC.&lt;br/&gt;
We have inherited an old 800M PLC system and I like to update and convert it into cheaper systems like AC500.&lt;/p&gt;
&lt;p&gt;Today, the system sends a ascii message to the plc and there it is parsed out using case .. of.&lt;br/&gt;
Now to my problem, I have multiple physical I/O's to controls ie valv/rods to handle and from the case I call to the valv/rod &lt;strong&gt;nr&lt;/strong&gt; to execute.&lt;/p&gt;
&lt;p&gt;I've created a function block using CFC. and a input-variable to call. Global variables for global usage&lt;/p&gt;
&lt;p&gt;The message (Telegram) is read, if any exists every 500ms,&lt;br/&gt;
The total executiontime for functionValv() is 70 sec.&lt;/p&gt;
&lt;p&gt;After 60 sec I want to place another call to  prepare execution of other programs/functions &lt;br/&gt;
first call  |----------------------------------------------------||-----other exec----|&lt;br/&gt;
 sec call                                                            |---------------------------------------------------||---&lt;/p&gt;
&lt;p&gt;In my CASE steg OF&lt;br/&gt;
1:&lt;br/&gt;
   functionValve( en:=Enabled, parameterArray:= parameters);&lt;/p&gt;
&lt;p&gt;2: &lt;br/&gt;
   functionValve( en:=Enabled, parameterArray:= parameters);&lt;br/&gt;
...&lt;/p&gt;
&lt;p&gt;OR&lt;br/&gt;
functionValv1:functionValv();&lt;br/&gt;
CASE steg OF&lt;br/&gt;
1:&lt;br/&gt;
   functionValve1( en:=Enabled, parameterArray:= parameters);&lt;/p&gt;
&lt;p&gt;2: &lt;br/&gt;
   functionValve2( en:=Enabled, parameterArray:= parameters);&lt;br/&gt;
...&lt;/p&gt;
&lt;p&gt;OR&lt;br/&gt;
funcArray&lt;span&gt;[1]&lt;/span&gt; := functionValv1;&lt;br/&gt;
funcArray &lt;span&gt;[2]&lt;/span&gt; functionValv2;&lt;/p&gt;
&lt;p&gt;CASE steg OF&lt;br/&gt;
1:&lt;br/&gt;
  funcArray&lt;a class=""&gt;steg&lt;/a&gt;;&lt;br/&gt;
2:&lt;br/&gt;
 funcArray&lt;a class=""&gt;steg&lt;/a&gt;;&lt;br/&gt;
....&lt;/p&gt;
&lt;p&gt;Now my question is, &lt;br/&gt;
What would be the working and best way to create the calls?&lt;/p&gt;
&lt;p&gt;/anders&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>