<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Library parameter value from GVL of main project</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/390fe21c3e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/390fe21c3e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/390fe21c3e/</id><updated>2020-03-09T10:22:59.965000Z</updated><subtitle>Recent posts to Library parameter value from GVL of main project</subtitle><entry><title>Library parameter value from GVL of main project</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/390fe21c3e/?limit=25#4994" rel="alternate"/><published>2020-03-09T10:22:59.965000Z</published><updated>2020-03-09T10:22:59.965000Z</updated><author><name>FPawlak</name><uri>https://forge.codesys.com/u/fpawlak/</uri></author><id>https://forge.codesys.com7c4aa67a015672d93795a2bdfe709624135b0da6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi guys.&lt;br/&gt;
Is it possible to set library parameter based on GVL defined in main project?&lt;br/&gt;
I have attached library with library parameter 'controller' as show below. Also in my main project I have defined GVL as&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;VAR_GLOBAL&lt;/span&gt; &lt;span class="n"&gt;CONSTANT&lt;/span&gt;
    &lt;span class="n"&gt;controller&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;IMemoryController&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;MemoryController&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;But i get errors while compiling project&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;C0046&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Identifier&lt;/span&gt; &lt;span class="s1"&gt;'GVL'&lt;/span&gt; &lt;span class="n"&gt;not&lt;/span&gt; &lt;span class="n"&gt;defined&lt;/span&gt;
&lt;span class="n"&gt;C0032&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Cannot&lt;/span&gt; &lt;span class="n"&gt;convert&lt;/span&gt; &lt;span class="n"&gt;type&lt;/span&gt; &lt;span class="s1"&gt;'Unknown type: '&lt;/span&gt;&lt;span class="n"&gt;GVL&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;controller&lt;/span&gt;&lt;span class="s1"&gt;' to type '&lt;/span&gt;&lt;span class="n"&gt;IMemoryController&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;img src="./attachment/Przechwytywanie.png" width="50%"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>