beautypg.com

16ć12, 3 wordćtoćfile xor – Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 291

background image

File Logic Instructions

Chapter 16

16Ć12

Table 16.E

Truth Table for Logical WORDĆTOĆFILE OR

Corresponding Bit In

Bit In Word File B

File R

1

1

0

0

1

0

1

0

1

1

1

0

Instruction Overview:

Key sequence: [FILE] 17
Output instructions
Requires 5 words of user program
Counter is not modified by instruction. Needs to be externally indexed

by user program.

Programming WordĆtoĆFile OR Instruction

WARNING: The counter address for the Word-to-File OR
instruction should be reserved for the instruction and the
corresponding instructions which manipulate the accumulated
value. Do not inadvertently manipulate the preset or the
accumulated values. Inadvertent changes to these values could
result in unpredictable or hazardous machine operation or
run-time error. Damage to equipment and/or personal injury
could result.

To program a Word-to-File OR, press keys [FILE] 17. The format, and
the technique for insertion of numbers, will be identical to that for
Word-to-File AND (Figures 16.7 and 16.8) except that OR will replace
AND.

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

This instruction performs an XOR operation on the contents of a specified
word in the data table and a word from File B (Figure 12.1). It places the
result of the XOR operation into the corresponding word of File R.

The logic operation XOR compares each bit in word pointed to by the
counter accumulated value to the corresponding bit in the File B word

16.2.3
WordĆtoĆFile XOR