H#>)"D-=<<)$%'()*
Section 4-2
,(
Note
1. The Range/Comparison Data blocks that are allocated to the Counters do not
necessarily have to be consecutive and can be in any area of DM/EM. In case
they overlap the Unit reports this in CIO as a warning, but does not generate an
error. This makes it possible to define only one block with Range/Comparison
data and to use this data for all four Counters by using four identical indirect
addresses (k1=k2=k3=k4).
2. In case your CS1-CPU does not support Extended Memory (CS1G-CPU42/43
and CS1H-CPU63 types), you should set the Range- or Comparison Data in
DM.
4-2-2
Indirect Addressing
The High-speed Counter Unit can be in Range Mode or Comparison Mode (refer
to 3-5-1
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. If you
use the CS1W-CT021 you have 287 free DM-words (from 113 to 399) and if you
use the CS1W-CT041 you have 197 free DM-words (from 203 to 399). As a result
for the CS1W-CT021 you can store data of up to 47 Ranges or 28 Comparison
Values and for the CS1W-CT041 you can store data of up to 32 Ranges or 19
Comparison Values.
Unit in Range Mode
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.
General Setting:
n+19
Range/Comparison Blocks overlap:
0 = No overlapping
1 = One or more blocks overlap
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
Counter ‘c’
c = 1, 2, 3, or 4
# of Ranges M
(0 M
≤
32)
≤
EM (=0) / DM (=1)
Area
Indirect Address k(c)
(00000 to 32760)
Data Range 0
Data Range M*-1
Data Range 1
Data Range 2
Data Range 3
k(c)
* Assumed that M 0. By default M=0 which means that no Ranges will be used.
≠
Size of Range Data block:
Number of Ranges (= M) x 6 words
EM/DM:
Special I/O Unit DM-Area:
W902-E2-03.book Seite 95 Donnerstag, 7. Oktober 2004 2:06 14
Summary of Contents for CS1W-CT021
Page 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...
Page 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...
Page 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...
Page 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...
Page 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...
Page 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...
Page 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...