This exercise requires that you have completed the following exercise:
Purpose: The purpose of this exercise is to create variables and formulas that can be used in an Input UoM (Unit of Measure) Group.
Windows:
Formula Variables
Formulas
Formula
In this exercise you will create the variables, to be used in the formulas created later.
Variable ID | Description | UoM |
XX_QUANTITY | Quantity in pcs | pcs |
XX_LENGTH_MM | Length in mm | mm |
XX_WIDTH_MM | Width in mm | mm |
XX_THICK_MM | Thickness in mm | mm |
XX_DENSITY | Density in kg/m3 | kg/m3 |
where XX is your initials
Note: UoM (Unit of Measure) has to be an ISO Unit.
In this exercise you will create a formula for calculating the total length in meter (m) for a specified quantity of a specific length in millimeter (mm), using the variables created in the previous lesson.
Sequence | Item Type | Item | Description | Notes |
10 | Variable | XX_QUANTITY | Quantity in pcs | |
20 | Operator | Multiplication * | ||
30 | Variable | XX_LENGTH_MM | Length in mm | |
40 | Operator | Division / | ||
50 | Value | 1000 | mm to meter |
Note: You need to enter the item type before selecting an item.
Note: By saving the formula rows, the lower table is created. This table contains the variables entered in the upper table. In order to be able to test the formula, test values have to be entered for each variable.
Variable ID | Description | UoM | Value Type | Value | Test Value |
XX_QUANTITY | Quantity in pcs | pcs | User | 10 | |
XX_LENGTH_MM | Length in mm | mm | Default | 1500 | 1500 |
Note: In order to be able to use the formula the status has to be set to Valid.
In this exercise you will create a complex formula for calculating the weight in kilograms (kg) of a steel plate, using the variables created in the previous lesson. The result of the calculation should be rounded to two decimals.
Sequence | Item Type | Item | Description | Notes |
10 | Function | ROUND | ||
20 | Operator | Open Parenthesis ( | ||
30 | Variable | XX_LENGTH_MM | Length in mm | |
40 | Operator | Multiplication * | ||
50 | Variable | XX_WIDTH_MM | Width in mm | |
60 | Operator | Multiplication * | ||
70 | Variable | XX_THICK_MM | Thickness in mm | |
80 | Operator | Multiplication * | ||
90 | Variable | XX_DENSITY | Denisty in kg/m3 | |
100 | Operator | Multiplication * | ||
110 | Function | POWER | ||
120 | Operator | Open Parenthesis ( | ||
130 | Value | 10 | ||
140 | Operator | Comma , | ||
150 | Value | -9 | ||
160 | Operator | Close Parenthesis ) | ||
170 | Operator | Comma , | ||
180 | Value | 2 | ||
190 | Operator | Close Parenthesis ) |
Note: You need to enter the item type before selecting an Item.
Note: By saving the formula rows the lower table is created. This table contains the variables entered in the upper table. In order to be able to test the formula, test values have to be entered for each variable.
Variable ID | Description | UoM | Value Type | Value | Test value |
XX_LENGTH_MM | Length in mm | mm | User | 3000 | |
XX_WIDTH_MM | Width in mm | mm | User | 1500 | |
XX_THICK_MM | Thickness in mm | mm | Default | 10 | 10 |
XX_DENSITY | Denisty in kg/m3 | kg/m3 | Fixed | 7850 | 7850 |
Note: In order to be able to use the formula the status has to be set to Valid.