Omron CJ1W-CT021 Operation Manual page 80

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

Digital Input Functions
Gate Function
Gate Closed
CNT1:
CNT2:
n+2
n+5
Preset Function
Load Counter with
60
Note
Every Digital Input can be configured to generate an Interrupt to the CPU. For
details refer to 4-6-2 "Digital Inputs Generating Interrupts".
The Gate Function should be assigned to a Digital Input in case you want to use
that Digital Input as a Gate. When the Gate is open, the Counter is able to count
pulses. When the Gate is closed, the Counter will not count pulses. The Positive
Gate Function (01) results in an open Gate when the level of the signal applied to
the Digital Input is high and a closed Gate when the level of the signal applied to
the Digital Input is low. For the Negative Gate Function (02) the same functionality
is applied to the Counter for inverted signals.
Function 01:
Gate Positive
Gate Op en
Gate Closed
The Gate of a Counter can also be opened and closed by using the "Open Gate
Bit" and "Close Gate Bit" in CIO.
15 14 13 12 11 10 9
A rising edge of the "Open Gate Bit" opens the Gate regardless of the state of the "Close Gate
Bit". A rising edge of the "Close Gate Bit" closes the Gate regardless of the state of the "Open
Gate Bit". At a simultaneous rising edge of both bits, the state of the Gate is unchanged.
Note
Initially, at power up or restart of the Unit, for all counter types (i.e. Simple-, Circu-
lar-, and Linear Counters) the Gate is closed and counting is disabled. In order to
enable counting you must open the Gate first.
A Digital Input configured to have Preset functionality will preset the Counter with
the Preset Value on a rising edge (Preset Rising Edge, Function 03) or falling edge
(Preset Falling Edge, Function 04) of the Digital Input signal. This will cause the
Counter Value to be overwritten with the Preset Value.
Function 03:
Preset Rising Edge
Preset Value
The Unit is equipped with a Preset Register for every Counter that contains the
Preset Value. To change the Preset Value you can change the (32-bits) Preset
Value in CIO of the corresponding Counter. The Counter Value is overwritten with
Gate Closed
8
7
6
5
4
3
2
1
Function 04:
Preset Falling Edge
Function 02:
Gate Negative
Gate Op en
Gate Closed
0
Open Gate:
0→1 = Open Gate
Close Gate:
0→1 = Close Gate
Load Counter with
Preset Value
Section 3-4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents