beautypg.com

16ć6 – Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 285

background image

File Logic Instructions

Chapter 16

16Ć6

Instruction Overview:

Output instruction
Key Sequence [FILE] 18
Requires six words of user program
Can operate in incremental, distributed complete or complete mode
Counter is internally indexed by the instruction

Programming FileĆtoĆFile XOR Instruction

WARNING: The counter address for the File-to-File XOR
instruction should be reserved for that instruction. Do not
manipulate the counter accumulated or preset 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 File-to-File XOR instruction, press keys [FILE] 18. The
format, and the technique for insertion of numbers, will be identical to that
of the File-to-File AND (Figure 16.2) except that the logic operation XOR
replaces AND.

The procedure for using the data monitor mode for data entry and/or
monitor is presented in Chapter 12.

This instruction operates on the contents of one data File A and places the
result in the data File R. The complement of each bit of File A is stored in
the corresponding bit location of File R. Two bits are complementary if
one is 0 and the other is 1.

Instruction Overview:

Output instruction
Key sequence [FILE] 13
requires 5 words of user program
can operate in incremental, distributed complete or complete mode
Counter is internally indexed by the instruction

16.1.4
File Complement