You are on page 1of 11

The Islamic University of Gaza

Electrical Engineering Department


PLC Lab (EELE 5161)

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

On time OFF time


Y1
• Let’s do a very simply timer program which turns Y0 on after 5 seconds then
off after 3 seconds.
Example 1

Resetting timers and outputs


Example 2
Delay ON/OFF Program

• 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

Deadline: 29/10/2020 at 11:59 PM

You might also like