<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to I have error Call recursion</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/92f211bddb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/92f211bddb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/92f211bddb/</id><updated>2022-04-06T11:57:44.835000Z</updated><subtitle>Recent posts to I have error Call recursion</subtitle><entry><title>I have error Call recursion</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/92f211bddb/?limit=25#bcac" rel="alternate"/><published>2022-04-06T11:57:44.835000Z</published><updated>2022-04-06T11:57:44.835000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com27b0c94e187eff796a6c7b5a96f1cdbb6e9b6eba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You defined a function "Pack_16" and then proceed to call "Pack_16" inside it. How do you think this can work?&lt;/p&gt;
&lt;p&gt;Apart that recursion is generally disallowed (as opposed to other languages), but this would not make sense either, since you are not going to reach a base case.&lt;/p&gt;
&lt;p&gt;If you try this e.g. in C your program would hang indefinitely or get terminated by the OS due to a segmentation fault.&lt;/p&gt;
&lt;p&gt;Furthermore, I really doubt you can shove 16 bits in a BYTE...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I have error Call recursion</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/92f211bddb/?limit=25#badc" rel="alternate"/><published>2022-04-05T07:21:13.811000Z</published><updated>2022-04-05T07:21:13.811000Z</updated><author><name>edwin200000</name><uri>https://forge.codesys.com/u/edwin200000/</uri></author><id>https://forge.codesys.com7e68dda6766230029664fd65c9ed711cd0c2f605</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I forgot the error notification&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I have error Call recursion</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/92f211bddb/?limit=25#9298" rel="alternate"/><published>2022-04-05T07:15:12.051000Z</published><updated>2022-04-05T07:15:12.051000Z</updated><author><name>edwin200000</name><uri>https://forge.codesys.com/u/edwin200000/</uri></author><id>https://forge.codesys.comfa36f695d5b4064bfa1449219c1a85c2b7e0c0e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Ik want to make a function block that converts 16 inputs bool into one bytes number&lt;br/&gt;
I have already a pack box for 8 inputs image 'knipsel'. Got that Pack box from a library.&lt;br/&gt;
But now I want a pack box for 16 inputs. I already made a seperate function block program.&lt;br/&gt;
and copy it in the program where I wanna use it. But I get a error called 'Call recursion'&lt;br/&gt;
how can I fix that? And I am very new in codesys so made I maybe some more mistakes?&lt;/p&gt;
&lt;p&gt;Thanks in advance, &lt;/p&gt;
&lt;p&gt;Edwin&lt;/p&gt;
&lt;p&gt;PS: I have use fake inputs by the function block program do not pay attention.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>