Omron CJ1-CT021 Operation Manual page 66

High-speed counter unit
Table of Contents

Advertisement

Counter Types
CNT1:
CNT2:
n+2
n+5
CNT1:
CNT1:
n+3
n+6
n+4
n+7
Resetting a Simple Counter
CNT1:
CNT2:
n+2
n+5
Capturing a Simple Counter
CNT1:
CNT2:
n+2
n+5
Status Digital Inputs of
Simple Counter
General Setting:
n+16
Counter. A rising edge of the Preset Counter Bit triggers a preset in the next I/O
Refresh Cycle.
15 14 13 12 11 10 9
15 14 13 12 11 10 9
Set Preset Value for Simple Counter between 80000000
For every Simple Counter the Software Reset Bit can be used to trigger a Reset.
A rising edge of the Software Reset Bit triggers a Reset in the next I/O Refresh
Cycle.
15 14 13 12 11 10 9
Each Simple Counter has a capture register. A rising edge of the Counter Capture
Bit reads the current counter value and stores it in the register. Only the most cur-
rent value is maintained.
15 14 13 12 11 10 9
To use the captured counter value in the ladder program, read the value with the
IORD-instruction. Refer to 4-4 "IORD-Instruction" for details.
The status of the two Digital Inputs is reflected by their corresponding bits in CIO.
You can use these bits as event flags in the Ladder Program.
15 14 13 12 11 10 9
Bits 0 and 1 correspond to the Physical Digital Inputs I0 and I1.
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
I1 I0
0
Preset Counter:
0→1 = Preset Counter
0
Preset Value
and 7FFFFFFF
.
H
H
0
Software Reset Bit:
0→1 = Reset Counter
0
Counter Capture Bit
0→1= Capture counter value
0
Digital Input Status:
0 = Inpu t is OFF
1 = Inpu t is ON
Section 3-2
51

Advertisement

Table of Contents
loading

Table of Contents