[go: up one dir, main page]

0% found this document useful (0 votes)
38 views29 pages

Training Curriculum: TIA Portal Module 007

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views29 pages

Training Curriculum: TIA Portal Module 007

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Training Curriculum

TIA Portal Module 007


Basics of Diagnostics
with SIMATIC S7-1500

232
TIA Portal Module 007

Table of contents

1 Goal....................................................................................................................... 234
2 Prerequisite........................................................................................................... 234
3 Required hardware and software...........................................................................234
4 Theory................................................................................................................... 235
4.1 Fault diagnostics and hardware faults......................................................................................235
4.2 Hardware diagnostics.............................................................................................................. 235
4.3 Diagnostics for program blocks................................................................................................ 236
5 Task.......................................................................................................................237
6 Planning.................................................................................................................237
6.1 Online interface........................................................................................................................ 237
7 Structured step-by-step instructions......................................................................238
7.1 Retrieve an existing project...................................................................................................... 238
7.2 Download the program............................................................................................................. 238
7.3 Go online................................................................................................................................. 240
7.4 Online & diagnostics of the SIMATIC S7 controller..................................................................243
7.5 Online/offline comparison........................................................................................................ 250
7.6 Monitor and modify tags........................................................................................................... 253
7.7 Force tags................................................................................................................................ 256
7.8 Checklist.................................................................................................................................. 259

233
TIA Portal Module 007

BASICS OF DIAGNOSTIC FUNCTIONS


1 Goal
In this module, the reader will become acquainted with the tools that support troubleshooting.
This module will present diagnostic functions that, for example, you can test with the TIA
project.

2 Prerequisite
This chapter builds on the hardware configuration of SIMATIC S7 CPU1516F-3 PN/DP.
However, other hardware configurations that have digital input and output cards can be used.

3 Required hardware and software


1 Engineering station: requirements include hardware and operating system
(for additional information, see Readme on the TIA Portal Installation DVDs)

2 SIMATIC STEP 7 Professional software in TIA Portal – as of V1X

3 SIMATIC S7-1500/S7-1200/S7-300 controller, e.g. CPU 1516F-3 PN/DP –


Firmware as of V1.6 with memory card and 16DI/16DO and 2AI/1AO
Note: The digital inputs should be fed out to a control panel.

4 Ethernet connection between engineering station and controller

2 SIMATIC STEP 7
Professional (TIA
1 Engineering station Portal) as of V1X

4 Ethernet connection

Control panel
3 SIMATIC S7-1500 controller

234
TIA Portal Module 007

4 Theory

4.1 Fault diagnostics and hardware faults


Faults can be caused by a variety of things.
Two error patterns can be distinguished for faults that occur after a transition to RUN.
1. The CPU goes to or stays in STOP mode. 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 has occurred in this case. For example, a module in the AS 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 instance by evaluating the hardware
diagnostics and by reading the module status in the diagnostic buffer of the CPU.

2. The CPU is in faulty RUN mode. 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.

In this case, a fault may have occurred in the IO devices or power supply.
A visual check is performed initially to narrow down the fault area. The indicator LEDs on the
CPU and IO devices are evaluated. The diagnostic data of the faulty IO and bus modules are
read from the hardware diagnostics. In addition, a fault analysis can be performed using a
watch table on the programming device.

4.2 Hardware diagnostics


The device view in online mode of the TIA Portal provides you a quick overview of the
configuration and system status of the automation system.

235
TIA Portal Module 007

Figure 1: Online view of device configuration

4.3 Diagnostics for program blocks


The project tree window of the TIA Portal in online mode provides you an overview of the
programmed blocks of the user program. With the help diagnostic symbols, a comparison of
the program blocks used offline and online is displayed.

Figure 2: Online view of the Main [OB1] block

236
TIA Portal Module 007

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 status
 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, after starting the TIA Portal, a previously created project will be retrieved from the
archive and downloaded to the associated controller.
Afterwards, you can start implementing the diagnostic functions in the TIA Portal.

6.1 Online interface


Online diagnostics are only possible when the correct communication connection to the CPU
has been set up beforehand. Here, we are connected via Ethernet/PROFINET.
When connecting online, you must therefore set the appropriate interfaces for your automation
system.

Figure 3: Go online

237
TIA Portal Module 007

7 Structured step-by-step instructions


You can find instructions on how to carry out planning below. If you already have a good
understanding of everything, it will be sufficient to focus on the numbered steps. Otherwise,
simply follow the detailed steps in the instructions.

7.1 Retrieve an existing project


 Before we can start the diagnostic functions, we need a project with programming and a
hardware configuration.
(e.g., SCE_EN_032-100_FC-Programming….zap).
To retrieve an existing project that has been archived, you must select the relevant
archive with  Project  Retrieve in the project view.
Confirm your selection with "Open".
( Project  Retrieve  Select a .zap archive  Open)

 The next step is to select the target directory where the retrieved project will be stored.
Confirm your selection with "OK". ( Target directory  OK)

7.2 Download the program


 After the project has been successfully retrieved, the controller can be selected and

downloaded together with the created program. ( )

238
TIA Portal Module 007

 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 (highlighted in pink).
Click "Load" again. ( "Load“).

239
TIA Portal Module 007

 After loading, first select the "Start all" check box under Action.

Click "Finish". ( select check box  "Finish")

7.3 Go online
 To get started with the diagnostic functions, we will select our controller ("PLC_1") and
click "Go online". (®® PLC_1 ®® Go online)

240
TIA Portal Module 007

 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.

Symbols for the comparison status in the project tree

 The diagnostic symbols in the project tree show a comparison status representing the
online/offline comparison of the project structure.

Symbol 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

 Double-click "Device configuration".

Operating state symbols for CPUs and CPs

241
TIA Portal Module 007

 The graphical representation and device information window show the various operating
states of the CPU or communication processors (CPs).

Symbol Operating state


RUN
STOP

STARTUP
HOLD
DEFECT
Unknown operating state
The configured module does not support display of the operating
state.

Diagnostic symbols for modules and devices in the device overview

 The graphical representation and Device overview window display the operating states of
the various modules, CPU, or CP using the following symbols.

Symbol Meaning
The connection to a CPU is currently being established.
The CPU is not accessible at the set address.

The type of CPU configured and type of CPU actually present are
incompatible.
During the establishment of the online connection to a protected CPU, the
password dialog was terminated without input of the correct password.
No fault

Maintenance required
Maintenance demanded
Fault

The module or device is deactivated.


The module or device cannot be accessed from the CPU (valid for modules
and devices below a CPU).
Diagnostic data is not available because the current online configuration
data differs from the offline configuration data.
The configured module or device and the module or device actually present
are incompatible (valid for modules or devices below a CPU).
The configured module does not support display of the diagnostic status
(valid for modules below 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 diagnostic status.
Error in lower-level component: A error is present in at least one lower-level
hardware component.

Color coding of ports and Ethernet cables

242
TIA Portal Module 007

 The status of ports and Ethernet cables can be diagnosed in the Network view and
Topology view.

 The following table shows the possible colors and their respective meaning.

Color Meaning
No fault or maintenance required
Maintenance demanded
Communication error

7.4 Online & diagnostics of the SIMATIC S7 controller


 Double-click "Online & diagnostics" in the project tree.

( Online & diagnostics)

 A CPU operator panel, the cycle time and the memory utilization are displayed in the
Online tools on the right side. Switch the CPU to RUN here. ( RUN)

243
TIA Portal Module 007

 The working area window contains general information about the CPU. (®® General)

 If diagnostic information is available, it is displayed in Diagnostic status.


(®® Diagnostic status)

244
TIA Portal Module 007

 Detailed Information on the individual events is displayed in Diagnostics buffer.


(®® Diagnostics buffer)

 Next you receive information about the cycle time of the executed program.
(®® Cycle time)

245
TIA Portal Module 007

 The memory utilization can be seen here in detail. (®® Memory)

 Information about the display is also available for the CPU 1516F. (®® Display)

 The network settings and the status of the PROFINET interfaces [X1] and [X2] can also
be displayed.

(®® PROFINET interface [X1] or ®® PROFINET interface [X2])

246
TIA Portal Module 007

 In "Assign IP address" under Functions, you can assign the IP address to a controller.
However, this is only possible when no hardware has been downloaded to the CPU.

(®® Functions ®® Assign IP address)

 Under "Set time", you can set the time of the CPU.

(®® Functions ®® Set time)

 Under "Firmware update", you can update the firmware of the PLC or the display.

(®® Functions ®® Firmware update)

247
TIA Portal Module 007

 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.

(®® Functions ®® Assign name)

 Under "Reset to factory settings", you can restore the factory settings for the CPU. After
restoring the factory settings, the CPU configuration and the program must be imported
again from the inserted memory card. Therefore, the memory card must be formatted
before the restoring the factory settings.

(®® Format memory card ®® Format ®® Reset to factory settings ®® Retain or delete
IP address ®® Reset)

248
TIA Portal Module 007

 Finally, the service data can be saved under Functions.

(®® Functions ®® Save service data)

 The online connection should be disconnected again before the next chapter.

(®® Online access ®® Disconnect online connection)

 The TIA Portal is now back in offline mode. The orange-colored bars and the diagnostic
symbols are no longer displayed.

249
TIA Portal Module 007

7.5 Online/offline comparison


 It is often important to know whether the saved data matches the data loaded in the
controller. First, remove the negation from the "Safety_shutoff_active" tag at the AND
function in the "MOTOR_MANUAL [FC1]" block.

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)

 The Compare editor online opens.

250
TIA Portal Module 007

 If, for example, block differences are indicated , first select the block involved. You can

then click the button to "Start detailed comparison".


(®® MOTOR_MANUAL ®® Start detailed comparison).

 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.

 Close the window of the code block comparison.

251
TIA Portal Module 007

 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 imported
from the controller and overwritten in the TIA Portal.

Select the "Upload from device" action. (← Upload from device)

 Click the "Execute actions" button . (®® Execute actions)

 Confirm "Upload from device". (®® Upload from device)

 After the upload, there are no more differences. You should now save your project again
and close the online connection.

252
TIA Portal Module 007

7.6 Monitor and modify tags


 To monitor and modify tags, you need a watch table.

Double-click "Add new watch table" in the project tree.

(®® Add new watch table)

 Open the newly created "Watch_table_1" by double-clicking it. (®® "Watch_table_1")

 You can enter individual tags in the table or you can select the
"Tag_table_sorting_station" and the tags to be monitored, and drag them from the Details
view to the watch table.

(®® Default tag table)

253
TIA Portal Module 007

 To have all monitoring and modifying functions available for selection, the following
columns can be displayed:

‘All modify columns’ and ‘All expanded mode columns’ .

Continue by selecting the trigger timing for the monitoring.


(®® Permanent)

The following monitoring and modifying modes are available:


 Permanent (in this mode, the inputs are monitored/modified at the start of the
cycle and the outputs at the end.)
 Once only, at start of scan cycle
 Once only, at end of scan cycle
 Permanently, at start of scan cycle
 Permanently, at end of scan cycle
 Once only, at transition to STOP
 Permanently, at transition to STOP

254
TIA Portal Module 007

Process image of the inputs

"At start of scan cycle" trigger point

OB 1
At transition to STOP trigger point

"At end of cycle" trigger point

Process image of the outputs

255
TIA Portal Module 007

 Next, click "Monitor all values once and now" or "Monitor all values according to

trigger settings" . (®® Monitor all)

 To modify tags, enter the desired "Modify values". Next, click to "Modify all activated

values once and now" or to "Modify all activated values by Modify with trigger
condition".

(®® TRUE ®® modifies all activated values by "Modify with trigger condition")

 Confirm the warning with 'Yes'. (®® Yes)

 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
become ineffective.

256
TIA Portal Module 007

7.7 Force 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. The main differences between "Modify tags" and the "Force"
function are as follows: In contrast with "Modify tags", the "Force" function does not allow
you to assign values to data blocks, timers, counters and bit memory.

IO device inputs (e.g., IWxx:P) cannot be modified, although they 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)

 Select the “Q1” operand with address %Q0.0 from the list. (®® Q1)

257
TIA Portal Module 007

 With forcing, the operands are entered with direct IO access (%Q0.0:P).

 Enter the desired force value and activate it .

Click "Start or replace forcing" . The new force request is transferred to the CPU.

(®® %Q0.0:P ®® TRUE ®® ®® Start or replace forcing)

 Confirm the warning with 'Yes'. (®® Yes)

 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-1500.

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 continues to be lit.

 If you want to ‘Stop forcing’, simply click "Stop forcing" , and confirm the next dialog
with "Yes".

(®® Stop forcing) 'Yes' (®® Yes)

Forcing is stopped and the yellow MAINT LED on the CPU goes out.

 If there is already a force request in the controller, this is indicated by the symbol in
the watch table.

258
TIA Portal Module 007

 If you now click , additional information is displayed. (®® )

 If there is already a force request in the controller, it can also be displayed and stopped
via the online device view. For this, you need to right-click the CPU in online mode of the
device view and select "Update and display forced operands".

(®® right-click the CPU ®® Update and display forced operands")

 The force table with the current force requests will now be displayed and you can stop

these. (®® Stop forcing)

259
TIA Portal Module 007

7.8 Checklist
No. Description Completed

1 Project 032-100_FB-programming… successfully retrieved.

CPU 1516F from project 032-100_FB-Programming…


2
successfully downloaded.

3 CPU 1516F connected online.

4 Status of the CPU 1516F checked with Online & diagnostics.

Offline/online comparison of blocks in the CPU 1516F


5
performed.

6 Watch_table_1 created.

Tags (-S0 / -S3 / -K0 / -B1 / -S4 / -A1 / -Q1) entered in watch
7
table.
Switch on conveyor motor forwards by modifying the output
8
(-Q1 = 1) in watch table.
Switch off conveyor motor forwards by modifying the output
9
(-Q1 = 0) in watch table.

10 Open force table

11 Tag ( -Q1:P) entered in force table.

Switch on conveyor motor forwards by forcing the output


12
(-Q1 = 1) in force table.

13 Force output -Q1 to switch off again.

260

You might also like