MSD Lab5
MSD Lab5
Reg. ID 211277
Section BEMTS-8B
1
Lab No. 5b
Timer OFF and RTO
Objective
To understand the operation of Timer OFF and RTO and simulate the given tasks in Allen
Bradley PLC.
TOF Timer Off Delay
Symbol
Definition
Counts time base intervals when the instruction is false.
The Timer Off Delay instruction begins to count time base intervals when the
rung makes a true to false transition. As long as rung conditions remain false,
the timer increments its accumulated value (ACC each scan until it reaches
the preset value (PRE). The accumulated value is reset when rung conditions
go true regardless of whether the timer has timed out.
Each timer address is made of a 3-word element.
Word 1 is the control word
Bit 0-12: Internal Use
Bit 13: DN- Done
Bit 14: TT - Timer Timing
Bit 15: EN - Timer is enabled
Word 2 stores the preset value. (PRE)
Specifies the value, which the timer must reach before the controller sets the done
bit. When the accumulated value becomes equal to or greater than the preset value,
the done bit is set.
Preset value is from 0 - 32,767
If a timer-preset value is negative an error will occur.
Word 3 stores the accumulated value. (ACC)
This is the time elapsed since the timer was last reset. When enabled the timer
updates this continually.
Time Base: is the timing update interval, this can vary from 0 - 1 second.
2
RTO Retentive Timer
Symbol
Definition
Counts time base intervals when the instruction is true and retains the
accumulated value when the instruction goes false or when power cycle occurs.
The Retentive Timer instruction is a retentive instruction that begins to count
time base intervals when rung conditions become true.
The Retentive Timer instruction retains its accumulated value when any of the
following occurs:
Rung conditions become false.
Changing Processor mode from REM run /Test / program mode.
The processor loses power while battery back-up is still maintained and a fault
occurs.
Note: To reset the accumulated value in RTO, you must use a reset instruction (RES) with
the same address.
Each Retentive Timer is made of a 3-word element.
Word 1 is the control word
Bit 0-12: Internal Use
Bit 13: DN- Done
Bit 14: TT - Timer Timing
Bit 15: EN - Timer is enabled
Word 2 stores the preset value. (PRE)
Specifies the value, which the timer must reach before the controller sets the done
bit. When the accumulated value becomes equal to or greater than the preset value,
the done bit is se.
Preset value is from 0 - 32,767
If a timer-preset value is negative an error will occur.
Word 3 stores the accumulated value. (ACC)
This is the time elapsed since the timer was last reset. When enabled the timer
updates this continually.
Time Base: is the timing update interval, this can vary from 0 - 1 second.
3
IN LAB TASKS:
Exercise 1:
Write ladder program for LED to glow for 10 secs when the High time of the pulse at the
input is equal to 10 sec (Hint: Use RTO)
Simulations
4
Exercise 2:
Implement using Timer Off :
Let's say we have in the field an emergency stop. Once the E-Stop is pressed we want the
siren to go on for 5 seconds.
Simulations
5
Exercise 3:
Write a program that will turn on a flashing light for the first 15 seconds after a Push
button is turned on. The light should flash for half a second on and half a second off.
a) Implement using Timer ON
Simulations
6
b) Implement using Timer Off
Simulations
Sources of Error
7
o Example: If a TOF timer is placed before an output relay instead of
after it, the siren may turn OFF immediately instead of waiting for the
delay.
4. Improper Use of Reset (RES) Instruction for RTO
o If an RTO timer is not reset properly using a RES instruction, it may
keep accumulating time incorrectly.
o Example: In a flashing light system, if RTO is used without a reset, the
light might not restart flashing correctly when turned on again.
5. Mismatched Time Base in Simulation
o Different PLC software may use different time bases (e.g., 1ms vs.
100ms), which can affect the timing of the process.
o Example: If a 1s delay is mistakenly set as 100ms, the timer will
complete 10x faster than expected in the simulation.
Applications of Timer Off Delay (TOF) and Retentive Timer (RTO) in PLCs with
Industry Examples
Conclusion
This software-based lab focused on implementing Timer Off Delay (TOF) and
Retentive Timer (RTO) in Allen Bradley PLC simulations. The TOF timer is used for
delayed turn-off operations, such as emergency sirens, while RTO retains timing
values even after stopping the simulation.
9
ASSESSMENT RUBRIC AND GRADING OF LAB PERFORMANCE
PLO2(P1): Problem Analysis
Min.
No Progress Benchmark Basics Good Excellent Outstanding
Attributes
0 1 2 3 4 5
Can build circuit,
Can start
Cannot operate Doesn’t know Can build circuit Can built circuit, can can simulate it and
software but
Simulation simulation basics of but cannot simulate it but can analyze it using
cannot complete
software software simulated. cannot analyze it. different tools of
circuit
software.
Can provide
Can provide comprehensive
comprehensive Can provide conclusion, using
Can provide basic Can accurately
Critical analysis and comprehensive engineering
analysis and provide analysis
Analysis & No Progress conclusion with analysis, using terminologies while
conclusion of and conclusion of
Conclusion relevant engineering encompassing
task performed task performed
keywords / terminologies. objectives of the
technical terms task and future
applications
1
0