<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Calling FB Multiple Times</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b55411aa4c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b55411aa4c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b55411aa4c/</id><updated>2020-02-27T22:52:02.327000Z</updated><subtitle>Recent posts to Calling FB Multiple Times</subtitle><entry><title>Calling FB Multiple Times</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b55411aa4c/?limit=25#b76d" rel="alternate"/><published>2020-02-27T22:52:02.327000Z</published><updated>2020-02-27T22:52:02.327000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.comacbb513cba5afd92f9038cbe30aff7153dddbad3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The code inside the FB is execute 3 times in this case. But there is no general problem in doing this.&lt;/p&gt;
&lt;p&gt;Sometimes it is senseful to call the same instance twice during a PLC cycle. But mostly it is simply a fault of the programmer who didn't understand the idea of building instances.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ralph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling FB Multiple Times</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b55411aa4c/?limit=25#d499" rel="alternate"/><published>2020-02-27T22:52:00.700000Z</published><updated>2020-02-27T22:52:00.700000Z</updated><author><name>ndzied1</name><uri>https://forge.codesys.com/u/ndzied1/</uri></author><id>https://forge.codesys.comcaacb52a40d4982ac52525516e582294666d0c5e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to help someone troubleshoot a system and noticed that they have the same instance of a function block called 3 times in a ladder diagram  POU.  &lt;/p&gt;
&lt;p&gt;Are their any inherent problems with doing this?  I have always called a FB only once and changed the input variables as required to do what I needed.  &lt;/p&gt;
&lt;p&gt;This is also in a POU with a pretty fast cyclic call rate.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>