Curve function with 2 points and offset
Contents

1.Description

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

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
6Offset x0
Offset x
7Offset 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:17721
Category:Math. functions curves

5.Similar functions

Curve function with 8 points
Curve function with 4 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