Training Curriculum: TIA Portal Module 007
Training Curriculum: TIA Portal Module 007
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
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.
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
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.
235
TIA Portal Module 007
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.
Figure 3: Go online
237
TIA Portal Module 007
The next step is to select the target directory where the retrieved project will be stored.
Confirm your selection with "OK". ( Target directory OK)
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.
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.
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
241
TIA Portal Module 007
The graphical representation and device information window show the various operating
states of the CPU or communication processors (CPs).
STARTUP
HOLD
DEFECT
Unknown operating state
The configured module does not support display of the operating
state.
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
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
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)
244
TIA Portal Module 007
Next you receive information about the cycle time of the executed program.
(®® Cycle time)
245
TIA Portal Module 007
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.
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.
Under "Set time", you can set the time of the CPU.
Under "Firmware update", you can update the firmware of the PLC or the display.
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.
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
The online connection should be disconnected again before the next chapter.
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
Save the "MOTOR_MANUAL [FC1]" block, but do NOT download it to the controller.
250
TIA Portal Module 007
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.
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.
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
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.
253
TIA Portal Module 007
To have all monitoring and modifying functions available for selection, the following
columns can be displayed:
254
TIA Portal Module 007
OB 1
At transition to STOP trigger point
255
TIA Portal Module 007
Next, click "Monitor all values once and now" or "Monitor all values according to
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")
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
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.
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).
Click "Start or replace forcing" . The new force request is transferred to the CPU.
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".
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 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".
The force table with the current force requests will now be displayed and you can stop
259
TIA Portal Module 007
7.8 Checklist
No. Description Completed
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.
260