
4-23
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-5 Memo
ry
Alloca
tion f
o
r Range
s
Range data are set in the user-defined variable. Refer to Allocation to User-defined Variable (P. 4-10) for
more information.
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.
Register the structure data type for High-speed Counter Units beforehand on the CPU/Expansion
Racks screen in Configuration and Setup of Sysmac Studio.
With the Unit selected on the CPU/Expansion Racks screen in Configuration and Setup, right click, then
select Register Data Types for Units. The data type is registered and becomes usable.
Use these structures to define user-defined variables.
The table below shows an example of range allocation when the range data user-defined variables are
defined as follows.
c1D for Counter 1 (array[0..31] of _sCJCT021_Ex_RngLin) (Linear Counter, 32 ranges (maximum))
c2D for Counter 2 (array[0..31] of _sCJCT021_Ex_RngRing) (Circular Counter, 32 ranges (maxi-
mum))
4-2-5
Memory Allocation for Ranges
Data type (name)
Member
Data type
Name
_sCJCT021_Ex_RngLin
LowLmt
DINT
Lower Limit Range
UpLmt
DINT
Upper Limit Range
OutPat
DWORD
Output Pattern
_sCJCT021_Ex_RngRing
LowLmt
UDINT
Lower Limit Range
UpLmt
UDINT
Upper Limit Range
OutPat
DWORD
Output Pattern
Variable name
Data type
Item
Function
Counter 1
c1D[0]
_sCJCT021_Ex_
RngLin
Range 0
c1D[0].LowLmt
DINT
Range 0 Lower Limit
Range 0 lower limit
c1D[0].UpLmt
DINT
Range 0 Upper Limit
Range 0 upper limit
c1D[0].OutPat
DWORD
Range 0 Output Pattern
Range 0 output pattern
*
c1D[1]
_sCJCT021_Ex_
RngLin
Range 1
Range 1 lower limit/upper limit values and output
pattern
c1D[2]
_sCJCT021_Ex_
RngLin
Range 2
Range 2 lower limit/upper limit values and output
pattern
c1D[3]
_sCJCT021_Ex_
RngLin
Range 3
Range 3 lower limit/upper limit values and output
pattern
c1D[4]
_sCJCT021_Ex_
RngLin
Range 4
Range 4 lower limit/upper limit values and output
pattern
c1D[5]
_sCJCT021_Ex_
RngLin
Range 5
Range 5 lower limit/upper limit values and output
pattern
c1D[6]
_sCJCT021_Ex_
RngLin
Range 6
Range 6 lower limit/upper limit values and output
pattern
c1D[7]
_sCJCT021_Ex_
RngLin
Range 7
Range 7 lower limit/upper limit values and output
pattern
c1D[8]
_sCJCT021_Ex_
RngLin
Range 8
Range 8 lower limit/upper limit values and output
pattern
c1D[9]
_sCJCT021_Ex_
RngLin
Range 9
Range 9 lower limit/upper limit values and output
pattern
Содержание 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: ......