Installation manual

Publication 1747-RM001G-EN-P - November 2008
Data Handling Instructions 5-13
Copy File (COP) and
Fill File (FLL) Instructions
The destination file type determines the number of words that an instruction
transfers. For example, if the destination file type is a counter and the source
file type is an integer, three integer words are transferred for each element in
the counter-type file.
After a COP or FLL instruction is executed, index register S:24 is cleared to
zero.
Using COP
This instruction copies blocks of data from one location into another. It uses
no status bits. If you need an enable bit, program an output instruction (OTE)
in parallel using an internal bit as the output address. The following figure
shows how file instruction data is manipulated.
Entering Parameters
Enter the following parameters when programming this instruction.
Source is the address of the file you want to copy. You must use the file
indicator (#) in the address.
Destination is the starting address where the instruction stores the copy.
You must use the file indicator (#) in the address.
Length is the number of elements in the file you want to copy.
Maximum length is based on destination file type. If the destination
file type is 3 words per element (Timer or Counter), you can specify a
maximum length of 42. If the destination file type is 1 word per
element, you can specify a maximum length of 128 words.
COP
Copy File
Source #ST14:0
Dest #ST14:10
Length 3
COP
FLL
Fill File
Source 0
Dest #ST14:0
Length 3
FLL
Output Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
•••••
TIP
The maximum lengths are based on destination file
type.
Source Destination
File to File