![background image](http://html1.mh-extra.com/html/omron/cpm2c-s100c/cpm2c-s100c_operation-manual_742520106.webp)
84
Allocation of Word and Bit Addresses
Section 4-1
4-1
Allocation of Word and Bit Addresses
Except for the TR area and DM area, data in the PC’s I/O memory can be
specified by bit addresses or word addresses. The TR area can be accessed
only by bit addresses and the DM area can be accessed only by word
addresses.
The following diagram shows how to specify I/O bits.
The following memory areas can be used in the CPM2C-S.
Bit number
Bit address
Bit number
IR 000
IR 001
:
:
IR 010
IR 011
:
:
Word
Bit number
Word
W
ord address
Data area
Words
Bits
Function
IR
area
Input area
IR 000 to IR 009
(10 words)
IR 00000 to IR 00915
(160 bits)
These bits are allocated to the external I/O
terminals.
(Words not used as I/O words can be used
as work words.)
Output area
IR 010 to IR 019
(10 words)
IR 01000 to IR 01915
(160 bits)
CompoBus/S
input area
IR 020 to IR 027
(8 words)
IR 02000 to IR 02715
(128 bits)
These bits are allocated to CompoBus/S
Slaves.
(Words not used as I/O words can be used
as work words.)
CompoBus/S
output area
IR 030 to IR 037
(8 words)
IR 03000 to IR 03715
(128 bits)
Work area
IR 028 and IR 029,
IR 038 to IR 049,
IR 200 to IR 227
(42 words)
IR 02800 to IR 02915,
IR 03800 to IR 04915,
IR 20000 to IR 22715
(672 bits)
Work bits can be freely used within the
program.
SR area
SR 228 to SR 255
(28 words)
SR 22800 to SR 25515
(448 bits)
These bits serve specific functions such as
flags and control bits.
TR area
---
TR 0 to TR 7
(8 bits)
These bits are used to temporarily store
ON/OFF status at program branches.
HR area
1
HR 00 to HR 19
(20 words)
HR 0000 to HR 1915
(320 bits)
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.
AR area
1
AR 00 to AR 23
(24 words)
AR 0000 to AR 2315
(384 bits)
These bits serve specific functions such as
flags and control bits.
LR area
LR 00 to LR 15
(16 words)
LR 0000 to LR 1515
(256 bits)
Used for a 1:1 PC Link with another PC.
Timer/Counter area
1
TC 000 to TC 255 (timer/counter numbers)
2
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.
Содержание CPM2C-S100C
Страница 2: ......
Страница 3: ...CPM2C S Programmable Controller Operation Manual Revised September 2009 ...
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 10: ......
Страница 14: ...xiv ...
Страница 180: ...158 One to one PC Link I O Response Time Section 7 4 ...
Страница 222: ...200 Programming Example Section 8 3 ...
Страница 250: ......
Страница 256: ......
Страница 258: ......
Страница 260: ...238 Support Software Appendix C ...
Страница 268: ......