Note:
This function compares inputs I1 and I2. Percentages [%] have two decimals.
For example: Value 12345
IN
= 123.45% = 1.2345
5.2.2 [303,304] Comparator (comparison of constant to variable)
Typ
e
Function
Type Function
I1 % Comparative
value 1
O1 b Output I1 > P1
I2 - -
O2 b O1 inverted
I3 b Master-Set
P1 % upper threshold (xxx.xx%)
I4 b Master Reset
P2 % lower threshold (xxx.xx%)
"303 - Comp." (input with constant)
"304 - Comp." (input with constant), abs. value
− 303 - Comp.
Description:
This function compares input I1 to the switching thresholds P1 and P2.
O1 is TRUE if I1 > P1 (upper threshold).
O1 is FALSE if I1 < P2 (lower threshold).
O1 remains unchanged if I1 is in the range between P2 and P1.
The comparator has three working ranges:
Range 1
P1 < I1 O1 = TRUE
Range 2 P2 < I1 < P1 O1 remains unchanged.
Range 3 I1 < P2 O1 = FALSE
O2 = 1O
Special case:
P2 (lower threshold) is set higher than P1 (upper threshold) (thresholds exchanged):
O1 is TRUE if I1 > P1.
O1 will be reset if P1 is deceeded again and P2 was not exceeded.
O1 is also reset if P2 is exceeded first and then deceeded again.
− 304 - Comp. (input with constant), abs. value
Description:
This function compares the absolute value of input I1 to the switching thresholds P1 and P2.
O1 is TRUE is |I1| > P1 (upper threshold).
O1 is FALSE if |I1| < P2 (lower threshold).
O1 remains unchanged if |I1| is in the range between P2 and P1.