Programming Steps and Transitions: Simatic S7

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 21

Programming Steps and Transitions

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.1

SITRAIN Training for


Automation and Drives

Programming Steps and Transitions

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.2

SITRAIN Training for


Automation and Drives

Application Settings and Block Settings

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.3

SITRAIN Training for


Automation and Drives

Application Settings, General Tab (1)

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.4

SITRAIN Training for


Automation and Drives

Application Settings, General Tab (2)

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.5

SITRAIN Training for


Automation and Drives

Application Settings, Editor (1)

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.6

SITRAIN Training for


Automation and Drives

Application Settings, Editor (2)

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.7

SITRAIN Training for


Automation and Drives

View Types: Overview

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.8

SITRAIN Training for


Automation and Drives

View Types: Single Page

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.9

SITRAIN Training for


Automation and Drives

View Types: Single Step

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.10

SITRAIN Training for


Automation and Drives

Interlocks and Supervisions


Supervision

Interlock
C

+ continue

= 0 -->

= 1 -->

+ STOP

Interlock condition missing!


Interlock = 0 (error):

Supervision error occurred!


Supervision = 1 (error):

Enable if transition satisfied


FB parameter ERR_FLT = 1
Error display in status
"C" actions are not carried out
"NC" actions are reset

No enable if transition satisfied


FB parameter ERR_FLT = 1
Error display in status
Actions are carried out

Supervision

Interlock
C = 1 -->
FB parameter ERR_FLT = 0
Error no longer present
"C" actions are executed
SIMATIC S7

Siemens AG 2000. All rights reserved.

+ continue

Date:
File:

V = 0 -->
+ continue
FB parameter ERR_FLT = 0
Error no longer present
Satisfied transition enabled
(with acknowledge if required)
28.07.16
GRAPH_03e.11

SITRAIN Training for


Automation and Drives

View Types: Permanent Instructions

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.12

SITRAIN Training for


Automation and Drives

Elements of a Sequencer, Overview


Seq. 1
Initial step

Seq. 2
Alternative branch, open

S1

S7

Simultaneous branch, open


Transition

T1
S2

S6

S5

S8

T5

T2
S4

T6
T9

T4

Simultaneous branch, close

T7
S9

Alternative branch, close

T3

T9

Seq. end

SIMATIC S7

Siemens AG 2000. All rights reserved.

S8

Date:
File:

28.07.16
GRAPH_03e.13

Jump to
step 8

SITRAIN Training for


Automation and Drives

Editing Sequencers (1)

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.14

SITRAIN Training for


Automation and Drives

Editing Sequencers (2)

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.15

SITRAIN Training for


Automation and Drives

Actions (1) , Editing Action Blocks

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.16

SITRAIN Training for


Automation and Drives

Actions (2) , Standard Actions

Action block with simple instructions


Action block _2
N
M1.1
S
M1.2
R
M1.3
D
M1.4
T#1H2M3S
L
M1.5
T#4MS
CALL
FC1
N

= Non-stored
S = Set (Stored)
D = Time Delayed, delayed by time T, non-stored
L = Time Limited, non-stored, time-delayed
CALL = Block call (only if step is active)

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.17

SITRAIN Training for


Automation and Drives

Actions (3) , Interlock-Dependent Actions

Action block with conditional instructions


Action block _3
NC
M1.1
SC
M1.2
RC
M1.3
DC
M1.4
T#1H2M3S
LC
M1.5
T#4MS
CALLC
FB5,DB3

Conditions
An action indicated with"C" (Condition) is only executed if the interlock
condition of the step is satisifed ("C" = 1).
An interlock error occurs if the condition is zero. The action with the C
condition is not executed. The step is highlighted and the error message
"Error" is generated.

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.18

SITRAIN Training for


Automation and Drives

Compiler Messages

Compiler is
activated with:
1. Store FB
2. Consistency
check
3. Compile GRAPH
source

2. Correct
in program

Troubleshooting
procedure:
1. Double-click on
error message;
error is highlighted
in screen.

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.19

SITRAIN Training for


Automation and Drives

Exercise: Program Actions and Transitions

S1

Conveyor
OFF/ON

LS 1
Light barrier

T1

INI 1
Proximity switch

Ba
y

S2

Final assembly

T2
S3

SIMATIC S7

Siemens AG 2000. All rights reserved.

M1
Motor

H1
LED
S1
Acknowledge switch

Date:
File:

28.07.16
GRAPH_03e.20

SITRAIN Training for


Automation and Drives

Exercise: Program Interlocks and Supervisions

Error!

SIMATIC S7

Siemens AG 2000. All rights reserved.

Date:
File:

28.07.16
GRAPH_03e.21

SITRAIN Training for


Automation and Drives

You might also like