119
LOGO! Manual
A5E00067781 01
Timing diagram
Q
For Ax - Ay > 200
Ax
1000
0
Ay
1000
0
Ax-Ay
1000
0
>200
–200
Description of function
The analog comparator function carries out the following
arithmetic operations:
1. The value parameterized for Offset is added to Ax and
Ay.
2. Ax and Ay are multiplied by the Gain parameter.
3. The function produces the difference between the ana-
log values Ax and Ay.
If this value exceeds the threshold value parameterized
under
, the output Q is set to 1.
Otherwise, Q is reset to 0.
Rule for calculation
Q = 1 when:
[(Ax + offset)
gain] – [(Ax + offset)
gain] > threshold
value
LOGO! Functions