EasyManua.ls Logo

Allen-Bradley PLC-2/30 - File Logic Instructions

Allen-Bradley PLC-2/30
348 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter
16
161
File Logic Instructions
This section assumes the reader has Chapter 12, Data Transfer File
Instructions, and is familiar with the concepts and terms introduced in that
section.
The File-to-File logic instructions are:
File-to-File AND
File-to-File OR
File-to-File EXCLUSIVE OR (XOR)
File-to-File Complement
The first three instructions are output instructions that perform a specific
logic operation on the contents of two data Files A and B and place the
result of the logic operation in a third File R (Figure 16.1).
The File Complement instruction takes the logical complement of each bit
in File A and stores it in the corresponding bit locations in File R.
Figure 16.1
FILETOFILE
Logic Operations
1
2
3
4
5
6
File A
Position 003
File Length 006
Logic
operation
AND, OR,
XOR
1
2
3
4
5
6
File B
1
2
3
4
5
6
File R
A logic operation is being performed on step 3 of
Files A and B and the result stored in step 3 of File R.
16.0
General
16.1
FiletoFile Logic
Instructions
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals