<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/</id><updated>2020-02-27T13:51:38.904000Z</updated><subtitle>Recent posts to Working with UDP packets.</subtitle><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#0f24" rel="alternate"/><published>2020-02-27T13:51:38.904000Z</published><updated>2020-02-27T13:51:38.904000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com9c499ecd9b33f67facb76851ff790066a9578632</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No, you don't need to have any "I/O" devices connected.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#5e3c" rel="alternate"/><published>2020-02-27T13:51:38.679000Z</published><updated>2020-02-27T13:51:38.679000Z</updated><author><name>frankputnamjr</name><uri>https://forge.codesys.com/u/frankputnamjr/</uri></author><id>https://forge.codesys.com4234f563eb0ed004f81269739fb5d2a912aaa1bc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Are the devices "Ethernet" and "EtherNet_IP_Scanner" required for the network connection? I had removed them Friday and it worked fine.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#c9f5" rel="alternate"/><published>2020-02-27T13:51:38.537000Z</published><updated>2020-02-27T13:51:38.537000Z</updated><author><name>frankputnamjr</name><uri>https://forge.codesys.com/u/frankputnamjr/</uri></author><id>https://forge.codesys.com1693d037eef459fb1cf18e683b65a540d3ef91c3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Always use Wireshark when developing.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Capture.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1175"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#4aaa" rel="alternate"/><published>2020-02-27T13:51:38.393000Z</published><updated>2020-02-27T13:51:38.393000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com042a1ff0a1472a753d2e70e65402b8313026b025</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You don't have to specify the ipAddr (IP_string) for the UDP peer receiver.&lt;br/&gt;
It might work if you remove this input.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#8ae9" rel="alternate"/><published>2020-02-27T13:51:37.911000Z</published><updated>2020-02-27T13:51:37.911000Z</updated><author><name>frankputnamjr</name><uri>https://forge.codesys.com/u/frankputnamjr/</uri></author><id>https://forge.codesys.combe49570f7c8e13fb049a2595b7018479e886e5fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;img alt="IMG: Capture.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1173"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Capture1.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1174"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#0211" rel="alternate"/><published>2020-02-27T13:51:37.767000Z</published><updated>2020-02-27T13:51:37.767000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com6c78ae1ab7db117a30535782f484aa1ce98f1a13</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What I would do is:&lt;br/&gt;
- Disable the firewall. When this is enabled, it might block incoming messages.&lt;br/&gt;
- Install wireshark and check if the UDP packages are received. This will give you the general information if it is related to the PC/Network or CODESYS.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#315e" rel="alternate"/><published>2020-02-27T13:51:37.626000Z</published><updated>2020-02-27T13:51:37.626000Z</updated><author><name>frankputnamjr</name><uri>https://forge.codesys.com/u/frankputnamjr/</uri></author><id>https://forge.codesys.com2f875728df5a5ebc0591ac0b668564691a66bf3d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Friday the system was working perfectly. The messages came in and the valve indicators lit as requested.&lt;/p&gt;
&lt;p&gt;Monday and today I  am no longer getting the messages into the program. &lt;/p&gt;
&lt;p&gt;When NBS.UDP_Peer is enabled the xActive goes true and hPeer has an address. There are no errors. xBusy stays true and xDone never goes active.&lt;/p&gt;
&lt;p&gt;NBS.UDP_Peer.xActive enables NBS.UDP_Receive. NBS.UDP_Peer.hPeer drives NBS.UDP_Receive.hPeer. There are no errors. xDone and xReady never go active and xBusy is always true. ipFrom, uiPortFrom, and szCount all report zero.&lt;/p&gt;
&lt;p&gt;Is there something missing?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Capture.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1172"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#8326" rel="alternate"/><published>2020-02-27T13:51:37.487000Z</published><updated>2020-02-27T13:51:37.487000Z</updated><author><name>frankputnamjr</name><uri>https://forge.codesys.com/u/frankputnamjr/</uri></author><id>https://forge.codesys.com2201d3f81e9ef9d6753704c459a39f6581347005</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Tim,&lt;/p&gt;
&lt;p&gt;Thanks for the info. It works perfectly.&lt;/p&gt;
&lt;p&gt;The reason for UDP is a CAN to Ethernet converter. Using the CAN messages from the local controller to display information at the control cabin.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#1d4f" rel="alternate"/><published>2020-02-27T13:51:37.340000Z</published><updated>2020-02-27T13:51:37.340000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com8ef972102b09a8d4e07f5705f8a766ba68c14767</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Add the "Use Case" library &lt;span style="color: underline;"&gt;Network&lt;/span&gt; to the library manager.&lt;br/&gt;
See the screenshot for a simple example to receive UDP packages.&lt;/p&gt;
&lt;p&gt;If you are using this to communicate between 2 CODESYS controllers, then maybe you want to consider using Global Network Variables instead of UDP packages.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ScreenShot.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1151"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with UDP packets.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8e5dd6e341/?limit=25#f79e" rel="alternate"/><published>2020-02-27T13:51:37.199000Z</published><updated>2020-02-27T13:51:37.199000Z</updated><author><name>frankputnamjr</name><uri>https://forge.codesys.com/u/frankputnamjr/</uri></author><id>https://forge.codesys.com1b99301a1cc24c77901c669afc6c097679da781a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to work with UDP packets in Codesys V3. Which library would be best for reading and writing UDP packets?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>