Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 327
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT) Chapter 7
Bitwise NOT (NOT)
The NOT instruction performs a bitwise NOT operation by using the bits in the Source
and places the result in the Destination.
To perform a logical NOT, see page 340
.
Operands:
Relay Ladder
Structured Text
Use NOT as an operator within an expression. This expression evaluates NOT source.
See Structured Text Programming
for information on the syntax of expressions within
structured text.
Function Block
Operand Type Format Description
Source SINT
INT
DINT
Immediate
Tag
Value to NOT
A SINT or INT tag converts to a DINT value by zero-fill.
Destination SINT
INT
DINT
Tag Stores the result
Operand Type Format Description
NOT tag FBD_LOGICAL Structure NOT structure