Skip to content

Accumulator

Overview

The Accumulator node maintains a running sum by adding each numeric input to a stored total. Use it to track cumulative values like total weight, volume, or signal counts.

Use Accumulator when:

  • Summing values across multiple messages in a flow.
  • Tracking total measurements over time.

💡 Tip

Use the reset input to clear the accumulated total when starting a new batch or process.

Inputs

NameTypeDescription
inputnumberNumeric value to add to the running total.
resetanySignal to reset the accumulator to 0.

Outputs

NameTypeDescription
valuenumberThe current accumulated total.

Parameters

ParameterDefaultValid valuesTunable
Enable automatic state resetfalseboolean

Enable automatic state reset

Resets the accumulated total to 0 when any signal (except None or Nothing) is received by the reset input of the node.

Example

Total weight tracking

A flow receives individual weight readings from a sensor. The Accumulator tracks the total weight until a "Batch Complete" signal resets it.

Configuration:

  • Enable automatic state reset: false

Result: Each new weight reading increases the output value, providing a live total of the batch.

Reference:

  • Counter — counts the number of inputs received
  • Sum — adds multiple input values together
  • Schedule — entry point for scheduled datetime data
  • Switch — produces a constant boolean value