<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to VARINFO in library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bdb67b2d9b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bdb67b2d9b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/bdb67b2d9b/</id><updated>2020-03-31T00:55:31.901000Z</updated><subtitle>Recent posts to VARINFO in library</subtitle><entry><title>VARINFO in library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bdb67b2d9b/?limit=25#f748" rel="alternate"/><published>2020-03-31T00:55:31.901000Z</published><updated>2020-03-31T00:55:31.901000Z</updated><author><name>tvm</name><uri>https://forge.codesys.com/u/tvm/</uri></author><id>https://forge.codesys.comab44029db6e7e8b383d6cc342c1f8d460b6bb4bb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Can VARINFO be used within a library?&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;    &lt;span class="nt"&gt;VAR&lt;/span&gt;
        &lt;span class="nt"&gt;Info&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;       &lt;span class="nt"&gt;__SYSTEM&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;VAR_INFO&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="nt"&gt;TestVar&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="nt"&gt;BOOL&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nt"&gt;END_VAR&lt;/span&gt;
    &lt;span class="nt"&gt;Info&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;__VARINFO&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;TestVar&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Code works in a program, as soon as I move it to a function block in a library I get the following:&lt;/p&gt;
&lt;p&gt;C0032:  Cannot convert type 'Unknown type: 'MEMORY_AREA.MEM_LOCAL'' to type 'MEMORY_AREA'&lt;br/&gt;
C0046:  Identifier 'MEMORY_AREA' not defined&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>