FB_BA_Scale_03
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.
The initialization of the template takes place within the method FB_Init. |
Block diagram
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
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. | |
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. | |
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 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 |