16ć4, 2 filećtoćfile or – Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual
Page 283

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
RATE 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 Table 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