Linear Counter - 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

3 Operation and Configuration
3-2-3

Linear Counter

Additional Information
A Linear Counter can uses all functions listed in 1-3-2 Functional Specifications.
Configuring Linear Counters
Linear Counters are set with the following device variables for CJ-series Unit (for setting).
Name of device variable
for CJ-series Unit
*_Ch1_CtTypCfg
*_Ch2_CtTypCfg
A Linear Counter has the full counting range (=32 bits) available to count up and down within the
range between the Lower Count Limit and the Upper Count Limit. By default the Lower and Upper
Count Limits are set to the maximum and minimum counting limits (i.e. –2,147,483,648 and
2,147,483,647 respectively).
−2,147,483,648 ≤ Lowercount Limit ≤ −1
Underflow
If a Counter Value exceeds the Upper Count Limit, an overflow is set in the device variable for CJ-
series Units; if a Counter Value is below the Lower Count Limit, an underflow is set.
You can make settings to issue corresponding error codes when an overflow or underflow occurs. If
a Z-reset Mode/Overflow/Underflow error-code generation (Bits 04 to 07) is set, the overflow/under-
flow error can be stored in the Unit EEPROM (refer to 5-2-2 Overflow/Underflow errors).
Another feature of overflow/underflow error code is that output states at errors can be predefined.
For this purpose you should use the Output State Control function (refer to 3-5-4 Output Control
Configuration for more information).
3-12
Type
Name
UINT
Counter Type
0
Count up
Counter Value
Count down
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Function
0: Circular Counter

1: Linear Counter

1
Uppercount Limit
2,147,483,647
Overflow

Advertisement

Table of Contents
loading

Table of Contents