Table of Contents

Average power meter

Block name

T37_AveragePowerMeter

ST call

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

Knihovna

 
LIB\HVAC

,

Verze

V1.0

Description

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.

Inputs

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

Outputs

OutputsNameData Type Description
Out realDerivation value