340 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 7 Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
Boolean NOT (BNOT)
The BNOT instruction complements a boolean input.
To perform a bitwise NOT, see page 327
.
Operands:
Structured Text
Use NOT as an operator within an expression. The operand must be a BOOL values or
expressions that evaluate to BOOL values. This expression evaluates whether operand is
cleared (false).
See Structured Text Programming
for information on the syntax of expressions within
structured text.
Function Block
FBD_BOOLEAN_NOT Structure
Operand Type Format Description
BNOT tag FBD_BOOLEAN_NOT Structure BNOT structure
IF NOT operand 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.
In BOOL Input to the instruction.
Default is set.
Output Parameter Data Type Description:
EnableOut BOOL Enable output.
Out BOOL The output of the instruction.