Previous Icon 3

Next Icon 3

Range tables

Range tables check whether a given value is moving within a defined range.

 

Example

-- table type: range table; Name of the table: 'A'

:TABLE RANGE 'A'r

-- INPUT X drehzahl defines the drehzahl (speed) input parameter;

-- interim values will be interpolated logarithmically.

-- INPUT Y power defines the input parameter power

 

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 drehzahl (speed) and leistung (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 drehzahl (speed) variable. The other rows correspond to values of the leistung (power) variable with LOWER as the lower, and UPPER as the upper, limit. The input value of leistung (power) will be compared with these limits and a report sent to the program stating whether the leistung is located below, within, or above, the given range A.