Omron CJ1W-CT021 Operation Manuals page 132

For nj-series cpu unit. high-speed counter units.
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

4 Exchanging Data with CPU
Indirect Address Specification
The High-speed Counter Unit can be used 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
DM or EM (bank 0). An indirect address that you can set for every Counter with a device variable for CJ-
series Unit (for setting) points to the actual memory location in DM or EM where the range or compari-
son data of that Counter is stored.
For a Unit in Range Mode
In Range Mode, indirect addresses can be used to define range for each Counter to be used. The
number of ranges (M) defines the size of the range data block (size = M × 6 words). When using
multiple range items, in order to reserve exclusive memory, it is recommended to save the items
consecutively starting from range 0. (For example, when range 0, 1, 2, 3, are set, this becomes M-
1.)
Additional Information
If you do not want to allocate range data items consecutively, for example if you allocate two
range data items (Data 0 and 15), the number of range items (M) must be set to 16. This is to
avoid a setting error. The range data 1 to 14 must be enabled even if you do not intend to use
them.
For a Unit in Comparison Mode
In Comparison Mode Indirect Addressing can be used to define the comparison data per Counter
that you want to use. The number of comparison data (M) defines the size of the Data block (size =
M x 10 words). If you want to use multiple CV's you are recommended to use consecutive compari-
son data starting from comparison data 0 (i.e. CV 0, 1, 2, 3 → M - 1) in order to save memory occu-
pation.
Size of CV Data block:
Number of CV's (= M ) x 10 words
Additional Information
If you do not want the Comparison data to be consecutive and only intend to use two Compari-
son data (e.g. Comparison data 0 and Comparison data 15) then you still have to define the
number of Comparison data (M) to be 16. In order to prevent configuration errors from happen-
ing you should make sure that the Comparison data 1 to 14 is also valid, although you do not
intend to use Comparison data 1 to 14.
4-8
EM/DM:
k(c)
Comparison data 0
Comparison data 1
Comparison data 2
Comparison data
3
Comparison data
*-1
* Assumed that M
0. By default M=0 which means that no Comparison data will be used.
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Special I/O Unit DM-Area:
# of Comparison data M
M ≤ 32)
(0
EM (=0) / DM (=1)
Area
Indirect address k(c)
(00000 t o 32760)
Counter 'c'
c = 1 or 2

Advertisement

Table of Contents
loading

Table of Contents