FB_BA_Scale_03

FB_BA_Scale_03 1:

The template represents a linear interpolation with three interpolation points and can be used to generate a characteristic curve. The characteristic curve is determined by the interpolation points [X1/Y1] to [X3/Y3]. The calculated output value fY is limited by YMin or YMax.

FB_BA_Scale_03 2:

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

Block diagram

FB_BA_Scale_03 3:

Syntax

FUNCTION_BLOCK FB_BA_Scale_04 EXTENDS FB_BA_View
VAR_INPUT
  fX       : REAL;
END_VAR
VAR_OUTPUT
  fY       : REAL;
END_VAR
VAR_INPUT CONSTANT
  X1       : FB_BA_AV_Op;
  X2       : FB_BA_AV_Op;
  X3       : FB_BA_AV_Op;
  Y1       : FB_BA_AV_Op;
  Y2       : FB_BA_AV_Op;
  Y3       : FB_BA_AV_Op;
  YMin     : FB_BA_AV_Op;
  YMax     : FB_BA_AV_Op;
  Y        : FB_BA_AV_Op;
END_VAR
VAR
  Scale    : FB_BA_Chrct03;
END_VAR

FB_BA_Scale_03 4: Inputs

Name

Type

Description

fX

REAL

Input value of the characteristic curve.

FB_BA_Scale_03 5: Outputs

Name

Type

Description

fY

REAL

Calculated output value of the characteristic curve.

FB_BA_Scale_03 6: Inputs CONSTANT

Name

Type

Description

X1

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point X1.

X2

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point X2.

X3

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point X3.

Y1

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point Y1.

Y2

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point Y2.

Y3

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point Y3.

YMin

FB_BA_AV_Op

The AV object is used to specify the value for the minimum limit of fY.

YMax

FB_BA_AV_Op

The AV object is used to specify the value for the maximum limit of fY.

Y

FB_BA_AV_Op

Output of the calculated output value of the characteristic curve.

Variables

Name

Type

Description

Scale

FB_BA_Chrct03

The function block represents a linear interpolation with three interpolation points and can be used to generate a characteristic curve.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.2.1.0