Technical FAQs

Ask a Question

How to create a cumulative usage (running total) framework in ION Designer

Goals and Symptoms

Issue
Customer is logging value X every Y minutes
Value X is reset back to 0 after it has been logged.

How can the user keep a running total of that value?

Facts and Changes

Environment
StruxureWare Power Monitoring (SPM) or ION Enterprise (IONE)

Causes and Fixes

Cause

A cumulative usage or totalizer is needed.


Resolution

Use an arithmetic module with the following formula:

S1 + PR1

Where S1 is X
Where PR1 is the previous result from R1.

Set the CalcNow of the arithmetic module to the pulse of quantity X's reset.


e.g.
Assume the following:
Data value X is reset every 15 minutes after logged.
At the end of 15 minutes X = 5
At the end of 30 minutes X = 2
At the end of 45 minutes X = 11
At the end of 60 minutes X = 7

Arithmetic Module's formula would output the following:
At the end of 15 minutes R1 = 5
At the end of 30 minutes R1 = 7
At the end of 45 minutes R1 = 18
At the end of 60 minutes R1 = 25

Was this helpful?
What can we do to improve the information ?