Chapter 8 Logic Instructions
8.8 Math Instructions
8.8.1 ADD
FB/FC Explanation
ADD is used for the addition operation of two or more variables or constants.
Parameters
Meaning
Description Valid range
In1 Augend Input Augend
Depends on the data type of
the variable that the input
parameter is connected to.
In2 to InN Addend Input
addends is 7, which means
that N can be 2~8 and the
number can be increased or
reduced via the programming
software in creating a program.
Depends on the data type of
the variable that the input
parameter is connected to.
Out Sum Output
The addition result of In1 to
InN
Depends on the data type of
the variable that the output
parameter is connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1
to
InN
● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
● ●
In2
to
InN
● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Out
● ● ● ● ● ● ● ● ● ● ● ● ● ●
●
● ●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
The instruction is used for the addition of two or more variables or constants. The result is output to
Out, that is, Out= In1 + In2 +…+ InN.
ADD
EN ENO
In1 Out
InN
.
.
.
.
..
8-53