Chapter 4
Data File Organization and Addressing
4–18
File Copy and File Fill Instructions
These instructions manipulate user-defined files. The files are used as source
or destination parameters in File Copy or File Fill instructions. Files can be
Output, Input, Status, Bit, Timer, Counter, Control, or Integer files. Two
examples are shown below. Note that the file length is the specified number
of elements of the destination file; this differs from the file length
specification for sequencer instructions. Refer to the previous page.
The first example is a user-defined file within Data File 7 – Integer. The file
is #N7:14, specified as 6 elements long.
The second example is a user-defined file within Data File 0 – Output Image.
We used this particular data file configuration in regard to I/O addressing on
page 4-6. Here, we are defining a file 5 elements long.
Note that for the output file (and the input file as well), an element is always
one word, referenced as the slot and word taken together. For example,
element O:3.0 refers to output file, slot 3, word 0. This defaults to O:3,
where word 0 is implied.
O:1
O:3
O:4
O:5
O:5.1
O:9
O:10
0
15
#O:3
INVALID
INVALID
Data File 0 - Output Image
File #O:3 shown above is 5 elements long: Elements 3, 4, 5, 5.1, 9.
N7:14 0
N7:15 0
N7:16 0
N7:17 0
N7:18 0
N7:19 0
Address
File #N7:14
This file is 6 elements
long: Elements 14, 15,
16, 17, 18, 19.
Data