Timer and Counter in PLC
Timer and Counter in PLC
By:
Praveen Saraswat
Associate Professor
Department of Mechanical Engineering
Swami Keshvanand Institute of Technology, Management & Gramothan, Jaipur
Lecture Outcomes
• Timer instructions come in two basic types: on-delay timers and off-delay
timers. Both “on-delay” and “off-delay” timer instructions have single inputs
triggering the timed function.
• The accuracy and repeatability of the timer are extremely high because the PLC
processor generates delays.
• When the rung is on, the timer starts counting until the preset value is
equal to the accumulated value.
• The timer starts counting when the rung is turned ON, the counting of
accumulated value will be shown at the ET rung on the timer logic.
Status Bits
• The timer enable bit (EN bit 15) is set when the rung becomes true. It is
reset when the rung becomes false and ACC < PRE or the DN bit is reset
(ACC = PRE)
• The done bit (DN bit 13) is reset when the ACC value is equal to the PRE
value. The DN bit is set when the rung becomes true
Counters
• A counter is a simple device intended to do one simple thing-count.
Every PLC has counter instructions.
• The ability of the counter to detect false–to–true transitions depends on the speed
(frequency) of the incoming signal.
• The accumulated value is retained when the rung conditions again become false.