beautypg.com

1772-6.8.3, 16 - file logic instructions, 16ć1, File logic instructions – Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 280: 0 general 16.1 filećtoćfile logic instructions

background image

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