Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

MQTT and Unified Namespace (UNS) integration aims to provide data management and communication across devices and applications. MQTT facilitates data transmission using a publish-subscribe model, while UNS acts as a centralized repository for this data, enabling integration and accessibility across different systems.

Integrating MQTT with UNS is designed to overcome the asset modeling challenges posed by disparate data sources and formats, offering structured and contextualized data by providing a unified data format and access point.

This document contains information on how to access elements from an MQTT Broker data model in any area of the Engineering Environment, and it includes information on how to access the entire or just a part of the Asset Model Structure.

On this page:

Table of Contents
maxLevel3
stylenone


Introduction to MQTT and UNS

System Requirements

  • Software platform: Version fs-9.1.12 or higher.
  • Devices → Channel and Node created for the MQTTspB protocol.

Device Configuration

On Devices → Channels, create a new Channel for the MQTTspB protocol. Configure the ProtocolOptions field with the necessary information. Make sure the Type is set for Application Node.

To connect to your Broker, go to Devices → Nodes, create a node, assign it to the newly created channel, and fill the Station parameters.

There is no need to create communication Points.


Unified Namespace

Context

Unified Namespace is a software solution that acts as a centralized repository of data, information, and context where any application or device can consume or publish the data needed for a specific action.

It allows users to collect data from many sources and transform it into a format that other systems can understand. Without a centralized data repository, it could take months to deploy a new analytics application across the entire enterprise versus hours with a unified namespace.

Access Elements in Engineering

Once you have successfully established a connection to an MQTT Broker, you can start using your Data Model's available variables in your project.

In the Draw Environment, insert a TextBox element in your display. Double-click it and add a TextIO Dynamic. 

In the ObjectName field, select the Browse button. In the dialog window, you should see a list of objects you can choose from. MQTT will be at the bottom of the list. 

Image Removed

You can click on MQTT to expand it and browse through the existing elements that is connected to your Broker (1). 

The expression field will be filled with a syntax.

Example: MQTT.(”AddressInMQTT”) (2).

By doing this, you can add the information from this Communication Protocol directly to your display, without needing to create a Tag and Communication Point.

Image Removed

This feature can be also used to create AlarmItems or to store data in HistorianTables. You can use this MQTT variable as a Communication Point to Write Data in a different Protocol.

Image Removed

Asset Modeling

In your solution, you can have a full or partial view of the MQTTspB Data Mode. On Unified Namespace → Asset Tree, you can create your own Levels data structure and assign MQTT nodes to them.

Workshop

This method allows you to import just a piece of the model from the selected node.

The name of the Level in the Asset Tree (in Runtime) can be edited in the Description column (2).

Image Removed

In your Draw Environment, add a component called AssetControl. Open the element's configuration, and uncheck the Show Only Tags CheckBox.

Image Removed

Alternatively, you can import the entire Data Structure by using the RemoteAssets component.

Image Removed

If everything was done correctly, your Asset View should look something like this in Runtime. 

Image Removed

It is very important to ensure that the information displayed, both in Runtime and in the Engineering Environment, are Dynamic. The displayed asset tree depends on what information is being sent to the Broker.

This workshop provides an overview of these tools and instructions on integrating them into your projects.

workshop provides an overview of these tools and instructions on integrating them into your projects.

Info
titleWorkshop used version 9.2

The following workshop used the version 9.2, not the version 10, so its users interface is the classic one. 

Despite changes on the configuration user interface, many of the concepts introduced in the workshop still applies as a valid architecture

Widget Connectorwidth900

Widget Connector

urlhttp://youtube.com/watch?v=HPlrf_IVFMQ

height600

Solution Examples

Take a look in the following solutions, on examples on how to use Unified Namespaces, AssetTree and TagProviders

ProductionLine Demo

SolarPanel Demo


In this section...

Page Tree
root@parent
spacesV10