<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Activity for dino</title><link href="https://forge.codesys.com/u/dino/activity/" rel="alternate"/><id>https://forge.codesys.com/u/dino/activity/</id><updated>2021-07-09T06:02:18.229000Z</updated><subtitle>Recent activity for dino</subtitle><entry><title>dino modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e02869fd31/?limit=25#1866" rel="alternate"/><published>2021-07-09T06:02:18.229000Z</published><updated>2021-07-09T06:02:18.229000Z</updated><author><name>dino</name><uri>https://forge.codesys.com/u/dino/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e02869fd31/?limit=25#1866</id><summary type="html">I just realised that bytes_received := SysSockGetRecvSizeUdp(socket_handle, 0, ADR(sys_result)); also works once for each port I specify, i.e. when I define a port, download the application and start it, receiving works. After a restart, bytes_received will remain 0. To make it work again, I need to specify another port or restart the PC. Edit: It looks like Control Win does not close open ports during a cold restart or application download. Is this intended or a bug? For now, I added a PrepareStop...</summary></entry><entry><title>dino posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e02869fd31/?limit=25#1866" rel="alternate"/><published>2021-07-08T13:27:06.082000Z</published><updated>2021-07-08T13:27:06.082000Z</updated><author><name>dino</name><uri>https://forge.codesys.com/u/dino/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e02869fd31/?limit=25#1866</id><summary type="html">I just realised that bytes_received := SysSockGetRecvSizeUdp(socket_handle, 0, ADR(sys_result)); also works once for each port I specify, i.e. when I define a port, download the application and start it, receiving works. After a restart, bytes_received will remain 0. To make it work again, I need to specify another port or restart the PC.</summary></entry><entry><title>dino posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e02869fd31/?limit=25#7e06" rel="alternate"/><published>2021-07-08T12:57:58.544000Z</published><updated>2021-07-08T12:57:58.544000Z</updated><author><name>dino</name><uri>https://forge.codesys.com/u/dino/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e02869fd31/?limit=25#7e06</id><summary type="html">Hi, I try to send and receive data using a UDP connection via SysSocket 3.5.17.0. While sending data works fine, I have problems with the receiving part. Basically, the code looks like this: PROGRAM UdpTest VAR test_string : STRING(25) := 'Test string'; socket_handle : RTS_IEC_HANDLE; socket_address : SOCKADDRESS; sys_result : RTS_IEC_RESULT; enable_option : DINT := 1; bytes_sent : __XINT; bytes_received : __XINT; bytes_available : DINT; receive_buffer : ARRAY [0..63] OF BYTE; udp_reply : UDP_REPLY2;...</summary></entry></feed>