<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Detecting Target Selection</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5aac4a72c1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5aac4a72c1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5aac4a72c1/</id><updated>2020-02-27T23:23:39.531000Z</updated><subtitle>Recent posts to Detecting Target Selection</subtitle><entry><title>Detecting Target Selection</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/5aac4a72c1/?limit=25#393d" rel="alternate"/><published>2020-02-27T23:23:39.531000Z</published><updated>2020-02-27T23:23:39.531000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.com41bb90bb7b9687657dff110f271378fedf4ef3b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks a lot for that Herr Schwellinger.&lt;/p&gt;
&lt;p&gt;i had tried this Library and I can read out the Vendor name and Device name.&lt;/p&gt;
&lt;p&gt;Actually i intend to use a few device specific libraries which would trigger an error when i would change the&lt;br/&gt;
device type to Win3. But maybe if i could use Pragma to read the Vendor Name, and thus decide on the libraries i&lt;br/&gt;
could use, i could avoid the compiler error.&lt;br/&gt;
Do you have an idea i could do this.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Unresolved reference.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1414"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Detecting Target Selection</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/5aac4a72c1/?limit=25#8e7c" rel="alternate"/><published>2020-02-27T23:23:37.827000Z</published><updated>2020-02-27T23:23:37.827000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com6ad33349a27ce7e4bd5a7f8e4b43894c0be2a05c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I would give Systarget.library a try.&lt;br/&gt;
See screenshot.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Systarget.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1410"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Detecting Target Selection</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/5aac4a72c1/?limit=25#266a" rel="alternate"/><published>2020-02-27T23:23:36.166000Z</published><updated>2020-02-27T23:23:36.166000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.comafa35e96678bf86ccd8df49a95de59bb3137466a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
Does anyone have an idea how this could be done with Codesys V3.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Detecting Target Selection</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/5aac4a72c1/?limit=25#a214" rel="alternate"/><published>2020-02-27T23:23:31.572000Z</published><updated>2020-02-27T23:23:31.572000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com9b74b69ed4253c0821d5bc7528be5ecd57bbae68</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;CoDeSys 2.3 does not support such a functionalty. &lt;/p&gt;
&lt;p&gt;CoDeSys 3.x will get conditional pragmas and in this way conditional compilation which will solve your questions.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Detecting Target Selection</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/5aac4a72c1/?limit=25#6cd9" rel="alternate"/><published>2020-02-27T23:23:29.915000Z</published><updated>2020-02-27T23:23:29.915000Z</updated><author><name>bvanbata</name><uri>https://forge.codesys.com/u/bvanbata/</uri></author><id>https://forge.codesys.com8c8d47785791e2b7b94d9890470e2c1913ccc1ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there a way to detect the target selection from ST, FB, etc...?  I would like to create some code to check the target settings and set a global variable?  Based on this global variable, my application will call the proper functions that are specific for each target that can be selected.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>