Curve function with 4 points and offset
Contents

1.Description

This module returns a y-value to an x-value, depending on straight lines that are defined by 4 points. The first point of the straight lines is defined by x1 and y1. The last point of the straight lines is defined by x4 and y4. The x- and y-axes can be shifted by the respective offset. If x is smaller (x1- offset x), y=y1. If x is larger (x4-offset x), y=y4

2.Inputs

No.NameInitialisationDescription
1x value0
x value
2x10
x value point 1
3y10
y-value point 1
4x20
x-value point 2
5y20
y-value point 2
6x30
x-value point 3
7y30
y-value point 3
8x40
x-value point 4
9y40
y-value point 4
10Offset x0
Offset x
11Offset y0
Offset y

3.Outputs

No.NameInitialisationSBCDescription
1y value0s
y-value as result
s = send, sbc = send by change

4.Other

Recalculation during start:Yes
Module is retentive:No
Internal designation:17722
Category:Math. functions curves

5.Similar functions

Curve function with 8 points
Curve function with 2 points and offset
Curve function with 8 points and offset
Curve function with 8 points and trigger y-offset
Curve function with 8 points and trigger x-offset
Hysteresis with 3 limits