19ć14 – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 306

Advertising
background image

Data Transfer File Instruction

Chapter 19

19-14

Keystrokes
Enter a Word-File Move instruction by performing the following steps.

11

EN

FILE TO FILE MOVE

COUNTER ADDR:

POSITION:

FILE LENGTH:

FILE R:

WORD ADDR:

001

001
010

110- 110

030

030

15

First, enter a conditioned rung with a CTU instruction for 030.

CTU

030

PR 001

AC 001

FILE

The word FILE appears in the lower left corner of the industrial
terminal screen.

Here is an explanation of each value:

This Value:

Stores This:

Counter address

Address of the instruction's file position in the accumulated

value area of the data table.

Position

Current word being operated upon (accumulated value of

the counter).

File Length

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

File R

Starting address of the destination file.

Word Address

Address of source input word into the file.

This instruction duplicates and transfers the data of a word within your
source file to a specified word elsewhere in the data table. Here are some
characteristics of a File-to-Word Move instruction:

Programmed as an output instruction; requires four words of the user

program area.

Your program must externally index the counter. The explanation of

external indexing is the same for the File-to-Word Move instruction as
the Word-to-File Move.

FileĆtoĆWord Move Instruction

Advertising