
6. Function blocks
6.1 Manufacturer function blocks
6.1.3.3 CP – Comparator
General
easyE4 base devices provide 32 comparator function blocks
(Compare) CP01 to CP32.
Comparators are used to compare variables and constants
with each other and output the relationship between them:
Less than / Equal to / Greater than.
Operating principle
The 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 parameters
Function block inputs
Description
Note
(Bit)
EN
1: Activates the function block.
The checkbox for the
Function block release by EN is
necessary
parameter must first be enabled
(DWord)
I1
Comparison reference value
Integer value range:
-2,147,483,648 to +2,147,483,647
I2
Comparison value
Assigning operands
You can assign the following operands to the function block inputs that are numeric
inputs.
Operands
Value inputs
Constant, timer constant
x
MD, MW, MB - Markers
x
NB, NW, ND - NET markers
x
nNB, nND, nND- NET markers
NET stations n
x
IA - Analog input
x
QA - Analog output
x
QV - QV - Numeric output of a FB
x
You can assign the following operands to the function block inputs that are bit inputs:
easyE4
11/18 MN050009 EN www.eaton.com
255
Summary of Contents for easyE4 series
Page 1: ...Manual 11 18 MN050009 EN easyE4 Manual...
Page 4: ......
Page 16: ...12 easyE4 11 18 MN050009 EN www eaton com...
Page 22: ...0 1 About this manual 18 easyE4 11 18 MN050009 EN www eaton com...
Page 169: ...easyE4 11 18 MN050009 EN www eaton com 165...
Page 490: ...7 System settings 7 16 Time and Date setting 486 easyE4 11 18 MN050009 EN www eaton com...
Page 520: ...9 easyE4 inside 9 7 NET network 516 easyE4 11 18 MN050009 EN www eaton com...
Page 570: ...11 Connection to other devices 11 6 E mail function 566 easyE4 11 18 MN050009 EN www eaton com...
Page 578: ...12 Faults 12 4 Functionality of the NET faulty 574 easyE4 11 18 MN050009 EN www eaton com...
Page 582: ...13 Maintenance 13 3 Storage transport and disposal 578 easyE4 11 18 MN050009 EN www eaton com...
Page 594: ...590 easyE4 11 18 MN050009 EN www eaton com...