Omron C28K Video Game Controller User Manual


 
10
3-1 Introduction
Various types of data are required to achieve effective and correct control. To
facilitate managing this data, the PC is provided with various memory areas
for data, each of which performs a different function. The areas generally ac-
cessible by the user for use in programming are classified as data areas.
The other memory area is the Program Memory, where the user’s program is
actually stored.
This section describes these areas individually and provides information that
will be necessary to use them. The name, acronym, range, and function of
each area are summarized in the following table. All but the last one of these
are data areas. All memory areas are normally referred to by their acronyms.
Area Acronym Range Function
Internal Relay
area
IR Words: 00 to 18 (bits 00 to 07)
Bits: 0000 to 1807
Used to manage I/O points, control other bits,
timers, and counters, to temporarily store data.
Special Relay
area
SR Words: 18 (bits 08 to 15) and
19 (bits 00 to 07)
Bits: 1808 to 1907
Contains system clocks, flags, control bits, and
status information.
Data Memory
area
DM DM 00 to DM 63
(words only)
Used for internal data storage and manipulation.
Holding Relay
area
HR Words: HR 0 to HR 9
Bits: HR 000 to HR 915
Used to store data and to retain the data values
when the power to the PC is turned off.
Timer/Counter
area
TC TC 00 to TC 47 (TC numbers are
used to access other information)
Used to define timers and counters and to access
completion flags, PV, and SV for them.
Temporary Relay
area
TR TR 00 to TR 07 (bits only) Used to temporarily store execution conditions.
Program Memory UM UM: 1,194 words. Contains the program executed by the CPU.
When some bits and words in certain data areas are not used for their in-
tended purpose, they can be used in programming as required to control
other bits. Words and bits available for use in this fashion are called work bits
and work words. Most, but not all, unused bits can be used as work bits.
Those that can be are specified by area in the remainder of this section. Ac-
tual application of work bits and work words is described in
Section 4 Writing
and Inputting the Program
.
Some data areas contain flags and/or control bits. Flags are bits that are
automatically turned ON and OFF to indicate status of one form or another.
Although some flags can be turned ON and OFF by the user, most flags can
be read only; they cannot be controlled directly.
Control bits are bits turned ON and OFF by the user to control specific as-
pects of operation. Any bit given a name using the word bit rather than the
word flag is a control bit, e.g., Restart Bits are control bits.
3-2 Data Area Structure
When designating a data area, the acronym for the area is always required
for any but the IR and SR areas. Although the acronyms for the IR and SR
areas are often given for clarity, they are not required and not input when
programming. Any data area designation without an acronym is assumed to
be in either the IR and SR area. Because IR and SR addresses run consecu-
tively, the word or bit addresses are sufficient to differentiate these two areas.
An actual data location within any data area but the TC area is designated by
its address. The address designates the bit and/or word within the area
where the desired data is located. The TR area consists of individual bits
Work Bits and Words
Flags and Control Bits
Data Area Structure Section 3-2