Module 3
TIMERS AND COUNTER INSTRUCTIONS
INTRODUCTION
Optional timing circuit cards that the user
could slide in to the CPU to add timer or
counter functionality to the PLC.
Today PLCs use modern microprocessor
technology and have timers and counters
included in the instruction set.
Ex: Each SLC 500 can have up to 256 timers
or counters in each of multiple timer or
counter files.
Allen-Bradley’s PLC 5 timers and counters are
almost identical to SLC 500 timers and
counters.
Timer Instructions
A timer is comprised of the following parts
Timer address
Preset value
Time base
Accumulated value
SLC 500 ON Delay Timer
A timer instruction is one element .A timer
element consists of three 16-bit words, called
timer elements.
Word zero contains the three status bits, EN,
TT, and DN.
Word one is for the preset value.
Word two is for the accumulated value.
Timer addressing is done as follows:
1. To address the timer element, the address
format is T4:2.
2. To address timer two’s accumulated value, the
address used is T4:[Link]
3. To address timer two’s preset value, the
address used is T4:[Link].
[Link] have three status bits. Word zero, bit 13,
is the done bit, known as DN.
Word zero, bit 14, is the timer-timing bit (TT)
Word zero, bit 15, is the enable bit, represented
as EN
Timer Instructions
ON Delay
OFF Delay
Retentive Timer
ON DELAY TIMER- Program timer
Delay before the instruction is
true.
Off Delay Timer- Program a time delay to begin after rung
input goes false.
Retentive timer Instruction
Reset Instruction
PLC COUNTER UP INSTRUCTION
PLC Counter Down Instruction
The Count Up Instruction
Count Down Instruction
High speed counter Instruction
The Counter Reset Instruction