FB_BA_Scale_04
![FB_BA_Scale_04 1:](Images/png/12344687499__Web.png)
The template represents a linear interpolation with four interpolation points and can be used to generate a characteristic curve. The characteristic curve is determined by the interpolation points [X1/Y1] to [X4/Y4]. The calculated output value fY is limited by YMin or YMax.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram
![FB_BA_Scale_04 3:](Images/png/14984362763__Web.png)
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;
Y1 : FB_BA_AV_Op;
Y2 : FB_BA_AV_Op;
Y3 : FB_BA_AV_Op;
Y4 : 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_Chrct04;
END_VAR
Inputs CONSTANT
Name | Type | Description |
---|---|---|
X1 | The AV object is used to specify the value for interpolation point X1. | |
X2 | The AV object is used to specify the value for interpolation point X2. | |
X3 | The AV object is used to specify the value for interpolation point X3. | |
X4 | The AV object is used to specify the value for interpolation point X4. | |
Y1 | The AV object is used to specify the value for interpolation point Y1. | |
Y2 | The AV object is used to specify the value for interpolation point Y2. | |
Y3 | The AV object is used to specify the value for interpolation point Y3. | |
Y4 | The AV object is used to specify the value for interpolation point Y4. | |
YMin | The AV object is used to specify the value for the minimum limit of fY. | |
YMax | The AV object is used to specify the value for the maximum limit of fY. | |
Y | Output of the calculated output value of the characteristic curve. |
Variables
Name | Type | Description |
---|---|---|
Scale | The function block represents a linear interpolation with four 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 |