189
LOGO! Manual
A5E00380835-01
Gain and offset parameters
For more information on the gain and offset parameters,
refer to Chapter 4.3.6.
Parameter p (number of decimals)
Does not apply to Ax, Ay, On, Off and
n values displayed
in a message text.
Does not apply to the comparison of on and off values!
(The compare function ignores the decimal point.)
Timing diagram
Q
for Ax - Ay > 200,
if On = Off = 200
Ax
1000
0
Ay
1000
0
Ax–Ay
1000
0
200
Functional description
The function fetches the analog values from the inputs Ax
and Ay.
Ax and Ay are each multiplied by the value of the A (gain)
parameter, and the value at parameter B (offset) is then
added to the relevant product, i.e.
(Ax gain) + offset = actual value Ax or
(Ay gain) + offset = actual value Ay.
The function forms the difference (”n”) between the actual
values Ax – Ay.
Output Q is set or reset, depending on difference of the
actual values Ax – Ay and the set thresholds. See the cal-
culation rule below.
LOGO! functions