Curve function with 2 coordinates
Function
This module returns a y value for an x value depending on a straight line defined by two coordinates. The first point (coordinate) of the straight line is defined by x1 and y1.
The second point (coordinate) of the straight line is defined by x2 and y2.
If x is smaller than x1, then y=y1. If x is larger than x2, then y=y2
Only strict monotonic increasing or decreasing functions can be implemented. This means that x1 < x2
Inputs
| Input 1 |
0 |
x value |
| Input 2 |
0 |
x value, coordinate 1 |
| Input 3 |
0 |
y value, coordinate 1 |
| Input 4 |
0 |
x value, coordinate 2 |
| Input 5 |
0 |
y value, coordinate 2 |
Output
| Output 1 (send) |
0 |
y value as a result |
Command
| HS Commands (Output 1) |
- |
The commands assigned here are run when the value of output telegram at output 1 is not equal to zero. |
Other
| Telegram interval |
- |
Can be changed. |
| Recalculated on start |
Yes |
|
| Module is retentive |
No |
|
Internal designation: 9044
Value table 1
| X |
X(1) |
Y(1) |
X(2) |
Y(2) |
Y |
| -1 |
50 |
50 |
100 |
100 |
50 |
| 0 |
50 |
50 |
100 |
100 |
50 |
| 1 |
50 |
50 |
100 |
100 |
50 |
| 49 |
50 |
50 |
100 |
100 |
50 |
| 50 |
50 |
50 |
100 |
100 |
50 |
| 51 |
50 |
50 |
100 |
100 |
51 |
| 99 |
50 |
50 |
100 |
100 |
99 |
| 100 |
50 |
50 |
100 |
100 |
100 |
| 101 |
50 |
50 |
100 |
100 |
100 |
| 200 |
50 |
50 |
100 |
100 |
100 |
Value table 2
| X |
X(1) |
Y(1) |
X(2) |
Y(2) |
Y |
| -1 |
50 |
60 |
100 |
185 |
60 |
| 0 |
50 |
60 |
100 |
185 |
60 |
| 1 |
50 |
60 |
100 |
185 |
60 |
| 49 |
50 |
60 |
100 |
185 |
60 |
| 50 |
50 |
60 |
100 |
185 |
60 |
| 51 |
50 |
60 |
100 |
185 |
62 |
| 99 |
50 |
60 |
100 |
185 |
182 |
| 100 |
50 |
60 |
100 |
185 |
185 |
| 101 |
50 |
60 |
100 |
185 |
185 |
| 200 |
50 |
60 |
100 |
185 |
185 |
Similar functions