Skip to content

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

NameTypeDescription
i0..iNnumberDynamic 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

NameTypeDescription
outputnumberThe resulting sum of all inputs.

Parameters

ParameterDefaultValid valuesTunable
Number of inputs2The 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.

Reference: