Reset 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-6

Reset Counter

For every Counter a reset of the Counter Value to zero can be triggered by the following Sources:
• Software Reset Bit
• Digital Input (Function 05 or 06)
• Z-signal
In order for a Digital Input or the Z-Signal to trigger a reset, the Reset Enable Bit must be set to 1. Addi-
tionally a Digital Input can be assigned the function of Reset Enable (Function 15, refer to 3-4 Digital
Input Functions).
Reset sources:
Software Reset Bit
Digital Input
Reset Enable sources:
Reset Enable Bit
Digital Input
(Function 15)
Software Reset Bit as Reset Source
You can reset each Counter by using the device variable for CJ-series Unit (for output) below.
These variables take priority over all other reset causes.
Name of device variable
for CJ-series Unit
*_Ch1_Rst
*_Ch2_Rst
Digital Input as Reset Source
To use Digital Inputs as causes for resetting, it is necessary to allocate function 05 or 06 (reset func-
tion) to that Digital Input. For details, refer to 3-4 Digital Input Functions.
Z-Input Signal as Reset Source
To use the Z phase signal of an incremental encoder as a reset cause, first it is necessary to enable
the Z phase signal resets with bits 03 to 00 of the following device variables for CJ-series Unit (for
setting). Resets by Z phase signals can be set separately for each Counter.
Name of device variable
for CJ-series Unit
*_Ch1_ZOvfUdfCfg
*_Ch2_ZOvfUdfCfg
3-38
Z-Signal
Optional
Type
BOOL
Reset
Type
WORD
Z-reset Mode / Over-
flow/Underflow error-
code generation
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
OR
AND
Name
0 to 1: Counter reset
Name
Bits 03 to 00: Z phase reset
16#0: No function
16#1: Reset
Bits 07 to 04: Overflow/underflow error set-
ting
16#0: Do not generate error codes.
16#1: Generate error codes.
Bits 15 to 08: 16#00
Reset
OR
Trigger
Function
Function

Advertisement

Table of Contents
loading

Table of Contents