6. Function blocks
6.1 Manufacturer function blocks
6.1.3.2 AR - Arithmetic
The Arithmetic function block performs all four basic calculations.
The function block is provided with the two Boolean outputs mentioned above for
controlling the calculation result that you wire as contacts in the circuit diagram.
General
easyE4 base devices provide 32 alarm function blocks, AR01
through AR32. These function blocks can be used to carry out
the four basic arithmetic operations: addition, subtraction, mul-
tiplication, and division.
Operating principle
The function block will apply the selected arithmetic operation to the values at func-
tion block inputs I1 and I2. If the calculation result exceeds the value range that can
be represented, overflow signal contact CY will close and function block output QV
will contain the value of the last valid operation. When the function block is called for
the first time, the value at function block output QV will equal zero.
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
Operand 1
Integer value range:
-2,147,483,648 to +2,147,483,647
I2
Operand 2
Assigning operands
You can assign the following operands to the function block inputs that are numeric
inputs.
Operands Value inputs
Constant, timer constant
1)
x
MD, MW, MB - Markers
x
NB, NW, ND - NET markers
2)
x
nNB, nND, nND- NET markers
2)
NET station n
x
IA - Analog input
x
QA - Analog output
x
QV - QV - Numeric output of a FB
x
1)
Only on function blocks T, AC
2)
Only on projects with ≥ 2 base devices on NET
easyE402/24 MN050009ENEaton.com
335