The Comparator (CMP) function block allows you to compare two values (DISC_VAL and COMP_VAL1) and set a Boolean output based on that comparison for the LT (Less Than), GT (Greater Than), EQ (Equal To), and NEQ (Not Equal) outputs.
Additionally, the Comparator function block compares the DISC_VAL against the range defined by COMP_VAL2 and COMP_VAL1 to determine the Boolean output, IN_RANGE.
The Comparator function block does not have any modes or alarm detection.
If you are using a Condition function block with one check, use this block instead.
The following figure shows the internal design of the Comparator function block.