Previous Icon 3

Next Icon 3

Functions tables

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 (factor) is determined on the basis of a specified (angle). For example: if the input value angle = 45 supplies an output value of factor = 0.35.

-- table type: Functions table; output variable: factor

:TABLE FUNCTION factor

-- 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

INPUT is a key word, i.e. a word that is reserved by the Tables Interpreter, and is followed by an argument X, which assigns a dimension to the angle input parameter. The key word TREAT, with associated LINEAR argument, specifies that interim values are to be interpolated linearly. The output value factor will determined using the value of the angle variable. The first row of data in the 1D table (between DATA and END) corresponds to the input value angle, 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 diameter = 60 and speed = 60 supply an output value power = 8.6.

-- table type: Functions table; output variable: power

:TABLE FUNCTION power

-- INPUT X diameter defines the input parameter diameter;

-- INPUT Y speed defines the input parameter speed;

-- 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 power is defined with the input variables INPUT X and INPUT Y. 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 INPUT X entry variables. The first column corresponds to the values of the INPUT Y 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 XY 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 X with Y).