User`s manual

Functions Functions2-9
2.4.2 Extended Logical Functions
Function Description Examples
CUTINOUT(test, low, high,
between)
Returns a 1.0 or a 0.0 based on the following:
If test is below low, the result is 0.0
If test is above high, the result is 1.0
If test is between the value of low and high, the result
will be equal to between. This should be filled by the
name of the same output you are building the equation
for so that when test is between, the output remains in
whatever state it’s in, thus creating a hysteresis
between the cut-in and cut-out setpoints.
CUTINOUT(-4,5,12,DO1) result: 0.0
(low)
CUTINOUT(14,5,12,DO1) result: 1.0
(high)
CUTINOUT(7,5,12,DO1) result: DO1
(between)
COUNT(range)
Returns the number of values in the specified range
that are non-zero. Typically used with digital inputs to
count the number of ON inputs. 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. DI1:DI7).
COUNT(0,0,1,0,1) result: 2
COUNT(0,0,0,0) result: 0
COUNT(DI1,DI4)
COUNT(DI1:DI7)
VOTE(range)
Returns a 1.0 if more that 50% of the values in the
range are non-zero, otherwise returns 0.0. This means
if the range contains an even number of values, the
number of non-zero inputs must be more than half to
yield a result of 1.0. 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. DI1:DI7).
VOTE(0,0,1,0) result: 0.0
VOTE(0,0,1,1) result: 0.0 (not more
than half non-zero in range)
VOTE(1,1,1,0) result: 1.0
VOTE(DI1,DI4)
VOTE(DI1:DI7)
AND(range)
Returns a 1.0 only when all values in the range are
non-zero, and 0.0 if one or all values are zero. 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. DI1:DI7).
AND(1,1) result: 1.0
AND(0,1) result: 0.0
AND(1,1,1,1,0) result: 0.0
AND(DI1,DI4)
AND(DI1:DI7)
OR(range)
Returns a 1.0 when one or all values in the range are
non-zero, and 0.0 if all values are zero. Range can be a
set of constants or input variable separated by com-
mas, or a range of inputs designated by a colon
between the two ends of the range (e.g. DI1:DI7).
OR(1,1) result: 1.0
OR(0,1) result: 1.0
OR(0,0,0,0,0) result: 0.0
OR(DI1,DI4)
OR(DI1:DI7)
XOR(range)
Same as OR, except returns 0.0 when all values are
non-zero.
XOR(1,1) result: 0.0
XOR(0,1) result: 1.0
XOR(0,0,0,0,0) result: 0.0
XOR(DI1,DI4)
XOR(DI1:DI7)
Table 2-10 - Extended Math Functions