<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b6403fb409/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b6403fb409/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b6403fb409/</id><updated>2020-02-27T21:37:56.208000Z</updated><subtitle>Recent posts to difference of Var_in_out in function &amp; function_block</subtitle><entry><title>difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b6403fb409/?limit=25#2b1c" rel="alternate"/><published>2020-02-27T21:37:56.208000Z</published><updated>2020-02-27T21:37:56.208000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com3bffba9bcca7924f9875c1a47f45d4bb0667a344</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;you declared it yes , but how do you get the result from internal to external?&lt;br/&gt;
ie you do not use over (which is the output of the function.)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b6403fb409/?limit=25#cd6e" rel="alternate"/><published>2020-02-27T21:37:54.705000Z</published><updated>2020-02-27T21:37:54.705000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.comc0a92e34ad9e0649aae2b79a17e7322d6c5ef196</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;pls check the attached pgm&lt;/p&gt;
&lt;p&gt;function allows in_out&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=767" rel="nofollow"&gt;func.pro &lt;span&gt;&lt;span&gt;[33.93 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b6403fb409/?limit=25#0968" rel="alternate"/><published>2020-02-27T21:37:53.112000Z</published><updated>2020-02-27T21:37:53.112000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com92920930b417b4d218caa63cdbdd3151a0d2a57a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;in a function it is impossible to have in-out,&lt;br/&gt;
start a new function and you will not be able to select it from the assistant.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b6403fb409/?limit=25#af70" rel="alternate"/><published>2020-02-27T21:37:48.787000Z</published><updated>2020-02-27T21:37:48.787000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.comfe71201e90f605057dfea760c4eb8cb1c1996d67</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;var_In_Out&lt;/span&gt; 
&lt;span class="nt"&gt;test&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;bool&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;test2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;int&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;end_var&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;shooter hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
here you go&lt;br/&gt;
as a function can only give one variable back (or a structure) i have to put all outs in one structure.&lt;br/&gt;
in a function block you can have several in and out&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Try the above in function declaration&lt;/p&gt;
&lt;p&gt;Am asking about var_in_out in declaration&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b6403fb409/?limit=25#d101" rel="alternate"/><published>2020-02-27T21:37:47.314000Z</published><updated>2020-02-27T21:37:47.314000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com884aaa59b41e6b53195072d752e7976152c88beb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;here you go&lt;br/&gt;
as a function can only give one variable back (or a structure) i have to put all outs in one structure.&lt;br/&gt;
in a function block you can have several in and out&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=763" rel="nofollow"&gt;WERK.zip &lt;span&gt;&lt;span&gt;[475 Bytes]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b6403fb409/?limit=25#687b" rel="alternate"/><published>2020-02-27T21:37:43.213000Z</published><updated>2020-02-27T21:37:43.213000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.com40f50c351ba6a87ed6ce492b3a1dccff0ee042a7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes function returns a value.&lt;/p&gt;
&lt;p&gt;I need info about using  var_In_Out in function &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b6403fb409/?limit=25#9a55" rel="alternate"/><published>2020-02-27T21:37:41.743000Z</published><updated>2020-02-27T21:37:41.743000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.combb2ef87c29a0d455a083d4b29e404c1e421160de</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;a function can have only one output (this can be a structure) and a FB can have more vars.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>difference of Var_in_out in function &amp; function_block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b6403fb409/?limit=25#3fa9" rel="alternate"/><published>2020-02-27T21:37:37.636000Z</published><updated>2020-02-27T21:37:37.636000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.com54c3d58b74fe094ec6bd82566c73bee0ba4f623c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What is the difference between function &amp;amp; function block in terms of using var_in_out in codesys v2?&lt;/p&gt;
&lt;p&gt;function no need to instantiate &amp;amp; it returns a value in Version2.&lt;/p&gt;
&lt;p&gt;In version3 function can have outputs also.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>