Unified Namespace Tutorial: Add Tags to UNS.
Tutorials → Unified Namespace | Tutorial | How-to Guide | Reference
This 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.
1. Create Tank Farm Tags
- Open Unified Namespace → Asset Tree
- Create folder structure:
- Right-click → New Asset Folder:
TankFarm - Create subfolder:
Tank1
- Right-click → New Asset Folder:
- Create Tank1 tags:
- Right click the Tank1 folder, then click the 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
| Name | Type | Path | Min | Max | Units | Description |
| Level | Double | TankFarm/Tank1 | 0 | 100 | % | Tank level percentage |
| Temperature | Double | TankFarm/Tank1 | 0 | 150 | °C | Tank temperature |
| Pressure | Double | TankFarm/Tank1 | 0 | 50 | PSI | Tank pressure |
| PumpStatus | Digital | TankFarm/Tank1 | - | - | - | Pump running status |
| ValvePosition | Integer | TankFarm/Tank1 | 0 | 100 | % | Valve position |
Quick duplication for Tank 2 & 3
- Select the Tank1 Folder
- Right-click the mouse and Copy (Ctrl+C)
- Select the
TankFarm - Paste (Ctrl+V)
- Rename the folder
- Repeat the process to create Tank3
- Paste again and replace for Tank3
2. Create Production Tags
Used for counters, batching, and KPI calculations:
- Add production tags:
| Name | Type | Path | Description |
| Production_Count | Integer | Production | Units produced |
| Production_Rate | Double | Production | Units per hour |
| Batch_ID | Text | Production | Current batch identifier |
| Batch_Start | DateTime | Production | Batch start time |
| Shift_Number | Integer | Production | Current shift (1-3) |
| Quality_Score | Double | Production | Quality percentage |
Paste to the Tags Table
In order to create those tags quicker, just copy copy-paste this table
- Select the entire table, include the titles (Name, Type, Path, Description)
- Open Unified Namespace →Tags
- Right-Click on the first row (insertion) row and execute PASTE
- if by mistake you left-click, instead of right click, you selected one specific cell to edit
- If that happen, either press ESC, or click with the mouse outside the grid area, to close that editing.
- This command will automatically create the Production folder, and the tags.
- Navigate to Unified Namespace →Asset Tree to confirm the tags are in the expected folder
3. Create Equipment Tags
For motor control and equipment status:
- Create folder:
Equipment - Add equipment tags:
| Name | Type | Path | Description |
| MotorRunning | Digital | Equipment | Motor on/off |
| MotorSpeed | Double | Equipment | Motor RPM |
| MotorCurrent | Double | Equipment | Motor current (Amps) |
| MotorHours | Double | Equipment | Run hours |
| ConveyorSpeed | Double | Equipment | Belt speed (m/s) |
Use similar expedite process you used for the other tags
4. Configure Tag Properties
Set Retentive Values
For production counters:
- Select
Production_Count - Enable Retentive checkbox
- Preserves value through restart
5. Create Motor UserType
Build a reusable template:
- Navigate to Unified Namespace → UserTypes
- Create new type:
MotorType - Add members:
- Running (Digital)
- Speed (Double, 0-3600 RPM)
- Current (Double, 0-100 Amps)
- Hours (Double, retentive)
- FaultCode (Integer)
- Return to Tags
- Create instances:
- Name:
Motor2, Type:MotorType - Name:
Motor3, Type:MotorType
- Name:
6. Create System Tags
For scripts and calculations:
| Name | Type | Description |
| System_Running | Digital | System status |
| Calc_Average | Double | Calculated average |
| Alarm_Count | Integer | Active alarm counter |
| Report_Trigger | Digital | Report generation trigger |
7. Test Your Tags
- go to Runtime → Startup
- Click Run Startup
- Open Unified Namespace → Asset Tree
- Verify:
- Tag values
- Folder structure visible
- UserType instances expanded
→ Platform Overview / Technology / Real-Time Tag Database → Platform Overview / Technology / Native Unified Namespace → Platform Overview / Technology / TagProvider Services → Modules / Data Foundation / Unified Namespace → Tutorials / Data Foundation / Unified Namespace Tutorial → How-to Guides / Data Foundation / Unified Namespace How-to Guide → Technical Reference / Platform Modules / Unified NamespaceUnified Namespace Links
Explanation - about foundational technologies
Explanation - to understand concepts
Tutorials - to learn by doing
How-to Guides - to accomplish specific tasks
Reference - technical details
In this section...