User guide
Chapter 22
File Copy and File Fill Instructions
22–3
All elements are copied from the specified source file into the specified
destination file each scan the rung is true. Elements are copied in ascending
order with no transformation of data. They are copied up to the specified
number (length) or until the last element of the destination file is reached,
whichever occurs first.
The destination file type determines the number of words that the instruction
transfers. For example, if the destination file type is counter and the source
file type is integer, three integer words are transferred for each element in the
counter-type file.
If your destination is a timer, counter, or control file, be sure that the source
words corresponding to the status words of your destination file contains
zeros.
Be sure that you accurately specify the starting address and length of the data
block you are copying. The instruction will not read or write over a file
boundary (such as between files N16 and N17) at the destination.
Note that an error is declared if a write is attempted over a file boundary.
You can perform file shifts by specifying a source element address one or
more elements greater than the destination element address within the same
file. This shifts data to lower element addresses. Shifts to higher element
addresses will not work.
File Fill FLL Output Instruction
FLL
FILL FILE
Source N7:10
Dest #N10:20
Length 10
(FLL)
HHT Ladder Display:
HHT Zoom Display:
Ladder Diagrams and APS Displays:
(online monitor mode)
F1 F2 F3 F4 F5
ZOOM on FLL –(FLL)– 2.3.0.0.2
NAME: FILE FILL
LENGTH: 10 10
SOURCE: N7:10 0
DEST: #N10:20 0
EDT_DAT
File Fill (FLL)