Indirect Addressing - Omron CJ1W-CT021 Operation Manual

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

Memory Allocation
General Setting:
n+19
4-2-2

Indirect Addressing

Unit in Range Mode
Size of Range Data block:
Number of Ranges (= M) x 6 words
98
data and to use this data for all two Counters by using two identical indirect
addresses (k1=k2).
15 14 13 12 11 10 9
The High-speed Counter Unit can be in Range Mode or Comparison Mode (refer
to 3-5-1 "Range Mode" and 3-5-2 "Comparison Mode" for more information). The
Range or Comparison Data is allocated in the Extended Memory Area (EM) or in
the Data Memory Area (DM). An Indirect Address, that you can set for every Coun-
ter in the Special I/O Unit DM Area, points to the actual memory location in DM or
EM where the Range or Comparison Data of that Counter is stored.
Note
It is also possible to use the free DM, in the Special I/O Unit DM Area that is allo-
cated to the High-speed Counter Unit, to store the Range/Comparison Data.
There are 287 free DM-words (=399-113), so you can store data of up to 47
Ranges or 28 Comparison Values.
In Range Mode Indirect Addressing can be used to define the Ranges per Counter
that you want to use. The number of Ranges (M) defines the size of the Range
Data block (size = M x 6 words). If you want to use multiple Ranges you are rec-
ommended to use consecutive Ranges starting from Range 0 (i.e. Range 0, 1, 2,
3 → M - 1) in order to save memory occupation.
k(c)
* Assumed that M 0. By default M=0 which means that no Ranges will be used.
Note
If you do not want the Ranges to be consecutive and only intend to use two
Ranges (e.g. Range 0 and Range 15) then you still have to define the number of
Ranges (M) to be 16. In order to prevent configuration errors from happening you
should make sure that the data of Ranges 1 to 14 is also valid, although you do not
intend to use Range 1 to 14.
8
7
6
5
4
3
2
1
EM/DM:
Data Range 0
Data Range 1
Data Range 2
Data Range 3
Data Range M*-1
0
Range/Comparison Blocks overlap:
0 = No overlapping
1 = One or more blocks overlap
Special I/O Unit DM-Area:
# of Ranges M
M ≤ 32)
(0
EM (=0) / DM (=1)
Area
Indirect Address k(c)
(00000 to 32760)
Counter 'c'
c = 1 or 2
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents