<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to VAR_OUT Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9b8e58453e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9b8e58453e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9b8e58453e/</id><updated>2020-02-27T14:34:42.119000Z</updated><subtitle>Recent posts to VAR_OUT Variable</subtitle><entry><title>VAR_OUT Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9b8e58453e/?limit=25#30f6" rel="alternate"/><published>2020-02-27T14:34:42.119000Z</published><updated>2020-02-27T14:34:42.119000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com19661d1bdd7173b47e49c6350c0316026f69cf2d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;It could be - depending on if there is other code that sets the variable.  In general, VAR_OUT simply means it's a variable that can be read outside of the POU and cannot be written.  It certainly can be assigned as an input to some internal code.&lt;/p&gt;
&lt;p&gt;Here is a post I just made that uses a VAR_OUT (Output) as an input to a FB (PulseTimer) inside my POU:  l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=2&amp;amp;t=6856&amp;amp;p=14739&amp;amp;lan=en" rel="nofollow"&gt;viewtopic.php?f=2&amp;amp;t=6856#p14739&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;VAR_INPUT = variable the POU can use that is set externally (i.e. TON(EN:=TRUE) ... EN is an input variable)&lt;br/&gt;
VAR_OUTPUT = variable the POU can use and set that is visible externally (i.e. TON(Q =&amp;gt; Done) ... Q is an output variable)&lt;br/&gt;
VAR_IN_OUT = variable the POU can use and set that also can be set externally (so both the POU and user code can change it)&lt;br/&gt;
VAR = internal variable to the POU that is NOT visible externally (only visible in debug mode)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>VAR_OUT Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9b8e58453e/?limit=25#7f4e" rel="alternate"/><published>2020-02-27T14:34:41.634000Z</published><updated>2020-02-27T14:34:41.634000Z</updated><author><name>suibaf</name><uri>https://forge.codesys.com/u/suibaf/</uri></author><id>https://forge.codesys.com434704d8bba4dadcb1228d78e658aa28c50bdb69</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have to say: I have copied this code. My question is conceptual.&lt;br/&gt;
What is your opinion? sReceive is VAR_OUT variable?&lt;br/&gt;
Thank you very much.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>VAR_OUT Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9b8e58453e/?limit=25#3a72" rel="alternate"/><published>2020-02-27T14:34:40.201000Z</published><updated>2020-02-27T14:34:40.201000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comf3ff4073cd268b75a7095f1513144a31383bf920</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;If you used the auto declare functionality, the cursor starts in the variable type and you can accidentally change it from VAR to VAR_IN or VAR_OUT.  I have done this a few times myself. Just change it to the required type you need.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>VAR_OUT Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9b8e58453e/?limit=25#e0f7" rel="alternate"/><published>2020-02-27T14:34:39.674000Z</published><updated>2020-02-27T14:34:39.674000Z</updated><author><name>suibaf</name><uri>https://forge.codesys.com/u/suibaf/</uri></author><id>https://forge.codesys.com08d375d32d99408a2eaab50a84200d64d8f77480</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi as you can see,&lt;/p&gt;
&lt;p&gt;the variable sReceive in fbUdpR is a input variable. Why in declare section is a VAR_OUT variable?&lt;br/&gt;
Best Regards&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ScreenShot.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1793"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>