9 - Troubleshooting
9 - Troubleshooting
9 - Troubleshooting
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.1
Troubleshooting
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.2
Objectives
Upon completion of the chapter the participant will ...
...
...
...
...
...
...
...
...
be able to read out the reference data, interpret them and use them
for troubleshooting
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.3
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)
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.4
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
Regardless of the cause of the error you could use:
Force
Enable Peripheral Outputs
Set Breakpoints
Debugging Tools:
Module Information
- Diagnostic buffer
- I STACK
- B STACK
- L STACK
Hardware Diagnostics
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.5
CPU
Diagnostic
interrupt
Error
OB
Diagnostic
buffer
I/O module
Diagnosticscapable module
detects an error
and generates
a diagnostic
interrupt
System
status list
CPU
messages
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.6
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.7
LAD/STL/FBD Editor
Module Information
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.8
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.9
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.10
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.11
Point of interruption
Point of interruption
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.12
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.13
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.14
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.15
twice
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.16
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.17
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.18
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.19
Trigger point
"Beginning of Scan Cycle"
Monitor / Modify
depending on
Trigger setting
Set
Trigger
Cyclic
program
execution
Trigger point
"Transition to STOP"
Trigger point
"End of Scan Cycle"
PIQ
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.20
Accessible CPUs
Directly
connected
CPU
Station 1
Configured
CPU
(VAT from
HW Station
"Station 2")
Station 2
Station 3
PG
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.21
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.22
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
... or
in running status:
right mouse click
on
2/23/2012
PRO1_14E.23
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.24
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.25
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.26
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.27
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.28
Go To Location
1 x right
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.29
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.30
Assignment of I, Q, M, T, C
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.31
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.32
...see
next page
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.33
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.34
"Force" Variables
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.35
!!!
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.36
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.37
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.38
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.39
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.40
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.41
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.42
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.43
Breakpoint
Next
statement
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.44