Advanced Tags
Formulas created with multiple TAGs. Used for complex calculations and analyses.
Overview
Advanced Tags allow you to create new calculated values by combining multiple TAGs. For example, you can calculate total power consumption by adding the power consumption of three different lines, or calculate efficiency using input/output energies.
When Should I Use?
- When values derived from multiple TAGs are needed
- For complex mathematical calculations
- In KPI (Key Performance Indicator) calculations
- In energy efficiency analyses
- In cost calculations
Key Features
- Complex calculations with multiple TAGs
- Mathematical operators (+, -, *, /, %, ^)
- Real-time calculation
- SaveToDatabase support
- Can be used in formulas
- Can be used for analysis and reporting
Formula Examples
Advanced TAG Formula Examplesjavascript
// Toplam Güç Tüketimi
TotalPower = TAG1_Power + TAG2_Power + TAG3_Power
// Verimlilik Hesaplama
Efficiency = (Output_Energy / Input_Energy) * 100
// Ortalama Sıcaklık
AvgTemp = (Temp1 + Temp2 + Temp3 + Temp4) / 4
// Enerji Maliyeti
EnergyCost = Energy_kWh * ElectricityPriceSupported Operators
Arithmetic Operators
+Addition-Subtraction*Multiplication/Division%Modulo (remainder)()Parentheses
Creating New Advanced TAG
Step by Step Creation
- Go to Advanced Tag List page
- Click "Add New Advanced Tag" button
- Enter TAG name
- Write formula (using TAG names)
- Test formula
- Set Runtime(Scheduling Configuration)
- Save
Best Practices
Recommendations
- Keep formulas simple and understandable
- Use descriptive TAG names
- Check for division by zero errors
- Check values of used TAGs
- Avoid unnecessary calculations for performance