data_core:script_tags
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
data_core:script_tags [2019/12/06 15:03] – [Script Tags] su | data_core:script_tags [2022/03/17 14:27] – Updated to include additional script tag templates su | ||
---|---|---|---|
Line 7: | Line 7: | ||
* C# | * C# | ||
* FLEE (Fast Lightweight Expression Evaluation) - [[https:// | * FLEE (Fast Lightweight Expression Evaluation) - [[https:// | ||
- | * Javascript | ||
===== Script Tag Templates ===== | ===== Script Tag Templates ===== | ||
- | Script Tag Templates are pre-configured to perform | + | A number of pre-configured |
- | The following templates exist: | ||
==== Calculations ==== | ==== Calculations ==== | ||
+ | * **Accumulator Calculator** \\ Calculates the accumulated result of a monitored process tag for a given period (e.g. a day). | ||
+ | |||
+ | * **Aggregation Calculator** \\ Periodically calculate an aggregation of a process tag. | ||
* **Average Calculator** \\ Periodically calculates the average value of a process tag. | * **Average Calculator** \\ Periodically calculates the average value of a process tag. | ||
Line 23: | Line 25: | ||
* **Delta Calculator** \\ Calculates the delta between the value of two input tags. | * **Delta Calculator** \\ Calculates the delta between the value of two input tags. | ||
- | * **GasVelocityCalculator** \\ Calculates | + | * **Delta with Offset Calculator** \\ Calculates |
+ | * **Energy Based Availability Calculator** \\ Energy-Based Availability (EBA) is the ratio of actual to expected energy production. | ||
+ | * **Gas Velocity Calculator** \\ Calculates gas velocity using flow rate and pressure. | ||
+ | * **Normalized Deviation Calculation** \\ Calculates the normalized deviation of a process value. | ||
+ | |||
+ | * **Ratio Calculator** \\ Calculates the ratio and between two input tags. | ||
+ | |||
+ | * **Time Based Availability Calculator** \\ Time-Based Availability (TBA) is an energy expression denoting the ratio of a time-period (e.g. a day) when power is available. It does not discriminate the cause of downtime (e.g. a deliberate stop for maintenance, | ||
+ | |||
+ | * **Time Based Delta Calculator** \\ Monitors the rate of change of a process tag over a time period. | ||
+ | |||
+ | * **Turbine Status** \\ A turbine has three basic power-production states: 1. Power; 2. No Wind; 3. No Power. | ||
+ | |||
+ | * **Turbulence Intensity Calculator** \\ Turbulence Intensity (TI) is a measurement of wind speed turbulence. It is the ratio of wind speed StdDev to Mean. | ||
+ | |||
+ | * **Turbulence Intensity Forecast Calculator** \\ Turbulence Intensity Forecast (TI) is an measurement of wind speed turbulence derived from forecasted Wind and Gust Speed (rather than observed wind speed variance). | ||
+ | |||
+ | * **Unit Converter** \\ Convert process value from one unit to another. | ||
==== Sensor Quality Checks ==== | ==== Sensor Quality Checks ==== | ||
Line 37: | Line 56: | ||
* **Frozen Signal Detection** \\ Script tag that periodically ensures that newer values are being received for a tag. | * **Frozen Signal Detection** \\ Script tag that periodically ensures that newer values are being received for a tag. | ||
+ | |||
Line 45: | Line 65: | ||
* **Fleeting Excursion Monitor** \\ Script tag template for monitoring sensors such as acoustic sand probes that can generate fleeting excursions. | * **Fleeting Excursion Monitor** \\ Script tag template for monitoring sensors such as acoustic sand probes that can generate fleeting excursions. | ||
- | * **Limit Monitor** \\Script tag that periodically monitors a process tag value against | + | * **Hi/Lo Limit Monitor** \\ Performs |
- | + | ||
- | * **Time Based Delta Monitor** \\ Monitors the rate of change of a process tag over a time period. | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | == Frozen Data Detection == | + | |
- | " | + | |
- | + | ||
- | Alerts if no new value is received for 24hr period. | + | |
- | " | + | |
- | Bad Data Detection | + | |
- | Script tag template that performs a data quality check. Alerts if a script tag returns NaN or has a ' | + | |
- | + | ||
- | Flatline Detection | + | |
- | " | + | |
- | + | ||
- | Alert if value doesn' | + | |
- | " | + | |
- | Channel Deviation | + | |
- | Script tag template that checks for deviation in output from a sensor with two data channels. An alert indicates that one or both of the channels is unreliable. The method is to regularly compare Channel A and Channel B and check if difference is within acceptable instrument error tolerance. We use a 24hr average as channels may not relay on precisely the same time Default configuration is to check 24hr average difference 4 times per day. | + | |
- | + | ||
- | + | ||
- | ===== Types of Script Tag ===== | + | |
- | ==== Ad Hoc Script | + | * **Limit Monitor** \\ Script |
- | Ad-hoc script tags can perform bespoke calcutations and actions. Use either c# or FLEE script to define. | + | * **Limit Monitor 1 Precondition** \\ Limit monitor that will only trigger |
- | ==== Template Tag ==== | + | * **Limit Monitor 2 Precondition** \\ Limit monitor that will only trigger or reset an excursion event if two precondition tag value checks are met. |
+ | * **Limit Monitor 3 Precondition** \\ Limit monitor that will only trigger or reset an excursion event if three precondition tag value checks are met. | ||
+ | * **Logic Gate Alert** \\ An alert that can be used to summarise the status of multiple alerts using an AND or OR operator. | ||
+ | * **Time Based Delta Monitor** \\ Monitors the rate of change of a process tag over a time period. | ||
+ | * **Value Change Monitor** \\ Monitors a tag and emits an event every time the value of the tag changes. | ||
- | ===== Configuration ===== | ||
- | A user interface exists on App Store Connect to administer script tags. However, for operations of scale (where many tags are required) or security (where access to app store connect server is restricted) it may be necessary to prepare configuration files for upload. | ||
data_core/script_tags.txt · Last modified: 2024/01/25 11:49 by su