S02: UDP Client Server (PLC/C++)

This example describes how a TwinCAT project can act as a UDP server. Thus, values can be delivered to the real-time or from the real-time on request.

The example implements an "echo service": A UDP server is started on a port (default: 10000). If this server receives a UDP packet, it returns the content to the sender (with same IP and same port). The example is available in PLC and C++.

For testing purposes, a UDP client (written in .NET) is also available.

The samples are also available in more detail as Quick Starts.