Sie sind auf Seite 1von 21

Programming Steps and Transitions

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.1
Programming Steps and Transitions

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.2
Application Settings and Block Settings

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.3
Application Settings, General Tab (1)

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.4
Application Settings, General Tab (2)

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.5
Application Settings, Editor (1)

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.6
Application Settings, Editor (2)

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.7
View Types: Overview

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.8
View Types: Single Page

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.9
View Types: Single Step

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.10
Interlocks and Supervisions
Interlock Supervision
C = 0 --> + continue V = 1 --> + STOP

Interlock condition missing! Supervision error occurred!


Interlock = 0 (error): Supervision = 1 (error):
Enable if transition satisfied No enable if transition satisfied
FB parameter ERR_FLT = 1 FB parameter ERR_FLT = 1
Error display in status Error display in status
"C" actions are not carried out Actions are carried out
"NC" actions are reset

Interlock Supervision
C = 1 --> + continue V = 0 --> + continue
• FB parameter ERR_FLT = 0 FB parameter ERR_FLT = 0
• Error no longer present Error no longer present
• "C" actions are executed Satisfied transition enabled
(with acknowledge if required)

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.11
View Types: Permanent Instructions

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.12
Elements of a Sequencer, Overview

Seq. 1 Seq. 2
Alternative branch, open
Initial step S1 S7
Simultaneous branch, open

Transition T1 T4 T6
T9

S2 S5 S6 S8

T2 T5 T7

S4 Simultaneous branch, close S9

Alternative branch, close


T3 T9

Seq. end Jump to


S8 step 8

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.13
Editing Sequencers (1)

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.14
Editing Sequencers (2)

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.15
Actions (1) , Editing Action Blocks

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.16
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 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.17
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 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.18
Compiler Messages

Compiler is
activated with:
1. Store FB

2. Consistency
check

3. Compile GRAPH 2. Correct


source in program

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

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.19
Exercise: Program Actions and Transitions

INI 1 LS 1
Proximity switch Light barrier
Conveyor
S1
? OFF/ON

T1

S2
Final assembly

T2

H1
S3 LED
L R
M1 S1
Motor Acknowledge switch

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.20
Exercise: Program Interlocks and Supervisions

Error!

SIMATIC S7 Date: 20.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_03e.21

Das könnte Ihnen auch gefallen