AR, arithmetic function block
185
02/16 MN05013001Z EN
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
Содержание easySafety
Страница 1: ...Manual Control relay suitable for safety circuits Safety ES4P 02 16 MN05013001Z EN ...
Страница 4: ...2 ...
Страница 42: ...38 02 16 MN05013001Z EN ...
Страница 80: ...Installation 76 02 16 MN05013001Z EN ...
Страница 112: ...108 02 16 MN05013001Z EN ...
Страница 606: ...602 02 16 MN05013001Z EN ...