Example

Example 1:

This example merely represents a workflow for setting up a test environment. All parameters such as certificate validity periods, key lengths, etc. are to be set according to the real environment and application.

The mode of operation and configuration of ADS-over-MQTT will now be explained in more detail below on the basis of an example. In the example the Eclipse Mosquitto Broker is used as the broker together with OpenSSL for creating the certificates. The Mosquitto Message Broker is to implement the exchange of data between a TwinCAT XAE and a TwinCAT XAR. In order to secure the communication, the TLS encryption protocol is used in combination with X.509 certificates or in combination with PSK. The structure of the application example is shown schematically in the illustration below.

Example 2:

The configuration files listed in the illustration must be created and adapted accordingly in order to use ADS-over-MQTT. Two examples are presented below.

In the first, ADS-over-MQTT is configured with TLS and X.509 certificates and in the second with TLS and PreSharedKeys (PSK).