2PL3 PLC - Lecture 6 Timer
2PL3 PLC - Lecture 6 Timer
Lecture 7:
PLC Timer Functions (Cont’d)
2
Review: Classification of Timers
Non-retentive timer Retentive timer
(TON)
Time On Delay Retentive Timer (RTO)
3
Review: Timer Information
The timer table contains all information for
that timer
5
Review: Self Resetting Timers
6
Review:
A Powerful Tool: Cascaded + Self Resetting Timers
7
• Cascade + Self Resetting generates sequence control loop (repeatable)
Review: Cascade + Self Resetting:
Sequence Control Loop
8
Major disadvantage of Non-retentive Timers
– to introduce RTO Timer
• The major disadvantage of Non-retentive Timers (TON,
TOF):
• - When a Non-retentive Timer is timing, and its input is
suddenly turned off intentionally or non-intentionally, the
accumulated value (ACC) will be reset. Then the
information of the recorded time delay is unavailable.
• To conquer the main disadvantage of Non-retentive
Timers, namely to retain the accumulated value of the
(RTO)
timer, is the purpose to create a new timer which is called
as
9
--- Retentive Timer
Retentive Timer (RTO)
11
Examples of Timer
Function Applications
• On delay
– Output B comes on at a specific set time after output A is
turned on. When A is turned off, B also goes off.
• Limited on time
– A and B go on at the same time. B goes off after specific set time
period, but A remains on.
• One-shot operation
– The output comes on for its specified time period even if the
input is turned off during the timing period.
• Interval time within a cycle
– We may require that an output come on 7.5 seconds after system
startup, remain on for 4.5 seconds, and then go off and stay off. The
interval would repeat only after the system is shut off and then turned
back on. 12
On Delay Timer Function
13
Examples of Timer
Function Applications
• On delay
– Output B comes on at a specific set time after output A is
turned on. When A is turned off, B also goes off.
• Limited on time
– A and B go on at the same time. B goes off after specific set time
period, but A remains on.
• One-shot operation
– The output comes on for its specified time period even if the
input is turned off during the timing period.
• Interval time within a cycle
– We may require that an output come on 7.5 seconds after system
startup, remain on for 4.5 seconds, and then go off and stay off. The
interval would repeat only after the system is shut off and then turned
back on. 14
Limited On-Time Timer Function
• This example illustrates a situation in which two outputs
go on at the same time.
• Then, one of them is to go off after a preset period of time.
• One output, O:2/0, stays on; the other output, O:2/1, turns
off at the end of the timing interval.
• Resetting is accomplished by turning I:1/0 off.
15
Examples of Timer
Function Applications
• On delay
– Output B comes on at a specific set time after output A is
turned on. When A is turned off, B also goes off.
• Limited on time
– A and B go on at the same time. B goes off after specific set time
period, but A remains on.
• One-shot operation
– The output comes on for its specified time period even if the
input is turned off during the timing period.
• Interval time within a cycle
– We may require that an output come on 7.5 seconds after system
startup, remain on for 4.5 seconds, and then go off and stay off. The
interval would repeat only after the system is shut off and then turned
back on. 16
One-shot Operation Timer Function
• One-shot operation.
– The output comes on for its specified time period even if the
input is turned off during the timing period.
17
Examples of Timer
Function Applications
• On delay
– Output B comes on at a specific set time after output A is
turned on. When A is turned off, B also goes off.
• Limited on time
– A and B go on at the same time. B goes off after specific set time
period, but A remains on.
• One-shot operation
– The output comes on for its specified time period even if the
input is turned off during the timing period.
• Interval time within a cycle
– We may require that an output come on after input is energized for
7.5 seconds. Then the output remains on for 4.5 seconds, and then go
off and stay off. The interval would repeat only after the system is shut
off and then turned back on. 18
Interval Time Within a Cycle
• This example is for a timed interval of a number of seconds after the start of a
process operation.
– This time interval is sometimes called an embedded time interval.
– A fan (output device) is to come on after a system is turned on for 8.7 seconds.
– It is then to run until 16 seconds after the system is turned on, which is a net
time of 7.3 seconds.
19
Calculate the cumulative Motor-total-on
and Motor-total-off time
20
Time Off Delay (TOF)
The TOF timer functions the opposite of the TON timer.
• According to its name, the basis function of TOF is: you
want to turn off an output after a certain time delay.
21
Time Off Delay (TOF)
1
T4:0/EN = ____ 0
T4:0/TT = ____ 1
T4:0/DN = ___ T4:0.ACC =0____
22
Time Off Delay (TOF)
0
T4:0/EN = ____ 1
T4:0/TT = ____ 1
T4:0/DN = ___ T4:0.PRE =60
____
23
Time Off Delay (TOF)
Final State – (input switch is still off, and Timer stops incrementing):
1. the EN bit is off.
2. the DN bit is off, and the output is de-energized.
3. the TT bit is off
4. the value of ACC (Timer accumulator) equals to the preset.
0
T4:0/EN = ____ 0
T4:0/TT = ____ 0
T4:0/DN = ___ T4:0.ACC =60
____
24
Time Off Delay (TOF)
What if when it is in Transit State and the TOF is timing, you
suddenly make the input true?
Transit State
25
Sample Question
• For the following program, the “Input” toggle switch is normally
closed. When you put the program in run mode, what will happen to
the following bits? ( )
• A) TT = 1, EN = 0, DN = 0
• B) TT = 1, EN = 1, DN = 0
• C) TT = 1, EN = 1, DN = 1
• D) TT = 0, EN = 1, DN = 1
26
• E) TT = 0, EN = 0, DN = 1
Sample Question
• For the following program, the “Input” toggle switch is normally
closed. When you put the program in run mode, what will happen to
the following bits? ( D )
• A) TT = 1, EN = 0, DN = 0
• B) TT = 1, EN = 1, DN = 0
• C) TT = 1, EN = 1, DN = 1
• D) TT = 0, EN = 1, DN = 1
27
• E) TT = 0, EN = 0, DN = 1
• For the program shown, assuming that PS1 becomes
true and stays true for 15 seconds, which one of the
following statements is true? ( )
(A) The output turns on as soon as the toggle switch turns on. The
output
stays on for 1 second and then automatically goes off.
(B) The output turns on as soon as the toggle switch turns on. The
output
stays on for 5 seconds and then automatically goes off.
(C) The output turns on as soon as the toggle switch turns on. The
output
For the following program, if you turn on the normally open toggle switch for 1
second, and then turn it off, which will happen to the output which is wired to
O:2/1? ( C )
(A) The output turns on as soon as the toggle switch turns on. The
output
stays on for 1 second and then automatically goes off.
(B) The output turns on as soon as the toggle switch turns on. The
output
stays on for 5 seconds and then automatically goes off.
(C) The output turns on as soon as the toggle switch turns on. The
output