date:23.10.2015 file:pro1_12e.1 simatic s7 siemens ag 1999. all rights reserved. information and...

46
Date: 10.06.22 File: PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Upload: rosaline-french

Post on 16-Jan-2016

249 views

Category:

Documents


11 download

TRANSCRIPT

Page 1: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.1

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Troubleshooting

Page 2: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.2

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

System Diagnostics - Overview

PG 740

SIEMENS

CPU I/O-ModuleCPU diagnostics detectsa system error

CPU diagnostics detectsan error in the user program

Error OB

Diagnosticbuffer

CPUmessages

Diagnostics-capable moduledetects anerror andgenerates adiagnosticinterrupt

Diagnosticinterrupt

Systemstatus list

SFC

Page 3: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.3

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Searching for Errors, that Cause the CPU to Stop

CPU

Page 4: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.4

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Calling the "Module Information" Tool

Page 5: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.5

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Module Information Tab: "Diagnostic Buffer"

Page 6: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.6

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Interpreting Error Messages

Page 7: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.7

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Opening a Block Containing an Error

Page 8: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.8

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Diagnostics with I Stack, B Stack, L Stack

Program structure Block containing error

Error location

You see the contents of the accumulators, registers, status wordetc. (up to time of interruption) in the I Stack.

You see the values of thetemporary variables up to time of interruption in the L Stack.

Error location

You see the blocks executed up to the error in the B Stack.

Page 9: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.9

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

B Stack

Page 10: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.10

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

I Stack

Page 11: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.11

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

L Stack

Page 12: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.12

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Exercise: Finding Stop Errors and Eliminating Them

ResultWhat to DoStep

The CPU memory is reset. Carry out a CPU memory reset.1

Copy the S7 program "ERROR" from the project "ERROR _16" ("ERROR _32") into the HW-Station "My Station".

The project structure is displayed.2

The faulty program is downloaded.Download all the blocks from the S7 program "ERROR" into the CPU.3

The CPU goes into STOP mode.Perform a complete restart.4

The CPU remains in RUN.Find and eliminate the errors,that lead to the Stop state.5

Page 13: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.13

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Exercise: Troubleshooting with I Stack, B Stack

ResultWhat to DoStep

The CPU goes into STOP once more.Switch on the inputs I 1.0 to I 1.2 in sequence.1

Answer the questions in the tablebelow.

Clarify the cause of the error with thehelp of the diagnostic buffer and the Stacks.

2

The CPU remains in RUN.Switch the inputs I 1.0 to I 1.2 off again.3

Page 14: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.14

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Logical Errors

??

Page 15: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.15

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Displaying Reference Data

Page 16: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.16

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Filtering Reference Data

Page 17: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.17

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Cross References

Page 18: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.18

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Filtering Cross References

Page 19: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.19

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Reference Data: Find

Page 20: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.20

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Block Correction using Cross References

2x

Page 21: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.21

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Go to Location

1xright

Page 22: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.22

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Assignment of I,Q,M,T,C

Page 23: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.23

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Unused Symbols / Addresses without Symbols

Page 24: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.24

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Program Structure

Page 25: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.25

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Comparing Blocks (1)

...see next page

Page 26: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.26

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Comparing Blocks (2)

Page 27: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.27

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Exercise: Eliminating Logical Program Errors

• Can you select the "Manual" mode?

• Can the conveyor belt be traversed in jog mode?

• Switch on the Automatic mode !

• Does the bottle stop at the bottle sensor for filling?

• Is there a message when the minimum level was exceeded?

• Is the number of packaging units displayed on the digital display?

Page 28: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.28

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Sporadic Errors

Page 29: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.29

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Displaying CPU Messages

Page 30: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.30

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Writing User Messages in the Diagnostic Buffer

SEND =TRUE

1 2

Send buffer

Diagnostic buffer

Sending asynchronousto user program

Node

e.g. PG, OP

CPU

SFC 52

Page 31: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.31

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Configuring Your Own Message Texts

Page 32: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.32

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Calling the SFC 52 Block

Network 2: User message when limit value exceeded

ENO

RET_VAL #error_sfc52

SFC 52

EN

SEND

EVENTN

INFO 1

INFO 2#analog value_normalized

#dummy

W#16#A901

M 0.1

M 0.1

P

#analog value_normalized

5.000000e+003

CMP>R

IN1

IN2

>=1

M 90.1

Page 33: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.33

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Structure of the EVENTN Parameter of the SFC 52 Block

Event class

15 14 13 12EVENTN

1..9 are standard texts for the different events (see the Standard and System Functions manual)

A..B free texts, that are specified using Message Configuration

C..F reserved for expansions in the future

Event class

11 10 9 8

Identification

Specifies if it is an incoming or an outgoing event, or, an internal or an external event, for example:

Bit 8= "1" --> incoming messageBit 8= "0" --> outgoing messageBit 10= "1" --> internal faultBit 11= "1" --> external fault

Identification

7 6 5 4 3 2 1 0

Event number

Continuous message number from 1 to 255 within an event classEvent number

Page 34: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.34

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Diagnostics-Capable Modules

Assigning parameters for a diagnostics-capable module:

... trigger a diagnostics interrupt OB 82 when an error occurs

Page 35: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.35

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Displaying Hardware Diagnostics in the SIMATIC Manager

2x

Page 36: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.36

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Exercise: Enabling Diagnostic Messages

Page 37: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.37

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Exercise: Outputting User Messages

SFC 52

SEND

EVENTN

INFO1

INFO2

RET_VALTRUE

W#16#9101

MW 54

MD 56

MW 52

???*

*

* a contact must be connected to the EN for programming in LAD !

EN

Page 38: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.38

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Exercise: Enabling Diagnostic Interrupts and Simulating Hardware Faults

Step What to Do Result

Enable the diagnostic interrupt at the analog module ! (HW Config.)1

The hardware diagnostic is activated

2 Download the configuration in the CPU

3 Remove the front connector on the analog module !

The "SF" LED on the analog moduleindicates a hardware fault

4 The configuration is opened onlineActivate the "Diagnose Hardware" tool !

5 The message "Power supply failure" is given as the cause of the error

Clarify the cause of the error with the tool !

Page 39: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.39

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

System Information

Page 40: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.40

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

System Information - Overview

Page 41: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.41

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Module Information: "Memory" Tab

Page 42: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.42

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Module Information: "Scan Cycle Time" Tab

Page 43: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.43

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Module Information: "Time System" Tab

... in the SIMATIC Manager:PLC -> Set Date and

Time

Page 44: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.44

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Module Information: "Performance Data" Tab

... in the SIMATIC Manager:• Blocks folder-> Properties

Page 45: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.45

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Performance Data: Blocks

Page 46: Date:23.10.2015 File:PRO1_12E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting

Date: 21.04.23File: PRO1_12E.46

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

Exercise: Reading Out System Information