Overview > Greater (2 inputs)

Compares the two inputs W1 and W2. If W1 is greater than W2, 1 is output at A1, otherwise 0. The parameters "Hysteresis" and "Type" allow a switching hysteresis to be set, which prevents the output from chattering on small fluctuations around the comparison value.


Inputs

W1
Value 1
First comparison value.
W2
Value 2
Second comparison value.

Outputs

A1
Output
1 if W1 is greater than W2, otherwise 0.

Parameters

Hysteresis
Switching difference (dead band) around the comparison value. Prevents the output from chattering on small fluctuations. 0 = no hysteresis.
Type
Defines how the hysteresis acts around the comparison value:
  • Plus/Minus: hysteresis symmetrically above and below the comparison value.
  • Minus only: hysteresis only below the comparison value.
  • Plus only: hysteresis only above the comparison value.

See also common parameters of all function blocks.