Math.Avg

Used to calculate the average of two or more data points.

Description

This logic calculates the average of two or more input data points. The input data points and the output data point must be of type number.

Inputs

  • Input1 (ItemID): 1st operand. Must be of type number.
  • Input2 (ItemID): 2nd operand. Must be of type number.
  • Input3 (ItemID, optional): 3rd operand. Must be of type number.
  • ...
  • Input10 (ItemID, optional): 10th operand. Must be of type number.

Outputs

  • Output (ItemID): Result of the operation. Must be of type number.

 Parameters

  • Write to bus (bool, optional): if set to "false", the value is only updated within the NETx BMS Server. If set to true (default value), the value is also forwarded to the field network.
  • Verify quality (bool, optional): if set to "true" (default value), the value is not forwarded when the input's quality is not "GOOD".

Possible trigger types

  • All

Applies to

  • NETx BMS Platform, XLogic Library 1.0.12+
  • NETx Multi Protocol Server, XLogic Library 1.0.12+