
4-7
4 Exchanging Data with CPU
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
4-2 Mem
o
ry
Alloca
tion
4
4-2-1 Memo
ry
Mapping
4-2
Memory Allocation
When Range Mode and Comparison Mode are used, the data to be used are allocated to any DM or
EM Area (bank 0). This allocation method is called extended allocation. For details, refer to 4-2-2 Allo-
cating Ranges and Comparison Data.
• For extended allocation
<(DM or EM) Area words allocated to Special I/O Unit>
k1, k2: Start address for comparison data area for Counter 1 and Counter 2. Specify the allocated
address from Memory Address screen in Edit Special Unit Settings of Sysmac Studio.
Data assigned to Counter 1 and Counter 2 can be allocated to any DM or EM address. When this
data is overlapped (duplicated), the Unit treats the overlap as a warning and "*_IABlkOverlapSta" (IA
Blocks overlap) becomes 1. But this is not an error. In other words, by defining one range data or
comparison data and setting the same indirect address in two locations (k1 = k2), that data can be
shared by 2 Counters.
Ranges/Comparison data used in Range Mode or Comparison Mode is allocated in the following two
steps.
1) Use Sysmac Studio to secure the area for the ranges/comparison data in a DM/EM Area (refer to
Indirect Address Specification).
2) Store the ranges/comparison data in this area. Use user-defined variables to allocate the
range/comparison data (refer to Allocation to User-defined Variable).
4-2-1
Memory Mapping
4-2-2
Allocating Ranges and Comparison Data
k1+191
k1
k1+319
k1
For Counter 1
Range
Comparison data
or
k2+191
k2
k2+319
k2
For Counter 2
Range
Comparison data
or
Содержание CJ1W-CT021
Страница 10: ...Manual Structure 8 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492...
Страница 38: ...Revision History 36 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492...
Страница 190: ...Appendicies A 18 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492...
Страница 191: ...Index 1 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 I Index...
Страница 194: ...Index 4 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Index...
Страница 195: ......