FB_COMPARE
Description Function Block
The FB_COMPARE function block checks that the 2–5 analog inputs CompIn1 to CompIn5 are equal within a window of tolerance based on time and value. The b1oo2, b2oo3, and b3oo5 inputs are used to specify the number of inputs to be evaluated. The udiAllowedDeviation and tToleranceTime (ms) inputs specify the deviations and the time interval permitted between the input values. The bIsValid output returns a logic 1 if the comparison results in a positive value.
The CompOut output contains the 1st analog value which meets the comparison criteria.
The ERROR state is entered if an overflow or underflow occurs. Then the CompOut and bIsValid outputs are set to 0 and the bError output is set to 1.
EL6900
The FB_COMPARE function block is not supported by the EL6900.

Name | Data Type | Initial Value | Description, Parameter Values |
|---|---|---|---|
|
|
| 1st analog signal for the comparison (1oo2, 2oo3, 3oo5) Permitted data types: |
|
|
| 2nd analog signal for the comparison (1oo2, 2oo3, 3oo5) Permitted data types: |
|
|
| 3rd analog signal for the comparison (2oo3, 3oo5) Permitted data types: |
|
|
| 4th analog signal for the comparison (3oo5) Permitted data types: |
|
|
| 5th analog signal for the comparison (3oo5) Permitted data types: |
|
|
| Comparison mode 1oo2: Only the first two inputs Only a constant value is permitted (no variable). Only one of the |
|
|
| Comparison mode 2oo3: Only the first three inputs Only a constant value is permitted (no variable) Only one of the |
|
|
| Comparison mode 3oo5: All five inputs Only a constant value is permitted (no variable) Only one of the |
|
|
| Permitted deviation when comparing the inputs Only a constant value is permitted (no variable) |
|
|
| Time frame (in ms) within which unequal values are tolerated. Only a constant value is permitted (no variable) |
Name | Data Type | Initial Value | Description, Parameter Values |
|---|---|---|---|
|
|
|
|
|
|
| Output value: Corresponds to the first Permitted data types: |
|
|
|
|