NOT (Bitwise NOT) Ladder Logic Instruction

The Bitwise NOT instruction is a ladder logic rung output instruction that performs a NOT operation on Source the result in the Destination tag. The instruction swaps the value bit by bit, Ones become zeros and zeros become ones. The instruction is enabled when the preceding logic is true and disabled otherwise. The values can be constants, tags or any combination.

NOT truth table

Source             Destination
     0                       1               

     1                       0

List of possible arguments

SOURCE and DESTINATION can be any combination of the following data types.

CONSTANT             Can’t be the DESTINATION obviously
SINT              
INT
DINT
 

Note: Negative numbers are valid. Arithmetic status flags are affected (S:V, S:Z, S:N, S:C). Overflow, Zero, Negative, and Carry.

Leave a Comment