Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 331
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT) Chapter 7
Boolean AND (BAND)
The BAND instruction logically AND as many as eight boolean inputs.
To perform a bitwise AND, see page 315
.
Operands:
Structured Text
Use AND or the ampersand sign ‘&’ as an operator within an expression. The operands
must be BOOL values or expressions that evaluate to BOOL values. This expression
evaluates whether operandA and operandB are both set (true).
See Appendix B
for information on the syntax of expressions within structured text.
Function Block
FBD_BOOLEAN_AND Structure
Operand Type Format Description
BAND tag FBD_BOOLEAN_AND Structure BAND structure
IF operandA AND operandB THEN
<statement>;
Input Parameter Data Type Description
EnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
In1 BOOL First boolean input.
Default is set.
In2 BOOL Second boolean input.
Default is set.
In3 BOOL Third boolean input.
Default is set.
In4 BOOL Fourth boolean input.
Default is set.
In5 BOOL Fifth boolean input.
default is set.
In6 BOOL Sixth boolean input.
Default is set.
In7 BOOL Seventh boolean input.
Default is set.
In8 BOOL Eighth boolean input.
Default is set.
Output Parameter Data Type Description
EnableOut BOOL Enable output.
Out BOOL The output of the instruction.