Omron CJ1W-CT021 Operation Manuals page 133

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

Advertisement

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.
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.
Device variable for CJ-series Unit
*_Ch#_NumRngCmpCfg
*_Ch#_MemAreaCfg
*_Ch#_MemAdrCfg
12 x 6 words =
72 words
For an overview of all addresses related to range data refer to 4-2-5 Memory Allocation for Ranges.
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 variables
for CJ-series Unit
*_Ch#_NumRngCmpCfg
*_Ch#_MemAreaCfg
*_Ch#_MemAdrCfg
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Data type
WORD
R/W
UINT
R/W
DWORD
R/W
DM:
D1850
Data Range 0
D1856
Data Range 1
D1862
Data Range 2
D1868
Data Range 3
D1916
Data Range 11
Data type
R/W
WORD
R/W
UINT
R/W
DWORD
R/W
4 Exchanging Data with CPU
R/W
Name
Number of Ranges/Compari-
son Values (BCD)
Memory Area
Memory Address (BCD)
Data Range 0:
D1850
Lower Range Limit
D1851
D1852
Upper Range Limit
D1853
D1854
Output Pattern
D1855
Name
Number of Ranges/Compari-
son Values (BCD)
Memory Area
Memory Address (BCD)
Set value
16#0012
1 (DM)
4
16#00001850
Setting value
16#0005
0 (EM (bank 0))
16#00000520
4-9

Advertisement

Table of Contents
loading

Table of Contents