Using Logical Instructions - Allen-Bradley MicroLogix 1400 Instruction Manual

Programmable controllers
Hide thumbs Also See for MicroLogix 1400:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Using Logical
Instructions
255
Logical Instructions
The logical instructions perform bit-wise logical operations on individual
words.
Instruction
AND - Bit-Wise AND
OR - Logical OR
XOR - Exclusive OR
NOT - Logical NOT
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).
Do not use the High Speed Counter Accumulator (HSC.ACC) for the
IMPORTANT
Destination parameter in the AND, OR, and XOR instructions.
• 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).
Used To:
Perform an AND operation
Perform an inclusive OR operation
Perform an Exclusive Or operation
Perform a NOT operation
Publication 1766-RM001A-EN-P - October 2008
13
Chapter
Page
257
258
259
260

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents