Functions tables are tables that expect one or two input values (1D or 2D table) and which return exactly one corresponding value.
Example 1D table
The angle coefficient () is determined on the basis of a specified (). For example: if the input value supplies an output value of .
-- table type: Functions table; output variable: |
|||||
: |
|||||
-- INPUT X angle defines the input parameter angle; |
|||||
-- interim values will be interpolated linearly |
|||||
|
INPUT X angle TREAT LINEAR |
||||
-- data: 1. line: input values), 2nd line: output values |
|||||
|
|||||
DATA |
|||||
|
0 |
30 |
60 |
90 |
. . . |
|
0.1 |
0.25 |
.45 |
.078 |
. . . |
END |
|||||
is a key word, i.e. a word that is reserved by the Tables Interpreter, and is followed by an argument , which assigns a dimension to the input parameter. The key word , with associated argument, specifies that interim values are to be interpolated linearly. The output value will determined using the value of the variable. The first row of data in the 1D table (between and ) corresponds to the input value , and the second row corresponds to the output value. The data in a 1D table is therefore always a (2 × n) matrix, i.e. both rows must contain the same number of values.
Example of a 2D table
The nominal power is defined on the basis of the speed and the sheave diameter. For example: if the input values and supply an output value .
-- table type: Functions table; output variable: |
||||||
: |
||||||
-- INPUT X diameter defines the input parameter ; |
||||||
-- INPUT Y speed defines the input parameter ; |
||||||
-- interim values will be interpolated linearly in both dimensions |
||||||
|
INPUT X angle TREAT LINEAR |
|||||
|
INPUT Y Speed TREAT LINEAR |
|||||
-- data: (→ sh. Figure) |
||||||
|
||||||
DATA |
||||||
|
|
50 |
100 |
200 |
300 |
. . . |
|
50 |
4 |
7 |
12 |
25 |
. . . |
|
75 |
12 |
25 |
30 |
35 |
. . . |
|
. . . |
. . . |
. . . |
. . . |
. . . |
. . . |
END |
||||||
Here, the variable is defined with the input variables and . Interim values running down the columns (Y) should be interpolated linearly. The same applies across the rows (X). The first row in the table corresponds to the values of the entry variables. The first column corresponds to the values of the entry variables. The values placed at the points where the entry values intersect are values which correspond to the output variables (see Figure 9.8).

Figure 9.8: Data schema of 2D tables
Please note that in this way it would be possible to define an inverse table. Assuming that, in your belt catalog, the table that shows the power output contains the speed in the first row, and the diameter in the first column, then there is no need for you to turn your table upside down. Instead, simply change the assignment in the table header (i.e. replace with ).