FB_BA_FilterPT1

FB_BA_FilterPT1 1:

First order filter.

FB_BA_FilterPT1 2:

The initialization of the template takes place within the method FB_Init.

Block diagram

FB_BA_FilterPT1 3:

Syntax

FUNCTION_BLOCK FB_BA_FilterPT1 EXTENDS FB_BA_View
VAR_INPUT
  fIn                : REAL;
  bSync              : BOOL;
END_VAR
VAR_OUTPUT
  fOut               : REAL;
END_VAR
VAR_INPUT CONSTANT
  DampingConstant    : FB_BA_AV_Op;
END_VAR
VAR
  PT1                : FB_BA_FltrPT1;
END_VAR

FB_BA_FilterPT1 4: Inputs

Name

Type

Description

fIn

REAL

Input signal.

bSync

BOOL

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

FB_BA_FilterPT1 5: Outputs

Name

Type

Description

fOut

REAL

Attenuated output signal.

FB_BA_FilterPT1 6: Inputs CONSTANT

Name

Type

Description

DampingConstant

FB_BA_AV_Op

AV object for entering filter time constant.

Variables

Name

Type

Description

PT1

FB_BA_FltrPT1

Notification Class Object.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0