Curve function with 4 coordinates
Function
This module returns a y value for an x value depending on a straight line defined by 4 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 x4 and y4.
If x is smaller than x1, then y=y1. If x is larger than x4, then y=y4
Inputs
| Type |
Initial value |
Description |
| 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 |
| Input 6 |
0 |
x value, coordinate 3 |
| Input 7 |
0 |
y value, coordinate 3 |
| Input 8 |
0 |
x value, coordinate 4 |
| Input 9 |
0 |
y value, coordinate 4 |
Output
| Output 1 (send) |
0 |
y value as a result |
Commands
| 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: 9045
Examples for curve characteristics HS22_Logik003.VSD
Similar functions