208
High-speed Counters
Section 5-2
Up/Down Mode
The up/down mode uses two signals, an increment pulse input and a decre-
ment pulse input.
Conditions for Incrementing/Decrementing the Count
• The count is incremented for each increment pulse input and decre-
mented for each decrement pulse input.
• Only up-differentiated pulses (rising edges) can be counted.
Increment Mode
The increment mode counts single-phase pulse signal inputs. This mode only
increments the count.
Conditions for Incrementing/Decrementing the Count
• Only up-differentiated pulses (rising edges) can be counted.
Note The count of the high-speed counter can be monitored to see if it is currently
being incremented or decremented. The count in the current cycle is com-
pared with the count in the previous cycle to determine if it is being incre-
mented or decremented. The results are reflected in the High-speed Counter
Count Direction Flags (A274.10 for high-speed counter 0, A275.10 for high-
speed Counter 1, A320.10 for high-speed counter 2, and A321.10 for high-
speed counter 3.)
Counting Modes
Linear Mode
Input pulses can be counted in the range between the lower limit and upper
limit values. If the pulse count goes beyond the lower/upper limit, an under-
flow/overflow will occur and counting will stop.
2
2
1
1
0
0
7
6
8
7
6
5
5
4
4
3
3
Increment pulse
Decrement pulse
Decrement
pulse
Increment
pulse
Count value
↑
L
Decrement
H
↑
Increment
↓
H
No change
L
↓
No change
L
↑
Increment
↑
H
Decrement
H
↓
No change
↓
L
No change
14
2
15
1
16
0
9
10
8
7
6
11
5
12
4
13
3
Pulse
Pulse
Count value
↑
Increment
H
No change
↓
No change
L
No change
Summary of Contents for CP1H-CPU - 05-2006
Page 2: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised May 2006...
Page 3: ...iv...
Page 11: ...xii TABLE OF CONTENTS...
Page 15: ...xvi...
Page 19: ...xx...
Page 31: ...xxxii Conformance to EC Directives 6...
Page 71: ...40 Function Blocks Section 1 5...
Page 133: ...102 Computing the Cycle Time Section 2 7...
Page 169: ...138 CPM1A Expansion I O Unit Wiring Section 3 6...
Page 411: ...380 Clock Section 6 8...
Page 519: ...488 Replacing User serviceable Parts Section 10 2...
Page 527: ...496 Standard Models Appendix A...
Page 535: ...504 Dimensions Diagrams Appendix B...
Page 628: ...597 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 629: ...598 Connections to Serial Communications Option Boards Appendix F...
Page 659: ...628 PLC Setup Appendix G...
Page 665: ...634 Index work words 159 write protection 370...
Page 667: ...636 Revision History...