212
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 UNITS - PROGRAMMING 05-2007
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Page 370: ...336 Analog I O XA CPU Units Section 5 5...
Page 552: ...518 Trouble Shooting Section 8 7...
Page 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 598: ...564 Sample Application Section 9 12...
Page 642: ...608 Standard Models Appendix A...
Page 652: ...618 Dimensions Diagrams Appendix B...
Page 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Page 776: ...742 PLC Setup Appendix G...
Page 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Page 786: ...752 Revision History...