MQTT-OPC UA Gateway

This section of the documentation is still under construction. Please contact us if you have any questions.

Contents:

  1. MQTT
    1. Project setup
    2. Connecting to the broker
      1. General Settings
      2. General Connection Settings
  2. OPC UA
    1. Project setup
    2. Connecting to the OPC-UA Server
      1. General Settings
      2. Authentication Settings
    3. Subscribing automatically when connected
    4. Subscribing manually
      1. Subscribing/unsubscribing per topic
      2. Managing subscriptions
    5. Automatic configuration of topics and payloads
    6. Publishing messages

MQTT

Project setup

In the navigator right-click on the project and choose ‘Add Target’, next choose ‘MQTT’ as the target type and click Ok.

MQTT Target

Connecting to the broker

Right-click on connections and choose ‘New Connection’.

MQTT Connection

It is possible to add multiple connections to a single MQTT target, only one connection can be active simultaniously.

General settings

Name

Enter a unique name for the connection.

Broker Address

The ip address of the MQTT broker.

Broker Port

The port of the MQTT broker.

General Connection Settings

-

Subscribing automatically when connected

In the navigator double-click on ‘Settings’ and select the ‘Subscribe’ category in the Target Settings dialog.

MQTT Target Settings Subscribe

Subscribing manually

Subscribing/unsubscribing per topic

Right-click on a topic and in the context menu choose ‘Subscribe’ or ‘Unsubscribe’. The default Quality of Service for subscribing can be configured in the target settings dialog.

Managing subscriptions

Right-click on a topic and in the context menu choose ‘Manage Subscriptions’. The drop-down box lists all the topics that are known in the project, it is also possible to manually enter a topic in this box.

Manage Subscriptions

Automatic configuration of topics and payloads

In the navigator double-click on ‘Settings’ and select the ‘Topics & Payloads’ category in the Target Settings dialog.

MQTT Target Settings Topics & Payloads

-

Publishing messages

Right-click on a topic and in the context menu choose ‘Publish Message’. The drop-down box lists all the topics that are known in the project, it is also possible to manually enter a topic in this box.

Publish Message

OPC UA

Project setup

In the navigator right-click on the project and choose ‘Add Target’, next choose ‘OPC UA’ as the target type and click Ok.

OPC UA Target

Connecting to the OPC-UA Server

Right-click on connections and choose ‘New Connection’.

OPC UA Connection

It is possible to add multiple connections to a single OPC UA target, only one connection can be active simultaniously.

General settings

Name

Enter a unique name for the connection.

Endpoint Url

The endpoint url of the OPC UA Server, click the browse button to search OPC UA Servers using discovery.

Authentication Settings

-

Found a mistake or want to help improve this documentation? Contact us to suggest changes.

Schrijf je in voor de Plc-Lab nieuwsbrief.

Star

Copyright © 2019 Poelstra Besturingen - Leeuwarden