Omron CJ1W-CT021 Operation Manual page 82

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

Advertisement

Digital Input Functions
Capture Function
Capture current C ounter Value
into Capture Register
CNT1:
CNT2:
n+2
n+5
Stop, Capture and Continue
Stop, Capture and C ontinue
Gate Op en
Stop counting and Capture
current Counter Value into
Capture Register
62
A Digital Input configured to have Capture functionality will capture the current
Counter Value into the Capture Register on a rising edge (Capture Rising Edge,
Function 07) or falling edge (Capture Falling Edge, Function 08) of the Digital Input
signal. The Unit is equipped with a Capture Register for every Counter. Every time
that a Counter Value is captured the contents of the Capture Register are over-
written with the new Captured Value and the old Captured Value is lost.
Function 07:
Capture Rising Edge
The Counter Value can also be captured by using the "Capture Counter Value Bit"
in CIO.
15 14 13 12 11 10 9
If you want to use the Captured Value in your Ladder Program, you must use the
IORD-instruction. This instruction reads the Captured Value from the Unit into a
specified location in the memory of the PLC. For more details on using the IORD-
instruction and reading the Captured Value refer to 4-4 "IORD-Instruction".
A Digital Input configured to have Stop, Capture and Continue functionality will
Stop the Counter (= close the Gate) and Capture the current Counter Value into
the Capture Register on a rising edge of the signal applied to the Digital Input
(Stop, Capture and Continue, Function 09). On the next falling edge the Counter
will continue counting (= open the Gate). For the Stop, Capture and Continue
(Inverted) Function (10) the same functionality is applied to the Counter for
inverted signals.
Function 09:
Gate Closed
Gate Op en
Continue Counting
Note The Open Gate Bit, Close Gate Bit, Preset Counter Bit, Reset Bit, or the Counter
Capture Bit in CIO may not be executed if turned ON for only one PLC cycle.
Always keep these bits turned ON until the execution status changes for the cor-
responding flags in n+24 or n+29.
Function 08:
Capture Falling Edge
8
7
6
5
4
3
2
1
Stop, Capture and C ontinue (Inverted)
Gate Op en
Stop counting and Capture
current Counter Value into
Capture Register
Capture current C ounter Value
into Capture Register
0
Capture Counter Value:
0→1 = Capture Counter Value
Function 10:
Gate C losed
Continue Counting
Section 3-4
Gate Op en

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents