Config Idevice Standard DOCU V20 en PDF
Config Idevice Standard DOCU V20 en PDF
Config Idevice Standard DOCU V20 en PDF
https://support.industry.siemens.com/cs/ww/de/view/109478798
Warranty and Liability
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this application example will be excluded. Such an exclusion will not
apply in the case of mandatory liability, e.g. under the German Product Liability Act
("Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life, body
or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
© Siemens AG 2019 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.automation.siemens.com.
I-Device
Entry ID: 109478798, V2.0, 07/2019 2
Table of Contents
Table of Contents
Warranty and Liability ................................................................................................. 2
1 Task and Solution .............................................................................................. 4
1.1 Task Description ................................................................................... 4
1.2 Possible solution .................................................................................. 4
1.3 Application area and usage .................................................................. 6
2 Basics on the I-Device....................................................................................... 7
2.1 Description of the functionality ............................................................. 7
2.2 Principle of data exchange ................................................................... 9
2.3 Diagnostics and alarm behavior ......................................................... 10
2.4 Information on topology and use ........................................................ 11
2.5 Description of PNIO_SEND and PNIO_RECV................................... 12
3 Configuration ................................................................................................... 13
3.1 S7-CPU as I-Device ........................................................................... 13
3.1.1 Infrastructure information ................................................................... 13
3.1.2 Implementing and configuring the devices ......................................... 14
3.1.3 Configuring the I-Device function ....................................................... 17
3.1.4 Address assignment and loading ....................................................... 20
3.1.5 Testing the I-Device function .............................................................. 21
3.2 SIMATIC-NET CP as an I-Device ...................................................... 22
3.2.1 Infrastructure information ................................................................... 22
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 3
1 Task and Solution
Requirement
The following requirements have to be considered:
• efficient engineering, even for fail-safe applications
• consistent decrease of engineering costs and commissioning time
• Reduction of the required network and system components
• Simplification of the communication of machines and systems
• simple communication between heterogeneous systems
Description
The I-Device function can be used to exchange data between two controllers very
easily.
An "I-Device” is an "intelligent CPU/CP used as an IO device”. This function
enables PROFINET to communicate not only with subordinate devices like IO
controllers, but also IO communication with other higher-level or central controllers
as an IO device.
I-Device
Entry ID: 109478798, V2.0, 07/2019 4
1 Task and Solution
Schematic diagram
Figure 1-1
IO controller
PROFINET
IO device/ IO device
IO controller
(I-Device)
IO device/
IO controller (I-Device)
© Siemens AG 2019 All rights reserved
IO device
I-Device allows for a very simple and fast communication between two PROFINET
IO devices (or PN IO controllers) in the same subnet that can take place
simultaneously and on one bus. With I-Device enables access to the IO address
via the PROFINET IO protocol without using PN/PN couplers.
Usable component
The I-Device function is supported by the following modules:
• S7-300 (from V3.2)
• CP 343-1 (Adv.)
• S7-400 (from V6)
• S7-1500
• S7-1200 (from V4)
• ET 200S/ET200SP/ET200pro CPU
• SIMOTION
I-Device
Entry ID: 109478798, V2.0, 07/2019 5
1 Task and Solution
Data concentrator
Distributed I/O
© Siemens AG 2019 All rights reserved
Vehicle 1 Vehicle n
(S7-1200) (S7-1500 + CP)
This system has each carrier equipped with a CPU as I-Device. There is an
additional, separate CPU as central controller for all carriers.
Communication to the central PLC is made via I-Device by instancing the carriers
in the hardware configuration. This allows for the network to address each carrier in
the using a unique device name and the CPU to use a unique IO address range.
Advantages
• Leaner and more flexible topology
• Simple interconnection of controllers from several projects
• Integration of Siemens controllers with controllers of other manufacturers in a
network (via GSD files).
• Elimination of PN/PN couplers
• Consistent communication to all network devices without additional router
mechanisms
I-Device
Entry ID: 109478798, V2.0, 07/2019 6
2 Basics on the I-Device
I-Device function
The "I-Device” function enables a CPU or CP to exchange data with an IO
controller and can be used as intelligent unit for preprocessing partial processes.
Preprocessing is carried out in the user program of the "I-Device” CPU. The values
acquired in central or distributed (PROFINET or PROFIBUS) I/O are preprocessed
by the user program and are made available to the IO controller via a PROFINET
IO interface of the CPU.
Data exchange
© Siemens AG 2019 All rights reserved
The guiding principle of the I-Device method is to use the known process image in
a CPU.
From the higher-level IO controller’s view, communicating to an I-Device is similar
to communicating to a distributed IO with the usual read and write processes at
inputs and outputs.
From the I-Device’s view, data transfer to a higher-level IO controller is also analog
to the data transfer to the local or assigned distributed IO via inputs and outputs.
With the use of the process image in the programming, an engineering tool, for
example, can directly access all devices in the network – without having to
implement additional routing mechanisms.
Configuration options
Basically, there are two possibilities for configuration:
1. Configuring an I-Device within a project.
2. Configuring an I-Device that is used in another project or in another
engineering system.
When configuring an I-Device for another project or for another engineering
system, STEP 7 enables you to do this by exporting a configured I-Device in a
GSD file. The GSD file can be imported in the other project or the other
engineering system like other GSD files. This allows not only for communication
within the project, but also communication across projects and data exchange
between different manufacturers in a tried and tested way.
Variants of I-Devices
There are the following variants of I-Devices:
• The CPU has only central modules.
• The CPU has central modules and its own IO system with distributed IO.
I-Device
Entry ID: 109478798, V2.0, 07/2019 7
2 Basics on the I-Device
PROFINET
I-Device IO device
PROFINET
I-Device/ IO device
IO controller
DP master
I-Device
Entry ID: 109478798, V2.0, 07/2019 8
2 Basics on the I-Device
Transfer areas
Transfer areas are the IO areas which are used to exchange data between the
I-Device and the higher-level IO controller.
Each transfer area contains an information unit that is consistently exchanged
between the IO controller and I-Device.
These areas are defined when configuring the I-Device function and are then,
amongst others, included in the GSD file that is created afterwards.
The transfer areas are restricted as follows:
Table 2-1
Description Data
Max. size of the transfer memory for inputs and outputs per AR 1440 bytes (inputs)
© Siemens AG 2019 All rights reserved
(gross values, net minus user data supplement) 1440 bytes (outputs)
Max. user data consistency length (max. size of a transfer area) 1024 bytes
Number of transfer areas (can be distributed to the max. number 64
of supported ARs)
Note S7-1200, S7-300, S7-400 and ET 200S CPU as I-Device support up to two
Application Relations (AR), S7-1500 as I-Device a maximum of four ARs.
NOTICE The address range of the configured transfer areas directly influences the usable
bandwidth of the I-Device:
Bandwidth of the transfer areas + bandwidth of the subordinate IO system = total
bandwidth used at I-Device
A transfer area address range that is too large results in higher demand of
bandwidth and can therefore lead to higher update times.
I-Device
Entry ID: 109478798, V2.0, 07/2019 9
2 Basics on the I-Device
Diagnostic capabilities
The higher-level IO controller and the I-Device CPU have the following diagnostic
mechanisms available:
• OB 83 (insert/remove)
• OB 85 (program sequence error; only S7-300/400)
• OB 86 (rack failure)
• OB 122 (I/O access errors)
In addition, TIA Portal offers commands (only S7-1200/1500) for local
troubleshooting and diagnostics:
• GET_ERROR (retrieve error locally)
• GET_DIAG (read diagnostics information of a module)
IO diagnostic messages
© Siemens AG 2019 All rights reserved
The IO diagnostic messages can be processed in the user program of the I-Device
CPU and are transferred from there via transfer areas to the higher-level IO
controller.
The IO controller must individually evaluate these diagnostics data in the user
program.
I-Device
Entry ID: 109478798, V2.0, 07/2019 10
2 Basics on the I-Device
Connect an I-Device with three or more ports via the I-Device with one or both
ports with the higher-level IO system in line topology. Use the third port for its
own (subordinate) IO system.
I-Device
Entry ID: 109478798, V2.0, 07/2019 11
2 Basics on the I-Device
The figure below shows the call of the PNIO_RECV and PNIO_SEND blocks in the
user program.
Figure 2-3
Note Further information about the blocks is available in the system manual \4\.
I-Device
Entry ID: 109478798, V2.0, 07/2019 12
3 Configuration
3 Configuration
3.1 S7-CPU as I-Device
3.1.1 Infrastructure information
Software package
Install STEP 7 Professional V15.1 on a PC/PG.
Required devices/components:
To set up the environment, use the following components:
• A CPU 1516-3 PN/DP
• A CPU 1214C
• Two SIMATIC memory cards
• One or two 24V power supplies with cable connector and terminal block plug
(the modules can also be operated with a shared power supply)
• DIN rail with mounting accessories for the S7-1x00
• A PG/PC with the configuration tool "STEP 7 Professional V15.1” installed
• The necessary network cables, TP cables (twisted pair) according to the
© Siemens AG 2019 All rights reserved
Note Provided the module supports I-Device functionality, you can also use another
PROFINET CPU.
The configuration described below explicitly refers only to the components listed
in "Required devices/components".
I-Device
Entry ID: 109478798, V2.0, 07/2019 13
3 Configuration
Preparation
Open the TIA Portal configuration software and create a new project.
I-Device
Entry ID: 109478798, V2.0, 07/2019 14
3 Configuration
Result
The interface is now connected to a new subnet of the suitable subnet type. When
this is done, the address parameters of the interface are set consistently
automatically.
5. Select CPU 1214C (I-Device) in the project tree and open its folder.
I-Device
Entry ID: 109478798, V2.0, 07/2019 15
3 Configuration
Result
The interface and the selected subnet are now connected. When this is done, the
address parameters of the interface are set consistently automatically.
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 16
3 Configuration
Prerequisite
The device view of the CPU 1214C is now active and the properties of the selected
interface are displayed in the inspector window.
2. You can select the IO controller from the "Assigned IO controller” drop-down
list. Then, the networking and the IO system between both devices is displayed
in network view.
I-Device
Entry ID: 109478798, V2.0, 07/2019 17
3 Configuration
Note If you use the I-Device with a subordinate IO system, the PROFINET interface
(e.g. port parameters) of the I-Device cannot be configured by the higher-level
IO controller.
Result
© Siemens AG 2019 All rights reserved
The CPU 1214C has now been configured as I-Device and takes on the role of an
IO device in the PROFINET network.
I-Device
Entry ID: 109478798, V2.0, 07/2019 18
3 Configuration
Note
If required, you can adjust the addresses to your environment and specify the
length of the transfer area to be transferred consistently.
I-Device
Entry ID: 109478798, V2.0, 07/2019 19
3 Configuration
Result
One individual entry for each transfer area is created below the "Operating mode”
parameter group. Select one of these entries to adjust or correct and comment on
the details of the transfer area.
Connect the PG to a free port at a controller to assign the device name and load
© Siemens AG 2019 All rights reserved
1. In STEP 7, select the respective IO device using the MAC address in the
"Accessible devices” dialog.
2. Click on "Assign Name” to load the configured device name into the IO device.
3. The IO controller recognizes the IO device using its device name and
automatically assigns the configured IP address to the IO device.
I-Device
Entry ID: 109478798, V2.0, 07/2019 20
3 Configuration
After the previous chapters, the I-Device function is now complete and both
controllers have established a PROFINET communication relationship.
You can very easily test the functionality using transfer areas.
3. Set the output byte 0 of the I-Device CPU to the desired value. The input byte
0 on the IO controller side takes on this value.
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 21
3 Configuration
Software package
Install STEP 7 Professional V15.1 on a PC/PG.
Required devices/components:
To set up the environment, use the following components:
• A CPU 1511-1 PN
• A CPU 315-2 DP
• A CP 343-1 lean
• A SIMATIC MEMORY CARD and a Micro Memory Card (MMC)
• One or two 24V power supplies with cable connector and terminal block plug
(the modules can also be operated with a shared power supply)
• DIN rail with mounting accessories for the S7-1500 and S7-300
• A PG/PC with the configuration tool "STEP 7 Professional V15.1” installed
• The necessary network cables, TP cables (twisted pair) according to the
IE FC RJ45 standard for Industrial Ethernet
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 22
3 Configuration
Preparation
Open the TIA Portal configuration software and create a new project.
I-Device
Entry ID: 109478798, V2.0, 07/2019 23
3 Configuration
Result
The interface is now connected to a new subnet of the suitable subnet type. When
this is done, the address parameters of the interface are set consistently
automatically.
5. Select CPU 315-2 DP (I-Device) in the project tree and open its folder.
7. In the graphical view, select the component interface of the CP 343-1 Lean to
be networked.
The properties of the selected interface are displayed in the inspector window.
I-Device
Entry ID: 109478798, V2.0, 07/2019 24
3 Configuration
Result
The interface and the selected subnet are now connected. When this is done, the
address parameters of the interface are set consistently automatically.
I-Device
Entry ID: 109478798, V2.0, 07/2019 25
3 Configuration
Prerequisite
The device view of CPU 315-2 DP is now active and the properties of the selected
interface are displayed in the inspector window. Select CP 343-1 Lean for the
following steps.
2. You can select the IO controller from the "Assigned IO controller” drop-down
© Siemens AG 2019 All rights reserved
list. Then, the networking and the IO system between both devices is displayed
in network view.
I-Device
Entry ID: 109478798, V2.0, 07/2019 26
3 Configuration
Note If you use the I-Device with a subordinate IO system, the PROFINET interface
(e.g. port parameters) of the I-Device cannot be configured by the higher-level IO
controller.
Result
The CP 343-1 Lean has now been configured as I-Device and takes on the role of
an IO device in the PROFINET network.
Note
If required, you can adjust the addresses to your environment and specify the
length of the transfer area to be transferred consistently.
I-Device
Entry ID: 109478798, V2.0, 07/2019 27
3 Configuration
Result
One individual entry for each transfer area is created below the "Operating mode”
© Siemens AG 2019 All rights reserved
parameter group. Select one of these entries to adjust or correct and comment on
the details of the transfer area.
1. Call the PNIO_RECV and PNIO_SEND blocks in the user program of CPU
315-2 DP.
2. Enter the required data in the block interfaces (see TIA Portal help).
I-Device
Entry ID: 109478798, V2.0, 07/2019 28
3 Configuration
Connect the PG to a free port at the S7-1511-1 PN or CP 343-1 Lean to assign the
device name and load the project data.
The PG interface must be set to TCP/IP and must be in the same IP band as the
controller or CP.
1. In STEP 7, select the respective IO device using the MAC address in the
"Accessible devices” dialog.
2. Click on "Assign Name” to load the configured device name into the IO device.
3. The IO controller recognizes the IO device using its device name and
automatically assigns the configured IP address to the IO device.
To load the project data, select both controllers one after the other in the project
navigation and load the project into the respective module.
Further information on loading can also be found in the TIA Portal Online Help or in
the system manual, see \4\.
I-Device
Entry ID: 109478798, V2.0, 07/2019 29
3 Configuration
After the previous chapters, the I-Device function is now complete. The S7-1511-1
PN controller and the CP 343-1 Lean have established a PROFINET
communication relationship.
You can very easily test the functionality using transfer areas.
2. Add the flags or tags of a data block, which you have assigned to the "Send”
input of the PNIO_SEND program block before, into the tag tables.
In this case:
"Tag_1” = input byte 0 ("%IB0”)
"Tag_2” = output byte 0 ("%QB0”)
3. Set the output byte of the I-Device CPU, which you have assigned to the
"Send” input of the PNIO_SEND program block, to the desired value. The input
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 30
3 Configuration
Software package
Install STEP 7 Professional V15.1 and SIMOTION SCOUT V4.4 on a PC/PG.
Required devices/components:
To set up the environment, use the following components:
• A CPU 1516-3F PN/DP
• A SIMOTION D455-2 DP/PN (S120)
• A SIMATIC MEMORY CARD
• A CompactFlash Card
• One or two 24V power supplies with cable connector and terminal block plug
(the modules can also be operated with a shared power supply)
• DIN rail with mounting accessories for the S7-1500
• A PG/PC with the configuration tools "STEP 7 Professional V15.1” and
"SIMOTION SCOUT TIA V4.4” installed
• The necessary network cables, TP cables (twisted pair) according to the
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 31
3 Configuration
Preparation
Open the TIA Portal configuration software and create a new project.
configuration”.
Result
The interface is now connected to a new subnet of the suitable subnet type. When
this is done, the address parameters of the interface are set consistently
automatically.
I-Device
Entry ID: 109478798, V2.0, 07/2019 32
3 Configuration
5. Select SIMOTION D455-2 DP/PN in the project tree and open its folder.
Result
The interface and the selected subnet are now connected. When this is done, the
address parameters of the interface are set consistently automatically.
I-Device
Entry ID: 109478798, V2.0, 07/2019 33
3 Configuration
Prerequisite
The device view of the SIMOTION D455-2 DP/PN is now active and the properties
of the selected interface are displayed in the inspector window.
2. You can select the IO controller from the "Assigned IO controller” drop-down
© Siemens AG 2019 All rights reserved
list. Then, the networking and the IO system between both devices is displayed
in network view.
I-Device
Entry ID: 109478798, V2.0, 07/2019 34
3 Configuration
Note If you use the I-Device with a subordinate IO system, the PROFINET interface
(e.g. port parameters) of the I-Device cannot be configured by the higher-level
IO controller.
Result
The SIMOTION D455-2 DP/PN has now been configured as I-Device and takes on
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 35
3 Configuration
Note
If required, you can adjust the addresses to your environment and specify the
length of the transfer area to be transferred consistently.
I-Device
Entry ID: 109478798, V2.0, 07/2019 36
3 Configuration
Result
One individual entry for each transfer area is created below the "Operating mode”
parameter group. Select one of these entries to adjust or correct and comment on
the details of the transfer area.
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 37
3 Configuration
In order to enable the I-Device function of the SIMOTION D455-2 DP/PN, the
following steps must be configured. To do this, open SIMOTION SCOUT TIA V4.4.
Defining SystemInterruptTask
The SIMOTION D455-2 DP/PN will go to fault status if a "SystemInterruptTask” is
triggered. This is why you must define routines for these "SystemInterruptTasks”.
1. To do this, right-click in the tree view on "PROGRAMS” under "Insert new
object” and select an "ST source file”.
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 38
3 Configuration
2. In the subsequent window, select the name for the ST source. (Here: "Fault”)
© Siemens AG 2019 All rights reserved
The created programs are now listed in the tree view under the "Fault”
submenu.
4. Repeat step 1 and 2 with the name "Main”.
I-Device
Entry ID: 109478798, V2.0, 07/2019 39
3 Configuration
5. In tree view, open the "ADDRESS LIST” and add the desired input and output
areas (here: input range: "ib8_Adr14116” and output area: "qb8_Adr4120”).
Note In this user program, the output area is identical to the input area of the
SIMOTION D455-2 DP/PN.
I-Device
Entry ID: 109478798, V2.0, 07/2019 40
3 Configuration
2. Drag and drop the programs created here to their respective tasks as shown in
the figure below.
3. All required settings have been made. Save and compile the project in
SIMOTION SCOUT TIA.
I-Device
Entry ID: 109478798, V2.0, 07/2019 41
3 Configuration
Connect the PG to a free port at CPU 1516-3 PN/DP or SIMOTION D455-2 DP/PN
to assign the device name and load the project data.
The PG interface must be set to TCP/IP and must be in the same IP band as the
controller or CP.
1. In STEP 7, select the respective IO device using the MAC address in the
"Accessible devices” dialog.
2. Click on "Assign Name” to load the configured device name into the IO device.
3. The IO controller recognizes the IO device using its device name and
automatically assigns the configured IP address to the IO device.
To load the project data, select both controllers one after the other in the project
navigation and load the project into the respective module.
Further information on loading can also be found in the TIA Portal Online Help or in
the system manual, see \4\.
I-Device
Entry ID: 109478798, V2.0, 07/2019 42
3 Configuration
After the previous chapters, the I-Device function is now complete. The S7-1511-1
PN controller and the SIMOTION D455-2 DP/PN have established a PROFINET
communication relationship.
You can very easily test the functionality using transfer areas.
3. Set the output byte 0 of the IO controller to the desired value. The input byte 0
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 43
4 Links & Literature
5 History
Table 5-1
Version Date Modifications
V1.0 08/2015 First version
V2.0 07/2019 Update TIA Portal V15.1
© Siemens AG 2019 All rights reserved
I-Device
Entry ID: 109478798, V2.0, 07/2019 44