SITRAIN
Troubleshooting
© Siemens AG 2010. All rights reserved.
Objectives
The participant should ...
... be able to classify occurring errors as "Errors detected by the system"
and "Functional errors"
... be able to read out the diagnostic buffer, interpret it and use it
for troubleshooting
... 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/FBD Editor and use them for troubleshooting
... be able to read out the reference data, interpret them and use them
for troubleshooting
... understand the "Enable peripheral outputs" and "Force" functions
SITRAIN
TIA-MICRO2 / Troubleshooting Page 2 Siemens AG © 2010
Categories of Errors
Errors Detected by the System
• Recording, evaluating and indicating
errors within a PLC
• Module failure
• Short-circuit in signal cables
• Scan time overrun
• Programming error (accessing a
non-existing 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)
SITRAIN
TIA-MICRO2 / Troubleshooting Page 3 Siemens AG © 2010
STEP7 – Debugging Tools, Overview
Error
Error detected by the System: Functional Error:
(such as, accessing a non-existent DB) (Process fault, e.g. wire break)
(Diagnostic interrupt of a signal module) (Logical programming error, e.g. double assignment)
Debugging tools:
Debugging tools:
• Module Information
• Monitor / Modify Variables
- Diagnostic buffer
• Monitor Blocks (Block status)
• Hardware Diagnostics
• Reference Data
- Central and distributerd I/O
- Cross reference lists
- Assignment of I/Q/M
- Program structure
- Unused symbols
Regardless of the cause of the error you could use:
• Enable Peripheral Outputs (control outputs)
• Force
• LED statuses
SITRAIN
TIA-MICRO2 / Troubleshooting Page 4 Siemens AG © 2010
Online & Diagnostics - Functions
Online & diagnostics
SITRAIN
TIA-MICRO2 / Troubleshooting Page 5 Siemens AG © 2010
Diagnostics: Diagnostics Buffer
SITRAIN
TIA-MICRO2 / Troubleshooting Page 6 Siemens AG © 2010
Error Messages in the Diagnostics Buffer
Detected error
System response
SITRAIN
TIA-MICRO2 / Troubleshooting Page 7 Siemens AG © 2010
Opening a Faulty Block
SITRAIN
TIA-MICRO2 / Troubleshooting Page 8 Siemens AG © 2010
"Monitor Block"
Switch on / off Monitor
SITRAIN
TIA-MICRO2 / Troubleshooting Page 9 Siemens AG © 2010
"Monitor Block": Display Formats
SITRAIN
TIA-MICRO2 / Troubleshooting Page 10 Siemens AG © 2010
"Monitor/Modify Variables": Watch Tables
SITRAIN
TIA-MICRO2 / Troubleshooting Page 11 Siemens AG © 2010
"Monitor / Modify Variables": Trigger Points
PII
Trigger point
"Beginning of
Scan Cycle" Show / hide all
modify columns Modify variables Monitor variables
Show / hide all once / by trigger by trigger / once
trigger columns
Cyclic
program
execution
Trigger point
"Transition to STOP"
Trigger point
"End of Scan Cycle"
PIQ
SITRAIN
TIA-MICRO2 / Troubleshooting Page 12 Siemens AG © 2010
"Enable Peripheral Outputs"
"Enable peripheral outputs"
CPU must be in STOP
Immediately control variables,
SITRAIN
TIA-MICRO2 / Troubleshooting Page 13 Siemens AG © 2010
"Force Variables"
Activate Force Deactivate Force
FORCE task is active
SITRAIN
TIA-MICRO2 / Troubleshooting Page 14 Siemens AG © 2010
Reference Data: Call Structure
SITRAIN
TIA-MICRO2 / Troubleshooting Page 15 Siemens AG © 2010
Reference Data: Dependency Structure
SITRAIN
TIA-MICRO2 / Troubleshooting Page 16 Siemens AG © 2010
Reference Data: Assignment of I, A, M
SITRAIN
TIA-MICRO2 / Troubleshooting Page 17 Siemens AG © 2010
Reference Data: Resources (Memory Utilization)
SITRAIN
TIA-MICRO2 / Troubleshooting Page 18 Siemens AG © 2010
Reference Data: Cross-references of PLC Tags
Display of where it is used
(also for HMI)
Click to jump to the point of
use
SITRAIN
TIA-MICRO2 / Troubleshooting Page 19 Siemens AG © 2010
Reference Data: Cross-references of a Tag
SITRAIN
TIA-MICRO2 / Troubleshooting Page 20 Siemens AG © 2010
Reference Data: Unused PLC Tags
SITRAIN
TIA-MICRO2 / Troubleshooting Page 21 Siemens AG © 2010
Comparing Blocks (1)
Start
Start detail comparison synchronization
Select synchronization action
SITRAIN
TIA-MICRO2 / Troubleshooting Page 22 Siemens AG © 2010
Comparing Blocks (2)
Navigation to
the differences
SITRAIN
TIA-MICRO2 / Troubleshooting Page 23 Siemens AG © 2010
Exercise 1: Opening a Faulty Project and
Downloading PLC_1
SITRAIN
TIA-MICRO2 / Troubleshooting Page 24 Siemens AG © 2010
Exercise 2: Errors Detected by the System: Reading
Out the Diagnostics Buffer
SITRAIN
TIA-MICRO2 / Troubleshooting Page 25 Siemens AG © 2010
Exercise 3: Logical Errors:
Double Assignment Reference Data
SITRAIN
TIA-MICRO2 / Troubleshooting Page 26 Siemens AG © 2010