6. Function blocks
6.1 Manufacturer function blocks
6.1.3.2 AR - Arithmetic
General
easyE4 base devices provide 32 arithmetic function blocks,
AR01 through AR32. These function blocks can be used to carry
out the four basic arithmetic operations: addition, subtraction,
multiplication, and division.
Operating principle
The function block will apply the selected arithmetic operation to the values at function
block inputs I1 and I2. If the calculation result exceeds the value range that can be rep-
resented, overflow signal contact CY will close and function block output QV will con-
tain 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 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:
250
easyE4 11/18 MN050009 EN www.eaton.com