Previous Icon 3

Next Icon 3

List tables

In list tables containing at least one input value, several output values will be defined. If more than one input value is entered, the sequence of the input values is important. The reading direction goes from left to right and the first input value defines the range of the next input value, which in turn defines that of the next one, etc. up to the last. All input values apart from the last one must correspond with the entries in the body data (TREAT DIRECT, list of used key words.

 

Example 1

The following three input values are assumed:
g.d = 2.0; g.P = 0.8; s.l = 6
In accordance with the code shown below, the output values would then be:
s.l = 7; s.k = 3; s.k = 4.5.

-- table type: List table; output variable s.norm

:TABLE LIST s.norm

-- INPUT g.d defines the input parameter g.d;

-- INPUT g.P defines the input parameter g.P;

 

INPUT g.d

 

INPUT g.P

-- IN_OUT s.l defines s.l as phase variable

-- TREAT NEXT_BIGGER specified how interim values are handled

IN_OUT s.l

TREAT NEXT_BIGGER

-- OUTPUT s.k, s.dk declares s.k and s.dk as output variables

 

OUTPUT s.k,s.dk

-- data: A (N × Nin) matrix

DATA

 

2.0

0.4

0

 

 

 

2.0

0.8

5

3

4.5

 

2.0

0.8

7

3

4.5 - relevant data row

 

2.0

0.8

10

3

4.8

END

In contrast to functions tables, s.norm in the first row of the code specifies the name of the external table, and not the output variable. IN_OUT s.l declares a variable s.l, which is used both as an input and output variable (phase variable). TREAT functions again as a key word for processing the interim values: NEXT_BIGGER shows that input values are to be evaluated it they are not present in the corresponding column of the body data. In the example, the input value s.l = 6 lies between the values 5 and 7 and, in accordance with NEXT_BIGGER, will be promoted to the next bigger value. OUTPUT s.k, s.dk declares not only s.l. but also the output variables s.k and s.dk. The number of the columns of the body data must at least correspond to the number of input variables and at most correspond to the number of input variables + output variables, in this case: 3 < Nin > 5.

 

Example 2

To determine the diverse measurements of a bolt, two input values will be used: the bolt type, here represented by the typ variable and the length of the bolt, given by l.

:TABLE LIST schraube.geometrie

 

INPUT type

 

INPUT L

TREAT NEXT_SMALLER

 

OUTPUT M, dw, (s), e, bez, vorrat

 

DATA

 

. . .

 

 

 

 

 

 

 

 

12x2.5

20

12

14.57

23.78

5.75

ID 1

1

 

12x2.5

25

12

15.78

24.88

5.75

ID 2

1

 

. . .

 

 

 

 

 

 

 

END

This table is called bolts.geometry. The sequence in the table header defines that within the columns, the first column therefore corresponds to the typ variable, the second to the l variable, etc. The typ and l variables will be used as inputs, where the value for the typ variable must be present in the list. If an interim value is given for the l variable, the row with the next smaller value will be interpreted as the result. Blanks are not permitted, i.e. in this type table values must always be present. It may happen that individual variables are shown in brackets in the output definition. This has the effect that the corresponding column is ignored, i.e. this variable will not be specified.

 

Note

Commented-out output definitions cannot be changed by the user.