Average power meter

T37_AveragePowerMeter

PROGRAM test
   VAR
 apm: LIB.HVAC.V1_0.T37_AveragePowerMeter;
   END_VAR
 
END_PROGRAM

 
LIB\HVAC

,

V1.0

Calculation of derivation of input signal. Derivation is calculated from samples from time window. Input is sampled with defined time period and samples are saved in circular buffer. Number of samples in buffer and sample rate are defined by input parameters. Youngest and oldest samples are used to calculate derivation. Vlock should be used in specific situations, where is no need to sample input signal only on change of the value.

InputsName Data TypeRetainMust be connected Description
In udintNo Yes Input counter
N udintNo No Number of samples in buffer
Reset bool No No Reset
WLen time No No Length of time window
OutputsNameData Type Description
Out realDerivation value


  • © Energocentrum Plus, s.r.o. 2017 - 2024