Section 5 Memory Areas - Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Memory Area Functions
CPM2A/CPM2C
Data area
1
IR area
Input area
Output area
Work area
SR area
TR area
2
HR area
2
AR area
1
LR area
2
Timer/Counter area
2
DM area Read/write
Error log
4,5
Read-only
4,5
PC Setup
The following memory areas can be used with the CPM2A/CPM2C.
Words
IR 000 to IR 009
IR 00000 to IR 00915
(10 words)
(160 bits)
IR 010 to IR 019
IR 01000 to IR 01915
(10 words)
(160 bits)
IR 020 to IR 049,
IR 02000 to IR 04915,
IR 200 to IR 227
IR 20000 to IR 22715
(58 words)
(928 bits)
SR 228 to SR 255
SR 22800 to SR 25515
(28 words)
(448 bits)
---
TR 0 to TR 7
(8 bits)
HR 00 to HR 19
HR 0000 to HR 1915
(20 words)
(320 bits)
AR 00 to AR 23
AR 0000 to AR 2315
(24 words)
(384 bits)
LR 00 to LR 15
LR 0000 to LR 1515
(16 words)
(256 bits)
TC 000 to TC 255 (timer/counter numbers)
DM 0000 to DM 1999
---
DM 2022 to DM 2047
(2,026 words)
DM 2000 to DM 2021
---
(22 words)
DM 6144 to DM 6599
---
(456 words)
DM 6600 to DM 6655
---
(56 words)
Note
1. IR and LR bits that are not used for their allocated functions can be used as
work bits.
2. The contents of the HR area, AR area, Counter area, and read/write DM
area are backed up by the CPU Unit's battery. If the battery is removed or
fails, the contents of these areas will be lost and returned to default values.
(In CPM2C CPU Units without a battery, these areas are backed up by a ca-
pacitor.)
3. When a TC numbers is used as a word operand, the timer or counter PV is
accessed; when used as a bit operand, its Completion Flag is accessed.
4. Data in DM 6144 to DM 6655 cannot be overwritten from the program, but
they can be changed from a Programming Device.
5. The program and data in DM 6144 to DM 6655 are stored in flash memory.
Bits
These bits are allocated to the external I/O
terminals.
e
a s
Work bits can be freely used within the pro-
gram.
These bits serve specific functions such as
flags and control bits.
These bits are used to temporarily store
ON/OFF status at program branches.
These bits store data and retain their ON/
OFF status when power is turned OFF, or
operation starts or stops. They are used in
the same way as work bits.
These bits serve specific functions such as
flags and control bits.
Used for a 1:1 PC Link with another PC.
3
Timers and counters use the TIM,
TIMH(15), CNT, CNTR(12), TMHH(––), and
TIML(––) instructions. The same numbers
are used for both timers and counters.
DM area data can be accessed in word
units only. Word values are retained when
the power is turned off, or operation started
or stopped.
Read/write areas can be read and written
freely within the program.
Used to store the time of occurrence and
error code of errors that occur. These words
can be used as ordinary read/write DM
when the error log function isn't being used.
Cannot be overwritten from program.
Used to store various parameters that con-
trol PC operation.
Section
5-1
Function
309

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents