Omron CJ1W-CT021 Operation Manuals page 99

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

Advertisement

This Unit has device variables for CJ-series Unit (for output) to store preset values for Counters. To
change a preset value, set a preset value in this variable.
Name of device variable
for CJ-series Unit
*_Ch1_Prst
*_Ch2_Prst
*_Ch1_PrstLinCtVal
*_Ch2_PrstLinCtVal
*_Ch1_PrstRingCtVal
*_Ch2_PrstRingCtVal
The Counter Value is overwritten by the preset value at the rising edge of the Preset Counter bit.
Reset Function
A Digital Input configured to have Reset functionality will reset the Counter to zero on a rising edge
(Reset Rising Edge, Function 05) or falling edge (Reset Falling Edge, Function 06) of the Digital
Input signal.
Reset Counter
Value to zero
To reset a Counter by the Function 05 or 06, it is necessary to set the following variable Reset
Enable to 1.
It is also possible to reset a Counter by using the following device variable for CJ-series Unit (for out-
put) Reset.
Name of device variable
for CJ-series Unit
*_Ch1_Rst
*_Ch2_Rst
*_Ch1_RstEnbl
*_Ch2_RstEnbl
Additional Information
• Resets from an Digital Input signal will be executed within 300 µs.
• The Open Gate, Close Gate, Preset or Reset in device variables for CJ-series Unit (for output)
may not be executed if turned to 1 for only one task period.
Always keep them 1 until the execution status changes in the corresponding flag (Counter
Running/Gate Open, Preset Activated, and Reset Activated).
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Type
BOOL
Preset
DINT
Preset Value
UDINT
Preset Value
Function 05:
Reset Rising Edge
Type
BOOL
Reset
BOOL
Reset Enable
3 Operation and Configuration
Name
0 to 1: Counter preset
Used for a Simple Counter or Linear
Counter.
Set it in the range −2,147,483,648 to
2,147,483,647.
Used for a Circular Counter.
Set it in the range 0 to 4,294,967,295.
Function 06:
Reset Falling Edge
Reset Counter
Value to zero
Name
0 to 1: Counter reset
0: Disable
1: Enabled
Function
Function
3-19
3

Advertisement

Table of Contents
loading

Table of Contents