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