FB_BA_FltrPT1

FB_BA_FltrPT1 1:

The function block FB_BA_FltrPT1 is a first order filter.

FB_BA_FltrPT1 2:

When the function block is first called (system startup), the output fOut is automatically set to the input fIn once.

Syntax

FUNCTION_BLOCK FB_BA_FltrPT1
VAR_INPUT
  fIn            : REAL;
  nDampConst     : UDINT;
  bSetActl       : BOOL;
END_VAR
VAR_OUTPUT
  fOut           : REAL;
END_VAR

FB_BA_FltrPT1 3: Inputs

Name

Type

Description

fIn

REAL

Input signal

nDampConst

UDINT

Filter time constant [s]. Internally limited to values between 0 and 86400.

bSetActl

BOOL

A rising edge at this input switches the output value fOut to the input value fIn.

FB_BA_FltrPT1 4: Outputs

Name

Type

Description

fOut

REAL

Filtered output signal

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0