Date: File:PRO1_12E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting
Date: File:PRO1_12E.2 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation System Diagnostics - Overview CPU I/O-Module CPU diagnostics detects a system error CPU diagnostics detects an error 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 SFC
Date: File:PRO1_12E.3 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Searching for Errors, that Cause the CPU to Stop CPU
Date: File:PRO1_12E.4 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Calling the "Module Information" Tool
Date: File:PRO1_12E.5 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Module Information Tab: "Diagnostic Buffer"
Date: File:PRO1_12E.6 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Interpreting Error Messages
Date: File:PRO1_12E.7 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Opening a Block Containing an Error
Date: File:PRO1_12E.8 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge 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 word etc. (up to time of interruption) in the I Stack. You see the values of the temporary 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: File:PRO1_12E.9 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation B Stack
Date: File:PRO1_12E.10 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation I Stack
Date: File:PRO1_12E.11 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation L Stack
Date: File:PRO1_12E.12 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Exercise: Finding Stop Errors and Eliminating Them ResultWhat to Do Step 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: File:PRO1_12E.13 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Exercise: Troubleshooting with I Stack, B Stack ResultWhat to Do Step 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 table below. Clarify the cause of the error with the help 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: File:PRO1_12E.14 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Logical Errors ??
Date: File:PRO1_12E.15 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Displaying Reference Data
Date: File:PRO1_12E.16 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Filtering Reference Data
Date: File:PRO1_12E.17 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Cross References
Date: File:PRO1_12E.18 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Filtering Cross References
Date: File:PRO1_12E.19 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Reference Data: Find
Date: File:PRO1_12E.20 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Block Correction using Cross References 2x
Date: File:PRO1_12E.21 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Go to Location 1xright
Date: File:PRO1_12E.22 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Assignment of I,Q,M,T,C
Date: File:PRO1_12E.23 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Unused Symbols / Addresses without Symbols
Date: File:PRO1_12E.24 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Program Structure
Date: File:PRO1_12E.25 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Comparing Blocks (1)...see next page
Date: File:PRO1_12E.26 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Comparing Blocks (2)
Date: File:PRO1_12E.27 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge 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: File:PRO1_12E.28 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Sporadic Errors
Date: File:PRO1_12E.29 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Displaying CPU Messages
Date: File:PRO1_12E.30 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Writing User Messages in the Diagnostic Buffer SEND = TRUE 1 2 Send buffer Diagnostic buffer Sending asynchronous to user program Node e.g. PG, OP CPU SFC 52
Date: File:PRO1_12E.31 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Configuring Your Own Message Texts
Date: File:PRO1_12E.32 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge 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 P #analog value_ normalized e+003 CMP>R IN1 IN2 >=1 M 90.1
Date: File:PRO1_12E.33 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Structure of the EVENTN Parameter of the SFC 52 Block Event class EVENTN 1..9are standard texts for the different events (see the Standard and System Functions manual) A..Bfree texts, that are specified using Message Configuration C..Freserved for expansions in the future Event class Identification Specifies if it is an incoming or an outgoing event, or, an internal or an external event, for example: Bit 8= "1" -->incoming message Bit 8= "0" -->outgoing message Bit 10= "1" -->internal fault Bit 11= "1" -->external fault Identification Event number Continuous message number from 1 to 255 within an event class Event number
Date: File:PRO1_12E.34 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Diagnostics-Capable Modules Assigning parameters for a diagnostics-capable module:... trigger a diagnostics interrupt OB 82 when an error occurs
Date: File:PRO1_12E.35 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Displaying Hardware Diagnostics in the SIMATIC Manager 2x
Date: File:PRO1_12E.36 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Exercise: Enabling Diagnostic Messages
Date: File:PRO1_12E.37 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Exercise: Outputting User Messages SFC 52 SEND EVENTN INFO1 INFO2 RET_VAL TRUE W#16#9101 MW 54 MD 56 MW 52 ??? * * * a contact must be connected to the EN for programming in LAD ! EN
Date: File:PRO1_12E.38 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Exercise: Enabling Diagnostic Interrupts and Simulating Hardware Faults StepWhat to DoResult 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 module indicates a hardware fault 4 The configuration is opened online Activate 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: File:PRO1_12E.39 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation System Information
Date: File:PRO1_12E.40 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation System Information - Overview
Date: File:PRO1_12E.41 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Module Information: "Memory" Tab
Date: File:PRO1_12E.42 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Module Information: "Scan Cycle Time" Tab
Date: File:PRO1_12E.43 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Module Information: "Time System" Tab... in the SIMATIC Manager: PLC -> Set Date and Time
Date: File:PRO1_12E.44 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Module Information: "Performance Data" Tab... in the SIMATIC Manager: Blocks folder -> Properties
Date: File:PRO1_12E.45 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Performance Data: Blocks
Date: File:PRO1_12E.46 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Exercise: Reading Out System Information