<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to how detect unused inputs in functional blocks?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0410e3bed6/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0410e3bed6/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/0410e3bed6/</id><updated>2020-02-27T14:09:17.065000Z</updated><subtitle>Recent posts to how detect unused inputs in functional blocks?</subtitle><entry><title>how detect unused inputs in functional blocks?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0410e3bed6/?limit=25#8005" rel="alternate"/><published>2020-02-27T14:09:17.065000Z</published><updated>2020-02-27T14:09:17.065000Z</updated><author><name>rickj</name><uri>https://forge.codesys.com/u/rickj/</uri></author><id>https://forge.codesys.com9e0a6f2adc6e27bb3cfd40600e36a7733a5fff44</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The easiest way is to define the parameter to have an invalid initial value and then test for that the first time the block is executed.&lt;/p&gt;
&lt;p&gt;A little more involved method is to define the parameter as REFERENCE TO {type} and then on the first execution use the __ISVALIDREF() macro (not certain about spelling as I'm away from my codesys workstation) to determine if the input is connected to anything.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>how detect unused inputs in functional blocks?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0410e3bed6/?limit=25#ceb7" rel="alternate"/><published>2020-02-27T14:09:16.748000Z</published><updated>2020-02-27T14:09:16.748000Z</updated><author><name>diegovitor</name><uri>https://forge.codesys.com/u/diegovitor/</uri></author><id>https://forge.codesys.comd635f7071139e3f934bb8b44c9406b618f201dec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I'm developing a functional block that has a fixed number of inputs. I just need to know internally what these inputs are being used, because the user can configure a smaller number of inputs and leave the other inactive.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>