COND2 ----- .. figure:: ../media/image921.png :figwidth: 4.27083in :align: center **Purpose** Compares the value from the first input channel with a set value. Furthermore, the comparison can be enabled/disabled depending on the logical condition of the second input channel. **Procedure** The (measured) value at the first input channel is compared with the set value. The type of comparison is chosen by the ‘Logical operator’. If the second input channel is TRUE, then the value of the condition is output. If the second output channel is FALSE, then the output is FALSE. Table 1 presents the possible scenarios for different input values. Table 1: Possible scenarios ======== ========= ========= ====== Scenario condition 2nd input Output 1 TRUE TRUE TRUE 2 FALSE TRUE FALSE 3 TRUE FALSE FALSE 4 FALSE FALSE FALSE ======== ========= ========= ====== **Parameters** ================== =================== ==== ===== ======= ======= Parameter input unit range default remarks ================== =================== ==== ===== ======= ======= Logical operator LT (less than)/ GT (greater than)/ LE (less equal)/ GE (greater equal)/ EQ (equal)/ NE (not equal) Set value real Reset time (true) real [s] 0 Reset time (false) real [s] 0 ================== =================== ==== ===== ======= ======= **Remarks** If no logical signal line is attached to the second input channel it will default to TRUE and hence the COND2 will act identical to COND. **Examples** The example of COND is extended with the logical table LTAB to enable/disable the second (logical) input channel of COND2. .. figure:: ../media/image922.png :figwidth: 3.37361in :align: center Fig 1: Control scheme The input of LTAB is: ===== ============ Time On(1) Off(0) ===== ============ (s) (-) 0 0 8.000 1.000 14.00 0 16.00 1.000 ===== ============ Figures :numref:`fig-1-cond2` and :numref:`fig-2-cond2` show the output when both ‘reset times’ are not used (0 seconds). .. _fig-1-cond2: .. figure:: ../media/image918.png :figwidth: 2.77083in :align: center variation of Head measured by Sensor .. _fig-2-cond2: .. figure:: ../media/image923.png :figwidth: 2.77083in :align: center Output of COND and LTAB .. _cond-1: .. include:: substitutions_control.rst