
3 Operation and Configuration
3-26
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
z
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.
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.
Configuration and Operation in Range Mode
Counter
setting
Structure data type
name
Member
Name
Data type
Function
Linear
Counter
_sCJCT021_Ex_RngLin
LowLmt
Lower Limit
Range
DINT
Range data lower limit setting
UpLmt
Upper Limit
Range
DINT
Range data upper limit setting
OutPat
Output Pattern
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
Circular
Counter
_sCJCT021_Ex_RngRing
LowLmt
Lower Limit
Range
UDINT
Range data lower limit setting
UpLmt
Upper Limit
Range
UDINT
Range data upper limit setting
OutPat
Output Pattern
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
Содержание 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: ......