<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get names of nodes in device tree</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/</id><updated>2023-03-17T09:40:27.193000Z</updated><subtitle>Recent posts to Get names of nodes in device tree</subtitle><entry><title>Get names of nodes in device tree</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/?limit=25#3fa9" rel="alternate"/><published>2023-03-17T09:40:27.193000Z</published><updated>2023-03-17T09:40:27.193000Z</updated><author><name>vformanek</name><uri>https://forge.codesys.com/u/vformanek/</uri></author><id>https://forge.codesys.com0e3ff0106123f0f5a33ba6823cd4b41ecdf3ef2b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I feel like im getting somewhere, if we could get this whole variable into an array or something, then we could see the name of the devices as variables, even if we could get to that specific device by the name then we could extract the INode 16#xxxx value and compare it with all the nodes from IoConfig_Globals.DeviceNodes. &lt;strong&gt;Now we just need to figure out if we can put this whole variable into something&lt;/strong&gt; more info in the image bellow. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get names of nodes in device tree</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/?limit=25#9368/e065/a932" rel="alternate"/><published>2023-03-17T08:23:07.438000Z</published><updated>2023-03-17T08:23:07.438000Z</updated><author><name>vformanek</name><uri>https://forge.codesys.com/u/vformanek/</uri></author><id>https://forge.codesys.come0176af966d08c159097b7daf0475774f11b43c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am facing a quite simmilar problem so I will try to look into it. Could you provide your latest functionality about knowing what type of node it was? &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get names of nodes in device tree</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/?limit=25#3007" rel="alternate"/><published>2023-03-17T08:12:34.773000Z</published><updated>2023-03-17T08:12:34.773000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.com2f6d192c719af5ce406cbfc21796dbb41ca8fc75</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;closest I have come is this free Application Composer module.&lt;br/&gt;
&lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Application%20Composer/ac_device_diagnose_overview.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Application%20Composer/ac_device_diagnose_overview.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get names of nodes in device tree</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/?limit=25#9368/e065" rel="alternate"/><published>2023-03-17T08:08:20.028000Z</published><updated>2023-03-17T08:08:20.028000Z</updated><author><name>paulpotat</name><uri>https://forge.codesys.com/u/paulpotat/</uri></author><id>https://forge.codesys.comac4ebbef2df37ef9e7126093586610117cd93a8e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sadly, I did not :( I was able to get the type of the node (I could know that a node was a "Bus controller" for example), but not much more...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get names of nodes in device tree</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/?limit=25#9368" rel="alternate"/><published>2023-03-17T07:47:31.071000Z</published><updated>2023-03-17T07:47:31.071000Z</updated><author><name>vformanek</name><uri>https://forge.codesys.com/u/vformanek/</uri></author><id>https://forge.codesys.com08940610f2ca1ac0f790da6ffea10ed2ddda1515</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;interesting topic, have you found a way to do it yet ? &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get names of nodes in device tree</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/?limit=25#b6ca" rel="alternate"/><published>2023-02-09T13:23:22.150000Z</published><updated>2023-02-09T13:23:22.150000Z</updated><author><name>paulpotat</name><uri>https://forge.codesys.com/u/paulpotat/</uri></author><id>https://forge.codesys.com7cb7483f61f8f5919b967fe930b4c12728e6a625</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;up&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get names of nodes in device tree</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ec62d14561/?limit=25#6a1e" rel="alternate"/><published>2022-07-08T14:36:09.251000Z</published><updated>2022-07-08T14:36:09.251000Z</updated><author><name>paulpotat</name><uri>https://forge.codesys.com/u/paulpotat/</uri></author><id>https://forge.codesys.com0aaca90810a23d815939869f99aba66f280bae17</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone,&lt;br/&gt;
I would like to know if it's possible to get the names of the nodes in the device tree of my project.&lt;br/&gt;
So far I managed to get a list of nodes (of type &lt;strong&gt;&lt;em&gt;INode&lt;/em&gt;&lt;/strong&gt;) but I can get their name out of this.&lt;br/&gt;
For example in my project I have the following architecture :&lt;br/&gt;
&lt;img alt="drawing" rel="nofollow" src="https://i.imgur.com/D74bN0x.png" style="float: left;" width="300"/&gt;&lt;/p&gt;
&lt;p&gt;I used this to get the nodes of my project :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;nodes := IoConfig_Globals.DeviceNodes;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And I correctly get an array with every node :&lt;br/&gt;
&lt;img alt="drawing" rel="nofollow" src="https://i.imgur.com/OUTCeZH.png" style="float: left;"/&gt;&lt;/p&gt;
&lt;p&gt;Now I want to get the names of the node in my program (the values highlighted in the previous picture) but I can't figure out how to do that.&lt;/p&gt;
&lt;p&gt;I found &lt;a class="" href="https://forge.codesys.com/forge/talk/Engineering/thread/d3cdf4ddc6/"&gt;this post&lt;/a&gt; that makes me think it was not possible in 2018, but is it possible in 2022 ?&lt;/p&gt;
&lt;p&gt;I want to do that to be able to count how many ethercat masters are in the project and how many slaves do they have each.&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;br/&gt;
BR&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>