Emerson E2 Einstein User Manual page 22

Flexible combiner programming
Hide thumbs Also See for E2 Einstein:
Table of Contents

Advertisement

Function
MEDIAN(range)
SUMSQ(range)
PROD(range)
MAX(range)
MIN(range)
AVG(range)
SUM(range)
RAND(low,high)
Table 2-10
- Extended Math Functions
2-8
E2 User's Manual Supplement: Flexible Combiner
Description
Returns the median of all values in parenthesis. Range
can be a set of constants or input variable separated by
commas, or a range of inputs designated by a colon
between the two ends of the range (e.g. AI1:AI7).
Returns the sum-square of all values in parenthesis.
Each input or constant is squared, and then added
together. Range can be a set of constants or input vari-
able separated by commas, or a range of inputs desig-
nated by a colon between the two ends of the range
(e.g. AI1:AI7).
Returns the product of all values in the range multi-
plied together. Range can be a set of constants or input
variable separated by commas, or a range of inputs
designated by a colon between the two ends of the
range (e.g. AI1:AI7).
Returns the maximum value of all values in the range.
Range can be a set of constants or input variable sepa-
rated by commas, or a range of inputs designated by a
colon between the two ends of the range (e.g.
AI1:AI7).
Returns the minimum value of all values in the range.
Range can be a set of constants or input variable sepa-
rated by commas, or a range of inputs designated by a
colon between the two ends of the range (e.g.
AI1:AI7).
Returns the average value of all values in the range.
Range can be a set of constants or input variable sepa-
rated by commas, or a range of inputs designated by a
colon between the two ends of the range (e.g.
AI1:AI7).
Returns the sum of all values in the range. Range can
be a set of constants or input variable separated by
commas, or a range of inputs designated by a colon
between the two ends of the range (e.g. AI1:AI7).
Returns a random number between low and high every
time the algorithm is updated (every few seconds).
Examples
MEDIAN(3,7,8,14) result: 7.5
MEDIAN(AI1,AI4)
MEDIAN(AI1:AI7)
SUMSQ(5,4,3) result: 50
SUMSQ(AI1:AI7) result: sum-square of
all seven inputs
PROD(2,3,4) result: 24
PROD(AI1,AI4)
PROD(AI1:AI7)
MAX(2,5,7,14) result: 14
MAX(AI1,AI4)
MAX(AI1:AI7)
MIN(2,5,7,14) result: 2
MIN(AI1,AI4)
MIN(AI1:AI7)
AVG(2,5,7,14) result: 7
AVG(AI1,AI4)
AVG(AI1:AI7)
SUM(2,5,7,14) result: 28
SUM(AI1,AI4)
SUM(AI1:AI7)
RAND(1,10) result: random number
from 1 to 10
026-1620 Rev 3 06-JAN-2011

Advertisement

Table of Contents
loading

Table of Contents