Modbus-MQTT Converter

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

Contents:

  1. Modbus
    1. Project setup
    2. Connecting to MongoDB
      1. General Settings
  2. MQTT
    1. Project setup
    2. Connecting to the broker
      1. General Settings
      2. General Connection 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

Modbus

Project setup

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

Modbus Target

Connecting to Modbus

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

Modbus Connection

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

General settings

Name

Enter a unique name for the connection.

-

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

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