211
Publication 1763-RM001C-EN-P - October 2009
Chapter
11
Logical Instructions
The logical instructions perform bit-wise logical operations on individual
words.
Using Logical
Instructions
When using logical instructions, observe the following:
•
Source and Destination must be of the same data size (i.e. all words
or all long words).
•
Source A and Source B can be a constant or an address, but both
cannot be constants.
•
Valid constants are -32768 to 32767 (word) and -2,147,483,648 to
2,147,483,647 (long word).
Instruction
Used To:
Page
AND - Bit-Wise AND
Perform an AND operation
OR - Logical OR
Perform an inclusive OR operation
XOR - Exclusive OR
Perform an Exclusive Or operation
NOT - Logical NOT
Perform a NOT operation
IMPORTANT
Do not use the High Speed Counter Accumulator
(HSC.ACC) for the Destination parameter in the AND,
OR, and XOR instructions.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive