Chapter 8 Logic Instructions
8-61
Math Instructions
FB/FC Explanation
FC
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
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
ADD
EN ENO
In1 Out
InN
.
.
.
.
..