Chapter 4.2 Programming Counters - A
Chapter 4.2 Programming Counters - A
PLC
Programming
Copyright (c) 2017 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education
Section 4.6
Counter Instructions
Section 4.6.1
Counter Instructions
Programmed
counters serve the
same function as
mechanical counters.
Generic coil-
formatted
up-counter
instruction.
The counter reset instruction must be used in
conjunction with the counter instruction.
Up-counters are
always reset to zero.
Generic block-formatted counter.
Up-Counter
The up-counter is used to count false-to-true
transitions of an input instruction and then
trigger an event after a required number of
counts or transitions.
Down-Counter
A down-counter will count down or decrement
by 1 each time the counted event occurs.
Generic up/down
counter program.
The information to be
entered into the
instruction is the
same as for the
count-up instruction.
Count-down Counter Instruction Program
Simulation of Count-down Counter
Instruction Program
Up/down-counter program.
Simulated up/down-counter program.
Continuous monitoring of items in process.
Cascading Counters
Depending on the
application, it may be
necessary to count events
that exceed the
maximum number
allowable per counter
instruction. One way of
accomplishing this count
is by interconnecting, or
cascading, two counters. Source: Photo courtesy Omron Industrial
Automation, www.ia.omron.com.
Counting beyond the maximum count program.
Simulated counting beyond the maximum
count program.
Cascading counters for extremely large counts.
Simulated program for extremely large counts.
24-hour
clock
program.
Simulated 24-hour clock program.
Monitoring the
time of an event
program
Simulated
time of an
event
program.
Section 4.6.5
Incremental
Encoder-Counter
Applications
Incremental
encoders are used
to track motion.
Combining
Counter and Timer
Functions
Automatic
stacking
program
Motor
lock-out
program
High-Speed Counters
The maximum counting frequency of a
PLC is limited by the scan time of the
processor.