Range tables check whether a given value is moving within a defined range.
Example
-- table type: range table; Name of the table: 'A' |
||||||
: |
||||||
-- INPUT X drehzahl defines the (speed) input parameter; |
||||||
-- interim values will be interpolated logarithmically. |
||||||
-- INPUT Y power defines the input parameter |
||||||
|
INPUT X drehzahl TREAT LOG |
|||||
|
INPUT Y power |
|||||
-- data: 1. line: INPUT X, 2nd line: INPUT Y upper limit |
||||||
-- 3rd line: INPUT Y lower limit |
||||||
|
||||||
DATA |
||||||
|
|
200 |
300 |
500 |
1000 |
4000 |
|
LOWER |
1.5 |
2.0 |
3.0 |
10 |
20 |
|
UPPER |
10 |
15 |
20 |
15 |
40 |
END |
||||||
The two input variables are (speed) and (power). The output value represents the decision on whether the power in dependency with the speed is moving within a defined range and does not have to be declared. Interim values of the speed will be interpolated logarithmically. The first row of the body data corresponds to values of the (speed) variable. The other rows correspond to values of the (power) variable with as the lower, and as the upper, limit. The input value of (power) will be compared with these limits and a report sent to the program stating whether the is located below, within, or above, the given range .