Versions Compared

Key

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


HTML
<style>
.text-span-6 {
    background-image: linear-gradient(99deg, rgba(170, 163, 239, .5), rgba(125, 203, 207, .5));
    border-radius: 50px;
    padding-left: 15px;
    padding-right: 15px;
}

#title-text {
display: none;
}

.panelgradient {
    background-image: linear-gradient(180deg, #d5def0, whitesmoke);
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    display: flex;
    position: relative;
}

</style>


<div class ="panelgradient">

<h1 style="text-align: center;">Unified Namespace <br> (Tags and UDTs)</h1>

</div>



Introduction to the Unified Namespace

Image Modified

The Unified Namespace provides a centralized data repository and a standardized method for organizing and accessing data from various sources. This concept streamlines data management, enhances system interoperability, and simplifies the development of applications that utilize data from multiple sources.

Image Added

On this page:

Table of Contents
maxLevel3
minLevel2
stylenone


Key Concepts and Terms

Tag

A process variable representing real-time and historical data, created locally or accessed remotely.

Panel
bgColor#ffffff

Asset Tree

A hierarchical representation of the solution data, containing variables and data templates

matching

that match sensor

reading

readings, physical

equipments

equipment, setpoints, recipes, management data, and all the variables necessary to implement and operate an application.

PanelbgColor

#ffffff

Data Template (UDT)

User

A user-defined data structure that includes variables and references to other templates, creating a hierarchical data structure.

PanelbgColor#ffffff

External

TagProvider Connection

Enable

Enables direct interaction with variables in remote systems without creating specific tags, enhancing data access within the Unified Namespace

. Panel
bgColor#ffffff

Tag

Process variable representing real-time and historical data, created locally or accessed remotely

.

Panel
bgColor#ffffff

Enumeration

Define

Defines potential values or ranges for a variable, mapping messages and colors to each state.

PanelbgColor#ffffff

Runtime Database

In

An in-memory real-time database for Unified Namespace data, ensuring efficient data management during solution execution.


Understanding the Unified Namespace 

Module Features

  • Real-time Elements: The system includes a built-in, real-time, event-driven, in-memory database that manages tags, assets, and events within the application.

  • Real-time Tag Types: Unlike typical HMI-SCADA systems with basic tag types, this platform supports advanced real-time entities matching that match all SQL types and many .NET Framework entities, including JSON objects and complete DataTables in a single real-time tag.

  • Dynamic Arrays and References: The system supports tri-dimensional dynamic arrays, lists, and type-safe reference tags with dynamic assignments, creating reusable components for displays, symbols, reports, calculations, and other solution parts.

Tags vs

External TagProviders

TagProvider Connection

It’s important to distinguish between these two concepts:


Tag
External
TagProvider Connection
Definition

Tags represent real-time and historical data variables that modules can read, write, and subscribe to.

External TagProviders

TagProvider Connections enable direct interaction with variables in remote systems, bypassing the need to create specific tags within the solution.

Creation

Tags are created locally within the solution. If you want to map the value of the Tag with remote system, the Module Device handles that Configuration. 

Connection settings are defined in the solution, while the data, tag names, and structures are defined in the remote system, like OPC-UA Servers, MQTT Broker or Historian system.

Usage

Tags are central to the solution configuration and

are

when used by various modules (

Devices,

Datasets, Scripts, Historian, Displays) and they be accessed either path its AssetPath and the Asset() methods, or directly by its TagName. 

Eg.

External TagProviders facilitate the use of remote data directly within the solution, supporting protocols like OPC UA, MQTT, and various historian systems.

:  Tag.Area1/LIne1/State  or Asset("Area1/LIne1/State")

TagProvider Connections are linked to folders within the Unified Namespace, which are dynamically populated according the contents of the remote System. The Modules access the values exclusively by its AssetPath and the Asset() method.  

Eg.: Asset("/Area1/Line1/State")


The decision to create Tags and the Devices Module to map its data, or to use TagProvider Connections, is discussed at the page Devices Module and TagProviders.

The key concept is that there are two very distinct ways to interface with external data, each with its own limitations and benefits. According to your requirements, one approach or the other will clearly be the best way to set up. For various solutions, it is likely that your Unified Namespace will have some data in local tags, mapped to devices, and some data dynamically driven by remote systems using the TagProvider Connection.

See more about TagProvider Connections


Configuring the Unified Namespace

Configuration Workflow

The Unified Namespace’s

Configuring the Unified Namespace Configuration Workflow

The Unified Namespace → Asset Tree is where you build your data definitiondefinitions. From this central point, you can create or import tags, organize the hierarchy, and monitor the current values of your variables.

When you start a new Solutionsolution, the Asset Tree has includes a built-in folder "Base Tags" to keep all tags from the Root level (tags not associated with an AssetFolder), That allows a better visualization of your Asset Tree when there is large number of tags“RootTags” folder for all root-level tags, improving visualization for large tag sets.

Typical configuration process:

  1. Creating Data Templates: Define reusable tag data structures.
  2. Creating Tags and AssetFolders, organizing : Organizing your data.
  3. Creating TagProviders and adding links in the folders to its : Add links to folders for external data.

Editing the

Assets Tree

AssetTree

  • Create a new folder: Folders allow you to organize, group and create hierarchies for your assets. Click Organize and group assets using the new Asset Folder icon to create one Image Added or right-click the Asset Treemenu from the Root or parent node.
  • Create new Tags: After selecting Select a folder , use the New Tag toolbar and use the New Tag toolbar Image Added button or right-click menu, to create a new tag inside that folder. 
  • Move Tags to selected folders: Just drag tags from the BaseTags folder — or other location — Drag tags to the desired placement level at the treefolder.
  • Create TagProviders: If using that feature, create TagProvides with toolbar icon (. ), or right click or with the menu option File / New / Use the toolbar icon New TagProvider Image Added or the menu command File > New > TagProvider Connection.
  • Insert Link Remote Assets: select any folder, rightData: Right-click a folder and use the context menu Add Link to TagProvider, so you can insert specific data from the external systemcommand  "Link Data from TagProvider", or use the toolbar iconImage Added.

Read more about Assets Asset Tree.

Defining Data Templates

Data Templates allow you to create custom data structures for reusable tag configurations. They streamline , streamlining data management and improve improving system efficiency by defining hierarchical structures representing that represent assets or information models.

Read more about Data Templates.

Defining Tags

The page Unified Namespace → Tags allows you to:

  • Create,

    Modify and Delete Tag Objects. 

    modify, and delete tag objects.

  • Use

    Built

    built-

    In Tools

    in tools for

    Search

    search and

    Filtering

    filtering.

  • Bulk-

    Edit

    edit.

→ Read more about Tags.

Defining Enumerations

Enumerations are sets of named integer values used to represent representing discrete options or states. By assigning meaningful names to integer values, you will improve , improving code readability and reduce reducing errors.   An example of this is a set of named states for a pump, such as "Off", "On", and "Fault", with corresponding integer values of For example, a pump’s states like “Off”, “On”, and “Fault” with values 0, 1, and 2.

To Create Enumerations

  1. Go
To Unified
  1. to Unified Namespace → Enumeration.
  2. Click
'New'
  1. ‘New’ on the
Grid Toolbar
  1. grid toolbar.
  2. Open the
'Create
  1. ‘Create New
Enumeration'
  1. Enumeration’ pop-up window.
  2. Enter the
Name
  1. name of the
Enumeration and Click 'Ok' to Create a New One
  1. enumeration and click ‘OK’.
  2. Add
the Properties of the Enumeration Set.
  • Add On and Off options
  • Set Default Value to Each
  • *for example, '1' for 'On' and '0' for 'Off', and customize any enumeration properties
    1. properties to the enumeration set, such as
    ActiveColor and InactiveColor, and several other available properties
    1. ‘On’ and ‘Off’ with default values.

    Read more about Enumerations.

    Using

    External TagProviders 

    TagProvider Connections

    To

    The creation of Tag Providers, as presented, can happens with the menu File/New command or Asset Tree toolbar. 

    Ir oder to incorporate data from TagProviders into the Asset Tree, just select any AssetFolder in the Tree (or create a new one if necessary), and right-click on the folder to execute the command Insert Link to TagProvider.:

    1. Select or create an AssetFolder.
    2. Right-click the folder and execute the command “Link Data from TagProvider”.

    The Unified Namespace → TagProvider Connections  page allows reviewing The page Unified Namespace → External TagProviders allows to review the list of defined TagProviders , or to browse the contents of the or browsing external data contents.

    → Read more about External TagProviders.


    Working with the Unified Namespace

    Runtime Execution

    When the solution execution starts, the Unified Namespace definition is loaded into an in-memory real-time database, implemented by the TServer.exe process. During execution, the This real-time database provides enables event-driven data exchange of tag and asset values between various modules, like such as alarms and displays. 

    → "Runtime (Solution Execution)."

    Accessing Assets in Scripts and Expressions

    The platform's various modules, Modules like Alarms and Displays , can access any variable from the Unified Namespace using its full name or path. For example, to access a tag when creating an operator display, use "Tag" “Tag” to access available tags. A tag property called Temperature “Temperature” from a data template tag named Machine 1 “Machine1” would have the full path: Tag.Line.Machine1.Temperature 

    This information is also accessible to other applications using the built-in MQTT broker or its native ability to act as an OPC Server.

    RemoteAssets Methods

    RemoteAssets methods allow interaction with assets remotely. They provide functions to map and unmap entire assets.  They also refresh readings of the registered elements:

    RegisterElementToTag: Maps an entire RemoteAsset to a tag, requiring a template with the same structure as the asset.
    @Client.RegisterElementToTag(string assetName, string tagName, [bool readOnly=false])

    RefreshRemoteTags: Performs a new reading on the registered elements.
    @Client.RefreshRemoteTags()

    UnregisterElementToTag: Removes the RemoteAsset from the registered list.
    @Client.UnregisterElementToTag(string assetName)

    .

    You can also access values using the Asset() method syntax. For example, if you place the tag defined in the previous example inside a folder called Line1, the path for that value would be:

    Asset("/Line1/Machine1.Temperature"UnregisterAllAssets: Removes all RemoteAssets from the registered list.
    @Client.UnregisterAllAssets()


    Anchor
    BestPractices
    BestPractices
    Best Practices and Troubleshooting

    Best Practices and Recommendations

    To get maximize the most out benefits of the Unified Namespace, follow these best practices:

    Organization of the

    data structure

    Data Structure

    • Organize tags into a clear hierarchy with folders and templates for easier navigation and understanding.
    • Plan data structures carefully, considering the relationships between assets, tags, and templates.
    • Use templates for reusable data structures, reducing redundancy.
    • Integrate Seamlessly integrate external data sources seamlessly using ExternalTags SourcesTagProviders.
    • Use consistent naming conventions for tags to simplify navigation and troubleshooting.

    Status Monitoring 

    • Add specific displays and scripts to regularly monitor system performance and connection status regularly.
    • Implement alarm conditions for critical connection losses.

    Common Issues and Solutions

    Some common issues while working with the Unified Namespace include:

    Inconsistency or

    missing data from external systems:

    Missing Data from External Systems:

    • Ensure that
    When using ExternalTags Sources, ensure
    • the external application
    provides and
    • maintains the Unified Namespace, including variable names and structure.
    • Refer to the UNS
    External
    • TagProviders Connections section for diagnosing
    connections
    • connection issues.
    When mapping Tags to Device Communication
    • For device communication drivers, the
    Tag Definition is the Solution, so the Tag
    • tag name will always
    show property
    • display correctly in the Unified Namespace, but its value
    in depending
    • depends on the connection with the remote device.
    • Refer to the Devices (Field Communication) section
    on
    • in the documentation for
    information on
    • setup and
    diagnose connections with field devices. 
    • diagnostic information.
    • This
    concept
    • applies to any external data source
    being used by the system, like
    • , such as remote SQL
    database
    • databases or custom scripting using external APIs.

    Inconsistency or

    missing data after importing

    Missing Data After Importing:

    • Ensure that import files (Excel, CSV,
    or other formats
    • etc.) are properly formatted
    ,
    • with the required columns
    present,
    • and compatible data types
    and values.

    Performance issues

    Here are some key areas to review when improving performance: 

    • Target Solution: Structure and organize solutions efficiently to improve performance.
    • Driver Communication: Use the Monitor Page and Runtime Diagnostics to monitor driver communication.
    • Displays: Avoid overloading displays with excessive information.
    • Optimization and Grouping: Use only necessary tags, group them logically, and reuse assets when possible.
    • Modular Templates: Design modular templates to reduce redundancy and streamline management.

    In this section:

    Page Tree
    root@parent@self
    spacesV10