Super Systems Compact HMI User Manual
Page 18

Compact HMI and Compact HMI Editor Operations Manual
Super Systems Inc.
Page 18 of 60
1. Tag(“[ConnectionName]TagName.BitName”) where
ConnectionName
is the
name of a defined Connection,
TagName
is the name of a defined Tag within that
connection, and
BitName
is the name of a defined bit within the register represented by
TagName.
2. Bit(BitNumber,Tag(“[ConnectionName]TagName”)) where BitNumber is the
number of a bit (0 to 15) within the register represented by
TagName
that is part of the
connection
ConnectionName.
In most cases, Tags and bits will be called for the purpose of:
1. Calculating a value, which will typically be displayed and sometimes scaled before being
displayed; or
2. Evaluating a condition as True or False.
Table 2 provides details on the operators, constants, and functions that can be used in Compact
HMI Editor; the purpose of each; and examples of how they may be used in a valid expression.
Operator/Constant/
Function
Purpose
Examples of Use in Valid Expression
Operators and Constants
+
Performs an addition
Tag(“[Connection1]N7:0”) + 15
-
Performs a subtraction
Tag(“[Connection1]N7:0”) - 15
*
Performs a multiplication
Tag(“[Connection1]N7:0”) * 15
/
Performs a division and
keeps the decimal value
(division)
Tag(“[Connection1]N7:0”) / 15
Note: 3/2 returns 1.5
\
Performs a division and
drops the decimal value
(modulus)
1 / Tag(“[Connection1]N7:1”)
Note: 3\2 returns 1
^
Performs an exponential
calculation (calculates a
number raised to a certain
power)
Tag(“[Connection1]N7:0”) ^ 3
3^3
Pi
Returns the value of Pi,
which is the ratio of the
circle’s circumference to its
diameter
Pi + Tag(”[Connection]N7:0”)
Note: Pi by itself returns 3.14159265358979
Logical Operators
<
Less than
Tag(“[Connection1]N7:0”) < Tag(“[Connection1]N7:1”)
>
Greater than
Tag(“[Connection1]N7:0”) > 1
And
Inclusive of more than one
condition
(Tag(“[Connection1]N7:0”) < 10) and
(Tag(“[Connection1]N7:0”) > 5)
<=
Less than or equal to
Tag(“[Connection1]N7:0”) <= 3
>=
Greater than or equal to
Tag(“[Connection1]N7:0”) >= 3
Or
Inclusive of either/or
condition
(Tag(“[Connection1]N7:0”) < 1) or (Tag(“[Connection1]N7:3”) >
14)
<>
Not equal to
Tag(“[Connection1]N7:0”) <> Tag(“[Connection1]N7:1”)
=
Equal to
Tag(“[Connection1]N7:0.1”) = 0