255
Publication 1766-RM001A-EN-P - October 2008
Chapter
13
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…32767 (word) and
-2,147,483,648…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