Chapter 22
File Copy and File Fill Instructions
22–2
File Copy
COP
Output Instruction
(COP)
COP
COPY FILE
Source
#N7:5
Dest
#N10:0
Length
10
F1
F2
F3
F4
F5
ZOOM on COP –(COP)– 2.3.0.0.2
NAME: FILE COPY
LENGTH: 10 10
SOURCE: #N7:5 0
DEST: #N10:0 0
EDT_DAT
HHT Ladder Display:
HHT Zoom Display:
Ladder Diagrams and APS Displays:
(online monitor mode)
This instruction copies data from one location into another. It uses no status
bits. If you need an enable bit, you can program a parallel (branched) output
using a storage address.
The COP instruction moves data from one file to another, as illustrated
below.
Source: File
Destination: File
Entering Parameters
•
Source – The address of the first word of the file you want to copy. You
must use the file indicator # in the address.
•
Destination – The address of the first word of the file where the copy of
the source file will be stored. You must use the file indicator # in the
address.
•
Length – The number of elements in the file you want to copy. If the
destination file type is 3 words per element (file types T, C, R), you can
specify a maximum length of 42. If the destination file type is 1 word per
element (file types I, O, S, B, N), you can specify a maximum length of
128.
File Copy (COP)