6. Function blocks
6.1 Manufacturer function blocks
Description Note
Parameter display
+ Call enabled
Constants can be edited on the
device, as can function block para-
meters when using the EDP pro-
gramming language.
Simulation possible
Addition example
42 + 1000 = 1042
2147483647 + 1 = Last valid value before this arithmetic operation, due to overflow
(Carry) AR..CY = 1
-2048 + 1000 = -1048
Subtraction example
1134 - 42 = 1092
-2147483648 - 3 = Last valid value before this arithmetic operation, due to overflow
(Carry) AR..CY = 1
-4096 - 1000 = -5096
-4096 - (-1000) = -3096
Multiplication example
12 x 12 = 144
1000042 x 2401 = Last valid value of this arithmetic operation, due to overflow (Carry)
correct value = 2401100842 AR..CY = 1
-1000 x 10 = -10000
Division example
1024 : 256 = 4
1024 : 35 = 29 (The places after the decimal point are omitted.)
1024 : 0 = Last valid value before this arithmetic operation, due to overflow (Carry)
(mathematically correct “Infinity”) AR..CY = 1
-1000 : 10 = -100
1000 : (-10) = -100
-1000 : (-10) = 100
10 : 100 = 0
Example of an arithmetic function block when using the EDP programming lan-
guage
I 01----AR01CY-----------------Ä Q 01
I 02----AR02ZE-----------------S Q 02
Fig. 179: Wiring the contacts
338
easyE402/24 MN050009ENEaton.com