IK-TIAPN 05E PROFINET Configuration

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

Contents 5
5. PROFINET Configuration ....................................................................................... 5-2
5.1. Manual Commissioning of a PN IO-System ......................................................................... 5-3
5.2. Manual Commissioning Sequence ....................................................................................... 5-5
5.3. Name Assignment using the TIA Portal with Project ............................................................ 5-6
5.3.1. Definition of the PROFINET Device Name in the Project ..................................................... 5-6
5.3.2. Assigning the PROFINET Device Name via the Project ...................................................... 5-7
5.3.3. Writing the PROFINET Device Name onto the MMC ........................................................... 5-8
5.4. Name Assignment using the TIA Portal without Project ....................................................... 5-9
5.5. Download the PROFINET-IO Configuration to the IO-Controller ....................................... 5-11
5.6. Device Exchange without Programming Device ................................................................. 5-12
5.7. Task Description: Commissioning the S7-1500 Case ........................................................ 5-13
5.7.1. Exercise 1: Creating a Project ............................................................................................ 5-14
5.7.2. Exercise 2: Configuring and Parameterizing the S7-1500 .................................................. 5-15
5.7.3. Exercise 3: Creating a TP700 Comfort ............................................................................... 5-16
5.7.4. Exercise 4: Configuring and Parameterizing the ET200SP ................................................ 5-17
5.7.5. Exercise 5: Networking & Grouping the Devices ................................................................ 5-18
5.7.6. Exercise 6: Inserting a Tag Table from the Library ............................................................. 5-19
5.8. Additional Information ......................................................................................................... 5-21
5.8.1. Device Number of an IO-Device ......................................................................................... 5-22

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-1
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

PROFINET Configuration
5. Objectives

At the end of the chapter the participant will ...

... be able to configure PROFINET-IO networks in the TIA Portal

... be able to assign parameters to an IO-Device

... understand the storing of PROFINET device names

SITRAIN
IK-TIAPN / PROFINET Configuration Page 2 Siemens AG © 2016

IK-TIAPN – PROFINET Configuration


5-2 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

5.1. Manual Commissioning


Manual of a PN
Commissioning of aIO-System
PN IO-System

Assign
Namen zuweisen über
name via
C-Plugoder
TIA Portal,C-Plug
TIA-Portal, MMC
or MMC

Load configuration
onto IO-Controller

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 3 PROFINET Configuration
Manual Name Assignment for a PROFINET IO-System
So that the individual devices are accessible during system startup of the IO-Controller, they are
given device names. This is done during the manual commissioning of the PN IO-System by the
IO-Supervisor.
If the commissioning is done manually, it must however be kept in mind that the device names
which are downloaded into the IO-Controller via the hardware configuration must match those
which the IO-Supervisor assigns to the individual IO-Devices. That is, the device names which
were assigned offline for the individual IO-Devices must match the online device names. This is
comparable with the setting of the PROFIBUS address. If errors are made here, the IO-Device
cannot be reached by the IO-Controller.
The PROFINET name of a device must comply with the PROFINET name convention!

PROFINET Name Convention


The following lists the rules for the converted name. The hardware configuration checks whether
the name conventions are complied with and, if necessary, corrects them. If the converted name
is not to differ from the name of the module, then the name of the module must satisfy these
rules:
• The name is limited to a total of 128 characters (letters "a" to "z", numbers "0" to "9",
hyphen or dot)
• The name consists of one or more labels, which are to be separated by a dot ".".
• A label within the device name, that is, a character string between two dots, may be a
maximum of 63 characters.
• No special characters such as vowel mutations, brackets, underscore, forward slash,
blank etc. The hyphen is the only special character allowed.
• No capital letters may be used in the device name.
• The device name must not begin with the characters "-" or "." and it must not end with
these characters.

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-3
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

• The device name must not begin with numbers.


• The device name must not begin with the character string "port-xyz-" (x, y, z = 0...9).
• The device name must not have the format n.n.n.n (n = 0...999)
Device names are assigned to the PROFINET IO devices in the commissioning phase.

IK-TIAPN – PROFINET Configuration


5-4 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

5.2. Manual Commissioning


Manual Sequence
Commissioning Sequence

Delivered condition / Factory settings


Device only has a MAC address

IO-Supervisor writes the device name in the IO-


DEVICE or on the MMC of the IO-Device

IO-Supervisor downloads the PROFINET-IO


configuration into the IO-Controller

IO-Controller recognizes the


IO-Device via the name and writes the IP address
in this IO-Device during system startup

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 4 PROFINET Configuration
Manual Commissioning Sequence of a PROFINET IO-System
The manual commissioning of a PROFINET IO-System can be divided into the following steps:
• Delivered condition / Factory settings:
The device is commissioned for the first time or it is reset to its factory settings. The
device has no IP address and no device name. It can only be addressed via its MAC
address.
• Device name assignment:
If the commissioning is done manually, the IO-Device can be assigned a device name in
two ways. The device name can always be written in the IO-Device by the IO-Supervisor.
For this, various software packages can be used (TIA Portal, PST-Tool, etc…). If the IO-
Device supports an MMC, the device name can also be written directly onto the card
using the PG or using a PC with a connected USB prommer.
• Downloading the PROFINET-IO configuration into the IO-Controller:
After all devices have been assigned a device name either directly via the relevant tools
or using the MMC card, the PN-IO configuration is downloaded into the IO-Controller.
• IP addresses assignment:
After the PN-IO configuration is downloaded into the IO-Controller, the controller
searches for the PROFINET device names in the network during startup. As soon as one
of these names has been found, the IO-Controller assigns the IP address stored in the
configuration for this name. The IO-Controller and not the IO-Supervisor assigns the IP
address to the IO-Device.

Note
If the IO-Supervisor writes the device name directly in the IO-Device and there is an MMC or a C-
Plug in the device at the time, the device name is stored on this medium and so permits a device
exchange without programming device.

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-5
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

5.3. Name
Name Assignment using the TIA Portal with Project
Assignment using the TIA Portal with Project:
5.3.1.Definition of of
Definition the PROFINET
the PROFINET Device Namein the Project
Device Name

Possible in Network view


and Topology view

PROFINET device name is standard-compliant PROFINET device name is not standard-compliant

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 5 PROFINET Configuration
Name Assignment using the TIA Portal with Project
The TIA Portal makes it possible to assign names to IO-Devices with or without a project.

Definition of the PROFINET Device Name in the Project


The user can define the PROFINET device name with the help of a project either in the Device
view or in the Topology view in the Properties of the IO-Device.
The PROFINET device name of a PROFINET device is either automatically generated or
assigned manually by the user. If the option: “Generate PROFINET device name automatically” is
activated, the PROFINET device name is derived from the general name of the device. If this is
not the case, a name can be assigned here which differs from the general name.
Activating or deactivating this function has no influence on the control and the compliance with
the PROFINET name convention, however. This is always executed by the TIA Portal and the
name assigned by the user is automatically corrected by the system in case of an error.
Whether the name complies with the convention or not can be checked in the field: “Converted
name”. If the converted name complies with the PROFINET device name, the PROFINET device
name is defined according to the PROFINET name convention. This is a benefit for the user
because he can immediately carry out the control of the name convention while defining the
device name!

Note
The PROFINET device name must not have any capital letters. These are automatically
converted into lowercase letters by the TIA Portal. Attention should be paid to this when assigning
the device name.

IK-TIAPN – PROFINET Configuration


5-6 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal
Name Assignment using the TIA Portal with Project:
5.3.2.Assigning the
Assigning Device
the Name
PROFINET Device Name via the Project

Possible in Network view


and Topology view

Name cannot be changed

Found IO-Device of the


same type

Writes the name directly in


the IO-Device

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 6 PROFINET Configuration
Assigning the PROFINET Device Name via the Project
The assignment of the name defined in the hardware configuration of the IO-Controller for the
respective IO-Device can either be done in the Device view or in the Topology view. A right-click
on the IO-Device calls the dialog “Assign device name”.
In the dialog that now opens, the name stored in the hardware configuration can be assigned to
the selected IO-Device. This PROFINET device name can no longer be changed in this step! The
advantage of this method is that the PROFINET device name which the IO-Controller searches
for during its startup always matches the device name which is loaded on the IO-Device!

Note
A right-click on the PROFINET IO-System also calls the dialog “Assign device name”. The
difference here to the execution on the IO-Device is that now the PROFINET device name which
is to be assigned can be selected via a selection window. That is, all available PROFINET-IO
Device names are displayed for selection which now can be assigned successively.
For the assignment of several IO-Devices, this is in particular a considerable reduction in
workload!

If an MMC or a C-Plug is inserted in the IO-Device while the PROFINET device name is being
written to the device, the device name is written onto the MMC / C-Plug and is lost on the device
when the MMC / C-Plug is pulled!

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-7
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal
Name Assignment using the TIA Portal with Project:
5.3.3.Writing thethe
Writing Device NameDevice
PROFINET onto Name
the MMC
onto the MMC

MMC must be Possible in Network


inserted in the PG/PC view and Topology view

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 7 PROFINET Configuration
Writing the PROFINET Device Name onto the MMC
If a Micro Memory Card is inserted in the PG or the USB prommer, the PROFINET device name
can also be written directly onto the MMC and then inserted into the IO-Device. The IO-Device
then adopts the PROFINET device name during its startup.
This function can be executed both in the Device view and the Topology view by right-clicking on
the IO-Device.

Note
The function “Write IO-Device name to Micro Memory Card” is only displayed if the IO-Device
supports this function!

IK-TIAPN – PROFINET Configuration


5-8 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

Name Assignment using the TIA Portal without Project:


Nameand
5.4. Defining Assignment the Device
Assigningusing the TIA Name
Portal without Project

Manually assign device name

Select the desired IO-Device


via the interface

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 8 PROFINET Configuration
Name Assignment using the TIA Portal without Project
With the help of the TIA Portal, every IO-Device can be assigned a PROFINET device name. For
this, no additional software and also no project is required.
The user can search for all accessible devices using the ‘Online access’. Then, the IO-Device to
be initialized is selected and the function: “Online & diagnostics” is called. Here, in the “Functions”
tab and the “Assign name” menu item, the IO-Device can be assigned a PROFINET device
name. However, it must be noted here that the user must enter the name himself. If this name
later does not match the name that is loaded into the IO-Controller, the IO-Controller will not be
able to find this IO-Device.

Note
The IO-Device does not require an IP address to execute the “Assign name” function! However, it
must be noted that to identify the IO-Device with the help of the TIA Portal, the following
requirements must be fulfilled:
• The IO-Device must be assigned an IP address.
• The IP address of the IO-Device must be located in the same subnet as the PG or the
PC on which the TIA Portal is installed.

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-9
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

If these requirements are fulfilled, the IO-Device is presented in the “General” tab as follows:

If these are not fulfilled, this presentation is as shown:

With the help of the TIA Portal, a temporary IP address can be assigned to every IO-Device!

IK-TIAPN – PROFINET Configuration


5-10 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

Downloading the PROFINET-IO


5.5. Configuration
Download theto the IO-ControllerConfiguration to the IO-Controller
PROFINET-IO

PROFINET-IO configuration is
downloaded via the HW-Config

Maximum configuration time for


each IO-Device

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 9 PROFINET Configuration
Downloading the PROFINET-IO Configuration
After all IO-Devices have been assigned a PROFINET device name, the PROFINET-IO
configuration must finally still be downloaded to the IO-Controller. This is executed by
downloading the hardware configuration into the IO-Controller. In the HW-Config, all device
names of the IO-Devices are stored which are assigned to this IO-Controller. Then during its
startup phase, the IO-Controller searches for the PROFINET device names. It assigns the
PROFINET-IO configuration which is stored in the hardware configuration to the corresponding
IO-Device names.

Configuration Time for an IO-Device


In the hardware configuration of the IO-Controller, you can define in the menu item: “Startup” the
maximum time the IO-Controller is to try to configure (parameterize) the IO-Device. The default
setting for this option is 60 seconds. The IO-Controller will try for 60 seconds to configure
(parameterize) each IO-Device.

Note
If, after downloading the hardware configuration using the TIA Portal, the option: “Start all” is
selected, the IO-Device cannot be configured by the IO-Controller. The TIA Portal cannot be
addressed for the set configuration time!

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-11
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

5.6. Device Exchange


Device without
Exchange Programming
without Device
Programming Device

Removable media MMC Removable media C-Plug

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 10 PROFINET Configuration
Device Exchange without Programming Unit
As previously mentioned, there are PROFINET-IO Devices which support an MMC or a C-Plug.
These make the function: “Device replacement without programming device” possible in the
PROFINET-IO System.
Since, for an IO-Device with an MMC or a C-Plug, the PROFINET device name is not written in
the internal memory of this IO-Device, the MMC or the C-Plug can simply be removed from the
defective device and inserted in the exchange IO-Device when a device fails. The new IO-Device
is automatically initialized with the PROFINET device name of the defective device and the
PROFINET-IO System continues running without an error.
Premise for this of course is that the new IO-Device has the same configuration as the defective
IO-Device.

Note
The removable media, that is, the MMC or the C-Plug, must be purchased separately!

IK-TIAPN – PROFINET Configuration


5-12 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

Task Description:
Creating
5.7. Taska Project + Commissioning
Description: the 1500
Commissioning Case Case
the S7-1500

SITRAIN
IK-TIAPN / PROFINET Configuration Page 11 Siemens AG © 2016
Task Description
You are to commission the 1500 case. You are to create the hardware configuration of the
different devices and parameterize the individual modules. Then you are to network them and
load the individual devices with the information from the project.

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-13
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

Exercise
5.7.1. 1: Creating
Exercise a Project
1: Creating a Project

SITRAIN
IK-TIAPN / PROFINET Configuration Page 12 Siemens AG © 2016
Task
You are to create a new TIA Portal project in which you will solve most of the following tasks. You
can decide what name you wish to give your project and also where you want to store it!

What to Do
1. Open the TIA Portal.
2. In either the Project view or in the Portal view, create a new project. The name assignment is
you choice. You can define the storage location anywhere on D-drive.

IK-TIAPN – PROFINET Configuration


5-14 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal
Exercise 2:
5.7.2.Configuring
Exercise 2:and Parameterizing
Configuring the S7-1500
and Parameterizing the S7-1500

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 13 PROFINET Configuration
Task
You are to configure and parameterize the S7-1500. The digital input and output modules are to
be given the addresses from 0-3 and the analog input module is to be given the range from 44-
59.
The S7-1500 gets the IP address 192.168.222.13 with the subnet mask 255.255.255.0. The
device name is: “1513-io-controller”.

What to Do
1. Add an unspecified S7-1500 to your project.
2. Detect the configuration of the connected S7-1500.
3. Adjust the I/O addresses of the modules according to the picture and the task.
4. Assign the IP address 192.168.222.13 with the subnet mask 255.255.255.0.
5. The CPU gets the name: 1513-io-controller.
6. Save your project.

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-15
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

5.7.3.Exercise 3: 3:
Exercise Creating
CreatingaaTP700
TP700 Comfort
Comfort

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 14 PROFINET Configuration
Task
You are to create a new Comfort Panel TP700 Comfort. This Panel does not have to have any
content but must simply exist in the project. The Panel gets the IP address 192.168.222.70 with
the subnet mask 255.255.255.0. The device name for the Panel is “touch-me”.

What to Do
1. Insert a new TP700 Comfort in your project.
2. Set the interface of the Panel to the IP address 192.168.222.70 with the subnet mask
255.255.255.0.
3. Name the Panel “touch-me”.
4. Save your project.
5. Download the Panel with your changes.

IK-TIAPN – PROFINET Configuration


5-16 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal
Exercise 4:
5.7.4.Configuring
Exercise 4:and Parameterizing
Configuring the ET200SP
and Parameterizing the ET200SP

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 15 PROFINET Configuration
Task
In your project, you are to generate an ET200SP and configure as well as parameterize it. The
digital inputs and outputs are to be in the address range of 4-5, the analog I/Os get the range 6-
13. The ET200SP is assigned the IP address 192.168.222.200 with the subnet mask
255.255.255.0. The PROFINET device name for the IO-Device is “et200sp-io-device”. After the
configuration and parameterization, assign this name to the Online-Device. The initial generation
of the ET 200SP occurs via the Hardware detection. Subsequently, the configuration and
parameterization still has to be completed.

What to Do
1. Generate a new ET 200SP. For this, use the menu command: "Hardware detection / IO
devices" in the "Online" menu in the menu bar of TIA Portal.
2. If necessary, carry out changes in the parameterization of the ET 200SP that still have to be
made according to the task.
3. Assign the IP address 192.168.222.200 with the subnet mask 255.255.255.0 for the IO-
Device.
4. Offline in the Hardware Configuration rename the ET 200SP "et200sp-io-device".
5. Go into the Properties of the “AI 4xU/I 2-wire ST” module and adjust the potential group to
“Enable new potential group (light BaseUnit)”.
6. Save your project.
7. Assign the Online-Device the device name just configured.

Note
The modules can only be parameterized after the devices have been networked. Therefore, work
through the following exercise and then return to this exercise!

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-17
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

5.7.5.Exercise 5: 5:
Exercise Networking
Networking&&grouping the Devices
Grouping the Devices

Subnet mask: 255.255.255.0


Network address: 192.168.222.0

Name: touch-me
IP: 192.168.222.70

Name: 1513-io-controller
IP: 192.168.222.13

Name: et200sp-io-device
IP: 192.168.222.200

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 16 PROFINET Configuration
Task
You are to network all devices in the Network view and check the settings such as IP address
and device name. With the networking, a PROFINET IO-System between the ET200SP and the
S7-1500 is to result.
Finally, you are still to group the devices in the TIA Portal Project tree. For this, you are to create
a group with the name: "1513Case".

What to Do
1. Switch to the “Network view” in your project.
2. Network the individual devices one below the other.
3. Check the IO-System between S7-1500 and ET200SP. The ET200SP must be assigned to
the S7-1500 as an IO-Device.
4. Then parameterize the I/O addresses of the ET200SP according to the task from the previous
exercise.
5. Check the IP addresses of the individual modules as well as their device names.
6. Also check whether the option: “Generate PROFINET device name automatically” is activated
for each PROFINET interface:

7. In your Project tree, create a new group with the name "1513Case". Then, assign the S7-
1500, the ET 200SP as well as the TP700 to this group.
8. Save your project.

IK-TIAPN – PROFINET Configuration


5-18 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal
Exercise 6:
5.7.6.Inserting a Tag
Exercise Table from
6: Inserting a Tagthe Library
Table from the Library

SITRAIN © Siemens AG 2018 IK-TIAPN


Page 17 PROFINET Configuration
Task
You are to insert the prefabricated tag table from the “IK-TIAPN” library into your project. The
library can either be opened immediately or it must first still be retrieved. In this case, retrieve the
library in the same folder as the archive file is located.
You will find the library under the following path on your computer:
C:\Archives\TIA_Portal\IK-TIAPN

What to Do
1. Open or retrieve (unzip) the library.
2. Open the Chapter5 (folder) of the IK-TIAPN library and, using drag & drop, drag the
“1513CaseVariables” into your project under “PLC tags”.
3. Save your project.
4. Load the controller.
5. All modules should now have the status OK, that is, show a green light. If this is not the case,
check your configuration of the modules.

Note
Since you are working with a fail-safe CPU here, you must set the “Full access incl. fail-safe
(no protection)”.

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-19
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

Note
If the offline configured access node of the PLC is not located in the subnet of the physical
device, TIA Portal will automatically query whether you are assigning an IP address in the
address range 192.168.x.241 to 192.168.x.250 of the network card.

IK-TIAPN – PROFINET Configuration


5-20 Training Document, V15.01.00
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

WennAdditional
5.8. Sie noch mehr wissen wollen
Information

SITRAIN
IK-TIAPN / PROFINET Projektierung Seite 18 Siemens AG © 2016
Note
The following pages contain either additional information or are for reference to complete a topic.

IK-TIAPN – PROFINET Configuration


Training Document, V15.01.00 5-21
Industrial Communication, PROFINET with Industrial Ethernet in the TIA Portal

Device
5.8.1. Number
Device of an
Number of IO-Device
an IO-Device

Is wird
required
bei einigen
for some
Anweisungen
instructions
benötigt

SITRAIN
IK-TIAPN / PROFINET Configuration Page 19 Siemens AG © 2016
Device Number of an IO-Device
The device number of an IO-Device is automatically assigned by the TIA Portal when an IO-
Device is created. The device number must be unique in the PROFINET I/O-System, but it can
still be manually adjusted later on. The device number of the IO-Controller is always ‘0’ and
cannot be manually changed.
Various instructions require the device number and not the device name or the geographic
address of a module in order to be able to address it.

IK-TIAPN – PROFINET Configuration


5-22 Training Document, V15.01.00

You might also like