Date: 21.04.23File: PRO1_12E.1
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge 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
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
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
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"
Date: 21.04.23File: PRO1_12E.6
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Interpreting Error Messages
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
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.
Date: 21.04.23File: PRO1_12E.9
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
B Stack
Date: 21.04.23File: PRO1_12E.10
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
I Stack
Date: 21.04.23File: PRO1_12E.11
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
L Stack
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
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
Date: 21.04.23File: PRO1_12E.14
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Logical Errors
??
Date: 21.04.23File: PRO1_12E.15
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Displaying Reference Data
Date: 21.04.23File: PRO1_12E.16
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Filtering Reference Data
Date: 21.04.23File: PRO1_12E.17
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Cross References
Date: 21.04.23File: PRO1_12E.18
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Filtering Cross References
Date: 21.04.23File: PRO1_12E.19
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Reference Data: Find
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
Date: 21.04.23File: PRO1_12E.21
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Go to Location
1xright
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
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
Date: 21.04.23File: PRO1_12E.24
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Program Structure
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
Date: 21.04.23File: PRO1_12E.26
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Comparing Blocks (2)
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?
Date: 21.04.23File: PRO1_12E.28
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Sporadic Errors
Date: 21.04.23File: PRO1_12E.29
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Displaying CPU Messages
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
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
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
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
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
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
Date: 21.04.23File: PRO1_12E.36
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Exercise: Enabling Diagnostic Messages
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
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 !
Date: 21.04.23File: PRO1_12E.39
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
System Information
Date: 21.04.23File: PRO1_12E.40
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
System Information - Overview
Date: 21.04.23File: PRO1_12E.41
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Module Information: "Memory" Tab
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
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
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
Date: 21.04.23File: PRO1_12E.45
SIMATIC S7Siemens AG 1999. All rights reserved.
Information and Training CenterKnowledge for Automation
Performance Data: Blocks
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