Professional Documents
Culture Documents
Contents 2
2.9.7. Exercise 22: Testing the Connection to the WinCC RT Station ......................................... 2-45
2.9.8. Exercise 23: Carrying Out a Function Test ......................................................................... 2-46
2.10. Additional Information ......................................................................................................... 2-47
2.10.1. Connection Resources ........................................................................................................ 2-48
Mode
Q0.1
"P_operation"
DI DO AI
PROFINET
Task Description
You are to commission the first hardware components of the training area.
These are:
• S7-1500 station central device
• ET 200SP distributed I/O station
• WinCC Runtime station
• Conveyor model
Note:
The "Motion case" with S7-1200, PID controller and stepper motor - also part of the training area
- will be commissioned later.
Connection configuration
Device configuration
and
module parameter
assignment
Topology configuration
Device View
The device view is used for configuring devices.
• Hardware configuration of the individual devices
• Module parameter assignment
Network View
The network view is used for networking devices.
• Connection configuration
Topology View
The topology view is used to determine the physical structure of networks.
• Configuration of the interface assignment and the relationship between devices
Device selection
Graphic area
Tabular area
Device View
The Device view is used for configuring and parameterizing devices and modules.
• Hardware configuration
• Device and module parameter assignment
The editor consists of 2 areas, a graphic (left/top) and a tabular (right/bottom). The splitting – left-
right or top-bottom – can be changed as required.
− Graphic area = module configuration
− Tabular area = Address parameterization of configured modules
Subnetze
Subnets
Übersicht
Overviewder
of projektierten
the configuredNetz- und
networks,
Verbindungs-,
connections andE/A-Kommunikation
I/O communications
Network View
The Network view is used for configuring, parameterizing and networking devices.
• Configure and parameterize devices
• Configure connections
Just like the Device view, the Network view is also divided into a tabular and a graphic area.
In the graphic area, network-relevant devices, networks and connections are displayed. Here,
new devices can be inserted, connected with one another and the communication settings can be
made.
The tabular area contains various tables about the devices, connections and communication
settings.
All network
components
(even Unmanaged)
Offline-Online comparison
The "Topology Overview" tab of the Tabular Area offers the following functions:
• Module overview
• Ports and port interconnections
Compare
Synchronize
Update
The "Topology Comparison" tab of the tabular area offers the following functions:
• Determine the differences between the offline and online topology,
• Minimize the differences between the offline and online topology,
- In the "Actual" column, you specify which Offline/Online differences are to be adopted. All
differences to be adopted are activated via the context menu (Apply > Apply all).
Then the selected differences can be adopted with the “Synchronize” button.
Project view
Portal view
Unspecified CPU
For the selection of the controller, you can also choose an “Unspecified CPU”. This is necessary
when the real CPU is not yet known but you would already like to start programming. Here, you
only need to specify the firmware of the CPU which is to be used later on. The actual hardware
can later be configured from the Hardware catalog or determined online.
Requirement:
The firmware of the CPU to be used later on is known.
Advantage:
The program can be written without knowing the hardware that is to be used later on.
The actual hardware can be configured and loaded later on.
Requirements:
Option package TIA Openness
Requirement:
CAx data exists and the option package "Openness" is installed
Advantage:
An already created configuration can be adopted and used.
Note:
With the installation of V15, the option package is automatically selected.
In earlier versions, TIA Openness must be selected during installation.
In addition, the Windows user must be registered as a member of the group "Siemens TIA
Openness". You do this in the Computer Management under System Tools > Local Users and
Groups.
Requirement:
An IP address has been assigned to an interface of the station or the station has already been
configured.
Adopt default
or separate setting(s)
Most modules have a Configuration overview in the Settings with whose help you can see as well
as adjust the parameter assignments of all module channels.
online → Status,
Diagnostics
offline → Configuration,
Parameterization
Online Tools
If it is possible to establish an online connection to the CPU, diagnostics and status information of
all modules can be called.
With CPUs that can be accessed online, the mode can also be controlled using the "Online tools"
task card and further status information (cycle time statistics and memory load) can be called.
3
1. Online access or 1
Accessible devices
(Project or Portal view)
2. Select interface for the
search
3. Update the accessible
devices or
Start search
Diagnostics buffer
Cycle Time:
"Shortest", "Current" and "Longest" are the cycle times since the last CPU restart.
2.6. Task Description: Configuring the S7-1500 Station with the Help
of CAx Data
Task Description:
You are to reset the CPU to factory settings, create a new project, import the CAx data, check the
configuration and assign parameters to the CPU as well as the modules.
2.6.1. Exercise 1: Formatting the SMC of the CPU via Online Access or the
Display
Task
In order to completely erase the CPU, you must first erase/format the SIMATIC Memory Card of
the CPU. You can carry this out as follows:
• delete the data with the Windows Explorer (SMC card is inserted in the PG Card Reader)
• with the TIA Portal (SMC card is inserted in the PC Card Reader)
• with the TIA Portal (SMC card is inserted in the CPU)
• via the Display of the CPU
Note
If a password is stored on the CPU that is unknown to you, it is only possible to erase the SMC
card if it is inserted in the PG Card Reader.
2.6.2. Exercise 2: Resetting the CPU to Factory Settings using the Mode Selector
Switch or the Display
RUN
STOP 1. Set the mode selector switch to STOP and remove the SMC
MRES
RUN
STOP 2. Press and hold the mode selector switch in the MRES
position until the RUN/STOP LED has flashed 2x slowly
MRES
RUN
then let go again 1. RUN/STOP
STOP
LED
MRES
within 3 sec !!!
RUN 3. Press and hold the mode selector
STOP switch in the MRES position until
the RUN/STOP LED begins to flash
MRES
quickly
RUN
STOP then let go again
MRES
RUN
4. Insert the SMC and set the mode selector switch to RUN
STOP A CPU restart is not carried out since no program is loaded.
MRES
Task
In the last exercise you erased the SMC of the CPU. Now, you are also to reset the CPU to its
factory settings.
Result:
• The CPU remains in the STOP state since no user program is loaded.
• The I/O modules indicate with green flashing lights that they are not parameterized.
2.6.3. Exercise 3: Creating a New Project and Defining the Project Languages
Task
You are to create a new project.
What to Do
1. Via the "New Project" icon, open the window "Create a new project".
2. Enter the project name and the given path as shown in the picture and "Create" the project.
3. In the folder "Languages & resources", activate the project languages Deutsch (Deutschland)
and English (USA).
4. Save your project.
C:\02_Archives\TIA_Portal\
TIA-PRO3\
Task
You are to import the hardware configuration with the help of CAx data.
What to Do:
1. Select (highlight) your project and activate the function "Import CAx data…" in the "Tools"
menu.
2. In the dialog "CAx import", switch to the folder C:\02_Archives\TIA_Portal\TIA-PRO3.
3. Select the file "CAx-Data.aml".
4. Import the data.
5. Save your project.
Note:
If the current user account is not registered as a member in the "Siemens TIA Openness" group,
this is displayed in the Inspector window as an error.
In this case, enter the user account in the Computer Management under "System Tools > Local
Users and Groups".
2.6.5. Exercise 5: CPU Properties: Deactivating the F-capability and Setting the
Languages
Task
You are to deactivate the F-capability of the CPU.
What to Do
1. Open the ‘Properties’ of the CPU.
2. In the "Fail-safe" tab, switch off (disable) the F-capability of the CPU.
3. Delete the two - automatically created - Safety blocks.
4. In the "Display > General" tab, check that the Display language is English.
5. Define which project languages are to be loaded.
In the "Multilingual support" tab, set the project language to English for the
Device/Display/Web server language.
6. In the "Time of day" tab, adjust the time zone.
7. Save your project.
Task
You are to change the IP address of the CPU, parameterize the I/O addresses of the blocks and
the channels of the AI module.
What to Do
1. Open the ‘Device view’ of the S7-1500.
2. In the Properties of the CPU, in the "PROFINET interface [x]" tab, set the IP address to
192.168.111.132 and the subnet mask to 255.255.255.0.
3. In the Tabular (Device) Overview, set the addresses of the individual modules as shown in
the picture.
4. Select the analog input module and parameterize the channels as follows:
- Channel 0: Voltage +/-10V
- Channel 1: Current (4-wire transducer) 4..20mA
- All other channels: deactivated
5. Save your project.
Compile
Download
Task
You are to compile and download the station.
What to Do
1. Select the station PLC_1.
2. Compile the entire station.
3. Download the station.
4. Should you determine hardware differences, make adjustments in your offline project and
download it once again.
Exception:
If the FW of the CPU is not >= V2.5, you must upgrade the CPU Firmware. The FW 2.5 of the
S7-1513F-1PN (6ES7 513-1FL01-0AB0) is located in the following folder: <Drive>:\02
Archives\TIA_Portal\TIA-PRO3.
5. Save your program.
Task Description
You are to commission the ET 200SP distributed I/O station since later on, the conveyor model
will be controlled via its input and output modules.
For this, the ET 200SP station must be configured, assigned parameters and networked with the
S7-1500 station in the offline project.
After compiling the new hardware configuration, it must be downloaded into the CPU which then,
in the function of an I/O-Controller, automatically undertakes the parameterization of the I/O-
Device ET 200SP.
As of STEP 7 V15, it is possible to detect a real existing IO-Device and to adopt (add) it in your
project.
You detect the IO-Device in STEP 7 via the function "Hardware detection". You can adopt a
detected device in your project. STEP 7 inserts the IO-Device with all its modules and
submodules.
A module that is configured via the "Hardware detection" is parameterized as if you had inserted
it from the Catalog and is assigned neither to an IP subnet nor an IO-Controller.
The MAC address, an existing IP address and an existing PROFINET device name are adopted.
You can view the currently used input and output addresses in the form of a table in the
"Overview of Addresses". You will find the Overview of Addresses in the Inspector window under
the "Properties" of the CPU.
"Automatic Update":
The address is assigned to the cyclic process image (PIP 0). The operating system automatically
updates this address in every program cycle.
"None":
The address is not assigned to any Process Image Partition (PIP). In the user program, you
access this address directly (direct I/O access, no process image).
"PIP OB Servo":
The Process Image Partition "PIP OB Servo" is permanently assigned to the OB "MC-Servo".
STEP 7 automatically generates this OB when you create a Technology Object in the area Motion
Control. When the OB is executed, the PIP OB Servo is isochronously updated. All drives and
sensors/encoders used by Motion Control are assigned to this Process Image Partition.
Task
You are to delete all settings so far (IP address, subnet mask and PROFINET name) of the
Interface module of the ET 200SP station through a "Reset to factory settings".
What to Do:
1. Open the ‘Online access’ and select the Ethernet interface.
2. Update the display of the ‘Accessible devices’.
3. Open the ET 200SP (name may differ) and, with a double-click, activate the function "Online
& diagnostics".
4. Open the tab "Functions" > "Reset to factory settings".
5. Close the "Online & diagnostics" window.
6. Check the success of the reset to factory settings by once again doing an "Update accessible
devices".
The reset ET 200SP should now only be displayed as "Device" with MAC address.
Note:
With the help of I&M data (Identification and Maintenance data), modules can be uniquely
identified online.
Information data (I-data) is manufacturer information, such as, order number or serial number.
Maintenance data (M-data) is system-dependent information, such as, mounting location and
installation date.
Task
You are to read-in the configuration of the ET 200SP with the help of the function "Hardware
detection > IO devices".
What to Do
1. Open the hardware detection of an IO-Device via the menu item ‘Online’.
2. In the window that opens, select the type and the interface via which the ET 200SP can be
accessed.
3. Start the search via the button "Start search".
4. Select the found device of the device family ET 200SP (check the box in front of the device).
5. Start the function via the button "Add devices".
6. Save your project after successful detection of the IO-Device.
Task
After the ET 200SP IO-Device is added, it must be assigned to an IO-Controller or networked with
a CPU. In case there are several CPUs in the network, a co-ordination or monitoring of the I/O
addresses by the IO-Controller and IO-Device can only be done through this unique assignment.
What to Do
1. In the Hardware and Network editor, select the Network view.
2. Activate the "Network" button.
3. Network the ET 200SP with the CPU by connecting the Ethernet interface of the ET 200SP
with the Ethernet interface of the CPU using drag & drop.
4. Select the newly created PROFINET IO system and, in the Inspector window under "I/O
communication", check the generated communication partners.
5. Save your project.
Task
The ET 200SP has digital and analog input and output modules to which the conveyor model is to
be connected. The I/O addresses used in the STEP 7 program must match the addresses of the
DI/DO modules parameterized here.
You can see the current address assignment in the tabular part of the editor’s work area and it is
to be adjusted.
What to Do
1. In the Hardware and Network editor, select the "Device view" of the ET 200SP.
2. Change the addresses of the I/O modules as shown in the picture.
3. On Slot 4 (Slot of the AI module), open a new potential group.
Task
The ET 200SP station is later to work with the IP address, subnet mask and PROFINET device
name shown.
What to Do
1. In the Hardware and Network editor, select the "Device view" of the IO-Device.
2. Select the IM module on Slot 0 and open the "Properties" tab in the Inspector window.
3. Select the "Ethernet addresses" tab and under "IP protocol" enter the IP address and subnet
mask shown.
4. In the same tab you will find the PROFINET device name under PROFINET. Deactivate the
property "Generate PROFINET device name automatically".
5. Change the current PROFINET device name to ET 200SP.
6. Save your project.
Task
The PROFINET device name previously assigned offline must now be assigned to the ET 200SP
online, so that the IO-Controller or the CPU detects the ET 200SP during system startup and can
assign the offline configured IP address.
What to Do
1. In the Hardware and Network editor, select the "Device view" of the ET 200SP.
2. Select the Interface module or the module on Slot 0.
3. Select the "Assign device name" button.
4. In the following window, under "Type of the PG/PC interface" select the type and under
"PG/PC interface" select the interface through which you are connected to the ET 200SP.
5. Update the list.
6. In the table "Accessible devices in the network", select the ET 200SP.
7. Activate the button "Assign name".
8. When the status has changed to "OK", close the dialog.
9. Save your project.
2.8.7. Exercise 14: Creating a New Device Group and Grouping Devices
Task:
You are to store the devices (PLC_1 and IO-Device) in a common group.
What to Do:
1. In the Project tree, select the Project name.
2. With the "Create new group" icon, create a new device group.
3. Change the name of the group to "Area_1".
4. Move the Controller "PLC_1" and the IO-Device "IO-Device" into the folder "Area_1".
5. Save your project.
2.8.8. Exercise 15: Copying the PLC Program from the Global Libraries
Task
You are to copy the Start program with the necessary PLC tags and PLC data types from the
Global library "PRO3_Lib".
What to Do
1. Open the Global library "PRO3_Lib". You will find it in the folder
C:\02_Archives\TIA_Portal\TIA-PRO3.
2. In the library, open the folder "Master copies\02_Chapter2".
3. Copy the object "PLC data types" into the folder ‘PLC data types’.
4. Copy the object "PLC_Tags" into the folder ‘PLC tags’.
5. Copy the object "PLC_Start_Pro" into the ‘Program blocks’ folder.
6. Save your project.
Task
You are to compile all the hardware and software of the CPU and download the program and the
hardware configuration into the CPU.
What to Do
1. Compile the entire PLC with hardware and software.
2. Download the configuration and the program into the controller.
3. Check the module LEDs of your CPU. Only green LEDs should be lit and they should not be
flashing!!!
4. Save your project.
Task Description
You are to commission the WinCC RT station via which you can operate your "system". The data
block "InterfaceRT" serves as the interface between the controller and the WinCC RT station.
So that the WinCC RT can establish a connection to the controller, you must define an access
point and assign the correct interface to it.
For this, the access point must be determined in the WinCC RT ‘Connections’. The default
access point is "S7ONLINE". In case you use this access point for another software, for which the
interface could change, then it is recommended that you create your own access point. You can
add this via the "Set PG/PC Interface" tool.
You can select a real network card when the communication is to be established to a controller
connected via this network card (select the relevant network card). Furthermore, you can specify
that the communication takes place with a simulated CPU (S7-PLCSIM S7-1200/1500 or
S7-PLCSIM Advanced).
2.9.2. Exercise 17: Copying the WinCC RT Station from the Global Libraries
Task
You are to copy the prepared WinCC RT station from the global library "PRO3_Lib".
What to Do
1. In the Global libraries, open "PRO3_Lib" and there open the folder 02_Chapter2.
2. Using drag & drop, copy the library element "WinCC RT" into the "Area_1" folder of your
project (see picture).
3. Save your project.
Task
You are to configure a communications module for the WINCC Runtime and assign it an IP
address.
What to Do
1. Open the Device view for the WinCC RT.
2. As proxy for the Ethernet interface, configure an IE general.
3. Change the IP address as shown in the picture.
4. Save your project.
2.9.4. Exercise 19: Setting Up an HMI Connection between the WinCC RT Station
and the S7-1500
Task
You are to network the WinCC RT Station with the Ethernet network and setup an HMI
connection to the S7-1500.
What to Do
1. Switch to the "Network view" and there select "HMI connection" (see picture).
2. Position the mouse pointer on the small green square of the HMI device and, while keeping
the left mouse button pressed down, drag a connection to the CPU.
The connection is created and is given a default name.
3. In the Graphic Overview in the "Connections" tab, check whether the HMI connection was
correctly created.
4. If necessary, change the name of the connection to "HMI_Connection" (see picture), since
this is the name that is used for the tag declaration in the WinCC RT program.
5. Save your project.
Task
You are to check the connections of the HMI tags to the corresponding PLC tags and - if
necessary - correct them.
What to Do
1. Open the HMI tags "Default tag table" of the WinCC RT station.
2. Check whether all HMI tags are correctly connected to a PLC tag.
3. Compile the entire HMI project.
4. Save your project.
Task
You are to change the name of the access point and assign the relevant interface to it.
What to Do
1. Open the Connections editor of the HIM Runtime.
2. Select (highlight) the created connection "HMI_Connection".
In the selection field ‘Parameter’, the connection partners are schematically presented and
the access point used is displayed.
3. Change the name of the access point to "TIA-PRO3".
4. Save your project.
5. Via the Windows Control Panel open the function "Set PG/PC Interface".
6. Under Access Path > Access Point of the Application, create a new access point with the
name "TIA-PRO3".
7. As a description, specify which applications use this access point.
8. As ‘Interface Parameter Assignment Used’, specify the Ethernet interface.
9. Close the function "Set PG/PC Interface".
What to Do
1. Select the station "WinCC RT".
2. Start the WinCC RT with the help of the icon "Start Runtime on the PC" (see picture).
3. Open the "InterfaceRT" data block which serves as the interface between the WinCC RT
station and the S7-1500.
4. In the Runtime, start the application via the relevant button.
5. Via the lower selection fields, switch to the application "Conveyor".
6. Activate the buttons of the running WinCC RT and observe whether the corresponding bits
are set and reset in the data block.
"conveyorIn".B_bay1
"conveyorIn".B_bay2
"conveyorIn".B_bay3
"conveyorIn".B_lightBarrier
Plant ON
In the operating status "ON" (Automatic), a blank placed on the conveyor at the Pickup station is
transported to the individual stations after the button at the Pickup station is pressed. The
transport belt can be restarted with the help of the button at the station where the blank is. The
sequence is always 3-2-1 (in other words from right to left). From Station 1 (left station), the
finished blank is transported back to the Pickup Station.
If a transport sequence between two stations takes longer than 6 seconds, the belt is stopped.
This is then displayed in the Runtime with the help of a flashing plain text.
Plant OFF
In the operating status "OFF" (Manual mode), the transport belt can be moved to the right and to
the left in Jog mode with the help of the buttons.
Freely configurable
Defined (reserved)
connections
connections
Configured
Configurable free connections
reserved connections
You will find an overview of the reserved, available connection resources of the S7-1500
automation system in the Properties of the CPU in the Inspector window of the Hardware and
Network editor.
Offline View
In the Offline view (picture), the available and the configured resources of the station and the
individual modules (CPUs, CPs und CMs) are displayed. If the sum of the maximum resources of
the modules exceeds the station limit (depends on the CPU), this is indicated with a warning
triangle.
Online View
When you are connected to the CPU online, you can display how many resources are currently
being used in the Inspector window > "Diagnostics" in the "Connection information" tab.