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.
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 | Name | Data Type | Description |
Out | real | Derivation value |