In the following samples, the calculated points use data points represented as P1, P2, and P3. These data points must be defined within a Point Server section of the configuration file in order for the Display Server to run these calculations.
The sample calculated point below converts data from liters to kiloliters (Equation = P1/1000).
The calculation is performed every hour (Update IntSec = 3,600 seconds).
The results are stored every hour (Since Number of Entries is Auto, Interval is Hourly).
The last result in the interval is recorded (Since Number of Entries is Auto, Value Type is Instant).
The number of entries stored in history is set to automatic.
1
<CalcPoints>
2
3
' Update Num of Value
4
'Point Name Description IntSec Entries Type Interval Multiplier Rollover Equation
ConvertTemp "Covert C to F" 1800 auto inst hour 2 - "P1*9/5+32"
7
8
</CalcPoints>
The following sample calculated point determines the single highest and lowest temperatures each day between 3 sensors.
The sample calculated point below records an entry each time a room's humidity falls out of the desired range. X represents the maximum desired humidity and y represents the lowest desired humidity (Equation = P1 > x or P1 <y). The value returned would be True or False.
The calculation is performed every 5 minutes (Update IntSec = 300 seconds).
A result is stored every 15 minutes (Interval is Hour and Multiplier is 4).
The maximum value for the interval is stored (Value Type = Max).
The number of entries stored is set to automatic.
1
<CalcPoints>
2
3
' Update Num of Value
4
'Point Name Description IntSec Entries Type Interval Multiplier Rollover Equation