<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get Ethernet/IP slave generic parameters</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/56939caada/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/56939caada/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/56939caada/</id><updated>2021-09-20T10:12:26.225000Z</updated><subtitle>Recent posts to Get Ethernet/IP slave generic parameters</subtitle><entry><title>Get Ethernet/IP slave generic parameters</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/56939caada/?limit=25#7135/2cdb" rel="alternate"/><published>2021-09-20T10:12:26.225000Z</published><updated>2021-09-20T10:12:26.225000Z</updated><author><name>asivakov</name><uri>https://forge.codesys.com/u/sivakov/</uri></author><id>https://forge.codesys.comc52d7a18407ff33dfd3aae65d1456ce9b82a8815</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks,&lt;br/&gt;
It works =) &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Ethernet/IP slave generic parameters</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/56939caada/?limit=25#7135" rel="alternate"/><published>2021-09-15T14:44:21.659000Z</published><updated>2021-09-15T14:44:21.659000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.comab5f8bbfb5305d9aee4b72fce2b88b967b0eca9e</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="nf"&gt;VAR&lt;/span&gt;
    &lt;span class="nf"&gt;pParam:&lt;/span&gt; &lt;span class="nv"&gt;POINTER&lt;/span&gt; &lt;span class="nc"&gt;TO&lt;/span&gt; &lt;span class="nf"&gt;IoConfigParameter&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;pVendor:&lt;/span&gt; &lt;span class="nc"&gt;POINTER&lt;/span&gt; &lt;span class="nf"&gt;TO&lt;/span&gt; &lt;span class="nf"&gt;DWORD&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;Vendor:&lt;/span&gt; &lt;span class="nc"&gt;DWORD&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;END_VAR&lt;/span&gt;
&lt;span class="nf"&gt;pParam&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nc"&gt;ConfigGetParameter&lt;/span&gt;(&lt;span class="nc"&gt;RemoteAdapter_diag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Connector&lt;/span&gt;&lt;span class="nf"&gt;,&lt;/span&gt;&lt;span class="m"&gt;512&lt;/span&gt;)&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;IF&lt;/span&gt; &lt;span class="nf"&gt;pParam&lt;/span&gt; &lt;span class="nf"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="nf"&gt;AND&lt;/span&gt; &lt;span class="nf"&gt;pParam&lt;/span&gt; &lt;span class="nf"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;RTS_INVALID_HANDLE&lt;/span&gt; &lt;span class="nf"&gt;THEN&lt;/span&gt;
    &lt;span class="nf"&gt;pVendor&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nv"&gt;pParam&lt;/span&gt;&lt;span class="err"&gt;^&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;dwValue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;Vendor&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nv"&gt;pVendor&lt;/span&gt;&lt;span class="err"&gt;^&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You can get the parameter ID 512, by exporting the adapter to PLCopenXML&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Ethernet/IP slave generic parameters</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/56939caada/?limit=25#a099" rel="alternate"/><published>2021-09-15T14:09:27.828000Z</published><updated>2021-09-15T14:09:27.828000Z</updated><author><name>asivakov</name><uri>https://forge.codesys.com/u/sivakov/</uri></author><id>https://forge.codesys.com9edb0f48c3eb20b59c353664fbc3c3aba29dc826</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have several EDS files and use'em in project.&lt;br/&gt;
Now I want to recognize node using them names to assign correspond IP-addresses.&lt;br/&gt;
For example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;vendor_code := get_vendor_code(EthIP_eds1);&lt;/span&gt;
&lt;span class="err"&gt;if vendor_code = eds1_vendor_code then&lt;/span&gt;
&lt;span class="err"&gt;    EthIP_eds1.IPAddress := eds1_IP;&lt;/span&gt;
&lt;span class="err"&gt;elsif vendor_code = eds2_vendor_code then&lt;/span&gt;
&lt;span class="err"&gt;    EthIP_eds1.IPAddress := eds2_IP;&lt;/span&gt;
&lt;span class="err"&gt;end_if&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;where "EthIP_eds1" is EtherNet/IP Remote Adapter - node in device tree.&lt;/p&gt;
&lt;p&gt;So the question: anybody know how to get this "Device Generic Parameters" in program?&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/shot.PNG" width="100%"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>