
4-9
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-2 Allo
cating Ran
ges an
d Compar
ison Data
z
Configuring Indirect Addressing
An indirect address for the Unit in Range or Comparison Mode is specified with a device variable for
a CJ-series Unit (for setting) for every Counter. You must specify the memory area (EM/DM) and the
address (00000 to 32760) of the first word where the Range/Comparison data is to be stored. The
size of the comparison data block is determined for every Counter depending on the number of
ranges or comparison data. For every Range 6 words and for every Comparison data 10 words are
allocated.
Range and comparison data is transferred from the CPU Unit as Unit setting data after the Unit Con-
troller is reset or the Unit is restarted.
z
Example Range Mode
With the Unit in Range Mode, if 12 range items (0 to 11) are set in Counter 1 and the data is allo-
cated to the area starting with D0185, Sysmac Studio is used to set as follows.
For an overview of all addresses related to range data refer to 4-2-5 Memory Allocation for Ranges.
z
Example Comparison Mode
With the Unit in Comparison Mode, if 5 comparison data (0 to 4) are set in Counter 1 and allocated
to the area starting with EM00520, Sysmac Studio is used to set as follows.
Device variable for CJ-series Unit
Data type
R/W
Name
Set value
*_Ch#_NumRngCmpCfg
WORD
R/W
Number of Ranges/Compari-
son Values (BCD)
16#0012
*_Ch#_MemAreaCfg
UINT
R/W
Memory Area
1 (DM)
*_Ch#_MemAdrCfg
DWORD
R/W
Memory Address (BCD)
16#00001850
Device variables
for CJ-series Unit
Data type
R/W
Name
Setting value
*_Ch#_NumRngCmpCfg
WORD
R/W
Number of Ranges/Compari-
son Values (BCD)
16#0005
*_Ch#_MemAreaCfg
UINT
R/W
Memory Area
0 (EM (bank 0))
*_Ch#_MemAdrCfg
DWORD
R/W
Memory Address (BCD)
16#00000520
Lower Range Limit
Upper Range Limit
Output Pattern
Data Range 0
Data Range 11
Data Range 1
Data Range 2
Data Range 3
D1850
12 x 6 words =
72 words
DM:
D1856
D1862
D1868
D1916
D1850
D1851
D1852
D1853
D1854
D1855
Data Range 0:
Содержание 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: ......