<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to A couple of questions</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/65660ac0d4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/65660ac0d4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/65660ac0d4/</id><updated>2020-02-27T21:57:11.634000Z</updated><subtitle>Recent posts to A couple of questions</subtitle><entry><title>A couple of questions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/65660ac0d4/?limit=25#779f" rel="alternate"/><published>2020-02-27T21:57:11.634000Z</published><updated>2020-02-27T21:57:11.634000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com531eed080b93482624fc7e0a9ea88455e3fde5f9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;look for the word pragma in the helpfile or in the book.&lt;br/&gt;
difficult to explain here just play with it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A couple of questions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/65660ac0d4/?limit=25#95ed" rel="alternate"/><published>2020-02-27T21:57:07.429000Z</published><updated>2020-02-27T21:57:07.429000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.coma44a7a8023e3efac80bea099bbbc392e86c4e76e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;thanks shooter but which compile command you mean? I can't find any related to conditional compilation.&lt;br/&gt;
Maybe you mean dir lib &amp;lt;libdir&amp;gt; which I guess allows to compile different versions of the same library? If so, I don't want to maintain different versions of libraries&amp;lt;/libdir&amp;gt;&lt;/p&gt;
&lt;h2 id="say-i-have-code-like-this"&gt;Say I have code like this&lt;/h2&gt;
&lt;p&gt;IF var1 &amp;gt; 5 THEN&lt;br/&gt;
 var2 := 10;&lt;br/&gt;
END_IF;&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;and want sometimes to set var2 to 10 conditionally (if var1 &amp;gt; 5), and sometimes unconditionally. To do so I need to conditionally compile lines 1 and 3 - is that possible?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A couple of questions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/65660ac0d4/?limit=25#4c9a" rel="alternate"/><published>2020-02-27T21:57:05.921000Z</published><updated>2020-02-27T21:57:05.921000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com7f82fe20e4334aca736c2bb5b43cabda0cf55b69</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;1.&lt;br/&gt;
yes see compile commands.&lt;/p&gt;
&lt;p&gt;2.&lt;br/&gt;
no not possible as far as i can see.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A couple of questions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/65660ac0d4/?limit=25#bdbd" rel="alternate"/><published>2020-02-27T21:57:01.618000Z</published><updated>2020-02-27T21:57:01.618000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.come786d612aff7b42397069e4f152a10ccf64c93de</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi friends,&lt;/p&gt;
&lt;p&gt;using CoDeSys 2.3.9.28, I have a couple of questions, as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Is it possible to perform a conditional compilation of code?&lt;br/&gt;
This means, compile or not compile certain parts of POU's code based on something specified in the project itself, or ideally in an external file.&lt;br/&gt;
I don't want to compile the same project for different targets or so, target is the same, just to conditionally compile a few lines of code in certain POU's.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;About editors GUI&lt;br/&gt;
Is there any chance the GUI to remember windows sizes/positions between sessions - after a project close/open? &lt;br/&gt;
Or at least to set a smaller default size for a new window?&lt;br/&gt;
I mean imagine an SFC POU and a step in it having an ST entry-action with one line of code. When I double-click "E" in the editor, the action code is opened in a new window which takes approx. 80% of the screen size. Can I do something so that this window appears smaller? If I re-size it, for the current session the window size/position is remembered. But not after a project close/open.&lt;br/&gt;
This may seem a minor issue, but having to resize and reposition windows all the time is a true productivity killer.&lt;br/&gt;
I can't find such a thing in the configuration options, but maybe it's possible via some registry or .ini file editing?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>