<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get symbol address and length from string of symbol name</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/665b21557a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/665b21557a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/665b21557a/</id><updated>2022-06-21T13:05:18.347000Z</updated><subtitle>Recent posts to Get symbol address and length from string of symbol name</subtitle><entry><title>Get symbol address and length from string of symbol name</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/665b21557a/?limit=25#0978" rel="alternate"/><published>2022-06-21T13:05:18.347000Z</published><updated>2022-06-21T13:05:18.347000Z</updated><author><name>capinwinky</name><uri>https://forge.codesys.com/u/capinwinky/</uri></author><id>https://forge.codesys.com433c7dff6274ec62f768eff5793c1c0ebd5526b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There seems to be several ways to get a string of a symbol name (&lt;code&gt;__VARINFO&lt;/code&gt;, &lt;code&gt;{attribute 'instance-path'}&lt;/code&gt;, etc), but I can't seem to find a method of using a string of a symbol name to do anything. I'm specifically interested in using the string of a symbol name to get the address and size of the symbol. Is this possible in Codesys? &lt;/p&gt;
&lt;p&gt;Currently, I sidestep this issue by manually generating code that returns the address and length of each item. However, my array of strings is automatically generated (so requiring zero effort/changes to use the code), so it would be nice to not need to manually alter this code to add &lt;code&gt;ADR()&lt;/code&gt; and &lt;code&gt;SIZEOF()&lt;/code&gt; calls.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>