Versions Compared

Key

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

Overview

External TagProviders enable direct interaction with variables in remote systems, bypassing the need to create specific tags in the solution. They establish connections with tag sources, which can be set up in a table or directly in the assets, enhancing the versatility of data access and exploration within the Unified Namespace.

Imagem1-2 (1).png

On this page:

Table of Contents
maxLevel3
stylenone


Understanding External TagProviders

The External TagProviders allows connections with external System, to read our write from those system, without the need the create local Tags. Displays and other modules can directly access the data from remote systems, which can have its structure changing dynamicalu.

Automatic & Tagless Connections!

  • Connect to external data sources and consume their Data Models in Unified Namespace.
  • Automatically access all tags and data structures by connecting to the provider with a simple configuration
  • The connected provider’s Tags and Data model will be available for use in various Modules (Displays, Scripts, Reports, and more)
  • Providers to various systems: Protocols, Historians or Devices
  • When connecting with Historians, you can easily plot Trend Charts, as well archived data on that external Historian.


Supported TagProviders Connections

Integration with Historian Systems

Integration with Communication Protocols

Integration with other Applications


Configuring the External TagProviders

All TagProviders have common configuration items: Provider, Access Mode, Name, Description, and Test. The Provider specifies the platform the TagProvider will interface with. Access Mode determines permissions for tag interaction: Read allows data reading, Write permits data writing, and ReadWrite enables both. The Name is a user-defined identifier for the TagProvider instance, aiding in identifying the specific configuration within the software platform. The Description explains the TagProvider's purpose or the platform it interfaces with, providing context for its usage. The Test button verifies the connection settings to ensure successful communication with the specified device or data source.

While some parameters address common needs like connection settings and data access modes, others are unique in that they cater to each system's particular functionalities and technical characteristics. Each External TagProvider has its own configuration parameters tailored to meet specific technical requirements and specifications. These unique parameters ensure that each TagProvider can interface with the platform, enabling data integration according to individual operational requirements.

Configuration Workflow

To connect to external data sources to use its data definitions models, follow the steps below:

Step 1: Identify the appropriate External TagProviders based on the communication protocol of the external data source (e.g., OPC UA, Modbus, Custom).

Step 2: In the software, navigate to the External TagProviders configuration section and create a new instance. Provide necessary information such as the provider's name, communication settings, and any required authentication credentials.

Step 3: Test the Connection, exploring the Data. (You can perform it directly at the Unified Namespace AssetsTree page)

Step 4: Create a New AssetFolder in the AssetTree, selecting that folder use toolbar command Insert Link to TagProvider, selecting the initial node on the TagProvider data that will be incorporated to the AssetTree.

Step 5: You can customize the Alias for that Node

Tip

The Step to Create is an AssetFolder and Insert a Link to a node from the TagProvider is necessary to use the TagProvider data within the solution. 

The TagProvider node in the AssetTree is just to allow browsing and data mining, but only the Data is on the AssetTree nodes will visible for be used by the other modules.


Creating a new TagProvider Source

In your Engineering Environment, navigate to Unified Namespace / External TagProviders

Click on the 'New Item' button to launch a dialog window titled 'Create New External TagProvider'. From the provided list, select a Communication Protocol and assign an appropriate name.

After you select a Protocol, you will see a configuration table with columns that are similar to the ones in the Channels, Nodes, and Points pages. However, the columns will all be grouped on a single page. For this example, we will use MQTTspB.

The configuration settings are detailed below:

  • Name: Name of the provider. This will be used to access elements from this namespace.
  • Provider: Communication Protocol of choice.
  • Parameters: Char separator for the communication protocol of choice.
  • Primary/Backup Station: Connection String information used to establish a communication (same as on Devices / Nodes).
  • Access: AccessType for this connection (Read/Write/ReadWrite).
  • ReadTime: Read Pooling Rate.
  • WriteTime: Write Rate.

The Primary/Backup Station will be configured according to the communication protocol.

For more information, please refer to the specific protocol documentation.


Working with External TagProviders

Access Elements in Engineering

Once you finish your configuration and establish a successful connection, you will be able to access the variables from the Device in various places within the Engineering Environment.

Browsing the

tags

values

Go to Unified Namespace → AssetsTree

You can start by clicking on the Object Selectionbutton. In the left portion of the popup window, you should see a list of objects from every Solution Namespace. Use the name that you defined in the ExternalTags Sources configuration (2) to search for the namespace. 

Expand the list so you can see all the variables from that Device. By selecting an element, you can see the current value read from the Device (3).

browse the tree, the right side tables will updated showing the contents of the Selected Folder

Reading and Writing values from other Modules 

After including TagProvider in the AssetTree nodes, you can access that in using the Asset() method.

Directly accessing tags

You can also access your variables directly through their addresses, following the

.E.g.:,if using ControlLogix, the final part of the AssetPath is the address, using

same syntax used in Devices / Points: <ProviderName>.("<Type>:<Address>")

.E.g.:

  • AssetControlLogix.("/Folder1/DINT:PROGRAM:MAINPROGRAM.MYDINTMyPlcTag")
  • ControlLogix.Asset("/Area1/Line1/DINT:MyArray1DimDINT[0]")

E.g.2:

To read and write the asset with data received from the PLC, you can use the following code with VB.NET:

Image Removed

The tag address can be found under "Edit > Tag > Providers > Browse Values..."

Image Removed

You can also add a Remote Tag to your Display. Go to the Draw Environment, select a TextBox element (or any other component/symbol), and add it to your display. Double-click it and add a TextIO Dynamic with the same method as if you were assigning a tag. 

In the ObjectName field, select the Browse button and search for the desired variables. By doing this, you can display the information from the Communication Protocol directly in you Display, without the need to create a Tag and Communication Point.

The expression field will be filled with the syntax: ?ExternalTags SourcesName?.(”? Address In Provider ?”).

Image Removed

Since the address in the expression is a string, you can assign other Tags or Properties so that it has a Dynamic Configuration.

Image Removed

This feature is not limited to Displays. You can create AlarmItems, store data in Historian Tables, and use this remote variable as a Communication Point to Write Data for a different Protocol.

Image Removed


Tip

The best way to pickup the right syntax, it is to use the Object Browser Image Added from the top Toolbar, and navigate to the element you need. 

The proper AssetPath is shown on that window as you navigate the tree.

You can use the Asset() syntax, not only in scripts, but on Displays, and in all fields in the software where a Tag is expected, including:

  • On Displays, mapping Symbol properties, linking Dynamic properties,
  • On Alarms, creating Alarm events
  • On Historian, archiving the data

Using TagProviders on Assets Displays

It is possible to have a full or partial view of the Data Model inside your Solution. On Unified Namespace / Asset Tree, you can create your own Levels and assign a part of the Device's structure to it from the Namespace discussed in the previous section.

This method allows you to import all your model, or just a piece of it, from the selected node down. The name of the Level in the Asset Tree (in Runtime) can be edited in the Description column.

In your Draw Environment, add the AssetControl component, open its configuration, and uncheck the Show only tags check box.

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



In this section:

Page Tree
root@parent
spacesV10