The following table lists the system parameters for the Comparator function block.
Parameter |
Units |
Description |
|---|---|---|
COMP_VAL1 |
Determined by source |
The first comparative value. Used to compare with DISC_VAL in calculating EQ, GT, LT, and NEQ. Used as part of the range that DISC_VAL compares against to calculate IN_RANGE. |
COMP_VAL2 |
Determined by source |
The second comparative value. Used as part of the range that DISC_VAL compares against to calculate IN_RANGE. |
DISC_VAL |
Determined by source |
The input comparison value. Used with COMP_VAL1 in calculating EQ, GT, LT, and NEQ. Compared against the range of COMP_VAL1 - COMP_VAL2 to calculate IN_RANGE. |
EQ |
None |
Equal to. Compares COMP_VAL1 with DISC_VAL. Discrete output (True=1/False=0). |
GT |
None |
Greater Than. Compares COMP_VAL1 with DISC_VAL. Discrete output (True=1/False=0). |
IN_RANGE |
None |
In range. Compares DISC_VAL against the range of COMP_VAL2 and COMP_VAL1. |
LT |
None |
Less Than. Compares COMP_VAL1 with DISC_VAL. Discrete output (True=1/False=0). |
NEQ |
None |
Not Equal To. Compares COMP_VAL1 with DISC_VAL. Discrete output (True=1/False=0). |