Escolar Documentos
Profissional Documentos
Cultura Documentos
Page 1 of 36
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
UH
Any exceptions require written consent from the Siemens AG contact person: Mr. Roland Scheuerer
roland.scheuerer@siemens.com.
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.
Page 2 of 36
Preface ....................................................................................................................................................... 4
2.
2.1.
2.2.
2.3.
2.4.
2.5.
2.6.
Page 3 of 36
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
Plant simulation with
SIMIT Module 150
Advanced functions for
PLC programming
Module 30
Other programming
languages
Module 40
Safety technology
Module 80
PROFIBUS
Module 60
Sensor technology
Module 110
PROFINET
Module 70
AS-Interface
Module 50
Process visualization
(HMI) Module 90
Drive technology
Module 100
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:
To successfully work through this module, the following knowledge is required:
Proficiency in working with Windows
Basic knowledge of PLC programming with the TIA Portal
(e.g., module SCE_EN_020-010_R1201_Startup programming with SIMATIC S7-300)
Page 4 of 36
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
Software: STEP 7 Professional V11 SP1 (Totally Integrated Automation (TIA) Portal V11)
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
V11 (TIA Portal)
1 PC
3 Ethernet connection
4 S7-300 with
CPU 315F 2 PN/DP
Page 5 of 36
2.1.
1.
The central tool is the Totally Integrated Automation Portal, which is opened here with a
double-click. ( TIA Portal V11)
2.
Page 6 of 36
Page 7 of 36
To get started with troubleshooting, select Control press and then Go online. ( Control
press Go online)
Page 8 of 36
Now select the PG/PC interface for online access and click Go online. ( PG/PC interface
for online access Go online)
Page 9 of 36
When an online connection to the CPU has been established, the CPU can be started and
stopped with the
form of icons.
Meaning
Folder contains objects whose online and offline versions are 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
Page 10 of 36
Meaning
Folder contains objects whose online and offline versions are different (only in the project tree)
Object only exists online
Meaning
The connection with a CPU is currently being established.
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 device is disabled.
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.
Page 11 of 36
2.2.
Device diagnostics
7.
Open the Device configuration to obtain information about the status of the individual
components under Diagnostics. ( Device configuration Diagnostics)
Operating mode
RUN
STOP
STARTUP
HOLD
DEFECTIVE
Unknown operating mode
The configured module does not support display of the operating mode.
Page 12 of 36
To view details about the CPU, right-click the CPU and select Online & diagnostics. ( Online
& diagnostics)
Color
Meaning
No fault or maintenance required
Maintenance demanded
Communication error
Page 13 of 36
An operator panel for the CPU, the cycle time, and the memory utilization are displayed on the
right side.
Page 14 of 36
Page 15 of 36
12. The diagnostics buffer is the most important aid for error diagnostics. ( Diagnostics buffer)
Page 16 of 36
Page 17 of 36
Page 18 of 36
Page 19 of 36
Page 20 of 36
18. Under Performance data, you can see which operand areas, organization blocks, and system
blocks can be used with your CPU.
( Performance data)
Page 21 of 36
20. You can set the time of day under Functions. ( Set time of day)
Page 22 of 36
21. You can perform a firmware update under Functions. ( Firmware updater)
Page 23 of 36
22. You can assign the PROFINET device name under Functions. ( Assign name)
Page 24 of 36
2.3.
Offline/online comparison
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)
Page 25 of 36
Page 26 of 36
Note:
Symbolic names, interface names, network headings, and comments are not saved in an S7-300
CPU.
Page 27 of 36
2.4.
Page 28 of 36
Page 29 of 36
columns
. Now, select the trigger time for the monitoring.
( Permanent)
Permanent (in this mode, the inputs can be monitored/modified at the start of the cycle and the
outputs at the end.)
OB1
Page 30 of 36
or Monitor all
Monitor all)
. Then, click
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.
Page 31 of 36
2.5.
Forcing tags
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)
Page 32 of 36
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.
Page 33 of 36
. (
Stop forcing)
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
table.
If you click
Page 34 of 36
2.6.
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).
Page 35 of 36
Although peripheral outputs cannot be monitored, you can monitor the process image output (PIQ) in
the CPU memory (also in STOP state).
Page 36 of 36