SCE - EN - 020-060 - R1209 - Diagnose Und Fehlersuche
SCE - EN - 020-060 - R1209 - Diagnose Und Fehlersuche
SCE Training Curriculum Page 1 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
SIMATIC controllers
SIMATIC S7-300 with CPU 314C-2PN/DP
Order no.: 6ES7314-6EH04-4AB3
SIMATIC S7-300 with CPU 314C-2PN/DP (upgrade)
Order no.: 6ES7314-6EH04-4AB4
SIMATIC S7-300 with CPU 315F-2PN/DP
Order no.: ES7315-2FH14-4AB1
SIMATIC ET 200S with CPU IM151-8 F PN/DP
Order no.: 6ES7151-8FB00-4AB1
Please note that these trainer packages may be replaced by successor trainer packages.
An overview of the currently available SCE packages is provided under: siemens.com/sce/tp
HU UH
Advanced training
Please get in touch with your regional SCE contact for information on regional Siemens SCE advanced
training siemens.com/sce/contact
HU
This training curriculum for the end-to-end automation solution Totally Integrated Automation (TIA) was
prepared for the program "Siemens Automation Cooperates with Education (SCE)“ specifically for training
purposes for public educational facilities and R&D facilities. Siemens AG does not make any guarantee
regarding its contents.
This training curriculum may only be used for initial training on Siemens products/systems. That is, it may be
copied in whole or in part and handed out to trainees for use within the context of their training. Distribution
and reproduction of this document and disclosure of its contents are permitted within public education and
further education facilities for educational purposes.
Any exceptions require written consent from the Siemens AG contact person: Mr. Roland Scheuerer
[email protected] .
U U
Offenders will be liable for damages. All rights reserved, including those relating to translation and in
particular those rights created as a result of a patent being granted or utility model being registered.
Use for industry customers is expressly prohibited. We do not consent to any commercial use of the training
curriculum.
We would like to thank Michael Dziallas Engineering and all those involved for their support in creating this
training curriculum.
SCE Training Curriculum Page 2 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
PAGE:
1. Preface..................................................................................................................................................... 4
SCE Training Curriculum Page 3 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
1. PREFACE
The SCE_EN_020-060 module contents form part of the ‘Basics of PLC Programming’ training unit
and describe the procedure for diagnostics and troubleshooting with the TIA Portal.
Basics of PLC
Programming
Module 10, Module 20
Learning objective:
In this module, the reader will become acquainted with the tools that support troubleshooting.
This module will present test and online functions that you can test with the TIA project ‘Startup’ from
the SCE_EN_020-010_R1201_Startup programming with SIMATIC S7-300 module, for example.
Requirements:
SCE Training Curriculum Page 4 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
1 PC Pentium 4, 1.7 GHz 1 (XP) – 2 (Vista) GB RAM, approx. 2 GB of free hard disk space
Operating system Windows XP Professional SP3 / Windows 7 Professional / Windows 7
Enterprise / Windows 7 Ultimate / Windows 2003 Server R2 / Windows Server 2008 Premium
SP1, Business SP1, Ultimate SP1
2 Software: STEP 7 Professional V11 SP1 (Totally Integrated Automation (TIA) Portal V11)
3 Ethernet connection between the PC and CPU 315F-2 PN/DP
4 SIMATIC S7-300 PLC, e.g., CPU 315F-2PN/DP with 16DI/16DO signal module. The inputs must
be fed out to a control panel.
2 STEP 7 Professional
1 PC
V11 (TIA Portal)
3 Ethernet connection
4 S7-300 with
CPU 315F 2 PN/DP
SCE Training Curriculum Page 5 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
In this module, test and online functions will be presented that you can test with the TIA Portal project
‘startup_S7-300’ from the SCE_EN_020-010 module, for example.
1. The central tool is the ‘Totally Integrated Automation Portal’, which is opened here with a
double-click. (® TIA Portal V11)
SCE Training Curriculum Page 6 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
SCE Training Curriculum Page 7 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
4. To get started with troubleshooting, select ‘Control press’ and then ‘Go online’. (® Control
press ® Go online)
SCE Training Curriculum Page 8 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
5. Now select the ‘PG/PC interface for online access’ and click ‘Go online’. (® PG/PC interface
for online access ® Go online)
SCE Training Curriculum Page 9 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
6. When an online connection to the CPU has been established, the CPU can be started and
stopped with the buttons. The project tree already provides diagnostic information in the
form of icons.
Symbol Meaning
Folder contains objects whose online and offline versions are different (only in the project tree)
SCE Training Curriculum Page 10 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
Symbol Meaning
Folder contains objects whose online and offline versions are different (only in the project tree)
Symbol Meaning
The configured CPU and the CPU actually present are of incompatible types.
On establishment of the online connection to a protected CPU, the password dialog was terminated without
specification of the correct password.
No fault
Maintenance required
Maintenance demanded
Error
The module or the device cannot be reached from the CPU (valid for modules and devices under a CPU).
Diagnostics data is not available because the current online configuration data is different to the offline
configuration data.
The configured module or device and the module or device actually present are incompatible (valid for
modules or devices under a CPU).
The configured module does not support display of the diagnostics status (valid for modules under a CPU).
The connection has been established, but the state of the module is currently still being determined.
The configured module does not support display of the diagnostics status.
Error in lower-level component: An error is present in at least one lower-level hardware component.
SCE Training Curriculum Page 11 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
7. Open the ‘Device configuration’ to obtain information about the status of the individual
components under ‘Diagnostics’. (® Device configuration ® Diagnostics)
RUN
STOP
STARTUP
HOLD
DEFECTIVE
The configured module does not support display of the operating mode.
SCE Training Curriculum Page 12 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
8. To view details about the CPU, right-click the CPU and select ‘Online & diagnostics’. (®
Online & diagnostics)
The following table shows the possible colors and their respective meaning.
Color Meaning
Maintenance demanded
Communication error
SCE Training Curriculum Page 13 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
9. An operator panel for the CPU, the cycle time, and the memory utilization are displayed on the
right side.
SCE Training Curriculum Page 14 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
SCE Training Curriculum Page 15 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
11. If diagnostics information exists, it is displayed in the Diagnostic status and Diagnostics buffer
areas. (® Diagnostic status ® Diagnostics buffer)
12. The diagnostics buffer is the most important aid for error diagnostics. (® Diagnostics buffer)
SCE Training Curriculum Page 16 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
13. Information about the cycle time of the executed program is also provided. (® Cycle time)
SCE Training Curriculum Page 17 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
SCE Training Curriculum Page 18 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
15. Information regarding the connection resources can be found under Communication.
(® Communication)
SCE Training Curriculum Page 19 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
16. You will also find information about the interfaces of the CPU.
(® MPI/DP interface ® PROFINET interface)
SCE Training Curriculum Page 20 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
17. In this dialog, you will find information about the runtime meter of the CPU.
(® Runtime meter)
18. Under Performance data, you can see which operand areas, organization blocks, and system
blocks can be used with your CPU.
(® Performance data)
SCE Training Curriculum Page 21 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
19. You can assign the IP address under Functions. (® Functions ® Assign IP address)
20. You can set the time of day under Functions. (® Set time of day)
SCE Training Curriculum Page 22 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
21. You can perform a firmware update under Functions. (® Firmware updater)
SCE Training Curriculum Page 23 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
22. You can assign the PROFINET device name under Functions. (® Assign name)
SCE Training Curriculum Page 24 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
24. It is often important to know whether the saved data matches the data loaded in the controller.
First, remove the negation from the AND operation for EMERGENCY STOP in the Program Press
[FC1] block.
Save the Program Press [FC1] block but do not download it to the controller.
For the comparison, select ‘Control press’ and then ‘Compare ® Offline/online’.
(® Control press ® Compare ® Offline/online)
SCE Training Curriculum Page 25 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
25. If block differences, for example, are indicated , you can select ‘Start detailed comparison’.
(® Program Press ® Start detailed comparison).
SCE Training Curriculum Page 26 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
26. The online and offline block is displayed and information about the differences is highlighted.
(® Comparison result)
Note:
Symbolic names, interface names, network headings, and comments are not saved in an S7-300
CPU.
SCE Training Curriculum Page 27 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
27. In order to monitor and modify tags, you must ‘Add a watch table’. (® Add new watch table)
SCE Training Curriculum Page 28 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
28. You can enter individual tags in the table or select the default tag table and then the tags to be
monitored and drag them from the Details view to the watch table. (® Default tag table)
SCE Training Curriculum Page 29 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
29. The following columns can be displayed: ‘All modify columns’ and ‘All expanded mode
OB1
“At transition to STOP” trigger point
SCE Training Curriculum Page 30 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
30. Next, click ‘Monitor all values once and afterwards or ‘Monitor all’ .
(® Monitor all)
31. Enter the desired ‘Modify values’, and select them . Then, click to ‘Modify all selected
values once and now’ or to ‘Modify all selected values by “Modify with trigger”’. (®
The output becomes active even though the programmed conditions are not met.
Note:
If the watch table closes or the connection to the PLC is lost, all control commands become
ineffective.
SCE Training Curriculum Page 31 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
The “Force” function can be used to assign a fixed value to tags. Force values are specified in a
similar way as for the "Modify tags" function but, in contrast, are retained after the CPU is stopped.
33. To force tags, you must first double-click the force table to open it.
(® Force table)
Select the “M0” operand with address %Q0.0 from the list. (® M0)
SCE Training Curriculum Page 32 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
With forcing, the operands are entered with direct I/O access (syntax: %Q0.0:P)
Enter the desired ‘Values’, and select them . After that, click ‘Start or replace forcing’. This
writes the new force request to the CPU.
Note:
If the watch table is closed or the connection to the PLC is lost, forcing remains active, and the
yellow FRCE LED on the CPU lights up.
SCE Training Curriculum Page 33 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
Forcing is stopped, and the yellow FRCE LED on the CPU turns off.
36. If a force request already exists in the controller, this is indicated by the icon in the watch
table.
SCE Training Curriculum Page 34 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
The “Enable PA” function can be used to cancel the output disable (OD) that prevents output signals
from being output when the CPU is in STOP state.
Following the PA enable, controlled outputs are active when the CPU is in STOP state. Analog
modules output their last value.
If you want to use this function, enter the operand in the correct display format and the modify value
in the watch table.
37. Switch the CPU to STOP, and click the “Enable PA” button .
The operand must be addressed as I/O in Byte, Word, or DWord format (%QB0:P, %QW0:P,
%QD0:P).
SCE Training Curriculum Page 35 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting
Industry Sector, IA&DT
Although peripheral outputs cannot be monitored, you can monitor the process image output (PIQ) in
the CPU memory (also in STOP state).
To cancel the PA enable, click the button again or switch the CPU to RUN.
SCE Training Curriculum Page 36 of 36 To be used only at Educational and R&D Facilities
TIA Portal Module 020-060, Edition 03/2013 © Siemens AG 2013. All Rights Reserved
SCE_EN_020-060_R1209_Diagnostics and Troubleshooting