SCE - EN - 031-410 Basics Diagnostics S7-1200 - R1709 PDF
SCE - EN - 031-410 Basics Diagnostics S7-1200 - R1709 PDF
SCE - EN - 031-410 Basics Diagnostics S7-1200 - R1709 PDF
siemens.com/sce
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved.
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
Note that these trainer packages are replaced with successor packages when necessary.
An overview of the currently available SCE packages is available at: siemens.com/sce/tp
Continued training
For regional Siemens SCE continued training, contact your regional SCE contact
siemens.com/sce/contact
This document is to be used only for initial training on Siemens products/systems, which means it
can be copied in whole or part and given to those being trained for use within the scope of their
training. Circulation or copying this Learn-/Training Document and sharing its content is permitted
within public training and advanced training facilities for training purposes.
Exceptions require written consent from the Siemens AG contact person: Roland Scheuerer
[email protected].
Offenders will be held liable. All rights including translation are reserved, particularly if a patent is
granted or a utility model or design is registered.
Use for industrial customer courses is explicitly not permitted. We do not consent to commercial
use of the Learn-/Training Document.
We wish to thank the TU Dresden, particularly Prof. Dr.-Ing. Leon Urbas and the Michael Dziallas
Engineering Corporation and all other involved persons for their support during the preparation of
this Learn-/Training Document.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 2
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
Table of contents
1 Goal ................................................................................................................................................. 4
2 Prerequisite...................................................................................................................................... 4
3 Required hardware and software ...................................................................................................... 5
4 Theory ............................................................................................................................................. 6
4.1 Fault diagnostics and hardware faults .......................................................................................6
4.2 Hardware diagnostics ...............................................................................................................7
4.3 Diagnostics for program blocks .................................................................................................8
5 Task ................................................................................................................................................. 9
6 Planning........................................................................................................................................... 9
6.1 Online interface ........................................................................................................................9
7 Structured step-by-step instructions................................................................................................ 10
7.1 Retrieve an existing project ..................................................................................................... 10
7.2 Download the program............................................................................................................11
7.3 Connect online ....................................................................................................................... 13
7.4 Online & diagnostics for SIMATIC S7 controller ...................................................................... 17
7.5 Online/offline comparison ....................................................................................................... 25
7.6 Monitor and modify tags..........................................................................................................28
7.7 Force tags ..............................................................................................................................31
7.8 Checklist................................................................................................................................. 35
8 Exercise ......................................................................................................................................... 36
8.1 Task – Exercise ...................................................................................................................... 36
8.2 Planning ................................................................................................................................. 36
8.3 Checklist – Exercise ............................................................................................................... 36
9 Additional information ..................................................................................................................... 37
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 3
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
2 Prerequisite
This chapter builds on the hardware configuration of SIMATIC S7 CPU1214C. However, other
hardware configurations that have digital input and output boards can be used. For this chapter,
you can use the following project, for example:
SCE_EN_031_100_FC-Programming_S7-1200_R1504.zap14
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 4
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
2 SIMATIC STEP 7
Basic (TIA Portal) as of
1 Engineering Station V14 SP1
4 Ethernet connection
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 5
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
4 Theory
4.1 Fault diagnostics and hardware faults
Faults can be caused by a variety of things.
For faults that occur after a changeover to RUN, there are two error patterns.
1. The CPU goes to or stays in the STOP operating state. The yellow STOP LED lights up and
other indicator LEDs light up on the CPU, power supply unit, IO modules or bus modules.
A CPU fault is present in this case. For example, a module in the automation system might
be defective or have an incorrect parameter assignment or a bus system fault might be
present.
An interruption analysis will be performed in this case by evaluating the hardware diagnostics
and by reading the module information from the diagnostic buffer of the CPU.
2. The CPU is in a faulty RUN operating state. The green RUN LED lights up and other
indicator LEDs light up or flash on the CPU, power supply unit, IO modules or bus modules.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 6
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 7
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 8
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
5 Task
The following diagnostic functions will be shown and tested in this chapter:
– Diagnostic symbols in the online view of the TIA Portal
– Device diagnostics with module information
– Offline/online comparison
– Monitoring and modifying tags
– Forcing tags
6 Planning
The diagnostic functions will be performed using a finished project as an example.
A project in the TIA Portal that was previously downloaded to the controller should be open for
this.
In our case, once you have opened the TIA Portal, you will retrieve a previously created project
that was archived and download it to the associated controller.
You can then start implementing the diagnostic functions in the TIA Portal.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 9
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® The next step is to select the target directory where the retrieved project will be stored.
Confirm your selection with "OK". (® Target directory ® OK)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 10
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 11
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Select the correct interfaces and click "Start search". (® "PN/IE" ® Selection of the network
adapter of the PG/PC ® Direct at slot ‘1 X1‘® "Start search")
Once "Scan and information retrieval completed" appears, click "Load". (® "Load")
® Before downloading can be started, other actions may have to be set (pink marking).
Then click "Load" again. (® "Load").
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 12
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® After loading, first select the "Start all" check box under Action. Then click "Finish". (® select
check box ® "Finish")
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 13
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Once the online connection to the "PLC_1" controller is established, the CPU can be started
or stopped with the following buttons . Diagnostic information in the form of symbols
will already be available in the project tree and in the diagnostics window.
Symbol Meaning
Folder contains objects with online and offline versions that different (only in the project
tree)
Online and offline versions of the object are different
Object only exists online
Object only exists offline
Online and offline versions of the object are the same
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 14
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
(® Device configuration)
STARTUP
HOLD
DEFECT
Unknown operating state
The configured module does not support display of the operating state.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 15
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
Symbol Meaning
The connection to a CPU is currently being established.
The CPU is not accessible at the configured address.
The type of CPU configured and type of CPU actually present are incompatible.
On establishment of the online connection to a protected CPU, the password
dialog was terminated without entry of the correct password.
No fault
Maintenance required
Maintenance demanded
Fault
® The following table shows the possible colors and their respective meaning.
Color Meaning
No fault or maintenance required
Maintenance demanded
Communication error
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 16
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® A CPU operating panel, the cycle time and the memory utilization are displayed in the online
tools at the right. Switch the CPU to RUN here. (® RUN)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 17
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® The working area window contains general information about the CPU. (® General)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 18
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Next you receive information about the cycle time of the executed program. (® Cycle time)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 19
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® The network settings and the status of the PROFINET interface [X1] can also be displayed.
(® PROFINET interface [X1])
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 20
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Under Functions, "Assign IP address", you can assign the IP address to a controller.
However, this is only possible when no hardware has yet been downloaded to the CPU.
(® Functions ® Assign IP address)
® Under "Set time", you can set the time of the CPU. (® Functions ® Set time)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 21
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Under "Firmware update", you can update the firmware of the PLC.
(® Functions ® Firmware update)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 22
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Under "Assign name", you can assign a PROFINET device name to the configured field
devices on PROFINET. The device name of the CPU cannot be changed here. It can only be
changed by downloading a modified hardware configuration.
® Under "Reset to factory settings", you can restore the factory settings of the CPU.
(®Functions ® Reset to factory settings ® Retain or delete IP address ® Reset)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 23
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Under "Format memory card", you can format the optional memory card if it is inserted in the
CPU. (® Functions ® Format memory card ® Format)
® The online connection should be disconnected again before the next chapter.
(® Online access ® Go offline)
® The TIA Portal is now back in offline mode. The orange-colored bars and the diagnostic
symbols are no longer displayed.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 24
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
Then save the "MOTOR_MANUAL [FC1]" block, but do NOT download it to the controller. Close
the "MOTOR_MANUAL [FC1] block again.
® To compare, right-click the "PLC_1" controller and select "Compare", "Offline/online".
(® Select controller ® Compare ® Offline/online)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 25
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® If, for example, block differences are indicated , first select the block involved. You can
® The selected offline/online block will be compared in the code block comparison. A detailed
description of the difference is shown in the comparison result.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 26
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® An action can be selected for the block involved in the Compare editor.
Either the "MOTOR_MANUAL" block will be downloaded from the programming device to the
controller and overwritten there or the "MOTOR_MANUAL" block will be read in from the
controller and overwritten in the TIA Portal.
Select the "Upload from device" action (← Upload from device).
® After the upload, there are no more differences. You should now save your project again and
close the online connection.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 27
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
Double-click "Add new watch table" in the project tree. (® Add new watch table).
You can enter individual tags in the table or you can select the "Tag_table_sorting_station" and
then select the tags to be monitored and drag them from the Details view to the watch table (®
Tag_table_sorting_station).
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 28
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® To have all monitoring and modifying functions available for selection, the following columns
can be displayed:
OB 1
"At transition to STOP" trigger point
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 29
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Next, click "Monitor all values once and now" or "Monitor all values according to trigger
® To modify tags, enter the desired "Modify values". Then, click to "Modify all activated
values once and now" or to "All active values will be modified by modify with trigger".
® The output becomes active even though the programmed conditions are not met.
Note: If the watch table is closed or the connection to the PLC is lost, all modify commands are
nullified.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 30
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
In contrast to "Modify tags", it is not possible to assign values to data blocks, timers, counters
and bit memory with the "Force" function.
IO device inputs (e.g., IWxx:P) cannot be modified but can be pre-assigned by the "Force"
function.
Unlike with the "Modify" function, values permanently assigned by the "Force" function
cannot be overwritten by the user program.
If you close the force table, the force values are retained. This is not the case with the
"Modify" function.
If the online connection to the CPU is interrupted, the tags assigned with the "Force" function
retain their value.
To force tags, you must first double-click the force table to open it. (® Force table)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 31
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Select the "Q1" operand with address %Q0.0 from the list. (® Q1)
® With forcing, the operands are entered with direct IO access (%Q0.0:P).
Click "Start or replace forcing" . The new force request will be transferred to the CPU.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 32
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® Forcing is activated and the yellow MAINT LED on the CPU lights up. In addition, an F on a
red background is shown at the top right of the display of the S7-1200.
Note: If the watch table is closed or the connection to the PLC is lost, forcing remains active
and the yellow FORCE LED on the CPU continues to be lit.
® If you want to ‘Stop forcing’, simply click " Stop forcing" and confirm the next dialog with
"Yes".
Forcing is stopped and the yellow MAINT LED on the CPU switches off.
® If a force request already exists in the controller, this is indicated by the symbol in the
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 33
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
® If a force request already exists in the controller, it can also be displayed and stopped via the
online device view. To do this, you must right-click the CPU in online mode of the device view
and select "Update and display forced operands".
® The force table with the current force requests will now be displayed and you can stop these.
(® Stop forcing)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 34
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
7.8 Checklist
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 35
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
8 Exercise
8.1 Task – Exercise
In this exercise, the MOTOR_AUTO [FB1] function block from chapter SCE_EN_031-200_FB-
Programming is to be tested.
The challenge here is that the cylinder is in the front end position and thus the enable conditions
for switching on the conveyor are not met.
Using a watch table, the cylinder is to be moved to its rear end position so that the enable
conditions for the MOTOR_AUTO [FB1] block are met.
8.2 Planning
Plan the implementation of the task independently using the step-by-instructions as an aid.
7 Reset output for Retract cylinder in watch table again (–M2 = 0).
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 36
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
9 Additional information
More information for further practice and consolidation is available as orientation, for example:
Getting Started, videos, tutorials, apps, manuals, programming guidelines and trial software /
firmware, under the following link:
www.siemens.com/sce/s7-1200
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 37
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx
Learn-/Training Document | TIA Portal Module 031-410, Edition 2018 | Digital Factory, DF FA
Further Information
Siemens AG
Digital Factory
P.O. Box 4848
90026 Nuremberg
Germany
siemens.com/sce
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 3
SCE_EN_031-410 Basics Diagnostics S7-1200_R1709.docx