<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to My functions change to gray when I build them</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/f162a419df/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/f162a419df/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/f162a419df/</id><updated>2020-02-27T20:34:48.619000Z</updated><subtitle>Recent posts to My functions change to gray when I build them</subtitle><entry><title>My functions change to gray when I build them</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f162a419df/?limit=25#f774" rel="alternate"/><published>2020-02-27T20:34:48.619000Z</published><updated>2020-02-27T20:34:48.619000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.com5c61dab064b15668029c793317120c569e4aba67</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Also your POU's will turn green (like commented out) if you go to Project-Options-Build-Exclude objects for any POU that are not called in your application including Libraries.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My functions change to gray when I build them</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f162a419df/?limit=25#53d0" rel="alternate"/><published>2020-02-27T20:34:47.231000Z</published><updated>2020-02-27T20:34:47.231000Z</updated><author><name>MusashiAharon</name><uri>https://forge.codesys.com/u/musashiaharon/</uri></author><id>https://forge.codesys.comed64ebe610686cdba113b0cffa99dbef825108de</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, if you set up a task to call them, the PRGs will turn black. &lt;/p&gt;
&lt;p&gt;Or, you can also call PRGs from another PRG. In ST, just type them in as if they were functions with no return result:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;PROGRAM&lt;/span&gt; &lt;span class="n"&gt;PRG_CALLER&lt;/span&gt;
&lt;span class="n"&gt;VAR&lt;/span&gt;
&lt;span class="n"&gt;END_VAR&lt;/span&gt;
&lt;span class="n"&gt;OTHER_PRG&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Of course, if nothing ever calls PRG_CALLER, OTHER_PRG won't get called either.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My functions change to gray when I build them</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f162a419df/?limit=25#d80a" rel="alternate"/><published>2020-02-27T20:34:43.421000Z</published><updated>2020-02-27T20:34:43.421000Z</updated><author><name>Siavash-80</name><uri>https://forge.codesys.com/u/siavash-80/</uri></author><id>https://forge.codesys.comfab2ef2ea8c98705b2810f2429ef2dd7fb7c3cf4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Ralph Holz hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
The grey marked POU's are never called in your application. In other words they are unused. Use them anthey will turn black.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks Ralph for your reply. I know that if I did not call a function in the main program they will change to gray, but I have several POUs or let's say I have several PRGs and FBs. Regarding those FBs I should call them in any PRGs then,  they change to black. About PRGs how can I call them. Might be you mean that  I should call them by Task configuration if it correct the problem can be solved. SO, I want to know by calling these PRGs in Task configuration then everything will be ok or I should do anything else.  &lt;/p&gt;
&lt;p&gt;Thank you. &lt;/p&gt;
&lt;p&gt;Siavash.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My functions change to gray when I build them</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f162a419df/?limit=25#e355" rel="alternate"/><published>2020-02-27T20:34:42.068000Z</published><updated>2020-02-27T20:34:42.068000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com5f900292d6b87db802fad4d037c75e1c671111c6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The grey marked POU's are never called in your application. In other words they are unused. Use them anthey will turn black.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My functions change to gray when I build them</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/f162a419df/?limit=25#d0fe" rel="alternate"/><published>2020-02-27T20:34:38.273000Z</published><updated>2020-02-27T20:34:38.273000Z</updated><author><name>Siavash-80</name><uri>https://forge.codesys.com/u/siavash-80/</uri></author><id>https://forge.codesys.com813a9a707fe4ecfef09a14cef8237585aab2a7a9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear All, &lt;/p&gt;
&lt;p&gt;Recently, I am working with a source code with many function based on CR 1055 and CR 2016. When I build the code some POUs color change to Gary and when I clean them they change to black. I would be grateful if somebody tells me what the problem is?. &lt;br/&gt;
Thanks a lot a head. &lt;/p&gt;
&lt;p&gt;Saivash&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>