Professional Documents
Culture Documents
TIMER
SIEMENS
SIMATIC S7 1/10 March 27, 2024
SIEMENS LTD EGYPT 2007
All Rights Reserved
SIEMENS
Objectives
EN ENO
LAD Diagram
Example:
L +5 // 16-bit constant MW10
20 IN OUT
T MB0
L L#523123 // 32-bit constant
T MD4
L B#16#EF // byte in hexadecimal form MOVE
T MW8
EN OUT
L 2#0010 0110 1110 0011 //16-bit binary MB10
T MW10 FBD Diagram
L 3.14 // 32-bit constant
T MD12 20 IN ENO
L 20
STL T MB10
Timers
T(No.)
- ON Delay Timer (SD) I 0.0 S_(Type) Q0.0
S Q
- Stored ON Delay Timer (SS) S5T#5s BI
LAD Diagram TV MW0
- Pulse Timer (SP) I 0.1
R BCD
- Extended Pulse Timer (SE)
T(No.)
- OFF Delay Timer (SF) S_(Type)
I 0.0 S BI MW0
S5T#5s
FBD Diagram TV BCD
Q0.0
I 0.1 R Q =
A I 0.0
L S5T#5s
S(Type) T(No.)
STL A I 0.1
R T(No.)
L T(No.)
T MW0
A T(No.)
= Q0.0
T2
Reset S_PLUSE
I 0.0 S BI MW0
Output "Q" is reset when the
S5T#5s
timer has expired, or the FBD Diagram TV BCD
Q0.2
start "S" signal changes I 0.1 R Q =
from "1" to "0", or the reset
input "R" has a signal state
of "1". A I 0.0
L S5T#5s
SP T2
STL A I 0.1
R T2
L T2
T MW0
A T2
= Q0.3
Timer Timer
Q Q
S S
R R
Timer
Timer
Q
Q
S
R
Timer
Q
SIMATIC S7 10/10 March 27, 2024
SIEMENS LTD EGYPT 2007
All Rights Reserved
SIEMENS
Exercise:
1- By using two On Delay timer, write a PLC program to make the car flasher.
2- By using two …….. timer, write a PLC program to make two Lamp flashing opposite to
each other.
3- By using two Extended Pulse timer , write a PLC program to make Pulse Generator.
4- By using one Extended Pulse timer, write a PLC program to make the car
flasher.
Answer of Exercise 3:
Answer of Exercise 4: