Documentation

Average Power Meter (T37)

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

Inputs Name Data Type Retain Must be connected Description
In udint No Yes Input counter
N udint No No Number of samples in buffer
Reset bool No No Reset
WLen time No No Length of time window

Outputs

Outputs Name Data Type Description
Out real Derivation value