
3-19
3 Operation and Configuration
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
3
-4 Dig
ital In
pu
t F
unct
ion
s
3
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.
The Counter Value is overwritten by the preset value at the rising edge of the Preset Counter bit.
z
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.
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.
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).
Name of device variable
for CJ-series Unit
Type
Name
Function
*_Ch1_Prst
BOOL
Preset
0 to 1: Counter preset
*_Ch2_Prst
*_Ch1_PrstLinCtVal
DINT
Preset Value
Used for a Simple Counter or Linear
Counter.
Set it in the range
−
2,147,483,648 to
2,147,483,647.
*_Ch2_PrstLinCtVal
*_Ch1_PrstRingCtVal
UDINT
Preset Value
Used for a Circular Counter.
Set it in the range 0 to 4,294,967,295.
*_Ch2_PrstRingCtVal
Name of device variable
for CJ-series Unit
Type
Name
Function
*_Ch1_Rst
BOOL
Reset
0 to 1: Counter reset
*_Ch2_Rst
*_Ch1_RstEnbl
BOOL
Reset Enable
0: Disable
1: Enabled
*_Ch2_RstEnbl
Function 06:
Reset Falling Edge
Reset Counter
Value to zero
Function 05:
Reset Rising Edge
Reset Counter
Value to zero
Содержание 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: ......