Note:
Percentages [%] have two decimals.
For example: Value 12345
IN
= 123.45% = 1.2345
5.2.7 [313,314] Window comparator (comparison of constant to
variable)
Type Function
Type Function
I1 % Comparative value
1
O1 b Output I1 > I2
I2 - -
O2 b O1 inverted
I3 b Master-Set
P1 % positive window (xxx.xx%)
I4 b Master Reset
P2 % negative window (xxx.xx%)
"313 - Window comparator (V C)", comparison of variable to constant
"314 - Window comparator (V C)", absolute value", comparison of variable to constant
− 313 - Window comparator (V C)
Description:
Via P1 and P2, a value range (window) is adjusted and it is checked if I1 is within this constant
range.
O1 is TRUE if I1 is in the range of from P2 to P1.
O1 is FALSE if I1 is outside of this range.
The comparator has three working ranges:
Range 1
P1 < I1 O1 = FALSE
Range 2 P2 < I1 < P1 O1 = TRUE
Range 3 I1 < P2 O1 = FALSE
O2 = 1O
Special case:
P2 (negative window) is greater than P1 (positive window) (limits exchanged):
O1 is TRUE if I1 < P1 or I1 > P2.
O1 is FALSE if I1 is in the range of from P1 to P2 (window).