4
Chapter
4–1
Data File Organization and Addressing
This chapter discusses the following topics:
•
data file organization and addressing
•
indexed addressing (SLC 5/02 processors)
•
file instructions (using the file indicator #)
•
creating and deleting data
•
program constants
•
M0-M1 files, G files (SLC 5/02 processors with specialty I/O modules)
Data files contain the status information associated with external I/O and all
other instructions you use in your main and subroutine ladder program files.
In addition, these files store information concerning processor operation.
You can also use the files to store “recipes” and lookup tables if needed.
Data Files associated with Specialty I/O modules (SLC 5/02
processors)
Data Files residing in the processor memory
Note:
Data file 9 can be used for network transfer on the
DH485 network. NonSLC 500 devices are able to read
and write to this file. Data file 9 can be used as an
ordinary data file if the processor is not on a network.
Designate this file as Integer or Bit when using the
network transfer function.
This file is also called Common Interface File 485CIF" or
PLC-2 compatibility file."
M0 and M1 files
These data files reside in the memory of the specialty I/O
module. Their function depends on the particular specialty I/O
module.
In most cases, you can address these files in your ladder
program.
G files
These data files are the software equivalent of DIP switches.
G files are accessed and edited offline under the I/O
Configuration function. The information is passed on to the
specialty I/O module when you enter the Run or Test mode.
Bit, Timer, Counter,
Control, or Integer,
assigned as needed
Output image
Input image
Status
Bit
Timer
Counter
Control
Integer
Reserved
See Note below
0
1
2
3
4
5
6
7
8
9
10–255
Data File Organization