F_BA_Slope

The F_BA_Slope function is used to calculate the slope for a linear equation.
Syntax
FUNCTION F_BA_Slope: REAL
VAR_INPUT
fY02 : REAL;
fY01 : REAL;
fX02 : REAL;
fX01 : REAL;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
fY02 | REAL | y-value of the second interpolation point. |
fY01 | REAL | y-value of the first interpolation point. |
fX02 | REAL | x-value of the second interpolation point. |
fX01 | REAL | x-value of the first interpolation point. |
Prerequisites
Development environment | Required PLC library |
|---|---|
TwinCAT from v3.1.4024.62 | Tc3_BA2 from v5.5.14.0 |