Lab 5
Lab 5
Lab 5: Timers
By: Eng. Malak Ehab Al-Ashi
21/10/2020
Cyclic Timer
• The output is on for a specific time (on-time) and off for another specific
time (off-time).
• There are many ways to do it.
Timing Diagram
One cycle
T0
T1
• Enabling the indicator to be ON after a 5 sec delay and OFF after a 3 sec
delay by the switch.
Delay ON/OFF Program
• Program Description:
When X1 = ON, T0 will start counting for 5 sec.
When T0 reaches its set value, the NO contact T0 will be ON while NC contact T1 will
remain OFF, which makes the indicator Y1 to be ON and latched.
When X1 = OFF, T1 will start counting for 3 sec.
When T1 reaches its set value, the NC contact T1 will be activated while the NO
contact T0 will remain OFF, which makes the indicator Y1 to be OFF.
• TMR T0 20
Conclusion
• CNT C0 5
• Mov 14 D0
• CMP D7 23 M0, where: D7 > 23 M0 on
D7 = 23 M1 on
D7 < 23 M2 on
• Inc D0
• Dec D0
• Alt M0
• RST C0
• SET Y0
Instructions