Function Block LINEAR4POINT

The function block LINEAR4POINT calculates a value using the line equation with lower and upper limits.

Note: The values X1 and X2 must be in ascending order. That is, X1 < X2.

Input IN

Expects a number to calculate the output OUT.

Input X1

Defines the X-axis at point 1.

Input Y1

Defines the Y-axis at point 1 and limits the output to this minimum value.

Input X2

Defines the X-axis at point 2.

Input Y2

Defines the Y-axis at point 2 and limits the output to this maximum value. The maximum value has priority over the minimum value. If the value Y2 is defined as smaller than the minimum value Y1, the output is always equal to the input Y2.

Output OUT

The calculated output value between points 1 and 2. The value is limited between Y1 and Y2. The slope and distance of the characteristic curve are calculated through points 1 (X1, Y1) and 2 (X2, Y2).