<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get a instance name as string variable?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/4b6b4d9335/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/4b6b4d9335/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/4b6b4d9335/</id><updated>2020-02-27T20:08:01.898000Z</updated><subtitle>Recent posts to Get a instance name as string variable?</subtitle><entry><title>Get a instance name as string variable?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/4b6b4d9335/?limit=25#7ae6" rel="alternate"/><published>2020-02-27T20:08:01.898000Z</published><updated>2020-02-27T20:08:01.898000Z</updated><author><name>Igor Petrov</name><uri>https://forge.codesys.com/u/igor-petrov/</uri></author><id>https://forge.codesys.comc3ca22ee9ebce6bc5ed48718ab64eb4c2379f7bf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;CoDeSys I a compiler. Therefore in programming system we see variables and POUs names, but after the compilation there no symbolic names in code – only machine memory addresses.&lt;/p&gt;
&lt;p&gt;In this case I’d add extra string (or constant string) variable in the FB . In each instance initialization section assign any reasonable name for it.  Next use the variable as the instance name.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get a instance name as string variable?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/4b6b4d9335/?limit=25#27bb" rel="alternate"/><published>2020-02-27T20:08:00.316000Z</published><updated>2020-02-27T20:08:00.316000Z</updated><author><name>ssssssara</name><uri>https://forge.codesys.com/u/ssssssara/</uri></author><id>https://forge.codesys.comd859e0dd019ff54cc0ef733a12c21346de98df1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a short question. Is it possible to get the instance name of a variable and use it as a string?&lt;/p&gt;
&lt;p&gt;In this example I would like to, instead of using a new string to input 'BlockName', use the actual variable name of the block. Is it possible, and if so, how?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="http://home.student.uu.se/sahe3852/codesys/codesys.bmp"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>