F_BA_Scale

F_BA_Scale 1:

The F_BA_Scale function represents a linear interpolation with 2 interpolation points and can be used to generate characteristic curves. The characteristic curve is determined by the interpolation points [fX01/fY01] and [fX02/fY02].

Syntax

FUNCTION F_BA_Scale    : REAL
VAR_INPUT
  fX              : REAL;
  fY02            : REAL;
  fY01            : REAL;
  fX02            : REAL;
  fX01            : REAL;
END_VAR

F_BA_Scale 2: Inputs

Name

Type

Description

fX

REAL

Input value of the characteristic curve.

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