Memory Allocation For Ranges - Omron CJ1W-CT021 Operation Manuals

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

Advertisement

4-2-5

Memory Allocation for Ranges

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.
Data type (name)
_sCJCT021_Ex_RngLin
_sCJCT021_Ex_RngRing
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))
Variable name
c1D[0]
_sCJCT021_Ex_
RngLin
c1D[0].LowLmt
DINT
c1D[0].UpLmt
DINT
c1D[0].OutPat
DWORD
c1D[1]
_sCJCT021_Ex_
RngLin
c1D[2]
_sCJCT021_Ex_
RngLin
c1D[3]
_sCJCT021_Ex_
RngLin
c1D[4]
_sCJCT021_Ex_
RngLin
c1D[5]
_sCJCT021_Ex_
RngLin
c1D[6]
_sCJCT021_Ex_
RngLin
c1D[7]
_sCJCT021_Ex_
RngLin
c1D[8]
_sCJCT021_Ex_
RngLin
c1D[9]
_sCJCT021_Ex_
RngLin
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Member
LowLmt
UpLmt
OutPat
LowLmt
UpLmt
OutPat
Data type
Item
Counter 1
Range 0
Range 0 Lower Limit
Range 0 Upper Limit
Range 0 Output Pattern
Range 1
Range 2
Range 3
Range 4
Range 5
Range 6
Range 7
Range 8
Range 9
4 Exchanging Data with CPU
Data type
DINT
Lower Limit Range
DINT
Upper Limit Range
DWORD
Output Pattern
UDINT
Lower Limit Range
UDINT
Upper Limit Range
DWORD
Output Pattern
Range 0 lower limit
Range 0 upper limit
Range 0 output pattern
Range 1 lower limit/upper limit values and output
pattern
Range 2 lower limit/upper limit values and output
pattern
Range 3 lower limit/upper limit values and output
pattern
Range 4 lower limit/upper limit values and output
pattern
Range 5 lower limit/upper limit values and output
pattern
Range 6 lower limit/upper limit values and output
pattern
Range 7 lower limit/upper limit values and output
pattern
Range 8 lower limit/upper limit values and output
pattern
Range 9 lower limit/upper limit values and output
pattern
Name
Function
*
4-23
4

Advertisement

Table of Contents
loading

Table of Contents