Sie sind auf Seite 1von 13

SIEMENS

TIMER

SIEMENS
SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

1/10

November 21, 2013

SIEMENS

Objectives

- Understand The Move Function & How It Works. - Know The Types Of Timer & What Is The Difference Between Them.

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

2/10

November 21, 2013

SIEMENS

Load and Transfer

Move
MOVE

EN

ENO

Example: L +5 // 16-bit constant T MB0 L L#523123 // 32-bit constant T MD4 L B#16#EF // byte in hexadecimal form T MW8 L 2#0010 0110 1110 0011 //16-bit binary T MW10 L 3.14 // 32-bit constant T MD12

LAD Diagram
20 IN OUT MW10

MOVE EN OUT MB10

FBD Diagram
20 IN ENO

20 MB10

STL

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

3/10

November 21, 2013

SIEMENS

Timers
- ON Delay Timer (SD) - Stored ON Delay Timer (SS) - Pulse Timer (SP) LAD Diagram
I 0.0 S5T#5s I 0.1

T(No.) S_(Type) Q S
TV R BI BCD

Q0.0 MW0

- Extended Pulse Timer (SE)


- OFF Delay Timer (SF)
I 0.0 S TV R

T(No.) S_(Type) BI
BCD

MW0 Q0.0 =

FBD Diagram

S5T#5s I 0.1

STL

A I 0.0 L S5T#5s S(Type) T(No.) A I 0.1 R T(No.) L T(No.) T MW0 A T(No.) = Q0.0

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

4/10

November 21, 2013

SIEMENS

ON Delay Timer (SD)


I 0.0

T0 S_ODT S Q BI BCD TV R T0

Start
The timer starts when the Start input LAD Diagram "S" changes from "0" to "1". The timer starts with the time value specified at the Time Value "TV" for as long as the signal state at input "S" =1.
S5T#5s I 0.1

Q0.0 MW0

S_ODT
I 0.0 S5T#5s I 0.1 S TV R BI
BCD

MW0 Q0.0 =

Reset
When the Reset input "R" changes from "0" to "1", the current time value and the time base are deleted and the output "Q" is reset.

FBD Diagram

Output
The signal at the "Q" output changes to "1" when the timer has expired without error and input "S" has signal state "1".

STL

Digital Outputs
The current time value can be read as a binary number at the "BI" output and as a BCD number at the "BCD" output.
SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

A L SD A R L T A =

I 0.0 S5T#5s T I 0.1 T0 T0 MW0 T0 Q0.0

5/10

November 21, 2013

SIEMENS

Stored ON Delay Timer (SS)

Start
The stored-on-delay timer starts when the "S" input changes from "0" to "1". The timer runs starting with the time value specified at input "TV" and continues to run even if the signal at input "S" changes back to "0" during that time.
I 0.0 T1 S_ODTS Q S TV BI Q0.1 MW0

LAD Diagram

S5T#5s I 0.1

R
T1

BCD

S_ODTS

Reset
When the reset input "R" changes from "0" to "1", the current time value and the time base are deleted and output "Q" is reset.

I 0.0

S TV R

BI
BCD

MW0 Q0.1 =

FBD Diagram

S5T#5s

I 0.1

Q I 0.0 S5T#5s T1 I 0.1 T1 T1 MW0 T1 Q0.1

Output
The signal state at output "Q" changes to "1" when the timer has expired without error, regardless of whether the signal state at input "S" is still "1".

STL

A L SS A R L T A =

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

6/10

November 21, 2013

SIEMENS

Pluse Timer (SD)


Start The pulse timer starts when the "S" input changes from "0" to "1". Output "Q" is also set to "1".
I 0.0 T2 S_PULSE Q S TV R T2 BI BCD

Q0.2 MW0

LAD Diagram

S5T#5s I 0.1

Reset Output "Q" is reset when the timer has expired, or the start "S" signal changes from "1" to "0", or the reset input "R" has a signal state of "1".
I 0.0

S_PLUSE S TV R BI
BCD

MW0 Q0.2 =

FBD Diagram

S5T#5s
I 0.1

Q I 0.0 S5T#5s T2 I 0.1 T2 T2 MW0 T2 Q0.3

STL

A L SP A R L T A =

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

7/10

November 21, 2013

SIEMENS

Extended Pluse Timer (SE)


Start The extended pulse timer starts when the "S" input changes from "0" to "1". Output "Q" is also set to "1". The signal state at output "Q" remains at "1" even if the signal at the "S" input changes back to "0". If the signal at the start input changes from "0" to "1" again while the timer is running, the timer is restarted
I 0.0 T3 S_PEXT Q S TV R T3 S_PEXT I 0.0 S TV R BI
BCD

Q0.3 MW0

LAD Diagram

S5T#5s I 0.1

BI BCD

MW0 Q0.3 =

FBD Diagram

S5T#5s
I 0.1

Q I 0.0 S5T#5s T3 I 0.1 T3 T3 MW0 T3 Q0.3

Reset Output "Q" is reset when the timer has expired, or the reset input "R" has a signal state of "1".

STL

A L SS A R L T A =

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

8/10

November 21, 2013

SIEMENS

Off Delay Timer (SD)


Start The off-delay timer starts when the "S" input changes from "1" to "0". When the timer has expired, the signal state at output "Q" changes to "0". If the signal state at the "S" input changes from "0" to "1" while the timer is running, the timer stops. The next time the signal state at the "S" input changes from "1" to "0", it starts again from the beginning. Reset When the reset input "R" is "1", the current time value and the time base are deleted and output "Q" is reset. If both inputs (S and R) have signal states of "1", output "Q" is not set until the dominant reset is deactivated. Output Output "Q" is activated when the "S" input changes from "0" to "1". If input "S" is deactivated, output "Q" continues to have signal state of "1" until the programmed time has expired.
SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

I 0.0

T4 S_OFFDT Q S TV R T4 S_OFFDT BI BCD

Q0.4 MW0

LAD Diagram

S5T#5s I 0.1

I 0.0

S TV R

BI
BCD

MW0 Q0.4 =

FBD Diagram

S5T#5s
I 0.1

Q I 0.0 S5T#5s T4 I 0.1 T4 T4 MW0 T4 Q0.4

STL

A L SS A R L T A =

9/10

November 21, 2013

SIEMENS

ON Delay Timer (SD)


S R Timer

Extended Pluse Timer (SE)


S R Timer

Stored ON Delay Timer (SS)


S R Timer

Off Delay Timer (SF)


S R Timer

Pluse Timer (SP)


S R Timer Q SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

10/10

November 21, 2013

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.

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

11/10

November 21, 2013

SIEMENS

Answer of Exercise 1:

Answer of Exercise 2:

Answer of Exercise 3:

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

12/10

November 21, 2013

SIEMENS

Answer of Exercise 4:

SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved

13/10

November 21, 2013

Das könnte Ihnen auch gefallen