11ć2 – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 147

Advertising
background image

Timers and Counters

Chapter 11

11-2

Preset Value (PR)

Storage begins at an address 100 words greater than its corresponding
AC value.

Function:

Timers

number of elapsed timed intervals

Counters number of counted events
Both

when the accumulated value equals the preset
value, AC = PR, a status bit is set and can be
examined to turn an output device on or off.

A timer counts the elapsed time-base intervals and stores this count in the
accumulated value word. Timers can be anywhere in the data table. The
third digit from the right in the address must be an even number. Timer
instructions have three time bases: 1.0 second, 0.1 second, or 0.01 second.

Two bits in the accumulated value word are status bits:

Bit 15 is the timed (done) bit. It is set when the timer has timed out

(AC = PR). The setting or resetting depends on the type of
timer instruction.

Bit 17 is the enable bit. It is set when rung conditions are true and is

reset when rung conditions are false.

There are four types of timer instructions available:

timer

on-delay

timer

off-delay

retentive timer on-delay
retentive timer reset

The Timer On Delay instruction is programmed as an output instruction.

010

00

TON

030

1.0

PR 150

AC 000

Timer Instructions

Timer On Delay

Advertising