(CAA_Mathematics.library)
This function block will evaluate a piecewise linear function (the characteristic curve) at an point . The characteristic curve is specified by a defined number of integral sampling points
.
Input:
lrInputValue |
LREAL |
interpolation point
|
usiNoPoints |
USINT |
number |
Input/Output:
ap2lrPoints |
ARRAY[0..10] OF MATH.POINT2_LREAl; |
array of |
Output:
lrOutputValue |
LREAL |
interpolated value at point |
xError |
BOOL |
error flag (see ⇘ “CAA 指南”) |
wErrorID |
WORD |
information on error 0 : no 1 : error within array of sampling points ( i.e. the sampling points aren't arranged in ascending order)
2 : interpolation point diInputValue is outside of area covered by sampling points ( 4 : number of invalid sampling points |