CIE-H12 User Manual Ver. 1.9
- 24 -
http://www.ezTCP.com
5.2
Macro Mode
This mode lets users set the values of the output ports with simple macros. Since CIE-
H12 reflects the values according to the macro expressions which are configured by users
in advance, it is useful to make a specific device operate automatically using signals from
various sensors. Check [Macro] options on ezManager to activate this mode.
While using the Macro mode, users can not control the output ports through
HTTP or Modbus/TCP.
5.2.1 Operator
The algorithm used in the Macro mode is Boolean algebra. In this case, the AND, OR,
NOT are used as operators. Parenthesis may also be used.
The operators are executed in order of precedence: parenthesis > NOT > AND > OR.
Each operator is represented by the following symbols.
Name
Sign
Description
Parenthesis
( )
Since calculations within the parenthesis have the
highest priority, they will be calculated first.
Nested parentheses are allowed.
NOT
/
An operand that follows a NOT operator is
toggled. (If an operand is 0, it will be changed to
1. If it is 1, it will be changed to 0.)
AND
*
If both operand values surrounding an AND
operator are 1, the result value will be 1. But if
otherwise, the result will be 0.
OR
+
If both operand values surrounding an OR
operator are 0, the result value will be 0. But if
otherwise, the result will be 1.
Table 5-4 the operators
5.2.2 Operand
Operands used in macro mode are each input port. Each input port is designated with i0
and i1 symbol based on their sequence. Since capital letters are not recognized, they can
also be written as I0 and I1.
The output ports could not be used as an operand.