This Tutorial Teaches
Tutorial teaches you to:
- Create different tag types
- Organize tags with folders
- Configure tag properties
- Use UserTypes (UDTs)
Prerequisites:
In this page:Tags created here providing the foundation for all other tutorials.
Table of Contents |
---|
maxLevel | 2 |
---|
minLevel | 2 |
---|
indent | 10px |
---|
exclude |
---|
|
Steps UNS → Tutorial | Concept | How-to Guide | ReferenceSome fundamental tag types supported by the platform:
Type | Use Case | Example |
---|
Digital | On/Off states | Motor_Running |
Integer | Whole numbers | Product_Count |
Double | Decimal values | Temperature |
Text | Strings | Batch_ID |
DateTime | Timestamps | Last_Update |
- Open Unified Namespace → Tags
- Click first empty row to add tag
- Create these example tags:
- Open Unified Namespace → Asset Tree
- Create folder structure:
- Right-click → New Asset Folder:
TankFarm
- Create subfolder:
Tank1
- 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
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 |
Info |
---|
title | 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
|
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 |
ConveyoSpeed | Double | Equipment | Belt speed (m/s) |
Info |
---|
Use similar expedite process you used for the other tags |
Set Retentive Values
For production counters:
- Select
Production_Count
- Enable Retentive checkbox
- Preserves value through restart
5. Create Motor UserType
Build a reusable template:
Digital Tag:
- Name:
Motor1_Running
- Type: Digital
- Description: Main motor status
Analog Tag:
- Name:
Tank1_Level
- Type: Double
- Min: 0, Max: 100
- Units: %
- Description: Tank level percentage
String Tag:
- Name:
Current_Recipe
- Type: Text
- Initial Value: "Recipe_001"
- Right-click in tag grid → New Folder
- Name:
Production_Line_1
- Drag tags into folder
- Create hierarchy:
Select a tag and configure:
Scaling (for analog tags):
- Engineering Units: Set Min/Max
- Raw Scale: Device Min/Max
- Auto-scales between device and engineering values
Retentive:
- Enable to preserve value through restart
Initial Value:
- Starting value when solution runs
- Navigate to Unified Namespace → UserTypes
- Create new type:
Motor
MotorType
- Add members:
- Running (Digital)
- Speed (Double, 0-3600 RPM)
- Current (Double, 0-100 Amps)
- Hours (Double, retentive)
- Fault FaultCode (DigitalInteger)
- Return to Tags
- Create tag from userTypeinstances:
- Name:
Motor2
, Type: MotorType
- Type: Select your Motor template
- Name:
Motor3
, Type: MotorType
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 |
- go to Runtime → Startup
- Click Run StartupClick Run (F5)
- Open Unified Namespace → Monitor
- See your tags updating
- Double-click to modify values
[Connect to Devices] - Get real data[Define Alarms] - Add alarm conditions- Asset Tree
- Verify:
- Tag values
- Folder structure visible
- UserType instances expanded
Excerpt Include |
---|
| Unified Namespace |
---|
| Unified Namespace |
---|
nopanel | true |
---|
|
[Operator UI Design] - Display tag values