Vous êtes sur la page 1sur 56

Solution Suggestions for the Exercises

SIMATIC S7
Siemens AG 2005. All rights reserved.

Date:
File:

14.10.2005
PRO1_16E.1

Contents

SITRAIN Training for


Automation and Industrial Solutions

Page

Solution Suggestions for the Exercises ............................................................................................


Solution Suggestions for the Exercises ............................................................................................
Symbol List .........................................................................................................................................
Ch3 Ex2: Creating a Project .....................................................................................................
Ch3 Ex3: Inserting an S7 Program
.................................................................................................
Ch3 Ex4: Copying a Block from the Standard Library
....................................................................
Ch4 Ex1: Uploading the Actual Configuration to the PG and Renaming It .......................................
Ch4 Ex2: Adapting the Actual Configuration ....................................................................................
Ch4 Ex3: Assigning Parameters to the Clock Memory and Testing It .............................................
Ch4 Ex4: Copying Blocks from My_Program
...............................................................................
Ch5 Ex1: Importing a Symbol Table ................................................................................................
Ch6 Ex1: Jogging the Conveyor Motor (FC 16) ...............................................................................
Ch7 Ex1: Mode Section of the Distribution Conveyor (FC15) ..........................................................
Ch7 Ex1: Jogging the Conveyor Motor (FC16) .................................................................................
Ch7 Ex2: Programming the Conveyor for AUTO Mode (FC16) ........................................................
Ch7 Ex2: Programming the Conveyor for AUTO Mode (FC16) ........................................................
Ch7 Ex3: Edge Detection (FC16)
..................................................................................................
Ch7 Additional Ex4: Optimizing the Mode Section (FC15) ..............................................................
Ch8 Ex1: Number Formats ..............................................................................................................
Ch8 Ex2: Counting the Transported Parts (FC18) ...........................................................................
Ch8 Ex2: Signalizing (FC14) ............................................................................................................
Ch8 Ex2: Signalizing (FC14) ............................................................................................................
Ch8 Ex3: Monitoring the Transport Functions (FC17) .....................................................................
Ch8 Ex3: Monitoring the Transport Functions (FC16) .....................................................................

SITRAIN Training for


Automation and Industrial Solutions

Page 1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

ST-PRO1
Solution Suggestions

Solution Suggestions for the Exercises

SIMATIC S7
Siemens AG 2005. All rights reserved.

Date:
File:

14.10.2005
PRO1_16E.2

Contents

SITRAIN Training for


Automation and Industrial Solutions

Page

Ch8 Ex3: Monitoring the Transport Functions (FC16) .....................................................................


Ch8 Ex4: Counting the Transported Parts (FC18) ...........................................................................
Ch8 Ex4: Counting the Transported Parts (FC18) ...........................................................................
Ch8 Additional Ex5: Counting the Conveyor Belt Fault Conditions (FC17) .....................................
Ch9 Ex1: Configuring the DP System (ET200 S)
...........................................................................
Ch9 Ex2: Copying a ProTool/Pro Project ........................................................................................
Ch9 Ex7: Adapting the S7 Program to the TP Conditions (FC15) ....................................................
Ch9 Ex7: Apapting the S7 Program to the TP Conditions (FC15) ....................................................
Ch9 Ex7: Adapting the S7 Program to the TP Conditions (FC16) ....................................................
Ch10 Ex4: Linking Micromaster to PROFIBUS DP ..........................................................................
Ch10 Ex5: Funktionstest - Micromaster (FC 42) ...............................................................................
Ch11 Ex1: Data Block as HMI Interface (DB99)
.............................................................................
Ch11 Ex1: Data Block as HMI Interface (DB99, FC15) ...................................................................
Ch11 Ex1: Data Block as HMI Interface (FC15)
.............................................................................
Ch11 Ex1: Data Block as HMI Interface (FC16)
.............................................................................
Ch11 Ex1: Data Block as HMI Interface (FC18)
.............................................................................
Ch11 Ex1: Data Block as HMI Interface (FC18)
.............................................................................
Ch12 Ex1: Recognizing Types of Variables
...................................................................................
Ch12 Ex2: Editing a Parameter-assignable Function (FC20) ...........................................................
Ch12 Ex3: Calling a Parameter-assignable Function (FC17) ...........................................................
Ch12 Ex4: Editing a Function Block (FB20) .....................................................................................
Ch12 Ex5: Calling a Function Block (FC17) .....................................................................................
Ch13 Ex1: Displaying the Startup Type (OB100) and Acknowledging It ..........................................
Ch13 Ex1: Displaying the Startup Type (FC15) and Acknowledging It
..........................................

SITRAIN Training for


Automation and Industrial Solutions

Page 2

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

ST-PRO1
Solution Suggestions

Solution Suggestions for the Exercises

SIMATIC S7
Siemens AG 2005. All rights reserved.

Date:
File:

14.10.2005
PRO1_16E.3

Contents

SITRAIN Training for


Automation and Industrial Solutions

Page

Solutions - Troubleshooting Exercise ..............................................................................................


Troubleshooting Solutions ...............................................................................................................
All Errors + Corrections at a Glance .................................................................................................
Troubleshooting in the STOP State......................................................................................................
Troubleshooting in the STOP State......................................................................................................
Troubleshooting in the STOP State......................................................................................................
Logical Program Errors
................................................................................................................

SITRAIN Training for


Automation and Industrial Solutions

Page 3

50
51
52
53
54
55
56

ST-PRO1
Solution Suggestions

Symbol List

You will find the complete printout of the Symbol List in


Chapter 2 Training Units and Addressing.

You will find the complete printout of the Symbol List in


Chapter 2 Training Units and Addressing.

SITRAIN Training for


Automation and Industrial Solutions

Page 4

ST-PRO1
Solution Suggestions

Ch3 Ex2: Creating a Project

Enter project
name here and
use "OK" to
confirm

Use the preset storage location path


or change it
SITRAIN Training for
Automation and Industrial Solutions

Page 5

ST-PRO1
Solution Suggestions

Ch3 Ex3: Inserting an S7 Program

SITRAIN Training for


Automation and Industrial Solutions

Page 6

ST-PRO1
Solution Suggestions

Ch3 Ex4: Copying a Block from the Standard Library

SITRAIN Training for


Automation and Industrial Solutions

Page 7

ST-PRO1
Solution Suggestions

Ch4 Ex1: Uploading the Actual Configuration to the PG and


Renaming It

Your CPU 315-2DP

Result

SITRAIN Training for


Automation and Industrial Solutions

Page 8

ST-PRO1
Solution Suggestions

Ch4 Ex2: Adapting the Actual Configuration

Double-click

SITRAIN Training for


Automation and Industrial Solutions

Page 9

ST-PRO1
Solution Suggestions

Ch4 Ex3: Assigning Parameters to the Clock


Memory and Testing It

Double-click

SITRAIN Training for


Automation and Industrial Solutions

Page 10

ST-PRO1
Solution Suggestions

Ch4 Ex4: Copying Blocks from My_Program

1. Copy

2. Rename

3. Delete

System data blocks

SITRAIN Training for


Automation and Industrial Solutions

Page 11

ST-PRO1
Solution Suggestions

Ch5 Ex1: Importing a Symbol Table

You will find the complete printout of the Symbol List in


Chapter 2 Training Units and Addressing.

SITRAIN Training for


Automation and Industrial Solutions

Page 12

ST-PRO1
Solution Suggestions

Ch6 Ex1: Jogging the Conveyor Motor (FC 16)

Ch6 Ex2: Calling FC 16 in OB 1

SITRAIN Training for


Automation and Industrial Solutions

Page 13

ST-PRO1
Solution Suggestions

Ch7 Ex1: Jogging the Conveyor Motor (FC15)

SITRAIN Training for


Automation and Industrial Solutions

Page 14

ST-PRO1
Solution Suggestions

Ch7 Ex1: Jogging the Conveyor Motor (FC16)

SITRAIN Training for


Automation and Industrial Solutions

Page 15

ST-PRO1
Solution Suggestions

Ch7 Ex2: Programming the Conveyor for AUTO Mode (FC16)

SITRAIN Training for


Automation and Industrial Solutions

Page 16

ST-PRO1
Solution Suggestions

Ch7 Ex2: Programming the Conveyor for AUTO Mode (FC16)

SITRAIN Training for


Automation and Industrial Solutions

Page 17

ST-PRO1
Solution Suggestions

Ch7 Ex3: Edge Detection (FC16)

Network 1 and 2 are not changed

SITRAIN Training for


Automation and Industrial Solutions

Page 18

ST-PRO1
Solution Suggestions

Ch7 Additional Ex4: Optimizing the Mode Section (FC15)

SITRAIN Training for


Automation and Industrial Solutions

Page 19

ST-PRO1
Solution Suggestions

Ch8 Ex1: Number Formats

incorrect access

SITRAIN Training for


Automation and Industrial Solutions

Page 20

ST-PRO1
Solution Suggestions

Ch8 Ex2: Counting the Transported Parts (FC18)

SITRAIN Training for


Automation and Industrial Solutions

Page 21

ST-PRO1
Solution Suggestions

Ch8 Ex2: Signalizing (FC14)

SITRAIN Training for


Automation and Industrial Solutions

Page 22

ST-PRO1
Solution Suggestions

Ch8 Ex2: Signalizing (FC14)

SITRAIN Training for


Automation and Industrial Solutions

Page 23

ST-PRO1
Solution Suggestions

Ch8 Ex3: Monitoring the Transport Functions (FC17)

Ch8 Ex3: Signalization (FC14)

Network 2 same structure

SITRAIN Training for


Automation and Industrial Solutions

Page 24

ST-PRO1
Solution Suggestions

Ch8 Ex3: Monitoring the Transport Functions (FC16)

SITRAIN Training for


Automation and Industrial Solutions

Page 25

ST-PRO1
Solution Suggestions

Ch8 Ex3: Monitoring the Transport Functions (FC16)

SITRAIN Training for


Automation and Industrial Solutions

Page 26

ST-PRO1
Solution Suggestions

Ch8 Ex4: Counting the Transported Parts (FC18)

SITRAIN Training for


Automation and Industrial Solutions

Page 27

ST-PRO1
Solution Suggestions

Ch8 Ex4: Counting the Transported Parts (FC18)

Ch8 Ex4: Lock-out (FC16)

SITRAIN Training for


Automation and Industrial Solutions

Page 28

ST-PRO1
Solution Suggestions

Ch8 Additional Ex5: Counting the Conveyor Belt Fault Conditions


(FC17)
Network 1 is not changed

Ch8 Additional Ex5: Falling Edge (FC15)

SITRAIN Training for


Automation and Industrial Solutions

Page 29

ST-PRO1
Solution Suggestions

Ch9 Ex1: Configuring the DP System (ET200 S)

OFF ON
64
32
16
8
4
2
1

SITRAIN Training for


Automation and Industrial Solutions

Page 30

ST-PRO1
Solution Suggestions

Ch9 Ex2: Copying a ProTool/Pro Project

Copy

Result

SITRAIN Training for


Automation and Industrial Solutions

Page 31

ST-PRO1
Solution Suggestions

Ch9 Ex7: Adapting the S7 Program to the TP Conditions (FC15)

Protocol of modifications after rewiring

SITRAIN Training for


Automation and Industrial Solutions

Page 32

ST-PRO1
Solution Suggestions

Ch9 Ex7: Adapting the S7 Program to the TP Conditions (FC15)

SITRAIN Training for


Automation and Industrial Solutions

Page 33

ST-PRO1
Solution Suggestions

Ch9 Ex7: Adapting the S7 Program to the TP Conditions (FC16)

Network 3 and 4 are not changed

SITRAIN Training for


Automation and Industrial Solutions

Page 34

ST-PRO1
Solution Suggestions

Ch10 Ex4: Linking Micromaster to PROFIBUS DP

SITRAIN Training for


Automation and Industrial Solutions

Page 35

ST-PRO1
Solution Suggestions

Ch10 Ex5: Function Test - Micromaster (FC 42)

SITRAIN Training for


Automation and Industrial Solutions

Page 36

ST-PRO1
Solution Suggestions

Ch11 Ex1: Data Block as HMI Interface (DB99)


Variable declaration before the exercise

Variable declaration after the exercise

SITRAIN Training for


Automation and Industrial Solutions

Page 37

ST-PRO1
Solution Suggestions

Ch11 Ex1: Data Block as HMI Interface (DB99, FC15)

SITRAIN Training for


Automation and Industrial Solutions

Page 38

ST-PRO1
Solution Suggestions

Ch11 Ex1: Data Block as HMI Interface (FC15)

SITRAIN Training for


Automation and Industrial Solutions

Page 39

ST-PRO1
Solution Suggestions

Ch11 Ex1: Data Block as HMI Interface (FC16)

Network 3 and 4 are not changed

SITRAIN Training for


Automation and Industrial Solutions

Page 40

ST-PRO1
Solution Suggestions

Ch11 Ex1: Data Block as HMI Interface (FC18)

SITRAIN Training for


Automation and Industrial Solutions

Page 41

ST-PRO1
Solution Suggestions

Ch11 Ex1: Data Block as HMI Interface (FC18)

SITRAIN Training for


Automation and Industrial Solutions

Page 42

ST-PRO1
Solution Suggestions

Ch12 Ex1: Recognizing Types of Variables

Statement

Global Local
L #Number_1
X
L #Number_2
X
T #Maximum_value
X
L #Intermediate_result
X
L Number_1"
X
T MW 40
X
T #Number_2
X

SIMATIC S7
Siemens AG 2005. All rights reserved.

SITRAIN Training for


Automation and Industrial Solutions

Absolute Symbolic
X
X
X
X
X
X
X

Date:
File:

14.10.2005
PRO1_16E.43

Page 43

Temporary

Static

Parameter
X
X

X
X

SITRAIN Training for


Automation and Industrial Solutions

ST-PRO1
Solution Suggestions

Ch12 Ex2: Editing a Parameter-assignable Function (FC20)

SITRAIN Training for


Automation and Industrial Solutions

Page 44

ST-PRO1
Solution Suggestions

Ch12 Ex3: Calling a Parameter-assignable Function (FC20)

Network 1 and 2 are not changed

SITRAIN Training for


Automation and Industrial Solutions

Page 45

ST-PRO1
Solution Suggestions

Ch12 Ex4: Editing a Function Block (FB20)

SITRAIN Training for


Automation and Industrial Solutions

Page 46

ST-PRO1
Solution Suggestions

Ch12 Ex5: Calling a Function Block (FC17)

Network 1, 2 are not changed, Network 3 is deleted

SITRAIN Training for


Automation and Industrial Solutions

Page 47

ST-PRO1
Solution Suggestions

Ch13 Ex1: Displaying the Startup Type (OB100) and Acknowledging It

SITRAIN Training for


Automation and Industrial Solutions

Page 48

ST-PRO1
Solution Suggestions

Ch13 Ex1: Displaying the Startup Type (FC15) and Acknowledging It

Network 3 and 4 are not changed

SITRAIN Training for


Automation and Industrial Solutions

Page 49

ST-PRO1
Solution Suggestions

Solutions Troubleshooting Exercise

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

Note

14.10.2005
PRO1_16E.50

SITRAIN Training for


Automation and Industrial Solutions

The following pages contain either further information or are for reference to
complete a topic.

SITRAIN Training for


Automation and Industrial Solutions

Page 50

ST-PRO1
Solution Suggestions

Troubleshooting Solutions

SIMATIC S7
Siemens AG 2005. All rights reserved.

SITRAIN Training for


Automation and Industrial Solutions

Date:
File:

14.10.2005
PRO1_16E.51

Page 51

SITRAIN Training for


Automation and Industrial Solutions

ST-PRO1
Solution Suggestions

All Errors + Corrections at a Glance


STOP Errors:
Error

Location of Interruption

Error Location

Correction

FC 15, Network 3

FC 15, Network 3

A DB99.DBX100.4

A DB99.DBX0.4

FB 20, Network 2

FB 20, Network 2

CALL FB20, DB2

Delete call

FC 18, Network 1

FC 18, Network 1

A DB99.DBW20

A DB99.DBW2

Logical Errors:
Error

Malfunction

Jog conveyor motor to


the RIGHT not possible

FC 16, Network 1

= A8.5

= M 16.0

Evaluation Fault3:
No flashing display

FC 17, Network 5

CALL FB20, DB 3
Flashing frequency:

CALL FB20, DB3


Flashfre.: M 10.3

Count quantity and


display not correct

FC 18, Network 2

L #Setpoint_setting

L 1

SIMATIC S7
Siemens AG 2005. All rights reserved.

SITRAIN Training for


Automation and Industrial Solutions

Error Location

Date:
File:

Correction

14.10.2005
PRO1_16E.52

Page 52

SITRAIN Training for


Automation and Industrial Solutions

ST-PRO1
Solution Suggestions

Troubleshooting in the STOP State

1st. STOP Error


Check incorrect data bit:
correct is AN DB99.DBX0.4

SITRAIN Training for


Automation and Industrial Solutions

Page 53

ST-PRO1
Solution Suggestions

Troubleshooting in the STOP State

2nd. STOP Error


Delete call

SITRAIN Training for


Automation and Industrial Solutions

Page 54

ST-PRO1
Solution Suggestions

Troubleshooting in the STOP State

3rd. STOP Error


Check incorrect data word:
correct is L DB99.DBW2

Program Error

correct is: 1

SITRAIN Training for


Automation and Industrial Solutions

Page 55

ST-PRO1
Solution Suggestions

Logical Program Errors

Program Error
correct is: M 16.0

Program Error

FC 17

M 10.3

SITRAIN Training for


Automation and Industrial Solutions

Page 56

ST-PRO1
Solution Suggestions

Vous aimerez peut-être aussi