Description
Compares two analog values.
Function
The function block compares two input values. The following options are available: "==", "!=", "<", "<=", ">" and ">=".
Input
PIN | Description |
|---|---|
Input1 | Input1 to be compared |
Input2 | Input2 to be compared |
Output
PIN | Description |
|---|---|
Output | Output value determined by comparing inputs 1 and 2. If the equation is correct, the output is true; otherwise, it is false. |
Input value
PIN | Data type | Unit | Default value | Range |
|---|---|---|---|---|
Input1 | Analog | N/A | N/A | -999999...999999 |
Input2 | Analog | N/A | N/A | -999999...999999 |
Output value
PIN | Data type | Unit | Default value | Range |
|---|---|---|---|---|
Output | Digital | N/A | N/A | True (1), False (0) |
Example
Determines whether the system date is valid if it is set to a year prior to a specified year.