Appearance
Sum
Overview
The Sum node calculates the total of all numeric inputs. It is a fundamental arithmetic node used to aggregate values from multiple sources or sensors.
Use Sum when:
- Combining multiple sensor readings into a single total.
- Calculating an overall count or score from several inputs.
Inputs
| Name | Type | Description |
|---|---|---|
| i0..iN | number | Dynamic input ports for the numbers to be added. |
⚠️ Warning
All configured input ports must be connected for the node to function correctly. If an input is missing, the node will not produce an output.
Outputs
| Name | Type | Description |
|---|---|---|
| output | number | The resulting sum of all inputs. |
Parameters
| Parameter | Default | Valid values | Tunable |
|---|---|---|---|
| Number of inputs | 2 | The whole number (integer) >= 2 | ❌ |
Number of inputs
Defines how many numeric inputs the node will accept for summation.
Example
Total Production Count
A production line uses a Sum node to calculate the total number of units produced by combining outputs from multiple machines or shifts.
Configuration:
- Number of inputs:
2
Result: If Machine A produces 120 units and Machine B produces 150 units, the Sum output is 270, representing the total production count.
Related links
Reference:
- Division — divides one number by another
- Compare Value — compares values using logic operators