Requirement
A network is available.
Procedure
Proceed as follows to use the "Calculate" instruction:
-
Open the "Instructions" task card.
-
Navigate to "Math functions > CALCULATE" in the "Basic instructions" pane.
-
Use drag-and-drop to move the element to the desired place in the network.
The instruction "Calculate" will be inserted for the data type with a placeholder expression and question mark.
-
Enter the data type for the calculation.
-
Enter the operands for the calculation.
Note
The calculation is run with the inputs of the "Calculate" instruction. If you want to use constants you must also insert appropriate inputs for them.
-
Click on the "Edit 'Calculate' instruction" button to replace the placeholder expression with the correct expression.
The "Edit 'Calculate' instruction" dialog will open.
-
Enter the required expression in the "OUT:= " text box.
Note
In the "Example" area you can find an example of a valid expression and possible instructions that you can use.
To determine a value with the help of Pythagoras' theorem, for example, enter "OUT := SQRT (SQR (IN1) + SQR (IN2))".
-
Confirm your entry with "OK".