<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/</id><updated>2020-02-27T13:54:47.626000Z</updated><subtitle>Recent posts to Get Type Of a Variable</subtitle><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#5672" rel="alternate"/><published>2020-02-27T13:54:47.626000Z</published><updated>2020-02-27T13:54:47.626000Z</updated><author><name>r.zarei2010</name><uri>https://forge.codesys.com/u/r-zarei2010/</uri></author><id>https://forge.codesys.com7fa40f1c217550643ca40ebef3da9316806915a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;jzhvymetal hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Is there anyway to get a structures variables members without knowing them?  Meaning if you pass a structure to _VARINFO how can you get info about it members?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi,&lt;br/&gt;
This is exactly what i need, did you find any workaround?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#20d1" rel="alternate"/><published>2020-02-27T13:54:47.420000Z</published><updated>2020-02-27T13:54:47.420000Z</updated><author><name>r.zarei2010</name><uri>https://forge.codesys.com/u/r-zarei2010/</uri></author><id>https://forge.codesys.com30d29ab95c0585bfc2656ebf1971a998a9460bf1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Josep M. Rams hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
If internals variables are exported to symbolic comunication, I am thinking that you want is posible via cmpiecvaracces.&lt;br/&gt;
But i have not found information about that library.&lt;br/&gt;
I have could see information, using cmpiecvaraccesd, of program variables but not about fb members&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi, would you please post how to use iecvaraccess.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#321f" rel="alternate"/><published>2020-02-27T13:54:47.217000Z</published><updated>2020-02-27T13:54:47.217000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com80e38858df3f327c880bf74fd287e3a15aa42116</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If internals variables are exported to symbolic comunication, I am thinking that you want is posible via cmpiecvaracces.&lt;/p&gt;
&lt;p&gt;But i have not found information about that library.&lt;/p&gt;
&lt;p&gt;I have could see information, using cmpiecvaraccesd, of program variables but not about fb members&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#a05f" rel="alternate"/><published>2020-02-27T13:54:46.987000Z</published><updated>2020-02-27T13:54:46.987000Z</updated><author><name>jzhvymetal</name><uri>https://forge.codesys.com/u/jzhvymetal/</uri></author><id>https://forge.codesys.comd76e51a02b37b93107e4383f43ce4e8f3dfe1afe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Ralph Holz hat geschrieben:&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nt"&gt;Declaration&lt;/span&gt;
&lt;span class="nt"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;MyVarInfo&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="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;MyTestVar&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;INT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;
&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nt"&gt;Code&lt;/span&gt;
&lt;span class="nt"&gt;MyVarInfo&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;MyTestVar&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nt"&gt;after&lt;/span&gt; &lt;span class="nt"&gt;this&lt;/span&gt; &lt;span class="nt"&gt;line&lt;/span&gt; &lt;span class="nt"&gt;of&lt;/span&gt; &lt;span class="nt"&gt;code&lt;/span&gt; &lt;span class="nt"&gt;MyVarInfo&lt;/span&gt; &lt;span class="nt"&gt;contains&lt;/span&gt; &lt;span class="nt"&gt;all&lt;/span&gt; &lt;span class="nt"&gt;information&lt;/span&gt; &lt;span class="nt"&gt;obout&lt;/span&gt; &lt;span class="nt"&gt;this&lt;/span&gt; &lt;span class="nt"&gt;variable&lt;/span&gt; &lt;span class="nt"&gt;-&lt;/span&gt; &lt;span class="nt"&gt;just&lt;/span&gt; &lt;span class="nt"&gt;watch&lt;/span&gt; &lt;span class="nt"&gt;in&lt;/span&gt; &lt;span class="nt"&gt;online&lt;/span&gt; &lt;span class="nt"&gt;mode&lt;/span&gt; &lt;span class="nt"&gt;and&lt;/span&gt; &lt;span class="nt"&gt;you&lt;/span&gt; &lt;span class="nt"&gt;will&lt;/span&gt; &lt;span class="nt"&gt;understand&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;BR&lt;br/&gt;
Ralph&lt;/p&gt;
&lt;p&gt;Is there anyway to get a structures variables members without knowing them?  Meaning if you pass a structure to _VARINFO how can you get info about it members?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#56c0" rel="alternate"/><published>2020-02-27T13:54:46.769000Z</published><updated>2020-02-27T13:54:46.769000Z</updated><author><name>singleton</name><uri>https://forge.codesys.com/u/singleton/</uri></author><id>https://forge.codesys.com900041ffe10c2ad51330475d26c8445fe0f8ef6f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;yannickasselin1 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Thanks, it works fine!&lt;br/&gt;
But how can someone get some info about these special functions?&lt;br/&gt;
I cannot find anything about it in the help.&lt;br/&gt;
Thank you.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Type "System." e.g. inside a ST Editor to come to those fancy stuff &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#e508" rel="alternate"/><published>2020-02-27T13:54:46.147000Z</published><updated>2020-02-27T13:54:46.147000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com1e9e11a5aeddd20e376ceef8f562b50277411740</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ralph,&lt;/p&gt;
&lt;p&gt;Thanks for the tip. This is very useful!&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#ffc3" rel="alternate"/><published>2020-02-27T13:54:45.959000Z</published><updated>2020-02-27T13:54:45.959000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.com4c3453fd6df8a8011f1f24842d5c311ee19f069c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks, it works fine!&lt;/p&gt;
&lt;p&gt;But how can someone get some info about these special functions?&lt;/p&gt;
&lt;p&gt;I cannot find anything about it in the help.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#eba5" rel="alternate"/><published>2020-02-27T13:54:45.749000Z</published><updated>2020-02-27T13:54:45.749000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com8685725f5b5808b612bfe530d2555d737a9f7522</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nt"&gt;Declaration&lt;/span&gt;
&lt;span class="nt"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;MyVarInfo&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="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;MyTestVar&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;INT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;
&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nt"&gt;Code&lt;/span&gt;
&lt;span class="nt"&gt;MyVarInfo&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;MyTestVar&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nt"&gt;after&lt;/span&gt; &lt;span class="nt"&gt;this&lt;/span&gt; &lt;span class="nt"&gt;line&lt;/span&gt; &lt;span class="nt"&gt;of&lt;/span&gt; &lt;span class="nt"&gt;code&lt;/span&gt; &lt;span class="nt"&gt;MyVarInfo&lt;/span&gt; &lt;span class="nt"&gt;contains&lt;/span&gt; &lt;span class="nt"&gt;all&lt;/span&gt; &lt;span class="nt"&gt;information&lt;/span&gt; &lt;span class="nt"&gt;obout&lt;/span&gt; &lt;span class="nt"&gt;this&lt;/span&gt; &lt;span class="nt"&gt;variable&lt;/span&gt; &lt;span class="nt"&gt;-&lt;/span&gt; &lt;span class="nt"&gt;just&lt;/span&gt; &lt;span class="nt"&gt;watch&lt;/span&gt; &lt;span class="nt"&gt;in&lt;/span&gt; &lt;span class="nt"&gt;online&lt;/span&gt; &lt;span class="nt"&gt;mode&lt;/span&gt; &lt;span class="nt"&gt;and&lt;/span&gt; &lt;span class="nt"&gt;you&lt;/span&gt; &lt;span class="nt"&gt;will&lt;/span&gt; &lt;span class="nt"&gt;understand&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;BR&lt;br/&gt;
Ralph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Type Of a Variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9092152d36/?limit=25#914f" rel="alternate"/><published>2020-02-27T13:54:45.561000Z</published><updated>2020-02-27T13:54:45.561000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.com7722a98bebe9a76da916d0276100bd6827a33fb6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Is it possible to get the type of a variable during runtime?&lt;/p&gt;
&lt;p&gt;Something like : typeof in C# ?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>