BiMath (BBiMathBlock)

This component provides a two-operand math expression. This block requires both operands (inputs) and supports both value and trend requests.

For trend requests, at least one of the operands must be a trend.

Figure 188.   BiMath properties
Image

To view these properties, double-click the block on the Wire Sheet or the block name in the Nav tree.

Property Value Description
Out read-only value slot Outputs the result of the two inputs using the configured function.
In 1 operand Defines the first operand used in the expression. Links from the output of other logic blocks or data sources to supply one or more input values to another logic block.
Operator drop-down list (defaults to Add) Defines the function to perform.

Add sums In1 and In2.

Subtract calculates the difference between In1 and In2.

Multiply calculates the product of In1 and In2.

Divide divides In1 (dividend) by In2 (divisor)

Modulo Outputs the remainder after dividing In1 by In2.

Exponent raises In1 (base) to the power of In2 (exponent).

Min calculates the minimum value between In1 and In2.

Max calculates the maximum value between In1 and In2.

Avg calculates the average of In1 and In2.

In 2 operand Defines the second operand used in the expression. Links from the output of other logic blocks or data sources to supply one or more input values to a logic block.

Example

Consider a numeric point with a history for electrical power identified by hs:power and a:a marker tags, and a second numeric point for floor area with a value of 12,500 identified by hs:area = 12,500 and a:a marker tags. An algorithm with a Bi Math Block may calculate power density (kw/ft2) by dividing the hs:power data source by the hs:area data source.

Figure 189.   Bi Math algorithm
Image

A control point with an Analytic Proxy Ext configured to use the alg:BiMath algorithm displays the calculated power density value. Power value = 857.5 KW, Floor Area = 12,500 ft2: 857.5 / 12,500 = 0.07 KW/ft2. The result displays in the point’s Out slot.

Figure 190.   Result
Image