Timer and Counter Instructions
Chapter 5
510
timer, the CTU instruction continues to increment its accumulated value
after the preset value has been reached. If the accumulated value goes
above 999, bit 14 is set on to indicate an overflow condition and the CTU
continues up-counting from 000. Bit 14 can be examined to cascade
counters for counts greater than 999 (Section 5.3).
Figure 5.7
UpCounter
Diagram and Programming for Preset = 9
ON
OFF
12 345 678 91011
Overflow
Bit Comes On at 1000th Event. The Counter Does Not Reset.
Event to be
Counted, 1
11/11
AC = PR
997998 999 1 20
Accumulated V
alue
ON
OFF
Enable Bit
053/17
ON
OFF
Count Complete
Bit 053/15
ÉÉÉÉÉÉÉÉ
ÉÉÉÉÉÉÉÉ
ON
OFF
Output Lamp
013/06
ÉÉÉÉÉÉÉÉ
ÉÉÉÉÉÉÉÉ
ÉÉÉÉÉÉÉÉ
ON
OFF
Overflow Bit
0137/07
ON
OFF
Overflow Output
013/07
Rung 1 - CTU Instruction
Preset to 9.
Rung 2 - Counter T
uns On
Bit 013/06 at Count
Complete.
||
11
( CTU )
111 053
||
15
()
06
053 013
PR 009
AC 009
Count Switch
Count Complete Bit Output Lamp
Rung 3 - Counter T
urns On
Bit 013/07 at Overflow
.
||
14
()
053 013
Overflow Bit
07
Overflow Lamp
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com