<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Overloading a function block for different input types</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/f273a4dba3/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/f273a4dba3/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/f273a4dba3/</id><updated>2020-02-27T22:37:13.488000Z</updated><subtitle>Recent posts to Overloading a function block for different input types</subtitle><entry><title>Overloading a function block for different input types</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f273a4dba3/?limit=25#b270" rel="alternate"/><published>2020-02-27T22:37:13.488000Z</published><updated>2020-02-27T22:37:13.488000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comfb5d5c390d14b6b77ab134137b9b36b710392c54</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;you can use a pointer to the input and jst grab anything that is on your pointer.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Overloading a function block for different input types</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f273a4dba3/?limit=25#d676" rel="alternate"/><published>2020-02-27T22:37:11.912000Z</published><updated>2020-02-27T22:37:11.912000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com7bb63b584eb8c2f5f4fea2a91f2a34fe8f61710a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Use input type any.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Overloading a function block for different input types</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f273a4dba3/?limit=25#dd2a" rel="alternate"/><published>2020-02-27T22:37:07.523000Z</published><updated>2020-02-27T22:37:07.523000Z</updated><author><name>ert</name><uri>https://forge.codesys.com/u/ert/</uri></author><id>https://forge.codesys.comfe3fb568d931a2bf0f22e3af6c074d000f181d65</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Your idea is completely opposite to my concept. If I wanted to do that, I would rather make multiple function blocks, one per each data type.&lt;br/&gt;
But really the case is to have one function or function block that serves multiple data types, because the function/function block will not know which data is passed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Overloading a function block for different input types</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f273a4dba3/?limit=25#766d" rel="alternate"/><published>2020-02-27T22:37:05.908000Z</published><updated>2020-02-27T22:37:05.908000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comce7279cce75e859275d9f959e8750d2458aa54f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can make a function block with several inputs of different types, and internally knot them to something making sense, but it is impossible that one input accepts different types of variables.&lt;/p&gt;
&lt;p&gt;then it is just a matter of correct connecting, and you will have only one type of FB.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Overloading a function block for different input types</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f273a4dba3/?limit=25#725a" rel="alternate"/><published>2020-02-27T22:37:01.483000Z</published><updated>2020-02-27T22:37:01.483000Z</updated><author><name>ert</name><uri>https://forge.codesys.com/u/ert/</uri></author><id>https://forge.codesys.com60ca4fb169f50f9dc9bb18f6646bdc582fb5aa81</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
Is there a possibility to overload a function block to accept a REAL, an INT or a BOOL variable type input?&lt;br/&gt;
I mean 'one block to rule them all', so that no different FB names are required.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>