
3 Operation and Configuration
3-28
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
z
Reflecting Active/Not Active Ranges
The range conditions are met when Lower limit
≤
Counter value
≤
Upper limit. The state whether the
range condition is active or not is reflected in the following device variable for CJ-series Unit (for
input) for each Counter.
Additional Information
Lower Range Limit = Upper Range Limit can be set under the Range conditions.
z
Enabling and Disabling of Range Conditions
Each range condition can be enabled/disabled separately. When a pair of range conditions is set to
disabled (the default setting), that output pattern is ignored when the unit output pattern is calcu-
lated. When a pair of range conditions is set to enabled, if conditions are established, that output
pattern is applied to the output pattern of the corresponding Counter. The range condition
enabled/disabled status for a Counter is set in the device variable for CJ-series Unit (for setting)
shown below.
z
Logically AND/OR Counter Output Patterns
In Range Mode, output patterns of two Counters are logically summed (logical OR) and the result is
regarded as the output pattern for the Unit. This is the default setting. If necessary, the operation
can be changed from logical OR to logical AND. When it is set to logical AND, output patterns of two
Counters are logically multiplied and the result is regarded as the output pattern for the Unit.
When plural Counters are used to control an application, you can select either logical OR or logical
AND for the Counter output patterns to decide the output pattern for the Unit. This selection allows
to make plural outputs ON when range conditions of plural Counters are met. For instance, it is pos-
sible to make one certain output ON when range conditions of both the Counter 1 and 2 are met. To
have logical AND of Counter output patterns, use bits 8 to 15 of the device variables for CJ-series
Unit (for setting).
Name of device variable
for CJ-series Unit
Type
Name
Function
*_Ch1_RngCmpDatSta
DWORD
Ranges / Comparison
Values active
The current status of the comparison condi-
tions is shown.
Bits 00 to 31 correspond to comparison con-
ditions 0 to 31.
Each bit shows 1 when the conditions are
met and 0 when they are not.
*_Ch2_RngCmpDatSta
*_Ch1_RngCmpSta0
*_Ch1_RngCmpSta31
BOOL
Ranges 0 to 31 / Com-
parison Values 0 to 31
active
The numbers after "Sta" correspond to com-
parison conditions 0 to 31.
0: Range conditions not met
1: Range conditions met
*_Ch2_RngCmpSta0
*_Ch2_RngCmpSta31
Name of device variable
for CJ-series Unit
Type
Name
Function
*_Ch1_RngCmpEnblCfg
DWORD
Range/Comparison
Enable Data
Sets whether the range and comparison
data is enabled or disabled.
Bits 00 to 31 correspond to comparison data
0 to 31.
0: Range conditions disabled
1: Range conditions enabled
*_Ch2_RngCmpEnblCfg