Omron CJ1W-CT021 Operation Manuals page 93

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

Advertisement

Configuring Upper and Lower Count Limits
The Upper Count Limit must be positive and the Lower Count Limit must be negative. (If either is set
to 0, the upper count limit becomes 2,147,483,647 and the lower count limit becomes −
2,147,483,648.) To set the Upper and Lower Count Limits, refer to the following.
Name of device variable
for CJ-series Unit
*_Ch1_UpCtLmtCfg
*_Ch2_UpCtLmtCfg
*_Ch1_LowCtLmtCfg
*_Ch2_LowCtLmtCfg
Creating Error Codes
To create an error code with a Linear Counter, set the bits 4 to 7 of the device variable for CJ-series
Unit (for setting) to 1.
Name of device variable
for CJ-series Unit
*_Ch1_ZOvfUdfCfg
*_Ch2_ZOvfUdfCfg
Overflow and Underflow Flags
An Overflow or Underflow of a Linear Counter is reported in the device variables for CJ-series Unit
(for input).
Name of device variable
for CJ-series Unit
*_Ch1_CtOvf
*_Ch2_CtOvf
*_Ch1_CtUdf
*_Ch2_CtUdf
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Type
Name
UDINT
Upper Count Limit
Circular/Linear
DINT
Lower Count Limit
Linear
Type
Name
WORD
Z-reset Mode / Over-
flow/Underflow error-
code generation
Type
Name
BOOL
Counter Overflow
BOOL
Counter Underflow
3 Operation and Configuration
Function
Set a value in the range of 0 to
2,147,483,647.
When 0 is set, this becomes 2,147,483,647.
Set a value in the range of
−2,147,483,648 to 0.
When 0 is set, this becomes −2,147,483,648.
Function
Bits 00 to 03: Z phase reset
16#0: No function
16#1: Reset
Bits 04 to 07: Overflow/underflow error set-
ting
16#0: Do not generate error codes.
16#1: Generate error codes.
Bits 8 to 15: 00
Function
1: Overflow
0: Other than the above
1: Underflow
0: Other than the above
3
3-13

Advertisement

Table of Contents
loading

Table of Contents