Omron CJ1W-CT021 Operation Manuals page 106

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

Advertisement

3 Operation and Configuration
Configuration and Operation in Range Mode
Specifying Range Data
In Range Mode every Counter can be assigned up to a maximum of 32 Ranges. The Data of every
Range is contained by 3 double words:
• Lower Range Limit, specifying the Lower Limit of the Range
• Upper Range Limit, specifying the Upper Limit of the Range
• Output Pattern, specifying which Outputs have to be activated when that Range is active
The Counter Type (Circular or Linear) determines the range in which the Upper and Lower Limits
can be set. For Circular Counters this range is 0 to 4,294,967,295 and for Linear Counters this
range is −2,147,483,648 to 2,147,483,647. For Linear Counters the Upper Range Limit must be
greater than the Lower Range Limit. The Unit will generate an error if the Upper Range Limit ≤
Lower Range Limit (refer to 5-2 Error codes for more details). For Circular Counters, the Upper
Range Limit can be set lower than the Lower Range Limit.
To configure a Counter in Range Mode for every Range that you want to use the Range-Data must
be set. Each data-item is specified using the structure data type shown next. In order to use struc-
ture data types for range data, register the structure data type for High-speed Counter Units before-
hand on the CPU/Expansion Racks screen in Configuration and Setup of Sysmac Studio. For the
exact memory location to set the Range-Data, refer to 4-2-1 Memory Mapping.
Counter
Structure data type
setting
name
Linear
_sCJCT021_Ex_RngLin
Counter
Circular
_sCJCT021_Ex_RngRing
Counter
In the Output Pattern of the Range every single Output can be configured to turn ON when that
Range is active. To configure an Output to turn ON you must set the corresponding bit to 1. If multi-
ple Ranges of a Counter are active at the same time, the Output Patterns of those Ranges are logi-
cally OR'ed to become the Output Pattern of that Counter.
3-26
Member
Name
LowLmt
Lower Limit
Range
UpLmt
Upper Limit
Range
OutPat
Output Pattern
LowLmt
Lower Limit
Range
UpLmt
Upper Limit
Range
OutPat
Output Pattern
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Data type
DINT
Range data lower limit setting
DINT
Range data upper limit setting
DWORD
Output pattern setting for when
range conditions are met
Bit 00: Digital output 0
Bit 01: Digital output 1
Bit 02 to 31: Internal output 2 to
31
UDINT
Range data lower limit setting
UDINT
Range data upper limit setting
DWORD
Output pattern setting for when
range conditions are met
Bit 00: Digital Output 0
Bit 01: Digital Output 1
Bit 02 to 31: Internal output 2 to
31
Function

Advertisement

Table of Contents
loading

Table of Contents