6. Function blocks6.1 Manufacturer function blocks6.1.3.3 CP – ComparatorGeneraleasyE4 base devices provide 32 comparator function blocks(Compare) CP01 to CP32.Comparators are used to compare variables and constantswith each other and output the relationship between them:Less than / Equal to / Greater than.Operating principleThe function block compares values present at the inputs I1 and I2. The following con-tacts close depending on the comparison result:l I1 greater than I2, GT contact closes.l I1 equal to I2, EQ contact closes.l I1 less than I2, LT contact closes.The function block and its parametersFunction block inputsDescription Note(Bit)EN 1: Activates the function block. The checkbox for theFunction block release by EN isnecessaryparameter must first be enabled(DWord)I1 Comparison reference value Integer value range:-2,147,483,648 to +2,147,483,647I2 Comparison valueAssigning operandsYou can assign the following operands to the function block inputs that are numericinputs.Operands Value inputsConstant, timer constant xMD, MW, MB - Markers xNB, NW, ND - NET markers xnNB, nND, nND- NET markersNET stations nxIA - Analog input xQA - Analog output xQV - QV - Numeric output of a FB xYou can assign the following operands to the function block inputs that are bit inputs:easyE4 11/18 MN050009 EN www.eaton.com 255