
A-11
Appendices
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
A-1 Diff
erences o
f NJ
S
e
rie
s fr
o
m
CJ
S
e
rie
s
App
A-1-2 Diff
eren
ces in Access Metho
ds from a User Prog
ram
Range data is set in the user-defined variable.
Two types of structure data are prepared beforehand for range data user-defined variables: one type for
Linear Counters and one type for Circular Counters.
Use these structures to define user-defined variables.
The table below is an example in which 32 Linear Counter range structure data type
(_sCJCT021_Ex_RngLin) are used as user-defined variables and the variable name is defined as
"aaaa".
k is set with device variables for CJ-series Unit *_Ch#_MemAreaCfg and *_Ch#_MemAdrCfg.
m+110
00 to 03
*_Ch2_MemAreaCfg
Memory Area
04 to 15
---
m+111,
m+112
00 to 15
*_Ch2_MemAdrCfg
Memory Address (BCD)
m+113
to
m+399
00 to 15
Undefined
---
Range Data
Data type (name)
Member
Data type
Name
_sCJCT021_Ex_RngLin
LowLmt
DINT
Lower Limit Range 0
UpLmt
DINT
Upper Limit Range 0
OutPat
DWORD
Output Pattern Range 0
_sCJCT021_Ex_RngRing
LowLmt
UDINT
Lower Limit Range 0
UpLmt
UDINT
Upper Limit Range 0
OutPat
DWORD
Output Pattern Range 0
CJ-series I/O memory address
NJ-series device variables for CJ-series Unit
Word
Bit
Variable name
Description
k to k+5
aaaa[0]
Range 0
k, k+1
00 to 15
aaaa[0].LowLmt
Lower Limit Range 0
k+2, k+3
00 to 15
aaaa[0].UpLmt
Upper Limit Range 0
k+4, k+5
00 to 15
aaaa[0].OutPat
Output Pattern Range 0
k+6 to k+11
00 to 15
aaaa[1]
Range 1
k+12 to k+17
00 to 15
aaaa[2]
Range 2
k+18 to k+23
00 to 15
aaaa[3]
Range 3
k+24 to k+29
00 to 15
aaaa[4]
Range 4
k+30 to k+35
00 to 15
aaaa[5]
Range 5
k+36 to k+41
00 to 15
aaaa[6]
Range 6
k+42 to k+47
00 to 15
aaaa[7]
Range 7
k+48 to k+53
00 to 15
aaaa[8]
Range 8
k+54 to k+59
00 to 15
aaaa[9]
Range 9
k+60 to k+65
00 to 15
aaaa[10]
Range 10
k+66 to k+71
00 to 15
aaaa[11]
Range 11
k+72 to k+77
00 to 15
aaaa[12]
Range 12
k+78 to k+83
00 to 15
aaaa[13]
Range 13
CJ-series I/O
memory address
NJ-series device variables for CJ-series Unit
Word
Bit
Variable name
Description
Содержание 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: ......