beautypg.com

Programming wordćtoćfile and instruction – Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 289

background image

File Logic Instructions

Chapter 16

16Ć10

Counter is not modified by instruction. Needs to be externally indexed

by user program.

Programming WordĆtoĆFile AND Instruction

WARNING: The counter address for the Word-to-File AND
instruction should be reserved for the instruction and the
instruction(s) 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 a run-time error. Damage to
equipment and/or personal injury could result.

To program a Word-to-File AND, press keys [FILE] 15. A display
represented by Figure 16.7 will appear.

Figure 16.7

WORDĆTOĆFILE AND Format

WORD TO FILE AND

COUNTER ADDR:

030

POSITION:

001

FILE LENGTH:

001

WORD ADDR:

110

FILE B:

110- 110

FILE R:

110- 110

030

(DN)

15

Numbers shown are default values. Bold numbers must be replaced by userĆentered values. The number of default address digits

initially displayed Ċ 3, 4, or 5 Ċ will depend on the size of the data table. Initially displayed default values are governed by the I/O rack

configuration.

COUNTER ADDRESS

: Address of the instruction in the accumulated value area of the data table.

POSITION

: Current word being operated upon (accumulated value of counter).

FILE LENGTH

: Number of words in file (preset value of the counter).

WORD ADDRESS

: Address of source word outside the file.

FILE B

: Starting address of source file B.

FILE R

: Starting address of destination file R.