10 Troubleshooting en
10 Troubleshooting en
Troubleshooting
... be able to read out the diagnostic buffer, interpret it and use it
for troubleshooting
... 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
SITRAIN
TIA-MICRO2 / Troubleshooting Page 2 Siemens AG © 2010
Categories of Errors
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
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
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"
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"
SITRAIN
TIA-MICRO2 / Troubleshooting Page 13 Siemens AG © 2010
"Force Variables"
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
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
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