Directives are declarations defined at the beginning of the formula, used for the formula calculation, starting with the prefix “@@”.
@@SKIP_WHEN_NULL = 1;
Not mandatory, and with a default value of 0.
If defined as 1, the KPI data point is not written if the formula result is NULL.
Example:
@@SKIP_WHEN_NULL = 1;
@temperature; /* Ignore NULL values */
In this case, if the temperature had a NULL value the value would not be written.
@@RECALCULATE_FROM = yyyy-MM-dd [HH:mm:ss];
It is a “one-shot” directive, which asks Rilheva to recalculate the formula starting from a certain date, eliminating the data from that date.
The date is expressed in the timezone of the plant to which the KPI belongs.
The time part is not mandatory, and by default it takes the time at 00:00:00.
After recalculation, this directive is automatically deleted from the formula text.
Example:
@@RECALCULATE_FROM = 2023-01-01;
@temperature + 10 – 4000;
Was this helpful?
0 / 0