Beruflich Dokumente
Kultur Dokumente
*
IN1
C2
1)))1 /)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))[Upctr]1
*
*
*
*
IN2
C2
2)))1 /)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))[DNctr]1
*
*
*
*
IN3
C2
3)))1 /)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))[RSctr]1
*
4-11. Sequencers
Some machine control applications require that a particular sequence of events
occur, and with each step of the controller, a different operation be performed. The
programming element to do this type of control is called a sequencer. For example, the
timer in a washing machine is a mechanical sequencer in that it has the machine perform
different operations (fill, wash, drain, spin) in a predetermined sequence. Although a
washing machine timer is a timed sequencer, sequencers in a PLC are not necessarily
timed. An example of a non-timed sequencer is a garage door opener. It performs the
sequence ...up, stop, down, stop, up stop,... with each step in the sequence being activated
by a switch input or remote control input.
PLC sequencers are fundamentally counters with some extra features and some
minor differences. Counters will generally count to either their preset value (in the case of
up counters) or zero (for down counters) and stop when they reach their terminal count.
However, sequencers are circular counters; that is, they will roll over (much like an
automobile odometer) and continue counting. If the sequencer is of the type that counts
up from zero to the preset, on the next count pulse after reaching the preset, it will reset to
zero and begin counting up again. If the sequencer is of the type that counts down, on the
next count pulse after it reaches zero, it will load the preset value and continue counting
down. Like counters, sequencers have reset inputs that reset them either to zero (for the
types that count up) or to the preset value (for the types that count down). As with
counters, some PLC manufacturers provide sequencers with a third input (usually called
UP/DN) that controls the count direction. These are called bidirectional sequencers or
reversible sequencers. Alternately, other bidirectional sequencers have separate count
up and count down inputs.
4-18
4-12. Timers
A timer is a special counter ladder function which allows the PLC to perform timing
operations based on a precise internal clock, generally 0.1 or 0.01 seconds per clock pulse.
Timers usually fall into two different categories depending on the PLC manufacturer. These
are retentive and non-retentive timers. A non-retentive timer is one which has one control
line, that is, the timer is either timing or it is reset. When this type of timer is stopped, it is
automatically reset. This will become more clear as discussion of timers continues. The
retentive timer has two control lines, count and reset. This type of timer may be started,
stopped then restarted without resetting. This means that it may be used as a totalizing
timer by simply controlling the count line. Independent resetting occurs by activating the
reset control line. At the beginning of this section, it was stated that a timer is a special
4-19
An example of a retentive timer is shown in Figure 4-15. This type of timer looks
more like the counter discussed earlier. The two control lines operate in much the same
manner as the counter in that the lower line is the reset line. The top line, however, in the
case of the timer is the time line. As long as the reset line is true and the time line is true,
the timer will increment at the clock rate toward the PRESET value. As with the nonretentive timer, when the ACTUAL value is equal to the PRESET value, the coil associated
with the timer will be energized and timer incrementing will cease. As with the timer, the
PRESET value must be chosen so that the ACTUAL value will increment to the PRESET
value in the time desired dependent upon the clock rate.
4-20