214
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 Sysmac CP1H
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised October 2014...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 76: ...42 Function Blocks Section 1 5...
Page 176: ...142 CP series Expansion I O Unit Wiring Section 3 6...
Page 372: ...338 Analog I O XA CPU Units Section 5 5...
Page 578: ...544 Trouble Shooting Section 8 7...
Page 622: ...588 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 668: ...634 Standard Models Appendix A...
Page 744: ...710 Auxiliary Area Allocations by Address Appendix D...
Page 771: ...737 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 772: ...738 Connections to Serial Communications Option Boards Appendix F...
Page 800: ...766 Specifications for External Power Supply Expansion Appendix H...
Page 806: ...772 Index W Work Area 165 work bits 165 work words 165 write protection 379...
Page 808: ...774 Revision History...
Page 809: ......