![background image](http://html1.mh-extra.com/html/eaton/easy800/easy800_manual_3950236146.webp)
5 Function blocks
5.2 AR, Arithmetic
142
Control Relay easy800
11/11 MN04902001Z-EN
www.eaton.com
The following examples illustrate the functions of the function block for every
arithmetic operation:
Addition examples
•
42 + 1000 = 1042
•
2147 1 = Last valid value before this arithmetic operation,
due to overflow (CARRY) AR..CY = Status 1
•
-2048 + 1000 = -1048
Subtraction examples
•
1134 - 42 = 1092
•
-2147483648 - 3 = Last valid value before this arithmetic operation,
due to overflow (CARRY) AR..CY = Status 1
•
-4096 - 1000 = -5096
•
-4096 - (-1000) = -3096
Multiplication examples
•
12 x 12 = 144
•
1000042 x 2401 = Last valid value before this arithmetic operation,
due to overflow (CARRY) Correct value = 2401100842 AR..CY = Status 1
•
-1000 x 10 = -10000
Division examples
•
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 = Status 1
•
-1000 : 10 = -100
•
1000 : (-10) = -100
•
-1000 : (-10) = 100
•
10 : 100 = 0
Memory
40 + per
4 Byte/Constant at function block
input
Cycle time [
μ
s]
easy800 standard
easy800-SWD
ADD
32
12
SUB
33
13
MUL
38
16
DIV
41
18
Содержание easy800
Страница 1: ...11 11 MN04902001Z EN replaces AWB2528 1423GB Manual Control Relay 800 4 patpks nycmyn...
Страница 4: ...2...
Страница 16: ...0 About This Manual 0 5 Writing conventions 12 Control Relay easy800 11 11 MN04902001Z EN www eaton com...
Страница 138: ...4 Wiring with 800 4 7 Working with function blocks 134 Control Relay easy800 11 11 MN04902001Z EN www eaton com...
Страница 300: ...7 SmartWire DT 7 4 Errors on the SWD line 296 Control Relay easy800 11 11 MN04902001Z EN www eaton com...
Страница 336: ...10 Diagnostics possibilities 10 4 Transistor output 332 Control Relay easy800 11 11 MN04902001Z EN www eaton com...