6
6
Up-Counter
• The up-counter is an output instruction whose
function is to increment its accumulated value
on false-to-true transitions of its instruction.
• It thus can be used to count false to-true
transitions of an input instruction and then
trigger an event after a required number of
counts or transitions.
• The up-counter output instruction will increment
by 1 each time the counted event occurs.
• Preset Value —The preset value can range
from -32,768 to +32,767.
• Maxiumum value of count: 32,767
• Counters are similar to timers except that they
do not operate on an internal clock but are
dependent on external sources for counting
UP-DOWN COUNTER: Auto parking
Combining Counter and Timer Functions
• When the start switch is closed, both the timer and counter are enabled.
• The counter is pulsed for each part that passes the parts sensor.
• The counting begins and the timer starts timing through its 1-minute time
interval.
• At the end of 1 minute, the timer done bit causes the counter rung to go false.
• The number of parts for the past minute is represented by the accumulated
• The sequence is reset by momentarily opening and closing the start switch.