<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Eigene IP-Adresse abfragen (Wago 750-841)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/44cec304ac/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/44cec304ac/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/44cec304ac/</id><updated>2020-02-28T07:24:11.143000Z</updated><subtitle>Recent posts to Eigene IP-Adresse abfragen (Wago 750-841)</subtitle><entry><title>Eigene IP-Adresse abfragen (Wago 750-841)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/44cec304ac/?limit=25#0150" rel="alternate"/><published>2020-02-28T07:24:11.143000Z</published><updated>2020-02-28T07:24:11.143000Z</updated><author><name>DFreiberg</name><uri>https://forge.codesys.com/u/dfreiberg/</uri></author><id>https://forge.codesys.com1e8a9b64ab0ca59dd7c4b55683e4587ad58b8d23</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oder mit SysLibSockets:&lt;/p&gt;
&lt;p&gt;Hier wird die IP Adresse nicht direkt sondern über den Hostname herausgefunden.&lt;/p&gt;
&lt;p&gt;PROGRAM PLC_PRG&lt;/p&gt;
&lt;p&gt;VAR&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;sIPAdr&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;dwRet1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;xRet&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;sHost&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;iA&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;INADDR&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;END_VAR&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;xRet&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;SysSockGetHostName&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;sHost&lt;/span&gt;&lt;span class="o"&gt;),&lt;/span&gt;&lt;span class="nt"&gt;80&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;span class="nt"&gt;iA&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;S_addr&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;SysSockGetHostByName&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;sIPAdr&lt;/span&gt;&lt;span class="o"&gt;));&lt;/span&gt;

&lt;span class="nt"&gt;SysSockInetNtoa&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;iA&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;sIPAdr&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;80&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Eigene IP-Adresse abfragen (Wago 750-841)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/44cec304ac/?limit=25#000e" rel="alternate"/><published>2020-02-28T07:24:08.907000Z</published><updated>2020-02-28T07:24:08.907000Z</updated><author><name>gravieren</name><uri>https://forge.codesys.com/u/gravieren/</uri></author><id>https://forge.codesys.com7d9f8215002892bda9a77354371aedbef5c0e4f6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;Danke für die Info.&lt;/p&gt;
&lt;p&gt;Werde ich gleich mal nächste Woche testen,&lt;/p&gt;
&lt;p&gt;Gruß  Karl&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Eigene IP-Adresse abfragen (Wago 750-841)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/44cec304ac/?limit=25#2965" rel="alternate"/><published>2020-02-28T07:24:06.676000Z</published><updated>2020-02-28T07:24:06.676000Z</updated><author><name>cmoeller</name><uri>https://forge.codesys.com/u/cmoeller/</uri></author><id>https://forge.codesys.com13477fbd0167d60606bc062e4dbdb1a855610c31</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Karl,&lt;/p&gt;
&lt;p&gt;um die IP-Adresse der Ethernetschnittstelle eines 750-841 zu ermitteln  kannst du den Funktionsbaustein "ETHERNET_GET_NETWORK_CONFIG" aus der Bibliothek "Ethernet.lib" verwenden.&lt;/p&gt;
&lt;p&gt;Die Bibliothek findest du im Installationsverzeichnis von CoDeSys unter ~/CoDeSys V2.3/Targets/WAGO/Libraries/32Bit/Ethernet.lib&lt;/p&gt;
&lt;p&gt;Gruss cmoeller&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Eigene IP-Adresse abfragen (Wago 750-841)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/44cec304ac/?limit=25#dc7b" rel="alternate"/><published>2020-02-28T07:24:00.430000Z</published><updated>2020-02-28T07:24:00.430000Z</updated><author><name>gravieren</name><uri>https://forge.codesys.com/u/gravieren/</uri></author><id>https://forge.codesys.com44f2b938723e1c6183f414e914ebceebc883b34b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Ich es möglich, die eigene IP-Adresse abzufragen.&lt;/p&gt;
&lt;p&gt;Zum anzeigen in der Web-Visu.&lt;/p&gt;
&lt;p&gt;Gruß  Karl&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>