Averaging Module

The Averaging module provides simple averaging functionality, and on some meters, sum of squares functionality.

Module icon

Overview

Input values are accumulated over time, and when pulsed (or every second, depending on user configuration), the module calculates the average value of the inputs and provides those values to the corresponding output registers.

NOTE: The registers and settings available in this module depend on the device or node you are configuring, as well as its firmware and template versions. Not all registers or settings are available on all devices or the Virtual Processor, and labels may vary.

Inputs

Inputs 1-16

These values are averaged by the module. They must be a numeric or bounded numeric register from any other module’s outputs. You must link at least one of these inputs.

Operate Now

When this register is not linked, the module averages the input values every second. When this register is linked, the module will only average the input values when the Operate Now input is pulsed.

Reset

When this register is pulsed, the module output values will be reset to 'Not Available' and internals cleared. Linking this input is mandatory; the module will not go online if left unlinked.

Enable

This register enables the module. When set to No, the outputs will be set to 'Not Available'. Default is Yes.

Setup registers

Calc Mode

This register specifies which type of averaging the module performs. Average Mode is simple averaging, while RMS Mode uses sum of squares (RMS). The default is Average Mode.

N/A behavior

This register defines how the module performs calculations when one or more of the Inputs registers are NOT AVAILABLE. The options are RESET CALCULATION WHEN SOURCE N/A and IGNORE N/A IN CALCULATION.

Output registers

Outputs 1-16

These registers hold the averaged values of the inputs, after they have been calculated.

NOTE: When connecting the outputs to a Data Recorder module, the Record Complete output of the Data Recorder module must be connected through a Feedback module to the Reset input of the Averaging module. See the “Detailed Operation” section for more information.

Event

Module events are recorded in the Event register.

Possible events and their associated priority numbers are:

Event priority group Priority Description
Reset 5 A module reset has occurred.
Setup Change 10 Input links or labels have changed.

The Event output register stores the following information for each ION event: time stamp, event priority, event’s cause, event’s effect, and conditions associated with the event’s cause and effect.

Responses to special conditions

The following table summarizes how the Averaging module behaves under different conditions.

Condition Response of output registers
An input goes N/A The corresponding output is N/A and internal value is reset unless N/A behavior is set to IGNORE N/A IN CALCULATION.

Detailed module operation

The Averaging Module can be used in frameworks.

The Modbus Master Device Module provides imported kW values from a Modbus slave device (Submeter1). The Averaging Module calculates the average of all stored kW values only when the Successful Read register pulses the Operate Now register. This ensures the data is not stale. The resulting output value is linked to the Data Recorder, which records the value every 15 minutes (as triggered by the Periodic Timer module). Every time a record is written, the Record Complete register pulses and, via a Feedback module, triggers the Averaging module’s Reset register. All previous values for kW are erased and the process begins again.