Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual
Page 292
![background image](/manuals/579471/292/background.png)
File Logic Instructions
Chapter 16
16Ć13
(Figure 16.6). If the bits are both 1 or 0, a 0 is stored in the corresponding
bit of File R. For other conditions, a 1 is stored in File R (Table 16.F).
Table 16.F
Truth Table for Logical WORDĆTOĆFILE XOR
Corresponding Bit In
Bit In Word File B
File R
1
1
0
0
1
0
1
0
0
1
1
0
Instruction Overview:
Key sequence: [FILE] 19
Output instruction
Requires 5 words of user program
Counter is not modified by instruction. Needs to be externally indexed
by user program.
Programming WordĆtoĆFile XOR Instruction
WARNING: The counter address for the Word-to-File XOR
instruction should be reserved for the instruction and the
corresponding instructions which manipulate the accumulated
value. Do not inadvertently manipulate the preset or
accumulated values. Inadvertent changes to these values could
result in unpredictable or hazardous machine operation or a
run-time error. Damage to equipment and/or personal injury
could result.
To program a Word-to-File XOR, press keys [FILE] 19. The format and
technique for number insertion will be identical to that of the Word-to-File
AND (Figure 16.6, Section 16.2.1) except that XOR replaces AND.
The procedure for using the data mode for data entry or monitor is
presented in Chapter 12.