EasyManua.ls Logo

Allen-Bradley PLC-2/30

Allen-Bradley PLC-2/30
348 pages
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...
File Logic Instructions
Chapter 16
164
Figure 16.3
FILETOFILE
AND Example Rung
FILE TO FILE AND
COUNTER ADDR:
050
POSITION: 001
FILE LENGTH: 006
FILE A: 410-415
FILE B: 574-601
FILE R: 610-615
RA
TE PER SCAN:
006
050
(EN)
17
050
(DN)
15
This output instruction operates on the contents of data Files A and B and
places the result of the operation OR in File R (Figure 16.1).
The logic operation OR compares each bit in File A to the corresponding
bit in File B. If either of the bits is a 1, a 1 is stored in the corresponding
bit location in File R. If neither of the compared bits is a 1, a 0 is stored in
File R (Table 16.B).
Table 16.B
Truth
T
able for Logical OR
Bit In File A Bit In File B Bit In File R
1
1
0
0
1
0
1
0
1
1
1
0
Instruction Overview:
Output instruction
Key sequence [FILE] 16
Requires 6 words of user program
Can operate in incremental, distributed complete or complete mode
Counter is internally indexed by the instruction
16.1.2
FiletoFile OR
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals