UDP

This sample demonstrates how to set up a publisher and subscriber based on OPC UA Pub/Sub UDP. The sample solution contains a TwinCAT project that includes the following PLC configuration:

The I/O configuration includes an OPC UA RT Device with two publishers and two subscribers:

UDP 1:

Creation of the subscribers

The subscribers have been created automatically based on the Configuration import/export. We highly recommend using this exchange format wherever possible.

How to start the sample

Before you activate the sample project, the OPC UA RT device needs to be set up for a network interface card that has the TwinCAT Realtime-Ethernet Adapter driver installed. This can be done via the OPC UA RT device settings dialog.

UDP 2:

Please also make sure that your system meets the system requirements.