Chapter 8 Logic Instructions
8-117
Bit String Instructions
FB/FC
FC
AND is used for performing a logical AND operation of two or more
variables or constants.
DVP15MC11T-06
Parameters
Meaning
Description Valid range
In1 to InN Operands Input
The number of operands can be
increased or decreased through the
programming software. Maximum: 8.
Minimum: 2. That is N=2 ~ 8.
Depends on the data type
of the variable that the
input parameter is
Out
Operation
result
Output AND operation result of In1 ~ InN
of the variable that the
output parameter is
connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
LWORD
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
STRING
to
● ● ● ● ● ● ● ● ●
Out
● ● ● ● ● ● ● ● ●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data
type.
Function Explanation
AND is used for performing a bitwise logical AND operation of two or more variables or constants
and the result is output to Out. That is Out = In1 & In2 &…& InN
AND
EN ENO
In1 Out
InN
.
.
.
.
..