<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Generic Device Parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/</id><updated>2020-02-27T13:51:23.682000Z</updated><subtitle>Recent posts to Generic Device Parameter</subtitle><entry><title>Generic Device Parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/?limit=25#f905" rel="alternate"/><published>2020-02-27T13:51:23.682000Z</published><updated>2020-02-27T13:51:23.682000Z</updated><author><name>kunz</name><uri>https://forge.codesys.com/u/kunz/</uri></author><id>https://forge.codesys.com464214b0022fa9cae692609f700f1626f644fafc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, yes, normally.  But in this case the controller cannot configure the device because no development environment such as Codesys is available.  In other words, the controller is always looking for the same device.  Thus it comes to this problem to adjust the station name of the device dynamically.  Is there a possibility here?  Greetings Kunz&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generic Device Parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/?limit=25#c2e4" rel="alternate"/><published>2020-02-27T13:51:23.529000Z</published><updated>2020-02-27T13:51:23.529000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com3a508f78d57f62d1bd56438c60af01aafc283b61</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
your plc is profinet device?&lt;br/&gt;
The PN Controller should give the IP and device name.. so I think this should not be needed to do.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generic Device Parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/?limit=25#654f" rel="alternate"/><published>2020-02-27T13:51:23.380000Z</published><updated>2020-02-27T13:51:23.380000Z</updated><author><name>kunz</name><uri>https://forge.codesys.com/u/kunz/</uri></author><id>https://forge.codesys.come10fcef10b5ce68e1049f75b5dbb6e6bd15d198d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thank you very much that helped me a lot. However, I cannot apply the solution to another problem. I would also like to dynamically adjust the station name of a PROFINET device. However, here the library looks different and I don't know the procedure. Is there a solution to this problem?&lt;/p&gt;
&lt;p&gt;Greeting Kunz&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generic Device Parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/?limit=25#0df4" rel="alternate"/><published>2020-02-27T13:51:23.199000Z</published><updated>2020-02-27T13:51:23.199000Z</updated><author><name>ThK</name><uri>https://forge.codesys.com/u/thk/</uri></author><id>https://forge.codesys.com907fb29a9db7039b7cb9c03a5a57c39747cea478</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Kunz,&lt;/p&gt;
&lt;p&gt;the basis is this example: &lt;a class="" href="https://store.codesys.com/caa-device-diagnosis-example.html" rel="nofollow"&gt;https://store.codesys.com/caa-device-di ... ample.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the method DeviceController\Reset I pass the desired IP address.&lt;/p&gt;
&lt;p&gt;Var&lt;br/&gt;
    itfAdapter : IoDrvEthernetIP.IRemoteAdapter2;&lt;br/&gt;
    abyIp   : ARRAY &lt;span&gt;[0..3]&lt;/span&gt; OF BYTE := &lt;span&gt;[192,168,99,140]&lt;/span&gt;;&lt;br/&gt;
end_var&lt;/p&gt;
&lt;p&gt;IF itfDevice &amp;lt;&amp;gt; 0 THEN&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;(* with CheckSupportedCommunicationState() it is possible to check whether the requested state can be performed in general. *)&lt;/span&gt;
&lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;itfDevice&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CheckSupportedCommunicationState&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DED&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DEVICE_TRANSITION_STATE&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;RESET&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;

    &lt;span class="c"&gt;(* with CheckCurrentSupportedCommunicationState() it is possible to check whether the device can be reset right now. *)&lt;/span&gt;
    &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;itfDevice&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CheckCurrentSupportedCommunicationState&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DED&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DEVICE_TRANSITION_STATE&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;RESET&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;
        &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="o"&gt;__&lt;/span&gt;&lt;span class="n"&gt;QUERYINTERFACE&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;itfDevice&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="n"&gt;itfAdapter&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;
            &lt;span class="n"&gt;itfAdapter&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IPAddress&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;abyIp&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;END_IF&lt;/span&gt;
        &lt;span class="c"&gt;(* reset the device*)&lt;/span&gt;
        &lt;span class="n"&gt;itfDevice&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;SetCommunicationState&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DED&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DEVICE_TRANSITION_STATE&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;RESET&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Good luck&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: EthernetIP.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3839"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generic Device Parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/?limit=25#7d67" rel="alternate"/><published>2020-02-27T13:51:22.665000Z</published><updated>2020-02-27T13:51:22.665000Z</updated><author><name>kunz</name><uri>https://forge.codesys.com/u/kunz/</uri></author><id>https://forge.codesys.comf28021d63293e1a1fd4090f0c0e14d5c83f015bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Has nobody an idea? or is there a different solution in general? I would be really grateful for help&lt;/p&gt;
&lt;p&gt;Greetings Kunz&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generic Device Parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9bf6a44602/?limit=25#f2e6" rel="alternate"/><published>2020-02-27T13:51:22.515000Z</published><updated>2020-02-27T13:51:22.515000Z</updated><author><name>kunz</name><uri>https://forge.codesys.com/u/kunz/</uri></author><id>https://forge.codesys.com8e1c8defb18cc694a9b0cb28c7c6af428a79d9eb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, everybody,&lt;/p&gt;
&lt;p&gt;I have a problem with an Ethernet/IP Master. In this case I would like to make the Target IP address of the Ethernet/IP Slave dynamically changeable. So save the IP address in a persistent variable and enter it as the Target IP address at program start. &lt;/p&gt;
&lt;p&gt;I have seen that there is the variable as shown in the picture under the Generic Device Parameters of the Ethernet/IP Master. However, I don't know how to specify a variable under the value. Is it possible here don't have to enter the value manually instead of using a variable that can also be changed in the visualization?&lt;/p&gt;
&lt;p&gt;Thank you very much for your help in advance.&lt;/p&gt;
&lt;p&gt;Greeting Kunz&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: target_ip2.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3829"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>