Page 190 - Programmable Logic Controllers, Fifth Edition
P. 190
Inputs
Ladder logic program
PB1 C5:0/DN B3:0/0 Output L2
L1 Count CTU First counter
button OSR COUNT-UP COUNTER CU Light
Counter C5:1 DN
PB1 Preset 32000
Accumulated 0
Reset
button B3:0/0 Second counter
CTU
OSR COUNT-UP COUNTER CU
PB2
Counter C5:0 DN
Preset 32000
Accumulated 0
C5:0/DN C5:1/DN Light
PB2 C5:0
RES
C5:1
RES
Figure 8-27 Counting beyond the maximum count.
Inputs Ladder logic program Output
Count B3:0/0
L1 CTU L2
PB1 OSR COUNT-UP COUNTER CU
Counter C5:1 DN
Count Preset 500 Light
PB2 Accumulated 0
Reset
C5:1 CTU
COUNT-UP COUNTER CU
DN Counter C5:2 DN
Preset 500
Accumulated 0
C5:1 C5:1
RES
DN
Reset
Reset C5:2
RES
C5:2 Light
DN
Figure 8-28 Cascading counters for extremely large counts.
Programming Counters Chapter 8 171
pet73842_ch08_156-183.indd 171 03/11/15 3:58 PM