Versions Compared

Key

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

 Unified Namespace Tutorial: Add Tags to UNS.

TutorialsUnified Namespace | Tutorial | How-to Guide | Reference


This Tutorial Teaches

(Tutorial) teaches

you to:

  • Create different tag types
  • Organize tags with folders
  • Configure tag properties
  • Use UserTypes (UDTs)

Prerequisites:

Tags created here providing the foundation for all other tutorials.

In this page:

Table of Contents
maxLevel2
minLevel2
indent10px
exclude
Steps
Tutorial
stylenone
 Unified Namespace →  Tutorial | Concept | How-to Guide | ISA-95 | Reference

Understanding Tag Types

Some fundamental tag types supported by the platform:

TypeUse CaseExampleDigitalOn/Off statesMotor_RunningIntegerWhole numbersProduct_CountDoubleDecimal valuesTemperatureTextStringsBatch_IDDateTimeTimestampsLast_UpdateStep 1:

1. Create Tank Farm Tags

  1. Open Unified Namespace → Asset Tree
  2. Create folder structure:
    • Right-click → New Asset Folder: TankFarm
    • Create
subfolders
    • subfolder: Tank1
  1. Create Tank1 tags:
  • Select Right click the Tank1 folder, then click the Add New Tag button
  • The Tag will be created inside that folder
  • If you create in a wrong place, just drag drop to the correct location



FolderTemp
NameType
PathMinMaxUnitsDescription
LevelDoubleTankFarm/Tank10100%Tank level percentage
TemperatureDoubleTankFarm/Tank10150°CTank temperature
PressureDoubleTankFarm/Tank1050PSITank pressure
PumpStatusDigitalTankFarm/Tank1---Pump running status
ValvePositionIntegerTankFarm/Tank10100%Valve position

Quick duplication for Tank 2 & 3

  1. Select the Tank1 Folder
  2. Right-click the mouse and Copy (Ctrl+C)
  3. Select the TankFarm
  4. Paste (Ctrl+V)
  5. Rename the folder
  6. Repeat the process to create Tank3
  7. Paste again and replace for Tank3

Step

2

:

. Create Production Tags

Used for counters, batching, and KPI calculations:

  1. Add production tags:
NameTypePathDescription
Production_CountIntegerProductionUnits produced
Production_RateDoubleProductionUnits per hour
Batch_IDTextProductionCurrent batch identifier
Batch_StartDateTimeProductionBatch start time
Shift_NumberIntegerProductionCurrent shift (1-3)
Quality_ScoreDoubleProductionQuality percentage

    

Info
titlePaste to the Tags Table

In order to create those tags quicker, just copy copy-paste this table

  1. Select the entire table, include the titles (Name, Type, Path, Description)
  2. Open Unified Namespace →Tags
  3. Right-Click on the first row (insertion) row and execute PASTE
    1. if by mistake you left-click, instead of right click, you selected one specific cell to edit
    2. If that happen, either press ESC, or click with the mouse outside the grid area, to close that editing. 
  4. This command will automatically create the Production folder, and the tags.
  5. Navigate to Unified Namespace →Asset Tree to confirm the tags are in the expected folder



Step

3

:

. Create Equipment Tags

For motor control and equipment status:

  1. Create folder: Equipment
  2. Add equipment tags:
Folder
NameType
PathDescription
MotorRunningDigitalEquipmentMotor on/off
MotorSpeedDoubleEquipmentMotor RPM
MotorCurrentDoubleEquipmentMotor current (Amps)
MotorHoursDoubleEquipmentRun hours
ConveyoSpeedDoubleEquipmentBelt speed (m/s)


Info

Use similar expedite process you used for the other tags


Step

4

:

. Configure Tag Properties

Add Simulation (for testing)

  • Select Tank1_Level
  • In properties:
    • Simulation: Ramp
    • Period: 60 seconds
  • For temperatures (random variation):

  • Select all temperature tags
  • Simulation: Random
  • Min: 20, Max: 30
  • Set Retentive Values

    For production counters:

    1. Select Production_Count
    2. Enable Retentive checkbox
    3. Preserves value through restart
    Step



    5

    :

    . Create Motor UserType

    Build a reusable template:

    1. Navigate to Unified Namespace → UserTypes
    2. Create new type: MotorType
    3. Add members:
      • Running (Digital)
      • Speed (Double, 0-3600 RPM)
      • Current (Double, 0-100 Amps)
      • Hours (Double, retentive)
      • FaultCode (Integer)
    4. Return to Tags
    5. Create instances:
      • Name: Motor2, Type: MotorType
      • Name: Motor3, Type: MotorType
    Step

    6

    :

    . Create System Tags

    For scripts and calculations:

    Initial Value00
    NameType
    Description
    System_RunningDigital
    System status
    Calc_AverageDouble
    Calculated average
    Alarm_CountInteger
    0
    Active alarm counter
    Report_TriggerDigital
    0
    Report generation trigger
    Step


    7

    :

    . Test Your Tags

    1. go to Runtime → Startup
    2. Click Run (F5) Startup
    3. Open Unified Namespace → MonitorAsset Tree
    4. Verify:
      • Simulation values changingTag values 
      • Folder structure visible
      • UserType instances expanded
    5. Double-click values to modify manually

    Tag Summary

    You've created ~40 tags that serve as the foundation for:

    • Alarms: Level and temperature monitoring
    • Historian: Time-series data collection
    • Scripts: Calculations and logic
    • Displays: Visual representations
    • Reports: Production metrics

    Next Steps

    With tags configured, proceed to:

    • [Alarms & Audit-Trail] - Monitor tank levels
    • [Historian: Store & Trend] - Log process data
    • [Scripts & Data Enrichment] - Add calculations
    • [Complete Solution] - Build full application

    Excerpt Include
    Unified Namespace
    Unified Namespace
    nopaneltrue


    In this section...

    Page Tree
    root@parentspaces93DRAF