Omron CJ1W-CT021 Operation Manual page 71

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
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
n + 1 6
G e n e r a l S e t t i n g :
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.
B i t s 0 a n d 1 c o r r e s p o n d t o t h e P h y s i c a l D i g i t a l I n p u t s I 0 a n d I 1 .
1 5 1 4 1 3 1 2 1 1 1 0 9
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
I 1 I 0
8
7
6
5
4
3
2
1
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
1 = I n p u t i s O N
0 = I n p u t i s O F F
D i g i t a l I n p u t S t a t u s :
0
Section 3-2
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents