troubleshooting - · pdf filesitrain training for automation and industrial solutions...

44
Date: 2/23/2012 File: PRO1_14E.1 SIMATIC S7 Siemens AG 2006. All rights reserved. SITRAIN Training for Automation and Industrial Solutions Troubleshooting

Upload: dangkhanh

Post on 09-Mar-2018

219 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.1

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Troubleshooting

Page 2: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.2

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Troubleshooting

Page 3: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.3

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Objectives

Upon completion of the chapter the participant will ...

... be able to classify occurring errors as "Errors detected by the system"

and "Functional errors"

... be familiar with the "Displaying CPU Messages" function

... be able to read out the diagnostic buffer, interpret it and use it for troubleshooting

... be able to read out the I STACK, B STACK and L STACK and interpret them

... be able to read out the hardware diagnosis

... be able to apply the "Monitor/Modify Variables" test function

... be able to interpret the displays of the "Monitor" test function in the LAD/STL/FBD Editor and use them for troubleshooting

... be able to read out the reference data, interpret them and use them for troubleshooting

... understand the "Force" function

Page 4: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.4

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Categories of Errors

Errors Detected by the System

• Recording, evaluating and indicating errors within a PLC (as a rule: CPU STOP)

• Module failure

• Short-circuit in signal cables

• Scan time overrun

• Programming error (accessing a non-existent block)

Functional Errors

• Desired function is either not executed at all or is not correctly executed

• Process fault (sensor/actuator, cable defective)

• Logical programming error (not detected during creation and startup)

Page 5: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.5

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

STEP7 - Debugging Tools, Overview

Error detected by the System:

General Rule: CPU in STOP

(such as accessing a non-existent DB)

(Diagnostic interrupt of a signal module)

Debugging Tools:

• Module Information

- Diagnostic buffer

- I STACK

- B STACK

- L STACK

• Hardware Diagnostics

Regardless of the cause of the error you could use:

• Force

• Enable Peripheral Outputs

• Set Breakpoints

Error

Functional fault:

General Rule: CPU in RUN

(process fault, such as a wire break)

(logical programming error, like a double assignment)

Debugging Tools:

• Enable Peripheral Outputs (modify outputs)

• Monitor / Modify Variable

• Monitor Blocks (Block Status)

• Reference Data

- Cross References

- Assignment of I/Q/M/T/C

- Program Structure

- Addresses without Symbols

- Unused Symbols

Page 6: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.6

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

System Diagnostics - Overview

CPU I/O module CPU diagnostics detects

a system error

CPU diagnostics detects

errors in the user program

Error

OB

Diagnostic

buffer

CPU

messages

Diagnostics-

capable module

detects an error

and generates

a diagnostic

interrupt

Diagnostic

interrupt

System status list

Page 7: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.7

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Displaying CPU Messages

Page 8: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.8

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Calling the "Module Information" Tool

SIMATIC® Manager LAD/STL/FBD Editor

Module Information

Page 9: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.9

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Module Information Tab: "Diagnostic Buffer"

Page 10: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.10

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Interpreting Error Messages in the Diagnostic Buffer

Page 11: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.11

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Opening a Block Containing an Error

Page 12: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.12

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Diagnostics with I Stack, B Stack, L Stack

Program structure

Point of interruption

You can see the contents of the accumulators, registers, status word etc. at the time of interruption in the

I stack.

You can see the values of the temporary variables at the

time of interruption in the L stack.

The B stack shows a list of the blocks that were executed up to the point of interruption.

Point of interruption

Block containing error

Page 13: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.13

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Contents of the B Stack

Page 14: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.14

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Contents of the I Stack

Page 15: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.15

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Contents of the L Stack

Page 16: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.16

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Displaying the Hardware Diagnostics

twice

Page 17: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.17

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Ex 1: Copying a Faulty Program and Preparing for Troubleshooting

1

2

Page 18: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.18

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Exercise 2: STOP Troubleshooting

Please Note: That after every STOP error correction, you must carry out a CPU warm restart. If, after the warm restart, the CPU once again goes into the STOP state, there still exists a further STOP error.

Page 19: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.19

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Calling the "Monitor/Modify Variables" Tool

Page 20: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.20

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Establishing Trigger Points for "Monitor/Modify Variable"

Trigger point

"Beginning of Scan Cycle"

Cyclic

program

execution

PII

PIQ

Set Trigger

Trigger point

"End of Scan Cycle"

Trigger point

"Transition to STOP"

Monitor / Modify depending on Trigger setting

Update Status / Modify Values (one time monitor / modify)

Page 21: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.21

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Opening a Variable Table and Establishing a Connection to the CPU

Configured CPU

(VAT from HW Station "Station 2")

Station 2 Directly connected

CPU

Station 1

PG

Station 3

Accessible CPUs

Page 22: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.22

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Testing (Debugging) Blocks using "Monitor" (Block Status)

Page 23: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.23

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Information Displayed with "Block Debug > Monitor"

LAD/STL/FBD Editor -> Options ->Customize ... or in running status: right mouse click on

Page 24: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.24

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Displaying Reference Data

Page 25: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.25

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Displaying the Program Structure

Page 26: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.26

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Displaying Cross References

Page 27: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.27

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Filtering Cross References

Page 28: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.28

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Block Correction using Cross References

Page 29: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.29

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Go To Location

1 x right

Page 30: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.30

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

"Find" In Reference Data

Page 31: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.31

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Assignment of I, Q, M, T, C

Page 32: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.32

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Unused Symbols / Addresses without Symbols

Page 33: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.33

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Comparing Blocks (1)

...see next page

Page 34: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.34

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Comparing Blocks (2)

Page 35: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.35

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

"Force" Variables

Page 36: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.36

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Exercise 3: Testing the Motor Jog

!!!

Page 37: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.37

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Exercise 4: Testing the Quantity Display

Page 38: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.38

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

If You Want to Know More

Page 39: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.39

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Selecting Process and Test Operation

Page 40: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.40

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Trigger Conditions for Block Monitoring (1)

Page 41: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.41

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Trigger Conditions for Block Monitoring (2)

Page 42: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.42

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Exercise 5: Testing the Evaluation of Fault 4

Page 43: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.43

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Testing the Program Execution using Breakpoints (Part 1)

Page 44: Troubleshooting - · PDF fileSITRAIN Training for Automation and Industrial Solutions Troubleshooting . ... for troubleshooting ... be able to read out the I STACK, B STACK and L STACK

Date: 2/23/2012 File: PRO1_14E.44

SIMATIC S7 Siemens AG 2006. All rights reserved.

SITRAIN Training for Automation and Industrial Solutions

Break- point

Testing the Program Execution using Breakpoints (Part 2)

Next state- ment