<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Variable number of arguments in a user-defined function</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/fdefd2fb40/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/fdefd2fb40/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/fdefd2fb40/</id><updated>2020-02-27T22:05:57.879000Z</updated><subtitle>Recent posts to Variable number of arguments in a user-defined function</subtitle><entry><title>Variable number of arguments in a user-defined function</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/fdefd2fb40/?limit=25#09d3" rel="alternate"/><published>2020-02-27T22:05:57.879000Z</published><updated>2020-02-27T22:05:57.879000Z</updated><author><name>Yegor</name><uri>https://forge.codesys.com/u/yegor/</uri></author><id>https://forge.codesys.comb5095aed12b43821710df0dc2a297d15c76cd515</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Disclaimer: I'm not sure it's a good idea yet.&lt;/p&gt;
&lt;p&gt;As my current project has only two-state valves in it, I made a universal FB for use with both motorized and solenoid type ones, i.e. FB as a class definition in OOP way (thus FB actions = OOP class methods). So, in SFC transition conditions, I would like to be able to do something like  instead of . For this to be possible I need a function capable of accepting arbitrary number of arguments.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variable number of arguments in a user-defined function</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/fdefd2fb40/?limit=25#3fb2" rel="alternate"/><published>2020-02-27T22:05:56.360000Z</published><updated>2020-02-27T22:05:56.360000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comab6a22ab6bc548fb0ba879f31ba7a19af46d67ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;NO, however you do not have to use all inputs, so you can make a default block with several inputs and set them default on zero, for example.&lt;br/&gt;
same for outputs you do not have to use them.&lt;br/&gt;
btw how do you think you could program this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variable number of arguments in a user-defined function</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/fdefd2fb40/?limit=25#be38" rel="alternate"/><published>2020-02-27T22:05:52.090000Z</published><updated>2020-02-27T22:05:52.090000Z</updated><author><name>Yegor</name><uri>https://forge.codesys.com/u/yegor/</uri></author><id>https://forge.codesys.com4852aabc79312517b877364756c0af1015afed42</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any way to define a function with a variable number of arguments in Codesys 2.3? You know, like ADD, MUX...&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>