Function block - first order filter

Inputs

Input

Data type

Description

XIN

REAL

Input analog value.

GAIN

REAL

Transformation gain.

Outputs

Output

Data type

Description

XOUT

REAL

Output signal.

Remarks

The operation performed is:

Output = (Input x Gain) + (OutputPrev * (1-Gain))

The allowed range for the gain is [0.05 .. 1.0]

ST Language

Filt1 is a declared instance of FilterOrder1 function block.

Filt1 (rIn, rGain);
Signal := Fillt1.Xout;

Example

Fixed_Image


Created with the Personal Edition of HelpNDoc: Converting Word Docs to eBooks Made Easy with HelpNDoc