FB_BA_Scale_07

FB_BA_Scale_07 1:

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

FB_BA_Scale_07 2:

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

Block diagram

FB_BA_Scale_07 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;
  X4       : FB_BA_AV_Op;
  X5       : FB_BA_AV_Op;
  X6       : FB_BA_AV_Op;
  X7       : FB_BA_AV_Op;
  Y1       : FB_BA_AV_Op;
  Y2       : FB_BA_AV_Op;
  Y3       : FB_BA_AV_Op;
  Y4       : FB_BA_AV_Op;
  Y5       : FB_BA_AV_Op;
  Y6       : FB_BA_AV_Op;
  Y7       : 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_Chrct07;
END_VAR

FB_BA_Scale_07 4: Inputs

Name

Type

Description

fX

REAL

Input value of the characteristic curve.

FB_BA_Scale_07 5: Outputs

Name

Type

Description

fY

REAL

Calculated output value of the characteristic curve.

FB_BA_Scale_07 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.

X4

FB_BA_AV_Op

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

X5

FB_BA_AV_Op

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

X6

FB_BA_AV_Op

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

X7

FB_BA_AV_Op

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

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.

Y4

FB_BA_AV_Op

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

Y5

FB_BA_AV_Op

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

Y6

FB_BA_AV_Op

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

Y7

FB_BA_AV_Op

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

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_Chrct07

The function block represents a linear interpolation with seven 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