Function Blocks
Function Block Reference Guide 3/9960
2.16 CMPR Function Block
Description
The
CMPR
label stands for
Comparison Calculation
.
This block is part of the
Calculations
category. It
looks like this graphically on the Control Builder.
Function
Compares value of X input to value of Y input and turns
ON
one of three outputs based on this comparison.
•If X input is greater than Y input, then:
XGY = ON.
•If X input equals Y input, then:
XEY = ON.
•If X input is less than Y input, then:
XLY = ON.
Input
X
= First analog value.
Y
= Second analog value
Output
XGY
= Digital signal state based on calculation.
XEY
= Digital signal state based on calculation.
XLY
= Digital signal state based on calculation.
Block Properties
Double click on the function block to access the function block properties dialog box.
Block Order (Read Only)
You can change the assigned execution order number by selecting “Execution Order” in the “Configure”
menu and arrange the order to suit your control strategy.
Example
Figure 2-13 shows a Function Block Diagram using a CMPR function block to open a vent if input 1 is
higher than input 2.
Figure 2-14 CMPR Function Block Example