5.2 Comparators
5.2.1 [301,302] Comparator (comparison of two variables)
Typ
e
Function
Type Function
I1 % Comparative
value 1
O1 b Output I1 > I2
I2 % Comparative
value 2
O2 b O1 inverted
I3 b Master-Set
P1 % positive hysteresis (xxx.xx%)
I4 b Master Reset
P2 % negat. hysteresis (xxx.xx%)
Comparison of two variables
Description:
This function compares inputs I1 and I2.
O1 is TRUE if I1 > I2.
O1 is FALSE if I1 < I2.
If a hysteresis (P1 and P2) is set up:
O1 is TRUE if I1 > (I2 + P1).
O1 is FALSE if I1 < (I2 - P2).
The comparator has three working ranges:
Range 1
(I2 + P1) < I1 O1 = TRUE
Range 2
(I2 - P2) < I1 < (I2 + P1) O1 remains unchanged.
Range 3
I1 < (I2 - P2) O1 = FALSE
O2 = 1O
Description:
This function compares the absolute values of inputs I1 and I2.
O1 is TRUE if |I1| > |I2|.
O1 is FALSE if |I1| < |I2|.
If a hysteresis (P1 and P2) is set up:
O1 is TRUE if |I1| > (|I2| + P1).
O1 is FALSE if |I1| < (|I2| - P2).
The comparator has three working ranges:
Range 1
(|I2| + P1) < |I1| O1 = TRUE
Range 2
(|I2| - P2) < |I1| < (|I2| + P1) O1 remains unchanged.
Range 3
|I1| < (|I2| - P2) O1 = FALSE
O2 = 1O
The output value can be changed by means of the two Boolean inputs I3 and I4:
Master Set sets output O1 to TRUE.
Master Reset sets output O1 to FALSE. Master Reset has priority over Master Set.