Filter

B86_FILTER

PROGRAM TEST FILTER
    VAR
 REAL1,REAL2,REAL3 :REAL;
    FB: LIB.CORE.V1_0.B86_FILTER;
   END_VAR
     FB(IN:= REAL1, INDT:=REAL2, OUT=>REAL3);
END_PROGRAM

LIB\CORE

V1.0

The block is an analogue filter of the input signal in time.

InputTypeDescription Default value
IN REALInput signal, distorted by noise, fluctuations, etc. 0
INA REALDO NOT USE 0
INDT REALEffective filtering time. Set DT = 10-30% of the period of the useful signal (Tperiod = 900s ⇒ DT = 90-270s)90
OutputTypeDescription
OUT REALFiltered signal

The block is an analogue filter. There is weighted average at the output out, where older values are less important, they are weighed with lower factor. The importance is set by the indt parameter according to q=1/(1+4Dt/t) (aka exponential decay).

B86 Filter – Sine wave with period T=10 s. X is a white noise signal.

B86 Filter – x - sine wave with white noise, y - filtered signal with parameter indt = 3.

B86 Filter – x - sine wave with white noise, y -  filtered signal with parameter indt = 6.

B86 Filter – x - sine wave with white noise, y -  filtered signal with parameter indt = 9.

B86 Filter – x - sine wave with white noise, y -  filtered signal with parameter indt = 20.

Increasing of the indt parameter out of recommended bounds increases the output signal delay. The original sine signal is flattened at the same time, which causes its lower amplitude.


The filter is used for e.g. outside temperature signal filtering where the outside temperature sensor is influenced by an exhaust air from an air-handling unit. It makes the weather-based controls more stable.

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