Simotion Scout Communication Manual
Simotion Scout Communication Manual
Introduction 1
Overview of the
communication functions and 2
services
SIMOTION
PROFIBUS 3
SIMOTION SCOUT
Communication 4
PROFINET IO
Ethernet: General
System Manual
information (TCP and UDP 5
connections)
Routing - communication
across network boundaries 6
SIMOTION IT 7
PROFIsafe 8
PROFIdrive 9
Appendix 10
11/2010
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation for the specific task, in particular its warning notices and
safety instructions. Qualified personnel are those who, based on their training and experience, are capable of
identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be adhered to. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Foreword
Content
This document is part of the System and Function Descriptions documentation package.
Scope of validity
This manual is valid for SIMOTION SCOUT V4.2:
● SIMOTION SCOUT V4.2 (engineering system for the SIMOTION product range)
Communication
System Manual, 11/2010 3
Foreword
SIMOTION Documentation
An overview of the SIMOTION documentation can be found in a separate list of references.
This documentation is included as electronic documentation in the scope of delivery of
SIMOTION SCOUT. It comprises 10 documentation packages.
The following documentation packages are available for SIMOTION V4.2:
● SIMOTION Engineering System
● SIMOTION System and Function Descriptions
● SIMOTION Service and Diagnostics
● SIMOTION IT
● SIMOTION Programming
● SIMOTION Programming - References
● SIMOTION C
● SIMOTION P
● SIMOTION D
● SIMOTION Supplementary Documentation
Additional information
Click the following link to find information on the the following topics:
● Ordering documentation/overview of documentation
● Additional links to download documents
● Using documentation online (find and search in manuals/information)
http://www.siemens.com/motioncontrol/docu
Please send any questions about the technical documentation (e.g. suggestions for
improvement, corrections) to the following e-mail address:
[email protected]
My Documentation Manager
Click the following link for information on how to compile documentation individually on the
basis of Siemens content and how to adapt this for the purpose of your own machine
documentation:
http://www.siemens.com/mdm
Communication
4 System Manual, 11/2010
Foreword
Training
Click the following link for information on SITRAIN - Siemens training courses for automation
products, systems and solutions:
http://www.siemens.com/sitrain
FAQs
You can find Frequently Asked Questions on the Service&Support pages under Product
Support:
http://support.automation.siemens.com
Technical support
Country-specific telephone numbers for technical support are provided on the Internet under
Contact:
http://www.siemens.com/automation/service&support
Communication
System Manual, 11/2010 5
Foreword
Communication
6 System Manual, 11/2010
Table of contents
Foreword ................................................................................................................................................... 3
1 Introduction.............................................................................................................................................. 13
1.1 The communications subject in the SIMOTION documentation..................................................13
2 Overview of the communication functions and services........................................................................... 15
2.1 Network options ...........................................................................................................................15
2.1.1 Introduction ..................................................................................................................................15
2.1.2 PROFINET ...................................................................................................................................15
2.1.3 Industrial Ethernet........................................................................................................................16
2.1.4 PROFIBUS...................................................................................................................................16
2.1.5 MPI (Multi-Point Interface) ...........................................................................................................17
2.1.6 Point-to-point communication (PtP) .............................................................................................17
2.2 Communications services (or network functions) ........................................................................18
2.2.1 Introduction ..................................................................................................................................18
2.2.2 PG/OP communication services ..................................................................................................19
2.2.3 S7 communication services .........................................................................................................19
2.2.4 S7 basic communication services................................................................................................19
2.2.5 "Global data" communication service ..........................................................................................20
2.2.6 PROFINET communication services ...........................................................................................21
2.2.7 Industrial Ethernet communication services ................................................................................21
2.2.8 PROFIBUS communication services ...........................................................................................22
2.3 Additional services for the exchange of information ....................................................................23
3 PROFIBUS .............................................................................................................................................. 25
3.1 PROFIBUS communication .........................................................................................................25
3.1.1 PROFIBUS communication (overview)........................................................................................25
3.2 Communication with SIMATIC S7................................................................................................25
3.2.1 Possible communication connections between SIMOTION and SIMATIC .................................25
3.2.2 SIMOTION as DP slave on a SIMATIC S7..................................................................................26
3.2.2.1 Introduction ..................................................................................................................................26
3.2.2.2 Connecting SIMOTION to a SIMATIC S7 as DP slave with the aid of a GSD file.......................27
3.2.2.3 Connecting SIMOTION as an I-slave to a SIMATIC S7 ..............................................................27
3.2.3 SIMATIC S7 as DP slave on a SIMOTION..................................................................................29
3.2.3.1 Introduction ..................................................................................................................................29
3.2.3.2 Connecting SIMATIC to a SIMOTION device as DP slave with the aid of a GSD file.................30
3.2.3.3 Connecting a SIMATIC S7 CPU as an I-slave to a SIMOTION device .......................................30
3.2.4 PROFIBUS master-master connection between SIMATIC and SIMOTION ...............................33
3.2.4.1 Introduction ..................................................................................................................................33
3.2.4.2 SIMATIC S7 system functions for a PROFIBUS connection.......................................................33
4 PROFINET IO.......................................................................................................................................... 39
4.1 PROFINET IO overview...............................................................................................................39
4.1.1 PROFINET IO ..............................................................................................................................39
4.1.2 Application model.........................................................................................................................39
Communication
System Manual, 11/2010 7
Table of contents
4.1.3 IO controller................................................................................................................................. 40
4.1.4 IO device ..................................................................................................................................... 40
4.1.5 PROFINET IO system................................................................................................................. 40
4.1.6 iDevice......................................................................................................................................... 41
4.1.7 RT classes................................................................................................................................... 41
4.1.7.1 RT classes for PROFINET IO ..................................................................................................... 41
4.1.7.2 Send clock and update time........................................................................................................ 42
4.1.7.3 Adjustable send clocks and update times................................................................................... 43
4.1.7.4 Setting RT classes ...................................................................................................................... 45
4.1.7.5 PROFINET IO with RT ................................................................................................................ 46
4.1.7.6 PROFINET IO with IRT - Overview............................................................................................. 47
4.1.7.7 PROFINET IO with IRT (High Performance) .............................................................................. 48
4.1.8 Sync domain ............................................................................................................................... 49
4.1.9 Isochronous operation and isochronous mode with PROFINET ................................................ 50
4.1.10 Addressing of PROFINET IO devices......................................................................................... 51
4.1.11 Planning and topology for a PROFINET network ....................................................................... 52
4.1.12 Isochronous applications with PROFINET.................................................................................. 57
4.1.13 Acyclic communication via PROFINET....................................................................................... 59
4.2 Properties of PROFINET IO with SIMOTION ............................................................................. 59
4.2.1 Introduction ................................................................................................................................. 59
4.2.2 Cycle clock scaling...................................................................................................................... 62
4.2.2.1 Cycle clock scaling with PROFINET IO on SIMOTION devices ................................................. 62
4.2.2.2 Cycle clock scaling for IO accesses............................................................................................ 64
4.2.2.3 Bus cycle clocks that can be adjusted for cycle clock scaling to SIMOTION devices ................ 65
4.2.3 Task system and time response ................................................................................................. 66
4.2.3.1 Overview of SIMOTION task system and system cycle clocks .................................................. 66
4.2.3.2 BackgroundTask, MotionTask, and IPOSynchronousTask ........................................................ 67
4.2.3.3 ServoSynchronousTask .............................................................................................................. 69
4.2.3.4 Fast I/O processing in the ServoSynchronousTask.................................................................... 71
4.2.4 Connection between sync domain and IO systems.................................................................... 71
4.2.5 Redundant sync master .............................................................................................................. 72
4.2.6 Quantity structures ...................................................................................................................... 73
4.3 Configuring PROFINET IO with SIMOTION ............................................................................... 75
4.3.1 New with SIMOTION SCOUT V4.2 or higher ............................................................................. 75
4.3.2 Procedure for configuring PROFINET IO with IRT High Performance ....................................... 76
4.3.3 Inserting and configuring SIMOTION D ...................................................................................... 76
4.3.3.1 General information on inserting and configuring SIMOTION D................................................. 76
4.3.3.2 Inserting and configuring SIMOTION D4x5-2/D410 PN ............................................................. 77
4.3.3.3 Inserting and configuring SIMOTION D4x5 incl. CBE30 ............................................................ 80
4.3.3.4 Adding and configuring a CBE30-PROFINET board .................................................................. 82
4.3.4 Adding and configuring SIMOTION P ......................................................................................... 84
4.3.5 Adding and configuring SIMOTION C......................................................................................... 87
4.3.6 Creating a sync domain .............................................................................................................. 90
4.3.7 Defining send clock and refresh times ........................................................................................ 92
4.3.8 Servo_fast, scaling down of cycle clocks to the servo at the PROFINET interface.................... 96
4.3.9 Configuring a topology ................................................................................................................ 98
4.3.9.1 Topology...................................................................................................................................... 98
4.3.9.2 Topology editor (graphical view) ................................................................................................. 99
4.3.9.3 Interconnecting ports via the topology editor (table view)......................................................... 101
4.3.10 Creating an IO device ............................................................................................................... 102
4.3.11 Inserting and configuring the SINAMICS S120......................................................................... 104
Communication
8 System Manual, 11/2010
Table of contents
Communication
System Manual, 11/2010 9
Table of contents
Communication
10 System Manual, 11/2010
Table of contents
Communication
System Manual, 11/2010 11
Table of contents
9.6.6 Additional information for the parameters of a PROFIdrive drive ............................................. 290
9.6.7 System commands in SIMOTION............................................................................................. 291
9.6.7.1 _writeRecord/_readRecord SIMOTION system commands ..................................................... 291
9.6.7.2 _writeDrive.../_readDrive... SIMOTION system commands...................................................... 292
9.6.7.3 Comparison of the system commands...................................................................................... 293
9.6.7.4 Deleting _readDrive and _writeDrive jobs ................................................................................. 294
9.6.8 Rules for using _readRecord and _writeRecord ....................................................................... 294
9.6.8.1 Rule 1 - the job has its own job reference................................................................................. 294
9.6.8.2 Rule 2 - system functions for asynchronous programming....................................................... 294
9.6.8.3 Rule 3 - read/write data record per PROFIdrive drive unit........................................................ 297
9.6.8.4 Rule 4 - the last call wins for SIMOTION .................................................................................. 297
9.6.8.5 Rule 5 - a maximum of eight concurrent calls is possible in SIMOTION .................................. 299
9.6.9 Rules for SIMOTION _writeDrive.../_readDrive... commands................................................... 301
9.6.9.1 Scope for the rules .................................................................................................................... 301
9.6.9.2 Rule 6 - repeated call of system function for asynchronous programming............................... 301
9.6.9.3 Rule 7 - multiple concurrent calls per target device.................................................................. 302
9.6.9.4 Rule 8 - release the interlocking after the complete processing of a job .................................. 304
9.6.9.5 Rule 9 - canceling jobs for an asynchronous call ..................................................................... 305
9.6.9.6 Rule 10 - management of sixteen jobs ..................................................................................... 308
9.6.9.7 Rule 11 - parallel jobs for different drive devices ...................................................................... 308
9.6.10 Special features ........................................................................................................................ 310
9.6.10.1 Rule 12 - data buffering of up to 64 drive objects ..................................................................... 310
9.6.10.2 Rule 13 - a mix of system functions can be used ..................................................................... 310
9.6.10.3 Rule 14 - interlocking for the mixed use of commands............................................................. 312
9.6.11 Program examples .................................................................................................................... 312
9.6.11.1 Programming example .............................................................................................................. 312
10 Appendix................................................................................................................................................ 317
10.1 Standard PROFIBUS/PROFINET data types (only available in English) ................................. 317
10.2 Profile-specific PROFIBUS/PROFINET data types (only available in English) ........................ 328
Index...................................................................................................................................................... 335
Communication
12 System Manual, 11/2010
Introduction 1
1.1 The communications subject in the SIMOTION documentation
Overview
You can find information on the subject of communication in the individual Manuals, in the
Programming Manuals and in this Communication Manual.
Communication manual
This Communication Manual provides, in particular, information that is important for the
communication of SIMOTION devices with devices that are not part of the SIMOTION family,
especially SIMATIC devices.
This manual contains explanations of the required configuration steps that must be
performed on both communication partners in order to obtain an error-free, functioning
communication relationship.
Therefore, this manual deals very intensively with the settings and the programming of the
SIMATIC S7 stations as communication partners of the SIMOTION devices.
Communication
System Manual, 11/2010 13
Introduction
1.1 The communications subject in the SIMOTION documentation
Communication
14 System Manual, 11/2010
Overview of the communication functions and
services 2
2.1 Network options
2.1.1 Introduction
As an integral part of "Totally Integrated Automation" (TIA), the SIMOTION and SIMATIC
network solutions provide the necessary flexibility and performance characteristic for the
communication requirements of your application, irrespective of how simple or complex it is.
Note
This section provides a general description of the communication functions and services
included in Siemens' automation technology. This does not necessarily imply that all
functions mentioned also are available for SIMOTION. You will find details concerning the
functions supported by SIMOTION in chapters 4 - 8.
2.1.2 PROFINET
Overview
PROFINET is based on the open Industrial Ethernet standard for industrial automation for
company-wide communication and extends the capability for data exchange of your
automation components through to the office environment, so that your automation
components, even the distributed field devices and drives, can be connected to your local
area network (LAN).
Because PROFINET connects all levels of your organization – from the field devices through
to the management systems – you can perform the plant-wide engineering using normal IT
standards. As for all solutions based on Industrial Ethernet, PROFINET supports electrical,
optical and wireless networks.
Communication
System Manual, 11/2010 15
Overview of the communication functions and services
2.1 Network options
Overview
As Industrial Ethernet provides a communication network for the connection of command
levels and cell levels, you can extend the data exchange capability of your automation
components into the office environment with Industrial Ethernet.
Industrial Ethernet is based on the standards IEEE 802.3 and IEEE 802.3u for
communication between computers and automation systems and enables your system to
exchange large data volumes over long distances.
2.1.4 PROFIBUS
Overview
PROFIBUS is based on the standards IEC 61158 and EN 50170 and provides a solution
with open field bus for the complete production and process automation. PROFIBUS
provides fast, reliable data exchange and integrated diagnostic functions. PROFIBUS
supports manufacturer-independent solutions with the largest third-party manufacturer
support worldwide. A variety of transmission media can be used for your PROFIBUS subnet:
electrical, optical and wireless.
Communication
16 System Manual, 11/2010
Overview of the communication functions and services
2.1 Network options
Overview
MPIs are integrated interfaces for SIMOTION and SIMATIC products (SIMOTION devices,
SIMATIC S7 devices, SIMATIC HMI as well as SIMATIC PC and PG).
MPI provides an interface for PG/OP communication. In addition, MPI provides simple
networking capability using the following services: communication via global data (GD), S7
communication and S7 basic communication.
The electric transmission medium for MPI uses the RS 485 standard, which is also used by
PROFIBUS.
Overview
SIMOTION devices can be programmed so that they exchange data with another controller
in the network. Even if the point-to-point communication is not considered as a subnet, the
point-to-point connection provides serial transmission (e.g. RS232 or RS485) of data
between two stations, e.g. with a SIMATIC controller or even with a third-party device that is
capable of communication.
Communication
System Manual, 11/2010 17
Overview of the communication functions and services
2.2 Communications services (or network functions)
CP modules (e.g. a CP340) or ET200 modules can be used for point-to-point communication
to read and write data between two controllers. Point-to-point communication thus
represents a powerful and cost-effective alternative to bus solutions, particularly when only a
few devices are connected to the SIMOTION device.
Point-to-point communication provides the following capabilities:
● Using standard procedures or loadable drivers to adapt to the protocol of the
communication partner
● Using ASCII characters to define a user-specific procedure
● Communication with other types of devices, such as operator panels, printers or card
readers
Additional references
You will find additional references concerning point-to-point communication in the
descriptions of the CP or ET200 modules.
2.2.1 Introduction
SIMOTION and SIMATIC devices support a set of specific communication services, which
control the data packets that are transmitted via the physical networks. Each communication
service defines a set of functions and performance characteristics, e.g. the data to be
transferred, the devices to be controlled, the devices to be monitored and the programs to be
loaded.
Communication
18 System Manual, 11/2010
Overview of the communication functions and services
2.2 Communications services (or network functions)
Overview
PG/OP services are the integrated communication functions with which SIMATIC and
SIMOTION automation systems communicate with a programming device (e.g. STEP 7) and
operator control and monitoring system. All SIMOTION and SIMATIC networks support the
PG/OP communication services.
Overview
S7 communication services provide data exchange using communication system function
blocks (SFBs) and communication function blocks (FBs) for configured S7 connections.
All SIMOTION devices and SIMATIC S7 devices have integrated S7 communication services
that allow the user program in the controller to initiate the reading or writing of data. These
functions are independent of specific networks, allowing you to program S7 communication
via any network (MPI, PROFIBUS, PROFINET or Industrial Ethernet).
For transferring data between the controllers, you must configure a connection between both
controllers. The integrated communication functions are called up by the SFB/FB in the
application. You can transfer up to 64 KB of data between SIMOTION and SIMATIC S7
devices.
You can access data in the controller with your HMI device, programming device (PG), or PC
as the S7 communication functions are integrated in the operating system of the SIMOTION
devices and SIMATIC S7 devices. This type of peer-to-peer link does not require any
additional connection equipment. (However, if you configure a connection to one of these
devices, you can access the data via the symbolic names.)
Note
SFBs may not be used with SIMOTION.
Overview
S7 basic communication services provide data exchange using communication system
functions (SFCs) for non-configured S7 connections. These SFCs (e.g. X_GET or X_PUT)
read or write the data to a SIMATIC controller, so that small data volumes can be transferred
via an MPI subnet to another S7 station (S7 controller, HMI or PC).
Communication
System Manual, 11/2010 19
Overview of the communication functions and services
2.2 Communications services (or network functions)
The SFCs for the S7 basic communication do not communicate with stations in other
subnets. You do not need to configure connections for the S7 basic communication. The
connections are established when the user program calls the SFC.
Note
You can only use the S7 basic communication services via an MPI connection between
SIMATIC S7-300, S7-400 or C7-600 controllers.
Overview
In addition to the other options for the network communication, you can configure a 'global
data' communication connection (GD) to provide cyclic data transmission between SIMATIC
controllers that are connected to an MPI network. The data exchange runs as part of the
normal process image exchange, as the global data communication is integrated in the
operating system of the SIMATIC controller.
As the global data communication is a process for transferring data, the receipt of the global
data is not acknowledged. A publisher (data source) sends the data to one or several
subscriber(s) (data sink) and subscribers receive the data. The publisher does not receive an
acknowledgement from the subscribers that they have received the transmitted data.
Note
You can only use the global data communication via an MPI connection between SIMATIC
S7-300, S7-400 or C7-600 controllers.
GD communication does not require any special programming or program blocks in your
STEP 7 user program. The operating systems of the individual controllers process the global
data exchange. Using STEP 7, you configure a global data (GD) table with the source path
of the data to be transmitted to the subscribers. This GD table is downloaded with the
hardware configuration for both the publisher and the subscribers.
Global data is not available for SIMOTION.
Communication
20 System Manual, 11/2010
Overview of the communication functions and services
2.2 Communications services (or network functions)
Overview
PROFINET provides the following communication services:
● You can connect I/O devices and drives via a Ethernet physics to the SIMOTION or
SIMATIC controller with the communication service PROFINET IO. The user program
executed in the controller can process the input and output data of the I/O devices with
PROFINET IO. You configure the addressing for PROFINET IO in STEP 7 or SIMOTION
SCOUT.
● With PROFINET CBA, you can define your automation system as autonomous subunits
or components. These components can be PROFINET IO, PROFIBUS DP or third-party
devices or subnets.
If you want to use the PROFINET CBA communication services for a component-based
solution, configure the SIMATIC controllers and the I/O devices in individual components in
STEP 7. Then configure the communication between the various components with SIMATIC
iMAP.
Both PROFINET IO and PROFINET CBA communication services provide the real-time
communication required by automation systems.
Note
PROFINET CBA is only available for SIMATIC devices, not for SIMOTION devices.
Overview
Industrial Ethernet is based on the IEEE 802.3 and IEEE 802.3u standards and connects the
automation systems with your business system, so that you also have access to the data in
the office.
Industrial Ethernet provides the following communication services:
● The ISO transfer provides services for transmitting data via connections that support
error-free data transmission. The ISO transfer is only possible with STEP7.
● TCP/IP allows you to exchange contiguous data blocks between the controllers and
computers in PROFINET or Industrial Ethernet networks. With TCP/IP, the controller
transmits contiguous data blocks.
● ISO-on-TCP (RFC 1006) supports error-free data transmission. For SIMOTION only
when going though SCOUT ONLINE. If the communication is performed from the user
program, an RFC must be programmed.
Communication
System Manual, 11/2010 21
Overview of the communication functions and services
2.2 Communications services (or network functions)
● UDP (User Datagram Protocol) and UDP multi-cast provide simple data transmission
without acknowledgment. You can transmit related data blocks from one station to
another, such as between a SIMOTION and SIMATIC controller, a PC or a third-party
system.
● Information technology (IT) communication allows you to share data using standard
Ethernet protocols and services (such as FTP, HTTP and e-mail) via PROFINET or
Industrial Ethernet networks.
Overview
PROFIBUS provides the following communication services:
● PROFIBUS DP (Distributed Peripherals) supports the transparent communication with the
distributed I/O. The SIMOTION/STEP 7 user program accesses the distributed I/O in the
same manner as it accesses the I/O on the central rack of the controller (or the PLC).
PROFIBUS DP enables the direct communication with the distributed I/O. PROFIBUS DP
complies with the EN 61158 and EN 50170 standards.
● PROFIBUS PA (Process Automation) facilitates the direct communication with process
automation (PA) instruments. This includes both cyclic access to I/O, typically with a PLC
master, as well as acyclic access to the potentially large set of device operating
parameters, typically with an engineering tool such as Process Device Manager (PDM).
PROFIBUS PA complies with the IEC 61158 standard.
● PROFIBUS FMS (Fieldbus Message Specifications) enables the transmission of
structured data (FMS variables). PROFIBUS FMS complies with the IEC 61784 standard.
● PROFIBUS FDL (Fieldbus Data Link) has been optimized for the transmission of
medium-sized data volumes to support error-free data transmission on the PROFIBUS
subnet. PROFIBUS FDL supports the SDA function (Send Data with Acknowledge).
Note
SIMOTION devices only support the PROFIBUS DP communication service.
For fail-safe communication, SIMOTION and SIMATIC devices use the PROFIsafe profile
for PROFIBUS DP.
SIMOTION devices use the PROFIdrive profile for communication between SIMOTION
devices through to the connected drives.
Additional references
You can find a comparison of the SIMATIC S7 and SIMOTION system functions in the
2_FAQ directory on the Utilities & Applications CD.
Communication
22 System Manual, 11/2010
Overview of the communication functions and services
2.3 Additional services for the exchange of information
Communication
System Manual, 11/2010 23
Overview of the communication functions and services
2.3 Additional services for the exchange of information
Communication
24 System Manual, 11/2010
PROFIBUS 3
3.1 PROFIBUS communication
Description
PROFIBUS DP (Decentralized Peripherals) is designed for fast data exchange at the field
level. The communication is performed in a class 1 PROFIBUS master (e.g. a SIMOTION
controller) and PROFIBUS slaves (e.g. a SINAMICS S120 drive). The data exchange with
decentralized devices is mainly performed cyclically (DP V0 communication). In this case,
the central controller (SIMOTION controller) reads the input information cyclically from the
slaves and writes the output information cyclically to the slaves. Moreover, diagnostics
functions are made available through the cyclic services. The following figure shows the data
protocol on PROFIBUS DP.
7'3
7';
'DWDWUDQV
PLVVLRQRQ
WKHEXV
W
*OREDO $F\FOLFGDWD
FRQWURO &\FOLFGDWD GDWD 5HVHUYH
H[FKDQJH
Communication
System Manual, 11/2010 25
PROFIBUS
3.2 Communication with SIMATIC S7
Note
The configured I/O areas for the data exchange between the master and slaves must not be
"occupied" by I/O modules.
3.2.2.1 Introduction
The following section describes how a SIMOTION device can be connected as PROFIBUS
DP slave to a PROFIBUS network.
There are two possibilities:
● The SIMOTION device is connected as standard slave to a DP master system by means
of a GSD file.
● The SIMOTION device is integrated as what is known as an intelligent DP slave (I-slave)
into the DP master system.
Communication
26 System Manual, 11/2010
PROFIBUS
3.2 Communication with SIMATIC S7
3.2.2.2 Connecting SIMOTION to a SIMATIC S7 as DP slave with the aid of a GSD file
Procedure
The GSD files for the various SIMOTION platforms must first be imported into STEP 7 HW
Config.
You will find the corresponding GSD files on the SIMOTION SCOUT DVD "Add-on" in the
respective device directory under Firmware and Version.
After these GSD files have been imported from the Options - Install GSD file menu into the
STEP 7 HW Config, the devices appear in the HW catalog under Additional field devices -
PLC - SIMATIC - SIMOTION and can be inserted from there into a DP master system of a
S7 station.
Note
SIMOTION devices that have been connected to a SIMATIC S7 by means of a GSD file
cannot be accessed with SIMOTION SCOUT via a routed connection.
The name of a GSD file depends on its version, e.g. S10180AA and S10280AA.
Note
Through a network node it is also possible to route to drives that have been inserted as
single drives.
It is thus also possible to route to SIEMENS drives that have been configured in
SCOUT/STARTER, if these are configured as GSD slave / GSDML device in HW Config.
However, the limitation that a network transition point can be set using the subnet ID, by
setting the online access parameter (Target device > Online access), applies.
Moreover, the GSD file is named according to the version.
Requirement
● SIMOTION SCOUT and thus STEP 7 must have been installed on the engineering PC.
● The SIMATIC S7 and the SIMOTION station must be in the same project.
If these requirements are fulfilled, SIMOTION can also be connected as what is known as an
I-slave to the PROFIBUS DP network of the SIMATIC.
Communication
System Manual, 11/2010 27
PROFIBUS
3.2 Communication with SIMATIC S7
Procedure
It is recommended that the SIMOTION station is first completely configured as DP slave
before it is placed as slave on the DP line of the SIMATIC CPU.
Below you will find a description of the procedure for a SIMOTION C. The procedure is
identical apart from the selection of the SIMOTION platform.
1. Configuring a station as DP slave, e.g. SIMOTION C2xx
Double-click on the desired interface (e.g. DP2/MPI) in the configuration table and select
the DP slave option on the Operating mode tab.
2. Configuring the local I/O addresses
You can set the local I/O addresses and the diagnostics address in the Configuration tab.
3. Switch to the configured SIMATIC station that is to be DP master for the SIMOTION.
4. Creating an I-slave
Drag the station type "C2xx/P3xx/D4xx I-Slave" from the Hardware catalog window
("Preconfigured stations" folder) and drop it on the symbol for the DP master system of
the SIMATIC station.
5. Specifying the intelligent DP slave
Double-click the symbol for the intelligent SIMOTION DP slave and select the Link tab. In
this tab, assign the station that is to represent the intelligent DP slave. This dialog box
displays all the stations that are already available in the project and that are potential link
partners.
6. Select the appropriate SIMOTION and click Connect. The configured SIMOTION station
is now connected as intelligent DP slave to the SIMATIC.
Communication
28 System Manual, 11/2010
PROFIBUS
3.2 Communication with SIMATIC S7
– For the data exchange with the DP master via I/O areas, select the MS (Master-Slave)
mode
– For the direct data exchange with a DP slave or DP master, select the DX (Direct Data
Exchange) mode
8. Confirm the settings by clicking OK.
Configuration of the SIMOTION station as intelligent DP slave on the SIMATIC station is now
complete and data can be exchanged via the specified I/O addresses.
3.2.3.1 Introduction
The following section describes how a SIMATIC station can be connected as PROFIBUS DP
slave to a PROFIBUS network.
There are two possibilities:
● The SIMATIC station is connected as standard slave to the DP master system of a
SIMOTION by means of a GSD file.
● The SIMATIC station is integrated as what is known as an I-slave into the DP master
system of a SIMOTION.
Communication
System Manual, 11/2010 29
PROFIBUS
3.2 Communication with SIMATIC S7
3.2.3.2 Connecting SIMATIC to a SIMOTION device as DP slave with the aid of a GSD file
Procedure
The GSD files for the various SIMATIC stations must first be imported into STEP 7 HW
Config.
You will find the corresponding GSD files in Product Support under:
http://support.automation.siemens.com/ww/view/en/113652.
After these GSD files have been imported from the Options - Install GSD file menu into the
STEP 7 HW Config, the devices appear in the HW catalog under Additional field devices -
PLC - SIMATIC and can be inserted from there into a DP master system of a SIMOTION
station.
SIMATIC S7 devices that have been connected to a SIMOTION by means of a GSD file,
cannot be accessed with STEP 7 via a routed connection.
Prerequisites
● SIMOTION SCOUT and thus SIMATIC STEP 7 have been installed on the engineering
PC.
● The SIMATIC S7 and the SIMOTION station must be in the same project.
If these requirements are fulfilled, the SIMATIC can also be connected as an I-slave to the
PROFIBUS DP network of the SIMOTION.
Procedure
It is recommended that the SIMATIC station is first completely configured as DP slave before
it is placed as slave on the DP line of the SIMOTION.
Below you will find a description of the procedure for a CPU 315-2 D. The procedure is
identical apart from the selection of the CPU types, also for an S7-400.
1. Configure a station, for example, with the CPU 315-2 DP, as DP slave. Double-click on
line 2.1 (interface) in the configuration table and select the DP slave option in the
Operating mode tab.
2. You can set the local I/O addresses and the diagnostics address in the Configuration tab.
3. Switch to the configured SIMOTION station that is to be DP master for the SIMATIC.
4. Drag the appropriate station type, CPU 31x or CPU 41x, from the Hardware catalog
window (folder of already configured stations) and drop it on the symbol for the DP
master system of the SIMOTION station.
Communication
30 System Manual, 11/2010
PROFIBUS
3.2 Communication with SIMATIC S7
5. Double-click the icon for the intelligent SIMOTION DP slave and select the Link tab. In
this tab, assign the station that is to represent the intelligent DP slave. This dialog box
displays all the stations that are already available in the project and that are potential link
partners.
6. Select the appropriate S7 station and click Connect. The configured S7 station is now
connected as intelligent DP slave to the SIMOTION.
Communication
System Manual, 11/2010 31
PROFIBUS
3.2 Communication with SIMATIC S7
– For the data exchange with the DP master via I/O areas, select the MS (Master-Slave)
mode
– For the direct data exchange with a DP slave or DP master, select the DX (Direct Data
Exchange) mode
8. Confirm the settings by clicking OK.
The configuration of the SIMATIC station as intelligent DP slave on the SIMOTION station is
now completed and data can be exchanged via the specified I/O addresses.
Communication
32 System Manual, 11/2010
PROFIBUS
3.2 Communication with SIMATIC S7
3.2.4.1 Introduction
Master-master communication
A master-master communication connection between a SIMATIC S7 and a SIMOTION
device via PROFIBUS is created using the SFC65 (XSEND) and SFC66 (XRECEIVE)
system functions on the SIMATIC side and the _Xsend and _Xreceive system functions on
the SIMOTION side. It is not necessary to configure a communication connection in NetPro.
The PROFIBUS addresses are assigned in HW Config. All further block parameters are
specified for the connection by the user and also transferred when the function is called. The
PROFIBUS connection between SIMATIC and SIMOTION is therefore similar to a TCP/IP
connection between a SIMATIC station with integrated Ethernet interface and a SIMOTION
device and vice versa. The parameters important for communication are specified by the
user and transferred with the block or function call.
The following section describes parameterization of the system functions on the SIMATIC S7
side and the functions on the SIMOTION side in more detail.
Introduction
The PROFIBUS connection between a SIMATIC S7 station and a SIMOTION device was
explained in the previous section. The following contains a detailed explanation of the
parameterization of the SIMATIC S7 system functions and the SIMOTION functions for a
PROFIBUS connection.
CALL "X_SEND"
REQ:=M1.0
CONT:=FALSE //This is the DP address of the
DEST_ID:=W#16#2 //communication partner (SIMOTION P350)
Communication
System Manual, 11/2010 33
PROFIBUS
3.2 Communication with SIMATIC S7
CALL "X_RCV"
EN_DT:=M0.0
RET_VAL:=MW50
REQ_ID:=MD52
NDA:=M0.1
RD:=P#DB110.DBX0.0 BYTE 10
Communication
34 System Manual, 11/2010
PROFIBUS
3.2 Communication with SIMATIC S7
REQ_ID identifies the receive data, i.e. the received data can be uniquely assigned to a
SIMOTION device via the REQ_ID parameter. The value received here corresponds to the
value in the messageid parameter in the relevant send function on the SIMOTION side.
The NDA parameter indicates whether new data has been received. If NDA is 1, new data is
available and can be transferred to the receive data area. If NDA is 0, no new data is
available.
The RD parameter specifies where the received data is stored.
SIMOTION functions
RetVal_PB_Senden:=
_xsend(PB_Senden_CommunicationMode, PB_Senden_Address,
PB_Senden_MessageID, PB_Sender_NextCommand, PB_Senden_CommandID,
PB_Sende_Daten, PB_Sende_Daten_Laenge);
Note
It is only possible to send data (_xsend()) to a SIMOTION DP slave if a check mark has been
placed in Programming, status/force, or other PG functions and non-configured
communication connections possible.
The "communicationmode" parameter informs the called function of what is to happen to the
connection after the successful data transfer. The function data type can assign the
ABORT_CONNECTION or HOLD_CONNECTION values. If ABORT_CONNECTION is
assigned to the parameter, the connection will be removed after the data transfer. The
HOLD_CONNECTION value is used to parameterize the function so that the connection will
be retained after a successful data transfer.
The address parameter contains a structure of the StructXsendDestAddr data type, which
also consists of various parameters. This structure contains all the information about the
communication partner address of the SIMOTION device.
Communication
System Manual, 11/2010 35
PROFIBUS
3.2 Communication with SIMATIC S7
Because no subnet mask is specified for communication via MPI or PROFIBUS, a value of 0
is pre-assigned to the remotesubnetidlength parameter. Consequently, the assignment of the
remotesubnetid parameter is irrelevant.
The value 1 is set in the remotestaddrlength parameter for the MPI or PROFIBUS
communication.
The nextstaddrlength parameter specifies the length of the router address. As a router is not
used for the MPI or PROFIBUS communication between the SIMATIC S7 station and the
SIMOTION device, the value 0 is assigned for this parameter. Consequently, the nextstaddr
parameter is also irrelevant (see below).
The following remotesubnetid parameter identifies the subnet mask and has, as already
mentioned above, no significance for the communication via MPI or PROFIBUS.
The remotestaddr parameter specifies the actual destination address. The parameter is an
array. However, only the first index is used for the MPI or PROFIBUS communication. The
other five indices have no significance.
The nextstaddr parameter is used to specify the router address. The same applies for this
parameter as for the remotesubnetid parameter. Its assignment is also irrelevant for the
communication via MPI or PROFIBUS.
The messageid parameter is assigned by the user for the identification of the SIMOTION on
the receive side. The value entered enables an assignment on the SIMATIC S7 station via
the REQ_ID parameter. The value can be fetched there from the messageid parameter.
The behavior of this function with respect to the advance when called is parameterized with
the nextcommand parameter. There are two setting options: IMMEDIATELY and
WHEN_COMMAND_DONE. With the first value, the advance is immediately and with the
second value, after completion of the command.
When the function is called, a system-wide unique number is assigned in the commandid
parameter to allow tracking of the command status.
The send data is specified with the data variable when the function is called.
The datalength parameter specifies the length of the data to be transferred from the send
area.
The return value of the _xsend function to the user program is of data type DINT. The
various return values indicate any problems that occurred during the execution of the
function. There is also a confirmation when the data has been successfully sent.
RetVal_PB_Empfanen:=
_xreceive(PB_Empfangen_MessageID,
PB_Empfangen_NextCommand,PB_Empfangen_CommandID);
Communication
36 System Manual, 11/2010
PROFIBUS
3.2 Communication with SIMATIC S7
The behavior of this function with respect to the advance when called is parameterized with
the nextcommand parameter. There are two setting options: IMMEDIATELY and
WHEN_COMMAND_DONE. With the first value, the advance is immediately and with the
second value, after completion of the command.
When the function is called, a system-wide unique number is assigned in the commandid
parameter to allow tracking of the command status.
The structure returned from the function to the user program contains the functionresult,
datalength and data parameters. The receive status can be queried via the functionresult
parameter. The datalength parameter returns the number of received useful data bytes after
a successful call of the _xreceive function. The received useful data can be accessed via the
data parameter.
Communication
System Manual, 11/2010 37
PROFIBUS
3.2 Communication with SIMATIC S7
Communication
38 System Manual, 11/2010
PROFINET IO 4
4.1 PROFINET IO overview
4.1.1 PROFINET IO
In machine construction, there is a clear trend toward distributed machine concepts and
mechatronic solutions. This increases the demands on the drive networking. A large number
of drives and shorter cycle times as well as the use of IT mechanisms are increasingly
gaining in importance.
The two successful solutions, PROFIBUS DP and Ethernet, are combined under PROFINET
IO. PROFINET IO is based on many years of experience with the successful PROFIBUS DP
and combines the normal user operations with the simultaneous use of innovative Ethernet
technology concepts. This ensures the smooth migration of PROFIBUS DP into the
PROFINET world.
PROFIBUS DP is a bus system where only one node can have "send" access to the bus at
any one time (half-duplex operation). PROFINET IO uses the switching technology which is
also found with Ethernet. This involves separating all the network segments, thereby
enabling sending and receiving to be performed on all lines at the same time (full-duplex
operation). In this way, the network can be used much more efficiently through the
simultaneous data transfer of several nodes. The bandwidth has also been increased to 100
Mbps.
Note
Detailed descriptions on the subject of PROFINET can be found in the
SIMATIC PROFINET System Description System Manual.
Communication
System Manual, 11/2010 39
PROFINET IO
4.1 PROFINET IO overview
The engineering view also has a familiar "look and feel". The engineering of the distributed
I/O is performed in the same way and with the same tools, as already used for PROFIBUS.
4.1.3 IO controller
The PROFINET IO controller has the same functions as the PROFIBUS DP master. The IO
controller of, for example, a SIMOTION D 4x5-2 DP/PN with onboard PROFINET interface
exchanges data cyclically with the I/O devices assigned to it (PROFINET IO devices),
such as the SINAMICS S120.
352),1(7,2
&831
,2'HYLFH
6,1$0,&6 (76
4.1.4 IO device
Distributed field devices such as I/O components (e g. ET200) or drives (e.g. SINAMICS
S120 with CU320-2 PN) are referred to as IO devices. The function is comparable to a
PROFIBUS DP slave.
See also
Creating an IO device (Page 102)
Communication
40 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
4.1.6 iDevice
The PROFINET I device functionality is comparable with that of the I-slave for PROFIBUS,
i.e. a SIMOTION CPU can accept the role of an IO device and thereby exchange data with a
different IO controller.
Whereas with PROFIBUS an interface can be either a master or slave only, with PROFINET
it is possible to be both an IO controller and IO device at the same time on a single
PROFINET interface.
4.1.7 RT classes
Description
PROFINET is based on the Ethernet standard. This means that all standard Ethernet-based
protocols (e.g. HTTP, FTP, TCP, UDP, IP, etc.) can be transferred via the PROFINET
network.
In addition to the protocols associated with the types of office-based applications known
throughout the world, PROFINET offers two protocols (transmission modes) adapted to the
requirements of the automation sector. These are PROFINET IO with RT and PROFINET IO
with IRT.
Both these transmission modes are optimized for cyclic IO communication within a network
involving small amounts of data.
RT
RT communication uses the option of prioritizing telegrams (as described in the Ethernet
standard). This mechanism is also used for Voice over IP, for example. For more detailed
information, see PROFINET IO with RT (Page 46).
IRT
A time slot procedure is superimposed on the Ethernet for PROFINET IO with IRT. This
means there are 2 slots. IRT telegrams are transferred in the first and RT and IP telegrams
in the second. Under this arrangement, a transmission bandwidth guaranteed to cope with
any load/overload situation is reserved for the IRT data. IRT requires devices to be
synchronized so that all devices involved know when the time slot begins.
The IRT transmission mode makes a distinction between two RT classes: High Flexibility
and High Performance.
Communication
System Manual, 11/2010 41
PROFINET IO
4.1 PROFINET IO overview
Note
Only IRT High Performance is used for SIMOTION. Whenever "IRT" is referred to in the rest
of this document, this means IRT High Performance.
For more detailed information, see PROFINET IO with IRT (High Performance) (Page 48).
Description
The PROFINET system makes a distinction between two cycle clocks known as the send
clock and update time. The send clock is the basic cycle clock for cyclic communication. The
update time indicates the cycle in which a device is supplied with data.
Communication
42 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
Send clock
This is the period between two successive intervals for IRT or RT communication. The send
clock is the shortest possible transmit interval for exchanging data. The send clock therefore
corresponds to the shortest possible update time. During this time, IRT data and non-IRT
data (RT, TCP/IP) is transmitted. All devices within a sync domain work with the same send
clock.
Update time
The update time can be configured separately for each IO device and determines the interval
at which data is sent from the IO controller to the IO device (outputs) as well as from the IO
device to the IO controller (inputs). The calculated/configured update times are always a
multiple (2n) of the send clock.
Description
The table below describes the send clocks which can be set for SIMOTION devices with
PROFINET IO, as well as the down-scalings which are dependent on them and can be set
for IRT and RT. The adjustable send clocks are divided into two ranges: the "even" range
and the "odd" range. Update times are obtained by multiplying down-scalings by the send
clock.
Note
The versions below relate to the use of the first servo cycle clock. Other restrictions may
apply under some circumstances if Servo_fast and IPO_fast are used. If Servo_fast and
IPO_fast are used, then the PROFINET must be operated isochronously.
Table 4- 2 Adjustable send clocks and update times when using first servo
Communication
System Manual, 11/2010 43
PROFINET IO
4.1 PROFINET IO overview
If there is no sync master configured in a PROFINET IO system (no PROFINET IRT), the
send clock for the PROFINET IO system concerned can be set on an individual basis at the
relevant IO controller using the <PROFINET interface> properties on the PROFINET tab
under the send clock or using the PROFINET IO system properties on the tab for the update
time. There is a default setting for the send clock of 1 ms. On the IO cycle tab, the fixed
factor or fixed update time can be set using the mode and the down-scaling for the update
time can be set using the factor.
As soon as a sync master is configured in the PROFINET IO system, the send clock is
defined under the sync domain properties. The controllers assigned to the sync domain
accept this value. Update times can be set independently for each IO device.
Note 1) Mixed operation, RT/IRT High Performance
Odd send clocks can only be used if there is no RT IO device in the IO systems involved in
the sync domain. If there are IO devices with RT class "RT" in a sync domain, it is only
possible to set send clocks from the "even" range.
Note 2) Down-scaling (factor) and isochronous application
A number of IO devices support factors of 2, 4, 8, and 16 with IRT High Performance, as well
as a factor of 1.
Where IO devices (e.g. ET200S IM151-3 PN HS, SINAMICS S) are operated with an
isochronous application, it is usually only possible to set a factor of 1.
In these cases, the mode for the update time must always be set to fixed factor to ensure
STEP 7 does not automatically adapt the update time to always match the send clock.
Communication
44 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
Note
It is recommended that you work with the Fixed factor setting.
RT classes
The IO controller determines which RT class its IO system supports, by setting the real time
class at its controller interface. RT devices can always be operated, even if IRT classes are
set.
Communication
System Manual, 11/2010 45
PROFINET IO
4.1 PROFINET IO overview
2. Select the realtime class for RT class in the Synchronization tab. With SIMOTION, IRT
High Performance is automatically set for IRT.
3. Click OK to confirm.
Note
Only IRT High Performance is used for motion control applications with SIMOTION and
SINAMICS.
Communication
46 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
Not isochronous
Although standard Ethernet and PROFINET IO with RT do not offer any synchronization
mechanisms for devices, this does not mean that such arrangements are impossible.
However, it does mean that isochronous data transmission is impossible, and there is no
isochronous application for motion control as a result.
Data exchange
Communication via PROFINET IO with RT and IRT is based on the Ethernet frame and the
MAC address. This means that cross-network communication via a router using RT and IRT
is not possible. PROFINET IO telegrams have priority over IT telegrams in accordance with
IEEE802.1Q. This ensures the availability of the real-time properties required in automation
applications (e.g. for standard IOs).
Update time
The adjustable update time is in the range of 0.25 - 512 ms. The selected update time
depends on the process requirements, the number of devices, and the amount of IO data.
Given the improved performance offered by PROFINET compared to field buses, the bus
cycle is generally no longer the variable which determines the system cycle.
Overview
PROFINET IO with IRT satisfies communication requirements which go beyond the sending
of standard signals. As far as IRT is concerned, the jitters which may still be encountered
with RT during communication are significantly reduced by synchronizing the network.
A time-slot procedure is required at a level above that of the Ethernet network. One time slot
is reserved for the IRT telegrams and another for the RT and IP-based telegrams. This type
of approach requires all devices involved in IRT communication to be synchronized.
HJPVSRVLWLRQFRQWUROOHUFORFNF\FOH
Communication
System Manual, 11/2010 47
PROFINET IO
4.1 PROFINET IO overview
Send clock
The send clock can be set between 250 µs and 4 ms for PROFINET IRT High Performance.
In mixed operation involving RT and IRT High Performance, only values of 0.5, 1.0, 2.0, or
4.0 can be set.
The actual send clock used depends on various factors:
● The process; communication should be no faster than required. This reduces the bus and
CPU loads.
● The bus load (number of devices and the amount of IO data per device)
● Computing power available in the controller
● Supported send clocks in the participating PROFINET devices of a sync domain
A typical send clock is, for example, 1 ms. However, it can be set in a 125 µs grid within the
limits of 250 µs to 4 ms. See also Adjustable send clocks and update times (Page 43).
The supported send clocks can be found in the corresponding manuals of the respective
SIMOTION devices. A minimum cycle time of 250 µs is only supported by selected
components (SIMOTION P320-3, P350-3, D445-2 DP/PN, D455-2 DP/PN, and ET 200S HS
modules).
Communication
48 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
Isochronous application
Isochronous data transmission and an application synchronized with the bus system satisfy
the requirements associated with demanding motion control applications. This makes it
possible to close control loops via the bus system and achieve minimum guaranteed
response times (terminal-to-terminal time response). In addition, a high-performance and
isochronous connection to the application with low load on the application CPU is ensured.
In contrast to standard Ethernet and PROFINET IO with RT, the transmission of message
frames for PROFINET IO with IRT High Performance is scheduled.
Data exchange
PROFINET IO with IRT High Performance and PROFINET IO with IRT High Flexibility only
run within a sync domain. These must not however be mixed in one IO system. In other
words, a sync domain may consist of 2 or more IO systems which can all be synchronized
with one another. Within the IO system, either IRT High Flexibility or IRT High Performance
is used.
See also
Creating a sync domain (Page 90)
Communication
System Manual, 11/2010 49
PROFINET IO
4.1 PROFINET IO overview
Description
PROFINET IO with IRT is based on Ethernet with a higher-level time-slot procedure. This
arrangement requires all bus interfaces involved in communication to be synchronized. In
PROFINET IO with IRT High Performance and IRT High Flexibility, a sync master generates
a synchronization message to which all sync slaves synchronize themselves.
Compatibility
Communication between and through different sync domains via PROFINET IO with RT is
possible.
6\QFGRPDLQ 6\QFGRPDLQ
6,027,21',2 6,027,213,2
FRQWUROOHU 3*
(76 6,027,21',2 FRQWUROOHU
,2GHYLFH FRQWUROOHU
6ZLWFK 6ZLWFK
6\QFVODYHV 6\QFPDVWHU 6\QFVODYHV
IRT-compatible switches, such as SCALANCE X204 IRT, are used in the structure. All
devices involved in IRT communication are connected to each other directly. As the
programming device in the center of the network is connected via a spur line, it does not
interrupt the IRT path.
See also
Isochronous applications with PROFINET (Page 57)
Communication
50 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
See also
Assigning device names and IP addresses to IO devices (Page 110)
Communication
System Manual, 11/2010 51
PROFINET IO
4.1 PROFINET IO overview
Planning guidance
Fundamental questions must be resolved before implementing the design of a PROFINET
network. In this chapter, you will find broad guidelines to support you in defining
requirements and creating planning documentation. Planning is an iterative process, i.e.
some requirements influence each another and therefore necessitate changes in the overall
plan.
Communication
52 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
Topology
Star If you connect communication nodes to a
switch, you automatically create a star-shaped
network topology.
With this structure (unlike with other structures),
if an individual PROFINET device fails, this
does not automatically lead to the failure of the
entire network. Only the failure of a switch
causes the failure of devices downstream of the
switch.
Tree If you interconnect several star-shaped
structures, you obtain a tree network topology.
Line All the communication nodes are connected in
series as a bus.
If a switch fails, communication downstream of
the failed switch is no longer possible.
Devices with a 2-port switch must be used in
order to set up a linear structure.
Linear network structures require the least
amount of cabling.
Communication
System Manual, 11/2010 53
PROFINET IO
4.1 PROFINET IO overview
Note
Communication within a PROFINET network should only be as fast as the technology of
the system requires it to be and not as fast as technically possible.
Note
Always configure the update times as required by the process, even if the bus system
allows for a very large number of shorter update times. This reduces the PROFINET
network load and the load on the PROFINET controller to what is strictly necessary.
Communication
54 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
Note
Devices which exert a high IP load on the network should be located, where possible, in a
separate area of the network. The diagnostics server and HMI server are examples of
such devices.
Communication
System Manual, 11/2010 55
PROFINET IO
4.1 PROFINET IO overview
2IILFH(WKHUQHW
5RXWHU
'LVWULEXWHG
,2
,QGXVWULDO(WKHUQHW
SURGXFWLRQ
Communication
56 System Manual, 11/2010
PROFINET IO
4.1 PROFINET IO overview
Note
Isochronous mode for the application on the bus is only possible for PROFINET IO with IRT
High Performance.
Communication
System Manual, 11/2010 57
PROFINET IO
4.1 PROFINET IO overview
Procedure
When configuring isochronous applications, proceed as follows:
1. On controllers and devices, choose the setting "IRT High Performance"; with SIMOTION
(controller) V4.2 or higher, this setting is made automatically.
Figure 4-6 Setting IO device synchronization to Sync slave and setting IRT High Performance.
2. On the devices, set the Update time mode to Fixed factor and select the cycle clock
under Assign IO device isochronously. This is normally the servo cycle clock.
Communication
58 System Manual, 11/2010
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
Description
Similarly to PROFIBUS DP, it is also possible for PROFINET IO to operate acyclic
communication (Base Mode Parameter Access). You will find a detailed description hereof
under DP V1 communication (Page 279).
4.2.1 Introduction
Requirement
To work with SIMOTION using PROFINET IO, you must have PN slots available. These can
be found directly on the controller or added by inserting Option Boards.
Communication
System Manual, 11/2010 59
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
Connection possibilities:
● SIMOTION D4x5 with Option Board CBE30
● SIMOTION D4x5-2 DP/PN
● SIMOTION P350 PN or SIMOTION P320-3
● SIMOTION D410 PN
● SIMOTION C240 PN
'LVWULEXWHG
,2
Communication
60 System Manual, 11/2010
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
Note
For mixed operation of IRT High Performance and RT, it must be ensured that the IRT
High Performance-compatible devices are directly connected to one another In other
words, there must not be any devices that are not IRT-compatible between the IRT
devices.
Note
With SIMOTION SCOUT, it is possible to access a maximum of 10 PROFINET nodes
ONLINE simultaneously. If you have installed SIMATIC NET, you will be able to establish
more than 10 connections.
PROFINET V2.2
SIMOTION SCOUT supports PROFINET V2.2. Older versions are no longer supported as
standard or must be changed over in the hardware.
When inserting SIMOTION devices and/or SINAMICS drives, only PROFINET V2.2 versions
are inserted in SIMOTION SCOUT. If you want to configure older versions, you need to
explicitly add the hardware as PROFINET V2.1 in HW Config.
Note
All IRT nodes must comply with the PROFINET V2.2 standard. Mixed configurations
involving older versions are not permissible.
The hardware supplied as standard is PROFINET V2.2. If you are upgrading existing
systems or downgrading new hardware, please get in touch with Siemens Support.
Communication
System Manual, 11/2010 61
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
Overview of configuration for PROFINET V2.2 with STEP7 5.4 SP4 and SCOUT V4.1.2
Note
Isochronous mode is not possible for PROFINET IO with IRT High Flexibility.
The CACF is set on the IO device, see e.g. Inserting and configuring the SINAMICS S120
(Page 104).
Communication
62 System Manual, 11/2010
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
The functions described below mainly relate to configurations without the option of a second
servo (Servo_fast).
Note
You can find a detailed description of the Servo_fast option in the SIMOTION SCOUT Basic
Functions Manual, Chapter 6.
Description
Scaling to the send clock with SIMOTION controllers is possible in the case of PROFINET
with IRT High Performance under the following conditions:
● The SINAMICS Integrated of a D4xx and an isochronous DP master interface always run
simultaneously to the servo cycle clock.
● For a SIMOTION P350 the isochronous DP master interface always runs simultaneously
with the servo cycle clock.
● For drives (e.g. S120) which are connected via SINAMICS Integrated or as an external
drive unit, the servo cycle clock must always be counted in the first send clock.
This means that down-scaling is possible, although the position controller must be
counted in a send clock.
The following general conditions apply to cycle clocks and cycle clock scalings for a
SIMOTION controller
● If IRT High Performance is configured for a SIMOTION device, but the SIMOTION device
itself neither sends nor receives any IRT data (e.g. there is only a router for IRT data),
then the servo cycle clock will not be synchronized with the send clock. Only the
PROFINET interface is synchronized with the send clock. For example:
– Only TCP/IP via PROFINET interface
– Only RT devices on the PROFINET interface
– PROFINET interface, only router for IRT High Performance data to other devices
Note
Only the SIMOTION device acting as the Sync-Master synchronizes itself
automatically with the higher-level bus. If the SIMOTION device has no PROFIBUS
DP interface configured as an isochronous DP master, the Sync-Slaves synchronize
themselves automatically too.
If a PROFIBUS DP interface is configured as an isochronous DP master for lower-
level drives, the device will have to be synchronized by means of the application. This
application is programmed in the StartupTask via the
_enableDPInterfaceSynchronizationMode command.
Communication
System Manual, 11/2010 63
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
Combinations of cycle clocks and cycle clock sources for PROFIBUS and PROFINET IO
● Servo can be scaled in integral multiples (1, 2, ...n) of the send clock.
● If a Servo_fast is configured, it is permanently set at a ratio of 1:1 to the send clock. As
before, the CACF can be adjusted as the ratio of the send clock/Servo_fast to servo.
● Cycle clocks for SINAMICS Integrated and isochronous DP master interfaces must run
simultaneously with the servo cycle clock.
Communication
64 System Manual, 11/2010
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
4.2.2.3 Bus cycle clocks that can be adjusted for cycle clock scaling to SIMOTION devices
Communication
System Manual, 11/2010 65
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
1) Explanation:
Overview
If IRT data is transmitted via the bus using PROFINET IO, the cycle clock execution times
fall between reading and writing the data (e.g. axis data), depending on which task in the
execution system the application is executed in. You can find examples of applications in
different tasks (execution levels) in the chapters that follow.
Communication
66 System Manual, 11/2010
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
MotionTask/BackgroundTask
The data is transmitted via the bus using PROFINET IO with IRT High Performance, and
accepted by the communication interface at the start of the position control cycle clock. The
logic signals are generally evaluated in a MotionTask or BackgroundTask. Here, a distinction
is made as to which machine function is activated; for example, "position-controlled
traversing of axis". The traversing profile required is counted in the next IPO cycle clock.
Based on the position setpoints determined here, the speed setpoints for controlling the axis
are calculated in the next position control cycle clock. These are transmitted to the drive in
the next cycle, via PROFINET IO with IRT High Performance.
M/B Task:
Traversing profile
Evaluation of input is interpolated Position control
Motion/Background Task
=> Start axis for axis
Read
Write
Read
Read
Write
Write
B D F
A C
E
IRT data read in at BackgroundTask IRT data transmitted to
start of position or MotionTask communication interface
control cycle clock at end of position control Data transmitted in
cycle clock IRT time slot
Boundary conditions
The option of two servo cycle clocks is not activated (i.e. no Servo_fast and IPO_fast). The
bus cycle clock, position control cycle clock, and IPO cycle clock have a 1:1:1 ratio. Other
ratios may result in longer response times. With a 1:1:2 ratio, the IPO execution may be
extended to two position control cycle clocks, which can lead to the response time increasing
by one position control cycle clock.
Additionally, the BackgroundTask may be processed over several position control cycle
clocks, meaning that the system is unable to make sure the data is evaluated in the first
position control cycle clock. This may also lead to an increased response time.
Assigning the variables to a process image has an impact on the response time as well. The
process images are made available to other tasks or to the communication interface at the
end of the respective task, rather than after the variables are updated.
Communication
System Manual, 11/2010 67
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
IPOSynchronousTask
In order to optimize the time response and enable synchronous triggering of actions (e.g.
starting axes simultaneously), in the IPOSynchronousTask it is possible to process the part
of the application that triggers axis commands. If this option is used, it is counted before the
IPO. In this way, the axis command can be issued before the IPO is executed, and the
resulting position setpoint then calculated in the IPO. Based on this, the speed setpoint for
the drive is calculated in the next position control cycle clock. Once the position control cycle
clock has finished, the data is passed on to the communication interface and transmitted in
the next PROFINET IRT send clock. Unlike processing in a MotionTask/BackgroundTask,
where the response time equals the maximum BackgroundTask runtime + one IPO cycle
clock + one position control cycle clock, in this case you can be assured that the response
time will be one IPO cycle clock + one position control cycle clock until new data is output.
IPO-synchronous
evaluation Traversing profile
is interpolated Position control
of input
for axis
M/B Task: => Axis command
Motion/Background Task
B D F
Read
Write
Read
Write
M/B IPO M/B M/B IPO M/B
Task Servo Task Task Servo
Task
A
C
Communication
68 System Manual, 11/2010
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
4.2.3.3 ServoSynchronousTask
ServoSynchronousTask
It is possible to optimize the time response even further and reduce the response time to one
servo cycle clock. This option can be used for high-speed actual-value synchronous
operations, e.g. flying knife/shear. Within this context, the part of the application that triggers
axis commands for selected axes is processed in the ServoSynchronousTask. Additionally,
the IPO part of the system for the axes involved is counted before the position controller in
the servo task. In this way, the speed setpoints may be transmitted as soon as the next IRT
time slot.
B D
Read
Write
A C E G
F
Data transmitted in
IRT time slot
Boundary conditions
Using this function increases the CPU load and, therefore, the position control cycle clock;
for this reason it should only be used when necessary.
Activating
This feature must be activated explicitly for the axes in SIMOTION SCOUT as part of axis
configuration.
Figure 4-11 Determining the processing cycle clock for the axis
Communication
System Manual, 11/2010 69
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
If the option of two servo cycle clocks is configured with Servo_fast, the axis can also be
assigned to the Servo_fast processing cycle clock if the axis is linked to the faster bus.
Position control
The position controller responds within one position control cycle clock. The data is read out
from the communication interface at the start of the position control cycle clock. The position
controller is counted in the position control cycle clock. The new speed setpoints are copied
to the communication interface at the end of the position control cycle clock and, therefore,
transmitted in the next IRT time slot.
Position control
=> Generation of new
speed setpoint
B
Read
Write
M/B M/B
Servo IPO
Task Task
Communication
70 System Manual, 11/2010
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
M/B Task:
Servo-synchronous Motion/Background Task
evaluation of input
=> Set output
B
Read
Write
A
C
Data transmitted in
IRT time slot
If the option of two servo cycle clocks is configured with Servo_fast, fast I/O processing in
the ServoFastSynchronousTask can also take place in the Servo_fast cycle clock. This
requires the I/Os to be configured on the fast bus.
Communication
System Manual, 11/2010 71
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
Description
With certain systems (e.g. printing machines), it must be possible to operate system
components on either a stand-alone basis or while connected to another component as part
of a synchronous arrangement. If the entire system has has one sync. master, the other
component would not be capable of functioning independently. The "redundant sync master"
function was developed for this very reason. Under this arrangement, a sync master is
defined for every component. One of these is defined as the "sync master", and the other as
the "sync master (redundant)". Provided the system components are combined during
operation, the "sync master (redundant)" will synchronize itself with the sync master.
If the sync master ceases to function, the sync master (redundant) will continue operating
independently and synchronize itself with its assigned sync slaves. The sync slaves
assigned to the sync master will lose their synchronization and cease to operate.
Limitations of use
The two sync masters must be connected directly via a single cable with no switch. If the
transmission link between the sync master and sync master (redundant) fails, leaving 2
subnets with one sync master each, both subnets remain synchronized with the remaining
sync master in each case. This results in two independent synchronized subnets that drift
apart due, among other things, to the temperature drift of the quartzes. Once the
transmission link has been reestablished, there can be no smooth synchronization of the
sync master (redundant) with the sync master, i.e. the drives assigned to the sync master
(redundant) would lose synchronization and fail for a short time. Synchronization can only be
reestablished after stopping the application.
Communication
72 System Manual, 11/2010
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
Communication
System Manual, 11/2010 73
PROFINET IO
4.2 Properties of PROFINET IO with SIMOTION
● A SIMOTION device can receive data from up to 64 other SIMOTION devices in the
context of data exchange broadcast between controllers and can send data to any
number of SIMOTION devices.
● The amount of data involved must be taken into consideration where the data exchange
broadcast is between controllers. A data exchange broadcast only counts as a
connection if the amount of data involved does not exceed a certain level. Where a
second telegram is required, the data exchange broadcast does not require two
connections.
Note
In a data exchange broadcast relationship, it is not the number of configured slots (lines in
the lug receiver - see Configuring the receiver (Page 119)) that is intended for IRT High
Performance data exchange broadcast configuration, but rather the number of Ethernet
frames received for the data exchange broadcast. An Ethernet frame can contain up to 768
bytes of exchange broadcast useful data.
One slot has up to 254 bytes and 3,072 bytes of useful data can be exchanged during data
exchange broadcast (divided into 4 frames of 768 bytes each). The value will depend on the
sizes of the slot chosen. This means a transmitter can receive more than one slot, although
these must be transmitted within a single message frame.
Each provider sends its exchange broadcast data in an Ethernet frame. Every other
SIMOTION device can read the data in this frame. This means there is a counting
connection to each transmitting SIMOTION.
Where data exchange broadcast is taking place between a controller and a device, the frame
contains 1,440 bytes of useful data.
During the compilation of the project, HW Config verifies the configured quality structure
based on the formulas mentioned above.
Address space
A maximum of 4 KB each may be assigned for PROFINET IO data for the input and output
data in the logical address space of an IO controller. The rest of the 16 KB large address
space can be used, for example, for PROFIBUS data or diagnostic data.
Communication
74 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
I device
The I device functionality has been improved with the release of Step 7 V5.5. If SIMOTION
SCOUT projects use a lower version than V4.2, certain points must be considered when
upgrading. You can find more information in the I device chapter.
I device F-Proxy
Using the I device F-Proxy you can produce a PROFIsafe configuration with an F host (F-
CPU SIMATIC) on PROFINET with SIMOTION devices (SIMOTION D4xx, SIMOTION P3xx,
SIMOTION C240 PN) for the lower-level drives.
Communication
System Manual, 11/2010 75
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Procedure
The following steps need to be performed when configuring PROFINET IO with IRT High
Performance V2.2:
1. Insert the SIMOTION module.
Select the Device followed by the Device version. Only PROFINET V2.2 variants are
possible. A PROFINET interface is already integrated in devices labeled with PN.
– With SIMOTION C and SIMOTION P, you only select the SIMOTION version e.g.
V4.2.
– With SIMOTION D, depending on the version you select SIMOTION version V4.2, the
option module and the SINAMICS drive and version.
You can select the CBE30 option module for PROFINET here or enter it later in HW
Config from the hardware catalog from SIMOTION Drive Based > SIMOTION D4xx >
6AUxx > V4.2 - PN-V2.2xx.
2. Insert IO devices:
Insert IO devices from the hardware catalog in HW Config into the I/O system. The IO
devices can be found in the hardware catalog under PROFINET IO.
3. Configure sync domain and specify send clock:
Configure the PROFINET IO node as sync master (clock generator) and define the
associated sync slaves. Specify the send clock.
4. Generate the topology:
Define the topology, i.e. specify how the individual ports of the PROFINET IO devices are
interconnected with one another. The topology only needs to be configured for
PROFINET IO with IRT High Performance. If topology-based initialization is to be used,
the topology will need to be configured for all PROFINET devices.
5. Controller-controller data exchange broadcast:
Specify which address areas are to be used for sending and receiving.
General information
You have created a project and want to configure a SIMOTION D using a PROFINET
interface.
With SIMOTION D, the Control Units feature an onboard PROFINET interface (D410 PN,
D4x5-2 DP/PN) or an option module CBE30 for PROFINET (D4x5), depending on the
version concerned.
Communication
76 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
You can select the CBE30 in the dialog or insert it at a later point via HW Config by selecting
it from the hardware catalog under SIMOTION Drive-based > SIMOTION D4x5 > 6AUxx >
V4.2 - PN-V2.2xx.
General information
You have created a project and want to configure a SIMOTION D4x5-2 DP/PN or SIMOTION
D410 PN using the internal PROFINET interface. The procedure for this will be explained
using the example of a SIMOTION D4x5-2 DP/PN.
Procedure
1. Click on Insert SIMOTION device in the project navigator to open the device selection
dialog.
2. Select SIMOTION D under Device and click on a Device version e.g. D455-2 DP/PN.
Communication
System Manual, 11/2010 77
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
4. Activate the Open HW Config check box to add e.g. an option module or an IO system.
5. Click OK to confirm.
Communication
78 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
6. The dialog box for creating a PROFINET subnet will be displayed. Create a new subnet
using New... and enter the IP address and subnet mask. Click OK to confirm.
7. Select the PG/PC interface from the next dialog box and click OK to confirm. The device
is inserted, HW Config opens, and the module with the configured PROFINET subnet is
displayed.
Communication
System Manual, 11/2010 79
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
See also
Adding and configuring a CBE30-PROFINET board (Page 82)
Requirement
You have already created a project and now want to insert a SIMOTION D4x5 with option
module CBE30 for PROFINET. If you are working with a SIMOTION D4x5 without integrated
PN interfaces, you must use the option module CBE30.
Communication
80 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Procedure:
1. Click on Insert SIMOTION device in the project navigator to open the device selection
dialog box.
2. Select SIMOTION D under Device and click on the Device version, e.g. D435.
3. Select SIMOTION Version V4.2 and CBE for the Option module.
You can also insert the option module CBE30 in HW Config at a later point (see Section
).
Communication
System Manual, 11/2010 81
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
5. Click OK to confirm. The dialog box for creating a PROFINET subnet will be displayed.
Create a new subnet using New... and enter the IP address and subnet mask. Click OK
to confirm.
6. Select the PG/PC interface from the next dialog box and click OK to confirm. The device
is inserted, HW Config opens, and the module with the configured PROFINET subnet is
displayed.
See also
Adding and configuring a CBE30-PROFINET board (Page 82)
Requirement
You have already created a project and inserted a SIMOTION D4x5 device.
When adding a device in SIMOTION SCOUT, you can add a CBE30 as standard. You can
also insert the option module in HW Config at a later point.
Communication
82 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Procedure
1. In the project navigator, double-click the module (in this case D435). HW Config is
displayed with the corresponding module.
2. In the hardware catalog, select the appropriate option module under SIMOTION Drive-
based > SIMOTION D4x5 > 6AUxx > V4.2 - PN-V2.2xx. Note the CPU type and version.
3. Click PROFINET module CBE30-PN. As soon as the appropriate CBE30-PN is selected,
X1400 in the rack turns green.
4. Drag the CBE30-PN to the corresponding interface of the SIMOTION module (X1400).
The Properties - Ethernet Interface CBE30-PN (R0/S2.6) window opens.
5. Click New to create a new subnet. The Properties – New subnet Industrial Ethernet
dialog box is displayed.
Communication
System Manual, 11/2010 83
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
6. Click OK to confirm these entries. A new Ethernet subnet will be created, e.g.
Ethernet(4).
Requirement
You have already created a project and want to insert a SIMOTION P with PROFINET. The
procedure for this will be explained using the example of a SIMOTION P350.
Communication
84 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Procedure
1. Click on Insert SIMOTION device to open the device selection dialog box.
2. Under Device, select SIMOTION P, then click on a Device version (e.g. P350 PN), and
select SIMOTION Version V4.2.
Communication
System Manual, 11/2010 85
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
5. Enter the IP address and the subnet mask here. Click OK to confirm.
6. Select the PG/PC interface from the next dialog box and click OK to confirm.
The HW Config opens and displays the module with the configured PROFINET subnet.
Communication
86 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Requirement
You have already created a project and now want to insert a SIMOTION C with PROFINET.
The procedure for this will be explained using the example of a SIMOTION C240-PN.
Communication
System Manual, 11/2010 87
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Procedure
1. Click on Insert SIMOTION device to open the device selection dialog box.
2. Under Device, select SIMOTION C, then click on a Device version (e.g. C240-PN), and
select SIMOTION Version V4.2.
Communication
88 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
4. The dialog box for creating a PROFINET subnet will be displayed. Enter the IP address
and the subnet mask here. Click OK to confirm.
5. Select the PG/PC interface from the next dialog box and click OK to confirm.
The HW Config opens and displays the module with the configured PROFINET subnet.
Communication
System Manual, 11/2010 89
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Note
All devices that exchange data via IRT must belong to a single Sync-Domain and be directly
connected to one another; i.e. the connection must not be interrupted by devices that do not
support IRT, as this will prevent the synchronization information from being passed on.
Communication
90 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Procedure
1. In HW Config, open the station with the PROFINET devices to be involved in IRT
communication and select, for example, the PROFINET interface PNxIO in the case of a
SIMOTION D455-2 DP/PN.
2. Select the Edit > PROFINET IO > Domain Management menu command. A dialog tab
with the list of all the devices opens. A default sync domain is created and the devices
are already assigned.
3. Select the station in the upper field and in the lower field double-click the device that is to
be configured as the Sync-Master, e.g. SIMOTION D. This opens the Properties dialog
box for the device.
4. Set the synchronization type to Sync-Master. IRT High Performance is the standard
setting on SIMOTION controllers.
5. Confirm the settings with OK.
6. Then, select all devices which are to be configured as sync slaves (keep the Ctrl key
depressed and select the devices one after the other).
7. Then, click on the Properties device button.
8. Set the synchronization type to Sync-Slave in the dialog box.
9. Confirm the settings with OK.
Note
Any devices for which not synchronized is selected will not be involved in IRT
communication, but will automatically take part in RT communication.
Communication
System Manual, 11/2010 91
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Note
With IRT High Performance, the devices are supplied with data during each sending cycle
(sending cycle = update time). SIMOTION CPUs only support IRT High Performance.
As far as SINAMICS is concerned, however, the controller can be used to define an
application cycle whereby SINAMICS is only supplied with new data every n cycles.
Communication
92 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
2. Select an appropriate send clock for the process. The transmission cycle clock is the
smallest possible transmission interval. The send clock is preset to 1 ms.
Note
Communication should be no faster than required, irrespective of what the maximum
communication speed may be. This will reduce the bandwidth requirement and the
relieve the load that the devices need to support.
Communication
System Manual, 11/2010 93
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
4. Click OK to confirm.
Send clock/DP cycle ratio for SINAMICS_Integrated (SIMOTION D) with IRT High Performance
If a SINAMICS drive is being operated on a SIMOTION D via PROFINET IO IRT High
Performance, the DP cycle for the integrated PROFIBUS must be the same as the position
control cycle. The DP cycle is set to 3 ms by default. In most cases, this will not be the same
as the servo cycle clock selected for PROFINET applications. If the DP cycle does not
correspond to the position control cycle clock, an error message is generated in SCOUT
during the consistency check.
You set the DP cycle in the DP slave properties:
1. Double-click SINAMICS_Integrated in HW Config. The DP slave properties window
appears.
2. Switch to the Isochronous Operation tab and activate the "Synchronize drive to
equidistant DP cycle" checkbox.
Communication
94 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
3. Set the factor for DP cycle Tdp. The DP cycle must be the same as the position control
cycle clock. For example, if the position control cycle clock is 1 ms, you will need to enter
a factor of 8 (8 x [base time of 0.125 ms] = 1 ms).
4. Click OK to confirm.
When PROFINET is operated isochronously, the position control cycle clock must always
correspond to the PROFIBUS cycle clock. The position control cycle clock and the
PROFIBUS cycle clock can be scaled to the PROFINET cycle clock.
Example:
PROFINET send clock = 0.5 ms
PROFIBUS cycle clock = position control cycle clock = 1 ms
The PROFIBUS cycle clock can operated relative to the PROFINET cycle clock at a ratio of
1:1 to 1:16.
Communication
System Manual, 11/2010 95
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
4.3.8 Servo_fast, scaling down of cycle clocks to the servo at the PROFINET
interface
Communication
96 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Communication
System Manual, 11/2010 97
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Note
For further information, refer to the SIMOTION SCOUT Basic Functions Function Manual.
4.3.9.1 Topology
Introduction
With IRT High Performance, the topology must be configured and settings made to
determine which device is to be connected via which port to which other devices.
Note
With IRT High Flexibility or RT, topology configuration is optional. It may be required for
topology-based initialization or diagnostics purposes, for example.
Communication
98 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
There are two options for defining the properties of the cables between the ports of the
switches:
Using the topology editor (Page 101)
Procedure
With the topology editor you have an overview of all ports in the project and can interconnect
them centrally.
The topology editor is started with the Edit > PROFINET IO > Topology menu command in
HW Config or NetPro (PROFINET device must be selected).
The topology editor offers the user two options for displaying the topology graphically
(STEP7 V5.4 SP2 or higher) or in a tabular format. The graphic view is more suitable for
situations involving interconnection.
Description
In the topology editor, you can:
● Interconnect ports
● Modify the properties of the interconnection
● Add passive components
● Arrange for an offline/online comparison to be displayed in online mode
Procedure
1. In SCOUT, double-click on the SIMOTION module in order to access HW Config.
2. Select the PROFINET module, e.g. PNxIO in the case of a D445-2 DP/PN.
3. Perform Edit > PROFINET IO > Topology. The topology editor opens.
Communication
System Manual, 11/2010 99
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
5. Establish connections between ports by pressing and holding down the left mouse button
and drawing a line between the two ports to be connected. The Interconnection
Properties window opens.
Communication
100 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
6. The port interconnection is displayed: You can configure the cable data: A cable length of
< 100 m is set by default (recommended length). Alternatively, you can configure the
signal propagation delay:
7. Click OK to confirm.
Offline/online comparison
When you switch to online mode, the topology in the editor is compared with the actual
topology. Any components which are not recognized are highlighted by a question mark,
while connections and components in RUN are highlighted in green.
Procedure
Ports can be interconnected in the Tabular view of the topology editor.
The topology editor is started with the Edit > PROFINET IO > Topology menu command in
HW Config or NetPro (PROFINET device must be selected).
Communication
System Manual, 11/2010 101
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
All configured PROFINET IO devices with their ports are listed in the interconnection table
on the left-hand side. You can use the Filter dialog to select whether all ports, only the ports
that have not yet been interconnected or only the ports that have already been
interconnected are to be displayed.
Interconnecting ports in the tabular overview
1. To interconnect ports of different devices, select the port of a device that you want to
interconnect in the right-hand field.
2. Drag this port to the desired port of a device in the interconnection table. The
"Interconnection Properties" dialog opens.
3. Configure the cable data. A cable length of < 100 m should be set by default.
4. Confirm your entries with OK.
Requirement
You have already created a PROFINET IO system and configured a PROFINET IO module,
e.g. SIMOTION D455-2 PN (see Inserting and configuring SIMOTION D4x5-2/D410 PN
(Page 77)).
Communication
102 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Communication
System Manual, 11/2010 103
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Requirement
You have inserted a SIMOTION D4x5-2 with integrated PROFINET interface in your project,
a PROFINET IO subnet has already been created and the Sync-Master is configured.
Note
The configuration is almost identical for all SINAMICS S120 and SIMOTION D devices.
Procedure
1. Select PROFINET IO > Drives > SINAMICS in the HW Config hardware catalog. Then
select the module, e.g. SINAMICS S120 CU320-2 PN.
2. Click the entry and drag the drive, e.g. V4.4 , to the PROFINET IO subnet. The Properties
- Ethernet Interface SINAMICS-S120xCU320x2xPN window opens.
A suggested IP address will already be displayed here and the subnet will be selected.
3. Click OK to accept the setting.
4. In HW Config, select Station > Save and Compile Changes.
Communication
104 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Telegram in HW Config
Alternatively, you can assign the telegram in HW Config. This is only possible if the drive unit
and the drive have already been configured in SCOUT. You will then be able to proceed as
follows in HW Config.
Note
Symbolic assignment in SIMOTION SCOUT is recommended for message frame
interconnection. For this purpose, make sure that a check mark is applied for Project > Use
symbolic assignment in the menu.
If you are using symbolic assignment, SCOUT is entirely responsible for managing the
message frame between SIMOTION and the drive DO. In other words, SCOUT
independently creates message frames that all contain the necessary signals according to
the technological configuration. SCOUT automatically manages the positioning of signals in
the message frame and its size; the user is no longer able to influence this process or make
any changes.
1. Select the inserted SINAMICS drive and double-click the entry SIEMENS / Standard
message frame xx. in the lower table.
The Properties SIEMENS / Standard message frame xx dialog box is called.
2. Select the corresponding telegram. After it is saved, the telegram can be also be selected
in SCOUT, under <"Drive_device_xx"> - Communication > Telegram configuration in the
project navigator. Alignment with HW Config is possible.
Communication
System Manual, 11/2010 105
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
3. Select the Automatic setting in the Details for servo dialog box under Ti/To mode. The
cycle clocks and time constants for all IO devices (Sync-Slaves) on the PROFINET are
then calculated automatically by the system.
Communication
106 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
3. You can see the current cycle clock in Application cycle. To configure cycle clock scaling,
you need to configure down-scaling by selecting Set system cycle clocks in the execution
system. This is required if the servo cycle clock is slower than the IRT cycle clock, for
example, although the servo cycle clock must already have been taken into account in
the IRT cycle clock.
4. If necessary, switch to the Synchronization tab to select the Synchronization type, Sync
slave in this case. This can also be set under Domain Management.
5. Confirm the entries with OK.
Note
During the next steps, you must include the drive in the sync domain (see Creating a
sync domain), load the IP address to the drive (see Assigning device names and IP
addresses to IO devices (Page 110)), and interconnect the ports (see Interconnecting
ports via the topology editor (table view) (Page 101) ).
Communication
System Manual, 11/2010 107
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
See also
Creating a sync domain (Page 90)
Introduction
Devices and controllers have a fixed MAC address, a configurable IP address, and a
communication name. The IP address, subnet mask, and communication name are defined
within the Ethernet interface properties in the engineering software. This ensures the devices
within the project have their own unique assignment.
You can find the communication name (device name) in the Properties - Interface dialog by
double-clicking on the device or the controller. Click on Properties in the dialog to define the
IP address. See also Adding and configuring a CBE30-PROFINET board (Page 82).
Communication
108 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Controller initialization
● Download the application
● Engineering software
– HW Config, NetPro, SCOUT
– Primary Setup Tool (PST)
● Via the application (the _setNameofStation system function for SIMOTION)
Note
When using engineering software for initialization, and particularly where larger systems
are involved, you should establish direct connections with the device to ensure the device
to be initialized is clearly identifiable. Alternatively, the Flash feature can be used,
whereby devices can be identified by a flashing LED.
Device initialization
● Engineering software
– HW Config, NetPro
– SCOUT, STARTER
– Primary Setup Tool (PST)
● Write to the MMC or CF card beforehand and then plug in.
Communication
System Manual, 11/2010 109
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Introduction
You can only go online with the engineering software of a device (or controller) if it has been
assigned an IP address in the engineering software. Devices must also be assigned a
communication name which is unique across the network. This enables the controller to
identify the devices assigned to it.
You can specify the IP address in the Properties - Ethernet interface….dialog (double-click
on the device to open this). Moreover, a default name is entered that you can modify. The
default setting Assign IP address through Controller is active. In other words, when powering
up the controller identifies the devices assigned to it via the communication names and then
assigns the IP address defined in Engineering to them. We recommend leaving this function
activated.
Communication
110 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
IO device initialization
Note
If you are connecting the programming device/PC directly to the device's PROFINET
interface, you can use a patch or crossover cable.
During commissioning, we recommend that the device to be initialized is connected directly
to the programming device/PC.
1. In HW Config or NetPro, select the Target system - Ethernet - Edit Ethernet Node menu
item. The Edit Ethernet node dialog box is displayed.
Communication
System Manual, 11/2010 111
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
3. The Browse Network dialog box opens. The connected nodes are displayed.
Communication
112 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Description
It was previously only for I devices that SIMOTION supported the allocation of the IP address
and device name (NameOfStation) from the user program or via the Discovery Configuration
Protocol (DCP). With SIMOTION V4.2 and Step 7 V5.5 or higher, this must be configured in
HW Config and applies to all IO devices and IO controllers. To do this, you need to select the
checkboxes for free allocation in the Properties of the Ethernet interface and the PROFINET
interface.
This mechanism allows the IP addresses and station names to be adjusted without making
changes to the project. The IP settings can be changed locally, especially for series
machines.
Communication
System Manual, 11/2010 113
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Communication
114 System Manual, 11/2010
PROFINET IO
4.3 Configuring PROFINET IO with SIMOTION
Communication
System Manual, 11/2010 115
PROFINET IO
4.4 Configuring direct data exchange between IO controllers
4.4.1 Introduction
I/O data areas can be exchanged cyclically between two or more SIMOTION controllers via
IRT High Performance. This is also referred to as controller-controller data exchange
broadcast. Controller-controller data exchange broadcast is only possible between
SIMOTION controllers via PROFINET IO with IRT High Performance.
For data exchange to take place, the devices must be located in a common sync domain and
configured accordingly as sync master and sync slaves.
Note
This function is not available for SIMATIC CPUs.
Communication
116 System Manual, 11/2010
PROFINET IO
4.4 Configuring direct data exchange between IO controllers
There are in fact two types of data exchange broadcast. One is automatically created by the
system (e.g. distributed synchronous operation), while the other can be applied by the user
in his or her application. You can configure this second type of data exchange broadcast.
Note
The user must not use the engineering tools to make changes (e.g. amending the address
areas) to the data exchange broadcast which has been automatically configured by the
system. Doing so will result in error states.
Recommendation
We recommend, initially configure the send areas for all PROFINET devices and then the
receive areas. Adopting this procedure will enable you to assign the previously defined send
areas when defining the receive areas. This prevents invalid inputs.
Data volume
Around 3 KB of data can be transmitted. 24 bytes are needed for each configured
synchronous operation relationship. In other words, if 5 following axes were defined for one
master axis, the system needs 5 * 24 bytes. The remaining data is available for application-
specific data exchange broadcast.
Note
An FAQ section on the subject of PROFINET configuration is provided in SIMOTION Utilities
& Applications. SIMOTION Utilities & Applications is provided as part of the SIMOTION
SCOUT scope of delivery.
This FAQ section deals with the subjects of distributed gearing and controller-controller data
exchange broadcast.
Communication
System Manual, 11/2010 117
PROFINET IO
4.4 Configuring direct data exchange between IO controllers
Procedure
1. Open the Properties dialog of the PROFINET interface (double-click the corresponding
row in the configuration table of HW Config).
2. Select the Sender tab.
Communication
118 System Manual, 11/2010
PROFINET IO
4.4 Configuring direct data exchange between IO controllers
Procedure
1. Open the Properties dialog of the PROFINET interface (double-click the corresponding
row in the configuration table of HW Config).
2. Select the Receiver tab.
3. Click the New button.
4. Click the Assign sender button in the Properties receiver dialog.
5. In the Assign sender dialog, select the data area of the desired node which is to be
received by the local controller.
6. Confirm your selection with OK.
7. In the Properties dialog box of the receiver, enter the start address of the address area
via which the reception is to be implemented. The length of the address area must not be
changed as it is automatically adapted to the length of the send area. The configuration
can only be compiled if the send and receive areas have identical lengths!
8. Repeat steps 3 to 7 for further receive areas.
9. A diagnostics address is reserved for each assigned sender via which the receiver can
detect a failure of the sender.
10.Click the Diagnostics addresses button if you want to edit these addresses.
11.Confirm your entries with OK.
Communication
System Manual, 11/2010 119
PROFINET IO
4.5 Configuring the iDevice
Introduction
Up to SIMOTION 4.0, direct coupling (of SIMATIC and SIMOTION via PROFINET, for
example) was only possible via TCP or UDP, or via additional hardware (PN/PN coupler,
SIMATIC CP). With SIMOTION V 4.1.1.6 or higher, the direct coupling of controls - a familiar
feature with PROFIBUS - has been introduced for PROFINET IO. It is possible, for example,
to connect the SIMOTION as an I slave to the SIMATIC CPU via PROFIBUS. A similar
function, referred to as "I device", is also available for PROFINET IO. This supports data
exchange between the controls via I/O areas, with the communication programming required
for TCP or UDP being replaced by configuring and system functionality. In addition, the costs
associated with the hardware solutions used previously no longer apply (PN/PN coupler,
SIMATIC-CP).
An I device is a controller which also assumes the function of an IO device. The term "I
device" is used to refer to an intelligent IO device. Intelligent I devices are characterized by
the fact that their input/output data is pre-processed in the I device, rather than being made
directly available to the higher-level IO controller by actual inputs/outputs.
When operating as an I device, a SIMOTION device can be used for data exchange with a
SIMATIC station, for example. A SIMOTION device acting as an I device may also be used
as a feeder for a modular machine. Please see the description of functions titled Motion
Control basic functions for modular machines.
Another application for a SIMOTION device acting as an I device involves providing
distributed synchronous operation beyond the limits of a project (see the Motion Control
Technology Objects Synchronous Operation, Cam Function Manual).
Note
An I device can only be created using SIMOTION V4.1.1.6 or higher.
Properties of an I device
As well as performing the role of an IO device on a higher-level IO controller, an I device can
set up its own local PROFINET IO system with built-in local IO devices, thereby acting as an
IO controller itself. Both these functions are implemented via the same PROFINET interface
on the device.
With SIMOTION, the I device is available for PROFINET IO with RT and IRT High
Performance.
Communication
120 System Manual, 11/2010
PROFINET IO
4.5 Configuring the iDevice
The following boundary condition applies in terms of the options available for combining
functions:
Communication
System Manual, 11/2010 121
PROFINET IO
4.5 Configuring the iDevice
Higher-level IO controller and I device with IRT, no local PROFINET IO system or local PROFINET
IO system with IO devices with RT
I device send clock:
– Must be the same as the send clock for the higher-level IO controller
– To be set on the I device in <PROFINET Interface> properties using the "Sending cycle" drop-
down list box on the PROFINET tab
Higher-level IO controller with IRT and I device with RT, local PROFINET IO system with IRT
I device update time:
– Must be an integral multiple of the send clock for the higher-level IO controller and the send
clock for the IO controller on the I device
– To be set on the substitute I device in <Profinet Interface> properties, under the update time
on the "IO Cycle" tab
Higher-level IO controller and I device with RT, no local PROFINET IO system
I device update time:
– Any of the possible update times for the I device may be set.
– To be set on the substitute I device in <PROFINET Interface> properties, under the update
time on the IO cycle tab
Higher-level IO controller and I device with RT, local PROFINET IO system with IRT:
I device update time:
– Must be less than or equal to the send clock for the IO controller in the I device
– To be set on the substitute I device in <PROFINET Interface> properties, under the update
time on the IO cycle tab
The figure below shows how an I device can be configured on a higher-level IO controller.
The higher-level IO controller sets up a PROFINET IO system containing the I device. The I
device is able to set up a local PROFINET IO system. Each of these PROFINET IO systems
can belong to its own sync domain. However, the I device must only be assigned to one of
the possible sync domains, as a PROFINET interface can only belong to a single sync
domain.
Communication
122 System Manual, 11/2010
PROFINET IO
4.5 Configuring the iDevice
H W C a ta lo g
P re co n fig u re d S ta tio n s
D435
,QVWDOO*6'ILOH
I-D e v R T
,QVHUWVXEVWLWXWH,GHYLFH *6'ILOH
+LJKHUOHYHO,2FRQWUROOHUSURMHFW
&UHDWH*6'ILOHIRU,GHYLFH
,2 +LJKHUOHYHO,2FRQWUROOHUIRU352),1(7,2V\VWHP
FRQWUROOHU
,57
,2 ,2 ,GHYLFH ,GHYLFHSURMHFW
GHYLFH GHYLFH
,2 ,GHYLFHIRUORFDO352),1(7,2V\VWHP
FRQWUROOHU
,2 ,2
GHYLFH GHYLFH
,GHYLFHPD\RQO\EHORQJWRRQHV\QFGRPDLQ
Configuration procedure
● The I device itself and the IO controller on which it is to be operated should be created in
different projects.
● The PROFINET interface's I device mode must be active for the I device. In addition, the
input and output ranges in the I device must be configured for data exchange with the
higher-level IO controller.
● After an I device has been created and configured, a GSD file needs to be created and
installed for its substitute I device. The substitute I device will then be available in the
hardware catalog under "Preconfigured Stations".
● The next step involves inserting the substitute I device from "Preconfigured Stations" in
the hardware catalog into the higher-level IO controller's PROFINET IO system.
Since a manual process in the hardware catalog is required to create a substitute I device,
there is no automatic alignment between the project with the I device and the corresponding
substitute I device in the GSD file. As a result, no subsequent amendments can be made to
the I device configuration. If an amendment is made, however, a new GSD file will have to
be created and installed. Where numerous amendments have subsequently been made to
the configuration of a given I device, with multiple GSD files created and installed by the I
device, the version shown under "Preconfigured Stations" in the hardware catalog will
always be the most recent one. The version will only be updated, however, if the identifier
used for the substitute I device when creating and installing the GSD file remains the same.
Only the input and output addresses for data exchange may be amended in the project for
the higher-level IO controller.
Communication
System Manual, 11/2010 123
PROFINET IO
4.5 Configuring the iDevice
Since I devices connected to their higher-level IO controller and IO devices connected on the
PROFINET IO system of a single I device are connected via one and the same PROFINET
interface, they will also be located in one and the same Ethernet subnet. This means that the
device names and IP addresses of all these devices must be different from each other, and
the subnet masks must be identical. It is particularly important to bear this in mind if the
higher-level IO controller and the I device are in different projects, as HW Config cannot
check that device names, IP addresses, and subnet masks are consistent across different
projects.
The following scenarios result in different device names and must therefore be avoided:
● If you use a SIMOTION device as the higher-level IO controller, the device name
(NameOfStation) of the I device may not contain any "-" marks, as these will be changed
into "x" when you insert the I device into the PROFINET IO system.
● Since a device name must not be used twice within an Ethernet subnet, any device name
which already exists will be amended when a substitute I device is inserted into the
PROFINET IO system of its higher-level IO controller. In view of this, it is important to
ensure that the device name previously assigned in the GSD file is not used at this stage.
● If more than one substitute I device from the same "Preconfigured Stations" entry is
inserted into the higher-level IO controller's PROFINET IO system, the device name
previously assigned in the GSD file will be amended. With this in mind, a substitute I
device must also be created for every I device to be used in a PROFINET IO system.
See also
Creating an I device (Page 127)
Communication
124 System Manual, 11/2010
PROFINET IO
4.5 Configuring the iDevice
Description
With Step 7 5.5 or higher, SIMATIC CPUs can also be configured as I devices. The I device
functionality of SIMOTION CPUs and SIMATIC CPUs has been consistently standardized. In
the context of this standardization process, the GSD version has been set as V2.25. With
SIMOTION projects that use a lower version than V4.2, the I device must therefore be re-
exported/reinstalled and integrated into the project of the newly designated higher-level
controller when upgrading to V4.2. If you edit projects without re-exporting and reinstalling
the GSD file, a diagnostics buffer entry will be created on the CPU of the I device when
establishing a connection via PROFINET.
Note
Boundary conditions for I device V4.2 or higher
Step 7 V5.5 must be used for configuration on the higher-level controller, as this is the
minimum version required to import the GSD V2.25 file.
When upgrading older versions of the SIMOTION CPU V4.2, the I device becomes
"incompatible" and it is absolutely essential to export/import the GSD.
Below you will find a list of various scenarios which illustrate I device compatibility.
Use case 1: Old project involving SIMOTION devices lower than V4.2 without modification to the I
device.
1. Open an old project involving SCOUT V4.2/Step 7 5.5. The project contains RT I devices
for communication with a SIMATIC CPU.
2. Change the project, but do not make any changes to the I device configuration.
3. Compile the SIMOTION project, including HW Config, and save it as SIMOTION SCOUT
V4.1.
4. The project can be reloaded without any problems.
Use case 2: Old project involving SIMOTION devices lower than V4.2 with modification to the I device
interface.
1. Open an old project involving SCOUT V4.2/Step 7 5.5. The project contains RT I devices
for communication with a SIMATIC CPU.
2. Change the project and make changes to the I device configuration. Changes are
automatically implemented on the I device interface and an IO slot is added.
3. Create a new GSD V2.25 from the I device.
Communication
System Manual, 11/2010 125
PROFINET IO
4.5 Configuring the iDevice
4. Install the exported I device and replace it on the higher-level SIMATIC CPU.
Note
If you use the new GSD in a different project, it will still only be possible to edit it using
STEP 7 V5.5, as this is the only way to ensure compatibility with GSD V2.25.
5. Compile the SIMOTION project, including HW Config, and save it as SIMOTION SCOUT
V4.1.
6. The project can be reloaded without any problems.
Use case 3: Higher-level SIMATIC CPU and SIMOTION I device lower than V4.2 and upgrade to
V4.2.
1. Open the project with a SIMOTION CPU and higher-level SIMATIC CPU. The SIMATIC
CPU communicates as a PN controller with the I device of the SIMOTION CPU.
2. Upgrade the SIMOTION CPU to SIMOTION V4.2.
3. Export the I device of the SIMOTION CPU.
4. Diagnostics addresses and station numbers have changed compared to what they were
in the previous I device. If these are used as absolute values in system calls in the
SIMOTION application, the application program will need to be adapted accordingly.
5. Delete the previous I device of the SIMOTION CPU in the project of the higher-level
SIMATIC CPU. Make sure that the input and output addresses of the new I device are
identical to those of the old I device, so that the previous S7 application can be used.
6. Import the new GSD file into the project of the higher-level SIMATIC CPU.
7. Compile the SIMOTION project, including HW Config, and save it as SIMOTION SCOUT
V4.2. The project has now been upgraded to V4.2.
Use case 4: Higher-level SIMOTION CPU and several SIMOTION I devices lower than V4.2 and
upgrade to V4.2.
1. Open the project with several SIMOTION CPUs as I devices and a higher-level SIMATIC
CPU. The higher-level SIMOTION CPU communicates as a PN controller with the I
device of the SIMOTION CPU.
2. Upgrade the SIMOTION CPUs to SIMOTION V4.2.
3. Diagnostics addresses and station numbers have changed compared to what they were
in the previous I device. If these are used as absolute values in system calls in the
SIMOTION application, the application program will need to be adapted accordingly.
4. Export the I device of the SIMOTION CPUs and import the GSD file into the project of the
higher-level SIMOTION CPU.
5. Compile the SIMOTION project, including HW Config, and save it as SIMOTION SCOUT
V4.2. The project has now been upgraded to V4.2.
Communication
126 System Manual, 11/2010
PROFINET IO
4.5 Configuring the iDevice
Requirement
You have already created a project and created a station with rack or a SIMOTION controller
in HW Config (SIMATIC Manager or SIMOTION SCOUT). You have configured the
PROFINET IO system and now want to configure the I device.
Note
When configuring the I device, pay attention to the possible settings for the RT class, see
PROFINET IO and I device (Page 120).
Procedure
1. Double-click the interface module of the CPU. The Properties dialog box opens.
2. Select the General tab and, if necessary, change the device name (without any "-").
3. Select the I device tab.
4. Activate the I device mode checkbox.
Communication
System Manual, 11/2010 127
PROFINET IO
4.5 Configuring the iDevice
Note
Please note that if the I device is to work in IRT mode, the device name and IP
address of the controller must be assigned. You therefore have to set this option on
the I device. To do this, refer to chapter IP address and communication name via user
program/DCP (Mini-IP-Config) (Page 113) and Inserting a substitute I device in the
higher-level IO controller (Page 131).
6. If the I device is being operated with IRT, its send clock will have to be set. To do this,
select the PROFINET tab and set the send clock as appropriate.
7. Click New... each time to create the virtual subslots (input and output address transfer
area), and configure these according to your requirements. By doing this, you are
configuring the I/O range for the I device via which data is exchanged with the higher-
level IO controller. Do not perform any further settings in the Sender and Receiver tabs.
8. Click OK to accept these settings and save the project.
9. Continue by creating the substitute I device.
Communication
128 System Manual, 11/2010
PROFINET IO
4.5 Configuring the iDevice
Requirement
You have already configured the module to be used as an I device.
1. First save the project.
2. Select Options > Create GSD file for I device .... The "Create GSD file for I device" dialog
opens.
3. Select the I device and enter a name for the substitute I device. The substitute I device
will appear under this name in "Preconfigured Stations" in the HW catalog.
4. Click Create and then Export. The Find folder dialog opens.
5. Select the path in which the GSD file of the substitute I device is to be stored and click on
OK.
Requirement
You have already configured the module to be used as an I device and exported the GSD
file from this.
Procedure 1:
1. First save the project.
2. Create an I device as described in Chapter Exporting the GSD file for the I device
(Page 129). There is no need to export the file; instead, it is installed immediately.
Communication
System Manual, 11/2010 129
PROFINET IO
4.5 Configuring the iDevice
4. Click Close. The substitute I device will now be available under "Preconfigured Stations".
Procedure 2:
1. Select Options > GSD files.... The "Install GSD files" dialog box opens.
2. Click Browse... . The Find folder dialog opens.
3. Select the path in which the GSD files of the substitute I device are stored and click on
OK.
Communication
130 System Manual, 11/2010
PROFINET IO
4.5 Configuring the iDevice
Requirement
You have already created a substitute I device. A project is open and an IO controller with a
PROFINET IO system has already been configured.
Communication
System Manual, 11/2010 131
PROFINET IO
4.5 Configuring the iDevice
The number of submodules corresponds to the number of the configured submodules of the
I device in the GSD file. The module and the submodules (virtual subslots) cannot be
deleted.
Communication
132 System Manual, 11/2010
PROFINET IO
4.5 Configuring the iDevice
Communication
System Manual, 11/2010 133
PROFINET IO
4.5 Configuring the iDevice
Setting the synchronization type and isochronous mode for an I device with IRT
1. Double-click the Interface entry in the rack to display the Interface properties dialog box.
2. In the Synchronization tab, select Sync-Slave and IRT as synchronization type and RT
class respectively.
3. On the IO cycle tab, select automatic Mode under update time and select Assign IO
device isochronously Servo under isochronous mode.
Communication
134 System Manual, 11/2010
PROFINET IO
4.6 Loading the communication configuration
Requirement
A PG/PC with which you can go ONLINE is connected.
Procedure
The configuration data must be loaded to all participating controllers once PROFINET IO
configuration has been successfully completed.
1. In NetPro, select the Ethernet subnet and then select the Target system > Loading in
current project > Nodes on the subnet menu command.
Communication
System Manual, 11/2010 135
PROFINET IO
4.7 Data exchange between SIMATIC and SIMOTION via PROFINET
Description
SIMATIC and SIMOTION can be linked using the following functions:
● TCP/UDP*) user communication
● PROFINET IO/RT, via S7-300 CP as a device
● PROFINET IO/RT, via PN/PN coupler
● PROFINET IO/RT, via I device
6,0$7,& 6,027,21
Note
An FAQ section on the subject of coupling a PROFINET RT I device between a
SIMOTION control and a SIMATIC control is provided in SIMOTION Utilities &
Applications. SIMOTION Utilities & Applications is provided as part of the SIMOTION
SCOUT scope of delivery.
It looks at the following three application cases:
Case A: Two separate projects: SIMATIC and the SIMOTION as an I device in a project;
SIMOTION as a controller in a second, separate project
Case B: One project for all components
Case C: Multiple use of an I device
For more detailed information on the configuration of I devices, please refer to Chapter
Configuring the iDevice (Page 120).
Please also refer to the FAQ on configuration I device FAQ
(http://support.automation.siemens.com/WW/view/en/29578823).
Communication
136 System Manual, 11/2010
PROFINET IO
4.7 Data exchange between SIMATIC and SIMOTION via PROFINET
Description
The PN/PN coupler is used to link two PROFINET IO system with one another and to
exchange data between them. The maximum size of the data which can be transferred is
256-byte input data and 256-byte output data.
As a device, the PN/PN coupler has two PROFINET interfaces, each of which is linked to
another subnet.
During configuration, two IO devices are derived from a PN/PN coupler which means that
there is one IO device for each controller with its own subnet. The other part of PN/PN
coupler in each case is known as the bus node. Once configuring is complete, the two parts
are joined.
0DFKLQH$ 0DFKLQH%
3131
FRXSOHU
; ;
6ZLWFK 6ZLWFK 6ZLWFK
Figure 4-42 Coupling two PROFINET subnets with one PN/PN coupler
The two machines in the figure are isolated via the PN/PN coupler. If it is also possible, for
example, to use the programming device of machine B to go online on machine A, a jumper
can be inserted between ports 2 and 3 in the PN/PN coupler. This removes the isolation.
Note
Detailed information about the PN/PN coupler is contained in the appropriate device
documentation.
Communication
System Manual, 11/2010 137
PROFINET IO
4.7 Data exchange between SIMATIC and SIMOTION via PROFINET
Note
The PN/PN coupler is used for data exchange between SIMOTION and SIMATIC. It is also,
however, the preferred solution for fast exchange of F signals between SIMATIC CPUs.
Description
TCP and UDP can be used to exchange data between SIMOTION, SIMATIC, other controls,
and third-party systems. The PROFINET interface is a standard Ethernet interface and
supports these protocols. The user program must handle the management of the connection.
You can use this connection, for example, to exchange data between a SIMATIC CPU and
SIMOTION controller via PROFINET.
UDP is a connection-less protocol; this means transmission is not followed by feedback
indicating whether the receiver actually received the message. TCP is a connection-based
protocol; this means a logical connection is established at the outset. Transmission only
begins once this connection is present. The connection (i.e. message receipt) is monitored.
See also
Overview of SIMOTION system functions (Page 160)
Overview of SIMOTION system functions (Page 179)
Communication
138 System Manual, 11/2010
PROFINET IO
4.8 Diagnostic and alarm behavior
Description
For PROFINET IO there is an alarm and diagnostic functionality for PROFINET devices.
352),1(7GHYLFHGLDJQRVLV 2SHQQHWZRUNGLDJQRVLV
,QWKUHHOHYHOV 6103
GHYLFHVORW :HE
FKDQQHOIRUQHWZRUNFRPSRQHQWV
DGGUHVV
IDXOWORFDWLRQ
Device diagnostics
The device diagnosis can be divided into three levels. For detailed information, see
"Diagnostic model".
Communication
System Manual, 11/2010 139
PROFINET IO
4.8 Diagnostic and alarm behavior
The use of an acknowledged service enables the transfer of the diagnostic events in causal
sequence. A station saves its status, which can be fetched directly by a diagnostics unit at
any time using standardized data sets, see corresponding STEP7 documentation and
documentation on the _readRecord( ) system function.
3*3& ,2&RQWUROOHU
,2'HYLFH
(76
Communication
140 System Manual, 11/2010
PROFINET IO
4.8 Diagnostic and alarm behavior
Description
A number of alarms are issued on the IO controller. Occurring alarms are listed with the
corresponding EventID in the diagnostics buffer of SIMOTION. The following alarms are
possible:
● Alarms for direct data exchange between IO controllers
● Station alarms reported by the PROFINET interface
The following table shows PROFINET IO alarms as they are represented in SIMOTION:
Communication
System Manual, 11/2010 141
PROFINET IO
4.8 Diagnostic and alarm behavior
Description
The alarms are transferred using the PROFINET alarm mechanism from the IO device to its
associated IO controller. The alarms are entered in the diagnostic buffer and can be
evaluated using the PeripheralFaultTask. The following table shows how alarms are
represented as PeripheralFaultTask.
Alarm types indicated as "not supported" are acknowledged by the SIMOTION controller with
"not supported" and not entered in the diagnostic buffer.
Communication
142 System Manual, 11/2010
PROFINET IO
4.8 Diagnostic and alarm behavior
Communication
System Manual, 11/2010 143
PROFINET IO
4.8 Diagnostic and alarm behavior
Description
For PROFINET IO with IRT, communication monitoring takes place between IO controllers. If
this establishes that IRT data is no longer being received (either there is no data arriving, or
it is arriving too late) a station failure alarm is generated. If communication is re-established,
a station reconnection alarm is generated. If IRT data arrives late on three occasions, a
station failure alarm is reported.
Note
During communication monitoring, only the receiver slot is monitored.
The following table shows PROFINET IO alarms between IO controllers involved in direct
data exchange as they are represented in SIMOTION:
Description
Alarms initiated by the SINAMICS S120 CU320/CBE20 or SINAMICS S120 CU310 PN are
issued using the PROFINET alarm channel. Two types are possible for alarms:
● Alarms issued by the PROFINET interface that directly concern PROFINET.
● Alarms issued by the application/technology in the drive.
Communication
144 System Manual, 11/2010
PROFINET IO
4.8 Diagnostic and alarm behavior
PROFINET alarms
The following alarms are supported via the SINAMICS module that can be used with
PROFINET:
Alarm Description
Port data change notification A detailed description can be found under Alarms on the IO
Sync Data Changed Notification controller (Page 141)
Isochronous mode problem notification
Multicast Communication Mismatch
Technology/application alarms
Alarms are not sent to the controller as standard PROFINET alarms, but instead are mapped
as PROFIdrive alarms. The alarm buffer can be fetched by means of a parameter job (trigger
in status word Bit7).
Communication
System Manual, 11/2010 145
PROFINET IO
4.8 Diagnostic and alarm behavior
Communication
146 System Manual, 11/2010
PROFINET IO
4.8 Diagnostic and alarm behavior
Communication
System Manual, 11/2010 147
PROFINET IO
4.8 Diagnostic and alarm behavior
Procedure
1. Go online and open HW Config for the appropriate SIMOTION device.
2. Select Target system > Diagnose, monitor/control Ethernet node.
HW Config searches for all network nodes. The (Diagnosis) ONLINE window opens and
displays the network nodes.
3. Right-click the required node and select Properties. The detailed diagnosis is displayed.
The associated fault is displayed here.
Description
A device or module of an automation system can essentially adopt one of two states: either
'good' or 'failure'. With a view to increasing the availability of sensors/actuators, devices, and
modules, these same components also supply information concerning necessary
maintenance work in addition to these two states. This additional information includes details
about the maintenance state, state of wear, and remaining life time, etc. This constitutes
what is known as an 'extended maintenance concept'. The aim of the extended maintenance
concept is to detect and eliminate potential faults early on - before they lead to production
outages. For this purpose, the 'good' and 'failure' states are supplemented by states called
'maintenance required' and 'maintenance demanded'.
Communication
148 System Manual, 11/2010
PROFINET IO
4.8 Diagnostic and alarm behavior
The above states can be depicted on the following maintenance state model.
Description
The PROFINET IO device model stipulates that an IO device is to be divided into slots and
subslots. A slot represents a module (= physical assembly) and a subslot represents a
submodule (= physical subassembly).
Communication
System Manual, 11/2010 149
PROFINET IO
4.8 Diagnostic and alarm behavior
● Parameters
● Diagnostics
In the PROFINET IO device model, channels are defined below submodules for the
diagnostics. A channel is a logical substructure of a submodule. A submodule can contain up
to 65,536 channels. Defined diagnostic functions (e.g. short-circuit, wire breakage,
overtemperature) are monitored within the channels. A channel can also monitor several
diagnostic functions in parallel.
This monitoring results in channel diagnostics. Several different sets of channel diagnostics
can occur in a submodule at the same time. Channel diagnostics from different submodules
can, of course, also occur. Channel diagnostics are signaled via a diagnostic interrupt. The
diagnostic interrupt message is issued for each submodule in which channel diagnostics
occur.
Communication
150 System Manual, 11/2010
PROFINET IO
4.8 Diagnostic and alarm behavior
Description
If a diagnostics-related event occurs (e.g. failure or maintenance required) in an IO device, a
diagnostic interrupt is generated and sent to the associated IO controller. The SIMOTION
device acting as the IO controller then issues a diagnostic interrupt via the
PeripheralFaultTask using TSI#interruptId = _SC_DIAGNOSTIC_INTERRUPT (= 201). Data
set 0 (DS0) for the diagnostic interrupt can be found under the TSI#InterruptId. Data set 0
(DS0) supplies the group states for the channels of a submodule. A diagnostic interrupt can
occur as an incoming diagnostic interrupt with TSI#eventClass = 0x38, TSI#faultId = 0x42
and as an outgoing diagnostic interrupt with TSI#eventClass = 0x39, TSI#faultId = 0x42.
A diagnostic interrupt contains the following group states in data set 0 (DS0) in the form of
the group bits below. The information relates to the sum total of all diagnostic functions of the
channels within a submodule:
● Group failure: DS0.Byte0.Bit 0
● Group maintenance requirement: DS0.Byte1.Bit 7
● Group maintenance demand: DS0.Byte2.Bit7
The group bits are formed by the logical ORing of the respective individual bits of all
diagnostic functions of the channels for a submodule. The three group bits are independent
of each other and do not influence each other. The group bits are therefore set and/or reset
independently of each other.
If just one modification is made to the maintenance states, individual maintenance
requirements or maintenance demands are still pending in the submodule, and there is no
failure, an incoming diagnostic interrupt is signaled. The following group bits are set
accordingly in DS0: group maintenance requirement/group maintenance demand. If all
maintenance states have disappeared and there is no failure, an outgoing diagnostic
interrupt is signaled and the two group bits (group maintenance requirement/group
maintenance demand) are set to 0. Normally, this means that the rule which applies is that
an incoming diagnostic interrupt is signaled as soon as at least one of the group bits (group
failure or group maintenance requirement or group maintenance demand) is set to 1.
However, when all of the group bits (group failure or group maintenance requirement or
group maintenance demand) are no longer set to 1, an outgoing diagnostic interrupt is
signaled.
Communication
System Manual, 11/2010 151
PROFINET IO
4.8 Diagnostic and alarm behavior
Communication
152 System Manual, 11/2010
PROFINET IO
4.8 Diagnostic and alarm behavior
Communication
System Manual, 11/2010 153
PROFINET IO
4.8 Diagnostic and alarm behavior
Communication
154 System Manual, 11/2010
Ethernet: General information (TCP and UDP
connections) 5
5.1 Ethernet interfaces
Overview
Below is a description of how to configure TCP and UDP Ethernet connections between
communications partners. TCP and UDP are based on Ethernet and the IP protocol.
Ethernet interfaces
Depending on the device, SIMOTION has one or two onboard Ethernet interfaces. You can
connect an Industrial Ethernet with a transmission rate of 10/100 Mbps or 1,000 Mbps to the
8-pin RJ45 sockets with D4x5-2 DP/PN.
For modules with two Ethernet interfaces, there is no HUB/switch functionality; i.e. message
frames are not forwarded from one interface to the other. The interfaces belong to separate
Ethernet subnets. The SIMOTION devices do not have IP router functionality; they do not
forward the message frames from one subnet to another.
With two interfaces, the TCP/IP timeout parameters can be set once for both interfaces. The
transmission rate/duplex can be set separately for the two interfaces. "Utilities via TCP" are
supported for both Ethernet interfaces. This enables S7 routing from the Ethernet interfaces
to the PROFIBUS interfaces. "Utilities via TCP" are not routed from one Ethernet interface to
the other.
Alternatively, you can even connect an Industrial Ethernet through the PROFINET modules,
such as CBE30 of a SIMOTION D4x5 (100 Mbps).
The MAC addresses of the Ethernet interfaces can be seen on the outside of the housing.
Communication
System Manual, 11/2010 155
Ethernet: General information (TCP and UDP connections)
5.2 LCom communications library
LCom library
The LCom library is based on TCP and simplifies the use of both SIMOTION system
functions and SIMATIC communication blocks in order to establish communication between
multiple machines.
Note
You can find the LCom library on the SIMOTION SCOUT DVD "Documentation, Utilities &
Applications". The DVD also contains an example project and comprehensive
documentation for the library.
Types of control
The LCom library supports the following control types and combinations:
● SIMOTION ↔ SIMOTION
● SIMATIC ↔ SIMATIC
● SIMOTION ↔ SIMATIC
Communication
156 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
Functions
● The send and receive data must be of data type BYTE. Outside of the
FBLComMachineCom, any user structures can be converted into an ARRAY OF BYTES
via marshalling.
● Bi-directional operation
– A logical point-to-point connection is established between two controls.
– Each control can send and receive via a connection at the same time.
● Alignment of configuration settings between communications partners (e.g. send clock)
– Assignment of communication parameters to the communications partner
– Changing the configuration during operation
● Types of data transmission
– Cyclic transmission (transmission at fixed periods of time)
– Transmission when data is changed
– One-off transmission
● Sending and receiving max. 64 kB useful data
● Acknowledgment and monitoring of received data
● The number of message frames that can be transmitted without having been
acknowledged may vary (adjustable u8SlidingWindow). The LCom block for the SIMATIC
control only supports u8SlidingWindow = 1.
● Sign-of-life monitoring
● Time-of-day synchronization
Communication
System Manual, 11/2010 157
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
&OLHQW &OLHQW
8VHUSURJUDP 8VHUSURJUDP
6HUYHU
3RUW 3RUW
8VHUSURJUDP
Communication
158 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
3RUW[
6RFNHW[
7&36WDFN
BWFS6HQG BWFS5HFHLYH
8VHUSURJUDP
Figure 5-2 Data exchange between user program and TCP stack
Data packets
With TCP communication, the send data from the TCP stack is divided into subpackets of
any size (up to 1,456 bytes per packet). This means that data packets of different sizes may
arrive at the receiver side.
The buffered useful data must be fetched promptly by the user program, otherwise it will not
be possible for any other data to be received. However, by contrast none of the useful data
is discarded, as TCP has a flow control facility. In this state, the communications partner
does not send any additional data and alerts its application to this fact.
Communication
System Manual, 11/2010 159
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
Function call
The SIMOTION system functions for TCP communication may only be called in the
BackgroundTask or in a MotionTask. In the BackgroundTask, it should be noted that the
system functions are executed asynchronously (nextCommand=IMMEDIATELY). In the
MotionTask, however, the system functions can be executed synchronously
(nextCommand=WHEN_COMMAND_DONE).
Note
To ensure reliable cyclic communication, you should use standard mechanisms such as
those found in PROFIBUS DP or PROFINET IRT systems.
See also
_tcpOpenServer() system function (Page 161)
_tcpOpenClient() system function (Page 161)
_tcpSend() system function (Page 162)
_tcpReceive() system function (Page 163)
_tcpCloseConnection() system function (Page 164)
_tcpCloseServer() system function (Page 164)
Communication
160 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
Overview
This system function is used in order to initiate passive establishment of a connection.
To parameterize the function, the locally assigned SIMOTION port is transferred for the port
parameter.
The maximum number of parallel connection requests for this port that are to be permitted
from other controllers is also specified as a further parameter for backLog.
The behavior of this function with respect to the advance when called is also parameterized
with the nextCommand parameter. There are two setting options: IMMEDIATELY and
WHEN_COMMAND_DONE. With the first value the advance is immediate and with the
second value it is after completion of the command.
When the _tcpOpenServer() function is called, the structure returned to the user program
contains the following parameters.
The status of establishing the connection can be queried via the functionResult parameter.
The connectionId parameter is used as an (input) parameter for the call of the _tcpSend()
and _tcpReceive() functions and assigns a unique TCP connection to these functions. This
return value is referred to in the above call examples.
The clientAddress parameter returns the client IP address from which the connection is
activated; this takes the form of an array.
The port number designated as the local port number of the client is specified in the
clientPort parameter.
The port number is in the range 1024 to 65535.
Overview
The _tcpOpenClient() system function is used to actively establish a connection.
Communication
System Manual, 11/2010 161
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
When called, the locally assigned SIMOTION port is transferred to the function for the port
parameter.
The serverAddress parameter is the IP address of the communications partner, which is
transferred in an array.
The port number designated as the local port number is transferred to the function in the
serverPort parameter.
The port number is in the range 1024 to 65535.
The behavior of this function with respect to the advance when called is parameterized with
the nextCommand parameter. There are two setting options: IMMEDIATELY and
WHEN_COMMAND_DONE. With the first value the advance is immediate and with the
second value it is after completion of the command.
When the _tcpOpenClient() function is called, the structure returned to the user program
contains the following parameters.
The status of establishing the connection can be queried via the functionResult parameter.
The connectionId parameter is used as an (input) parameter for the call of the _tcpSend(),
_tcpReceive(), and _tcpCloseConnection() functions and assigns a unique TCP connection
to these functions.
Overview
The _tcpSend() system function is used for sending data.
For the connectionId parameter, the connectionId return value of the _tcpOpenClient() or
_tcpOpenServer() function is transferred, depending on whether the communication node
that executes the function is a server or client.
Communication
162 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
The behavior of this function with respect to the advance when called is also parameterized
with the nextCommand parameter. There are two setting options: IMMEDIATELY and
WHEN_COMMAND_DONE. With the first value the advance is immediate and with the
second value it is after completion of the command.
The dataLength parameter informs the function of the useful data length in bytes that has to
be transferred (max. 4,096 bytes per function call).
The data parameter specifies the useful data area in which the send data that is to be
transferred with the function is located.
The return value of the function to the user program is of data type DINT. The various return
values indicate any problems that occurred during execution of the function. There is also a
confirmation when the data has been successfully sent. Negative values in functionResult
indicate a data transmission error. In this case, the connection must be closed by calling
_tcpCloseConnection().
Overview
The _tcpReceive() system function is used for receiving data.
For the connectionId parameter, the connectionId return value of the _tcpOpenClient() or
_tcpOpenServer() function is transferred, depending on whether the communication node
that executes the function is a server or client.
The behavior of the __tcpReceive() function with respect to the advance when called is also
parameterized with the nextCommand parameter. There are two setting options:
IMMEDIATELY and WHEN_COMMAND_DONE. With the first value, the advance is
immediate and with the second value it is after completion of the command.
For each function call, up to 4,096 bytes of receive data can be read out from the TCP stack.
Please note that it will not be possible to predict the sizes of the packets received. On the
receiver side, you must take care to ensure that all useful data is present before the
evaluation and further processing. For this purpose, the nextCommand parameter should be
set to IMMEDIATELY.
The receiveVariable parameter is used to inform the function of the useful data area in which
the receive data is to be stored. The received data is available in the receiveVariable
parameter in the length dataLength, if the return value in the functionresult = 16#0. At the
next function call, the ReceiveVariable parameter is overwritten with new data in the length
dataLength.
Communication
System Manual, 11/2010 163
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
When the _tcpReceive() function is called, the structure returned to the user program
contains the following parameters. The receive status can be queried via the functionResult
parameter. The dataLength parameter signals the number of received useful data bytes
once the _tcpReceive() function has been successfully called.
Negative values in functionResult indicate a data transmission error. In this case, the
connection must be closed by calling _tcpCloseConnection().
Overview
The _tcpCloseConnection() function is used for closing a connection that has been actively
established by the communication node executing the function (client).
Overview
The _tcpCloseServer() function is used for closing a connection that has been passively
established by the communication node executing the function (server).
Communication
164 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
The return value of the function to the user program is of data type DINT and indicates any
errors that occurred during parameterization of the function or signals if the port has been
closed successfully.
Overview
The following function blocks are available for TCP communication with a SIMATIC and its
onboard Ethernet interfaces.
● TSEND (FB63)
● TRCV (FB64)
● TCON (FB65)
● TDISCON (FB66)
To establish the connection, FB65 TCON requires the data structure UDT65 TCON_PAR. By
way of a return value, the data structure receives a connection ID which must be transferred
when the communication blocks are called. The FB66 TDISCON function block is used to
close the connection. Useful data is sent and received using the FB63 TSEND and FB64
TRCV blocks.
SIMATIC
CPU 315(F)-2 PN/DP 8
CPU 317(F)-2 PN/DP 8
CPU 319(F)-2 PN/DP 32
CPU 414-3 PN/DP 30
CPU 416(F)-3 PN/DP 62
IM151-8(F) PN/DP CPU 8
See also
Overview of SIMATIC communication blocks (Page 182)
Communication
System Manual, 11/2010 165
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
Overview
In the case of communication with a SIMATIC control and integrated Ethernet interface, the
connection is not configured in NetPro. Instead, it is configured using the data structure
UDT65 TCON_PAR in the user program (see figure below).
Communication
166 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
Communication
System Manual, 11/2010 167
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
See also
Overview of SIMATIC communication blocks (Page 182)
TCON (FB65)
Communication
168 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
BUSY :=M3.0
ERROR :=M4.0
STATUS :=MW100
CONNECT :=P#DB1.DBX0.0 BYTE 64
TSEND (FB63)
Communication
System Manual, 11/2010 169
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
The parameters DONE, BUSY, and ERROR also specify the processing status of the
function block in this case. In addition to the information that an error has occurred (ERROR
= 1), the user also receives detailed information about the type of error via the STATUS
parameter.
As already mentioned above, the DATA parameter contains the address and length of the
send area.
TRCV (FB64)
Data can also be received using the TRCV (FB64) function block via an established
connection.
Receiving is controlled using the EN_R parameter. This means that if the EN_R parameter is
assigned the value 1, data can be received.
The ID is used to select a specific communication connection to be used for receiving the
data.
There are two principle parameterizations for the LEN parameter. If the parameter is
assigned the value 0, the length of the expected receive data is implicitly specified via an
ANY pointer on the DATA block input. As soon as data is received, the data is provided in
the receive buffer and this is signaled via the NDR parameter. The length of the received
data can be taken from the RCVD_LEN parameter and it can also be shorter than the size
stored in the DATA parameter. If the LEN parameter is assigned a value other than 0, the
received data is temporarily stored in the receive buffer and only provided when the
configured length is reached. The NDR parameter also signals when the data has been
completely received.
The NDR parameter signals the partial or complete reception of data.
For reception, the parameters DONE, BUSY, and ERROR display the processing status of
the function block. In addition to the information that an error has occurred (ERROR = 1), the
user also receives detailed information about the type of error via the STATUS parameter.
The meaning of the RCVD_LEN parameter has already been explained above. If the LEN
parameter has been assigned the value 0, the number of data items contained in the data
block received last is specified in the RCVD_LEN parameter. If a value other than 0 has
been assigned in the LEN parameter, then the same value is present in RCVD_LEN.
Communication
170 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
The DATA parameter contains the address and length of the send area. The received data
can be taken from here for further processing.
FDISCON (FB66)
The TDISCON (FB66) function block is used to close an existing connection. To close the
connection, the input parameter REQ is set to 1. The closing of the connection is, therefore,
triggered by the rising edge.
The ID parameter informs the function block which connection is to be closed. This
parameter specifies a reference to a connection which has already been established and
which is defined by means of a structure of type TCON_PAR.
The parameters DONE, BUSY, and ERROR can be used to query the processing status of
the function block. In addition to the information that an error has occurred (ERROR = 1), the
user also receives detailed information about the type of error via the STATUS parameter.
Overview
The following communication blocks are available:
● AG_SEND (FC5)
● AG_RECV (FC6)
● AG_LSEND (FC50)
● AG_LRECV (FC60)
● AG_SSEND (FC53)
● AG_SRECV (FC63)
Communication
System Manual, 11/2010 171
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
The section below only describes SIMATIC communication blocks AG_SEND and
AG_RECV.
For more information, please refer to the SIMATIC NET functions (FC) and function blocks
(FB) for SIMATIC NET S7 CPs Programming Manual.
Note
For the CP 300, the maximum send and receive length per function call (AG_SEND and
AG_RECV) is 8,192 bytes.
The AG_SEND and AG_RECV functions can also be used for the CP 400. However, the
transferable data length in this case is generally limited to <= 240 bytes per job.
Procedure
1. The connection table of the S7 station must be displayed in NetPro in order to create and
configure the communication connection. For this purpose, the CPU within the S7 station
is selected. The connection table is then displayed in the lower working area of NetPro. A
connection table cannot be displayed for the SIMOTION device in NetPro.
2. Double-clicking an empty line in the connection table opens the Insert New Connection
dialog box for inserting a new communication connection. The dialog box is the same for
TCP and UDP connections. With the CPU selected, the dialog box can also be opened
via the context menu Insert > New connection… or by clicking the button in the menu bar.
Communication
172 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
3. In the Insert New Connection dialog box, select the connection partner.
Note
In the case of communication between an S7 CP and a SIMOTION device, select the
setting "(unspecified)".
Figure 5-5 "Insert New Connection" dialog box with selected TCP/IP connection
4. The desired connection type (TCP connection) is selected in the Connection field.
Note
In the case of UDP communication, select UDP connection here.
Communication
System Manual, 11/2010 173
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
5. If you exit the Insert New Connection dialog box with OK, a prompt appears to inform you
that connections are also possible via subnets and that the router addresses may have to
be checked.
Once you have acknowledged this prompt, in the case of a TCP connection the
Properties dialog box will open.
6. The IP address and the port for the local communications partner are already pre-
assigned in the Addresses tab. The settings still have to be made for the remote
communications partner. The IP address of the communications partner must be entered
in the IP (DEZ) field. A port, specified by the user for the communications partner for this
connection, must be entered in the Port (DEZ) field. Boundary conditions must be met for
the port on the S7 side, i.e. a port between 2000 and 5000 must be selected on the S7
side.
Note
SIMOTION supports port 1024 to 65535.
Communication
174 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
7. In the Block parameters field on the General tab, the ID and LADDR parameters for the
S7 communication blocks can be used. ID assigns the communication connection a
unique reference. Additionally, the address of the CP is specified as LADDR.
The Active connection buildup checkbox can be used to specify whether the connection
is to be established from the S7 station. If active connection establishment is selected on
the S7 side, the communications partner must be configured as a server.
If active connection establishment is not selected on the S7 side, however, the
communications partner must be configured as a client.
8. If the Properties dialog box is now exited with OK, the Insert New Connection dialog box
must also be closed (by clicking the Close button) to finish the connection configuration. If
you wish to configure additional connections, you can do this by selecting the required
connection type and then clicking the Accept button.
Once you have finished configuring the communication connection, the parameters for
establishing the connection are permanently defined with a communications partner.
Communication
System Manual, 11/2010 175
Ethernet: General information (TCP and UDP connections)
5.3 TCP communication
Overview
Below is a description of the communication blocks that can be used to program the
establishment of a connection.
AG_SEND (FC5)
CALL "AG_Send"
Act :=M0.0
ID :=1
LADDR :=W#16#3FFC
SEND :=P#DB100.DBX0.0 BYTE 1000
LEN :=1000
DONE :=M0.1
ERROR :=M0.2
STATUS :=MW10
The ID and LADDR parameters are displayed when creating the connection in NetPro and
must be transferred for this connection when the functions are called. Sending is triggered
on a positive edge at the ACT input. The SEND parameter defines the send data and the
length to be sent is specified via LEN. The parameters DONE, ERROR, and STATUS are
used for diagnostics or to return the status of the send job.
AG_RECV (FC6)
Call "AG_RECV"
ID :=1
LADDR :=W#16#3FFC
RECV :=P#DB110.DBX0.0 BYTE 1000
NDR :=M2.0
ERROR :=M2.1
STATUS :=MW14
LEN :=MW16
The parameters ID and LADDR are specified by NetPro when creating the connection in
NetPro and must be transferred for this connection when the functions are called.
Communication
176 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
At the RECV parameter, a pointer is transferred; this indicates the data area in which the
received data is stored. TRUE at the NDR output informs the user that new data has been
received. The LEN parameter specifies how many bytes have been read out. The
parameters ERROR and STATUS return a diagnosis or the status of the receive call.
Note
In the case of TCP communication, the NDR output is only set once the data area for the
received data is full.
Communication
System Manual, 11/2010 177
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
3RUW[
6RFNHW[
8'36WDFN
BXGS6HQG BXGS5HFHLYH
8VHUSURJUDP
Figure 5-8 Data exchange between user program and UDP stack
With UDP communication, the useful data received is buffered in the UDP stack and must be
read out from here by the application. The size of the buffered useful data per connection
depends on the control involved. If the receive buffer is not read out in good time, the UDP
message frames received will be lost.
Communication
178 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
Function call
The SIMOTION UDP system functions may only be called in the BackgroundTask or in a
MotionTask.
Data is sent via _udpSend(). If data is to be received on the SIMOTION side, the
_udpReceive() function is used. The sections that follow describe the functions.
Note
To ensure reliable cyclic communication, you should use standard mechanisms such as
those found in PROFIBUS DP or PROFINET IRT systems.
See also
_udpSend() system function (Page 179)
_udpReceive() system function (Page 180)
_udpAddMulticastGroupMembership() system function (Page 181)
_udpDropMulticastGroupMembership() system function (Page 182)
Overview
The _udpSend() system function is used for sending data.
i32RetValue :=_udpSend(
sourcePort := 3456 //UINT, 1024 - 65535
,destinationAddress := au8DestinationAddress //ARRAY[0..3] OF USINT
,destinationPort := u16DestinationPort //UINT, 1024 - 65535
,communicationMode := CLOSE_ON_EXIT //EnumUdpCommunicationMode
,dataLength := u32DataLength //UDINT
,data := ab8SendData //ARRAY[0..1469] OF BYTE
);
When the _udpSend() function is called, the local port is transferred for the sourcePort
parameter. The destinationAddress parameter is the IP address which is transferred in an
array. The IP address can be configured and read out in HW Config.
Communication
System Manual, 11/2010 179
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
Note
Up to SIMOTION 4.1 SP4, the length of the send data (data) was limited to 1,400 bytes.
Overview
The _udpReceive() system function is called for receiving data.
sRetValueUdpReceive :=_udpReceive(
port := 3456 //UINT, 1024 - 65535
,communicationMode := CLOSE_ON_EXIT //EnumUdpCommunicationMode
,nextCommand := IMMEDIATELY //EnumNextCommandMode
,receiveVariable := ab8ReceiveData //ARRAY[0..1469] OF BYTE
);
When the function is called, the local port is transferred for the port parameter.
In this case too, the user can use communicationMode to specify whether the
communication resources are to be released after reception (CLOSE_ON_EXIT) or not
released after reception (DO_NOT_CLOSE_ON_EXIT).
The behavior of this function with respect to the advance when called is parameterized with
the nextCommand parameter. There are three setting options for this parameter:
IMMEDIATELY, WHEN_COMMAND_DONE, and ABORT_CURRENT_COMMAND. With the
first two values advance is either immediate or after completion of the command. With the
third value, if the same port number as in the previous function call is transferred, the active
function is aborted.
The receiveVariable parameter specifies the buffer in which the receive data is stored.
When the _udpReceive() system function is called, the structure returned to the user
program contains the following parameters. The call status of the receive function can be
queried in the functionResult parameter.
The sourceAddress parameter is an array that contains the IP address. The sourcePort
parameter of the structure also contains the local port.
Communication
180 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
The number of received useful data bytes after a successful call of the _udpReceive()
system function can be read out in the dataLength parameter.
Note
Up to SIMOTION 4.1 SP4, the length of the receive data (receiveVariable) was limited to
1,400 bytes.
Overview
This function is used to join a multicast group on a selected Ethernet interface.
A maximum of three multicast groups can be created on an Ethernet interface. These can
occupy the same port or different ports.
myRetDINT :=
_udpAddMulticastGroupMembership(
multicastIPAddress :=
,interfaceIPAddress :=
,multicastPort :=
// ,multicastTTL := 1
// ,multicastLOOP := 1
,nextCommand :=
);
Note
In the case of UDP multicast communication, the _multicastPort must correspond to the
sourcePort for function _udpSend().
Note
The UDP multicast functions (_updAddMulticastGroupMembership(),
updDropMulticastGroupMembership()) can only be used on Ethernet interfaces. PROFINET
interfaces are not supported.
Communication
System Manual, 11/2010 181
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
Overview
This system function is used to exit a multicast group on a selected Ethernet interface.
myRetDINT :=
_udpDropMulticastGroupMembership(
multicastIPAddress :=
,interfaceIPAddress :=
,multicastPort :=
,nextCommand :=
);
Note
The UDP multicast functions (_updAddMulticastGroupMembership(),
updDropMulticastGroupMembership()) can only be used on Ethernet interfaces. PROFINET
interfaces are not supported.
Overview
For UDP communication with a SIMATIC and its onboard Ethernet interfaces, the same
communication blocks are available as for TCP communication. You can find an overview in
the section titled Overview of SIMATIC communication blocks (Page 165).
See also
Description of communication blocks (Page 168)
Communication
182 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
Overview
The functions used for this application are the same as the S7 functions that have already
been described (see Overview of SIMATIC communication blocks (Page 171)).
The sequence of configuration steps for UDP communication is similar to the one for TCP
communication. UDP-specific parameters only need to be selected when configuring a
connection in NetPro. Additionally, there is no need to define active or passive connection
establishment.
Note
For the CP 300, the maximum send and receive length per function call (AG_SEND and
AG_RECV) is 2,048 bytes.
The AG_SEND and AG_RECV functions can also be used for the CP 400. However, the
transferable data length in this case is generally limited to <= 240 bytes per job.
Communication
System Manual, 11/2010 183
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
Figure 5-9 "Insert New Connection" dialog box with selected UDP connection
2. In the Block parameters field on the General tab, the ID and LADDR parameters for the
S7 communication blocks can be used. ID assigns the communication connection a
unique reference. Additionally, the address of the CP is specified as "LADDR".
Communication
184 System Manual, 11/2010
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
Communication
System Manual, 11/2010 185
Ethernet: General information (TCP and UDP connections)
5.4 UDP communication
Communication
186 System Manual, 11/2010
Routing - communication across network boundaries 6
6.1 What does routing mean?
Routing is the transfer of information from Network x to Network y.
There is a fundamental difference between intelligent, self-learning routing (e.g. IP routing in
the Internet) and routing according to previously specified routing tables (e.g. S7 routing).
IP routing
IP routing is a self-learning routing procedure (which can also be performed manually), used
exclusively in Ethernet communication networks which operate with the IP protocol, such as
the Internet.
The function is performed by special routers that pass on the information to adjacent
networks based on the IP address, when the IP address is not detected in the own network.
Note
IP routing is NOT supported by SIMOTION. It is possible to have S7 routing between the
Ethernet interfaces.
S7 routing
S7 routing is a routing procedure based on previously configured routing tables, but which
can also exchange information between different communication networks, e.g. between
Ethernet, PROFIBUS and MPI. These routing tables can be created as interconnection
tables in NetPro.
S7 routing does not work with the IP address, but with the so-called subnet IDs within the S7
protocol.
● Information transfer from Ethernet to MPI and vice versa
● Information transfer from Ethernet to PROFIBUS and vice versa
● Information transfer from MPI to PROFIBUS and vice versa
● Information transfer from Ethernet to Ethernet (SIMOTION V4.1.2 or higher, including
PROFINET; CP343, CPU 315-2 PN/DP...)
Communication
System Manual, 11/2010 187
Routing - communication across network boundaries
6.2 Configuration of S7 routing
Note
CIDR is supported by all SIMOTION devices. In the case of SIMATIC devices, please refer
to the notes in the manuals.
PG / PC assignment
Modification of the PG assignment may be required for S7 routing. You can do this now in
the toolbar in SIMOTION SCOUT above the Assign PG button. This calls the properties
window for PG assignment, where you modify the assignment and "activate" it (S7ONLINE
access).
Note
You will find further notes on Ethernet/PROFINET and the settings required for routing in the
SIMOTION SCOUT Overview of Service and Diagnostics Options product information as
well as in the online help on this topic.
Communication
188 System Manual, 11/2010
Routing - communication across network boundaries
6.3 Routing for SIMOTION
Boundary conditions
The following boundary conditions must be taken into account in the "DP slave" mode when
routing information on an isochronously operated PROFIBUS.
● The functions "Equidistant bus cycle" (requirement for isochronous applications) and
"Active station" (requirement for routing to a lower-level network segment) mutually
exclude each other.
● It is not possible to operate an active I slave on the isochronous bus.
Communication
System Manual, 11/2010 189
Routing - communication across network boundaries
6.4 Routing with SIMOTION D (example of D4x5 with CBE30)
The "Programming, status/control or other PG functions …" check box must be activated if,
for example, you frequently want to perform PG functions required for commissioning and
testing via this interface, or if you want to access (S7 routes) SINAMICS drives on the
cascaded, lower-level DP master interface of the SIMOTION with PG functions (e.g. Starter).
If the "Programming, Status/Force or other PG functions..." option is activated, the interface
becomes the active node on the PROFIBUS (i.e. the interface participates in the token
rotation of the routing PROFIBUS). The following functions are then possible:
● Programming (e.g. loading)
● Test (status/control)
● S7 routing (I-slave as gateway)
The bus cycle time can be prolonged. Therefore, this option should not be activated for time-
critical applications and when S7 routing and the client functionality are not required for the
communication.
Note
When the "Programming, Status/Force or other PG functions …" check box is not activated,
the interface only operates as a server for cyclic data, i.e. S7 routing is not possible.
Note
The Ethernet interfaces X120 and X130 and the CBE30 must be in different subnets for S7
routing.
Communication
190 System Manual, 11/2010
Routing - communication across network boundaries
6.4 Routing with SIMOTION D (example of D4x5 with CBE30)
Communication
System Manual, 11/2010 191
Routing - communication across network boundaries
6.4 Routing with SIMOTION D (example of D4x5 with CBE30)
Communication
192 System Manual, 11/2010
Routing - communication across network boundaries
6.5 Routing with SIMOTION D4x5-2 (example of D455-2 DP/PN)
Communication
System Manual, 11/2010 193
Routing - communication across network boundaries
6.5 Routing with SIMOTION D4x5-2 (example of D455-2 DP/PN)
Communication
194 System Manual, 11/2010
Routing - communication across network boundaries
6.5 Routing with SIMOTION D4x5-2 (example of D455-2 DP/PN)
Communication
System Manual, 11/2010 195
Routing - communication across network boundaries
6.6 Routing for SIMOTION D to the SINAMICS integrated
Communication
196 System Manual, 11/2010
Routing - communication across network boundaries
6.7 Routing for SIMOTION P350
Description
S7 routing is possible:
● From PROFIBUS (IsoPROFIBUS board) on PROFINET subnet to MCI-PN board
● From PROFINET subnet to MCI-PN board on PROFIBUS (IsoPROFIBUS board)
● From SCOUT on SIMOTION P via softbus through the runtime on PN devices to the MCI-
PN board and IsoPROFIBUS board
● From onboard Ethernet interfaces on PROFIBUS (IsoPROFIBUS board) and on
PROFINET
● S7 routing between the Ethernet interfaces
IP routing is not possible via the P350 Ethernet interfaces.
Communication
System Manual, 11/2010 197
Routing - communication across network boundaries
6.7 Routing for SIMOTION P350
Communication
198 System Manual, 11/2010
Routing - communication across network boundaries
6.8 Routing for SIMOTION P320
Description
S7 routing is possible:
● From the onboard Ethernet interface to the PROFINET subnet and the drive units or
SIMOTION devices on the PROFINET subnet
Communication
System Manual, 11/2010 199
Routing - communication across network boundaries
6.8 Routing for SIMOTION P320
Communication
200 System Manual, 11/2010
SIMOTION IT 7
7.1 SIMOTION IT - overview
Description
SIMOTION IT offers the option of accessing the SIMOTION control via standard web
services (HTTP).
This provides the following advantages.
● Location-independent open diagnosis / process monitoring
● Client device independent of the operating system (Windows, Linux, ...)
● Standardized communication interface for manufacturer-specific tools
● Independent of engineering system
● No version conflict between client application and SIMOTION RT (runtime)
● Series commissioning without engineering system
Communication
System Manual, 11/2010 201
SIMOTION IT
7.2 Web access to SIMOTION
Further references
A detailed description of the SIMOTION IT products can be found in theSIMOTION IT
Ethernet-based HMI and Diagnostic Functions product information on the SIMOTION
SCOUT Documentation DVD.
You will find further information on SIMOTION VM in the SIMOTION – IT Virtual Machine
Programming Manual.
See also
Web access to SIMOTION (Page 202)
SIMOTION IT DIAG (Page 203)
SIMOTION IT OPC XML DA (Page 205)
Description
The following figure shows the various possibilities to access the data in a SIMOTION
module.
23&;0/'$VHUYHU
+70/VHUYHU
5XQWLPHGDWD
6SURWRFRO
3URMHFWGDWD 6IRUPDW
,FRQV 'DWDEORFNV
6,027,2157
Communication
202 System Manual, 11/2010
SIMOTION IT
7.3 SIMOTION IT DIAG
See also
SIMOTION IT DIAG (Page 203)
SIMOTION IT OPC XML DA (Page 205)
Description
SIMOTION IT DIAG allows a PC to use any Internet browser to access the HTML pages in
SIMOTION.
Communication
System Manual, 11/2010 203
SIMOTION IT
7.3 SIMOTION IT DIAG
User-defined pages
SIMOTION IT DIAG offers the option of integrating individually designed web pages. Two
mechanisms are available for accessing SIMOTION variables:
● JavaScript libraries opcxml.js and appl.js
● MiniWeb Server Language (MWSL)
User-defined pages can be displayed in the "User's Area". For this purpose, they must be
stored in the FILES folder of the SIMOTION file system.
Variable access
The variable access for the SIMOTION IT applications is implemented using a variable
provider. There are currently four variable providers.
● MiniWeb
● SIMOTION
● SIMOTION diagnostics
● UserConfig
This makes it possible to access the following variables:
● Device system variables
● TO system variables
● Global unit variables from the interface section
● TO configuration data
● Also global device variables and I/O variables as of 4.2
Communication
204 System Manual, 11/2010
SIMOTION IT
7.4 SIMOTION IT OPC XML DA
● Drive parameters
● Setting of the operating mode, execute RamToRom, execute ActiveToRom
● Technological alarms
● Diagnostics buffer
Description
The SIMOTION IT OPC XML DA server enables access via Ethernet to data and operating
modes of the SIMOTION device. As of V4.2, a separate license is no longer required for
SIMOTION IT OPC XML DA.
OPC is the abbreviation for "OLE for Process Control" and describes a standard interface for
communication in automation systems. With OPC XML DA, it is possible to communicate
with a control using Ethernet-based standard message frames. Commands are transmitted
via the SOAP (Simple Object Access Protocol) communication protocol.
A customer-specific application created on a client PC, which, for example, is programmed
with the C#, Visual Basic, or Java programming language, uses the SIMOTION IT OPC XML
DA services and properties:
● Open communication using HTTP, SOAP, OPC XML between client and SIMOTION
device
● Uses the OPC XML DA 1.0 specification of the OPC Foundation
● Access to SIMOTION variables
– Reading/writing
– Cyclic reading subscriptions
– Browsing
● Trace using SOAP; this function is an extension of the OPC specification
● Clients on any hardware with various operating systems (Windows, Linux, etc.)
● Creating client applications using C#, Java, C++. You must implement the application that
you want to access on the SIMOTION OPC XML DA server yourself.
● Access protection with user groups, user ID, and password
The following figure is a schematic representation of access to the OPC XML DA server.
Communication
System Manual, 11/2010 205
SIMOTION IT
7.5 FTP data transfer
&OLHQWDSSOLFD
WLRQ
RSF[POZVGO
5HTXHVW 5($'
WR$[LVBPRWLRQ6WDWH'D 5HVSRQVH ಯಯ
WDDFWXDO9HORFLW\
6,027,21
5XQWLPH
6\VWHP
8QLWYDULDEOH
6\VWHP9DU 23&;0/'$
VHUYHU
7RYDULDEOH
'LDJQRVWLFYDU
ZHEFIJ[PO
Communication
206 System Manual, 11/2010
PROFIsafe 8
8.1 Communication relationships for drive-based safety
Description
The drive-based safety functions in the drive can be controlled either by using safe terminals
directly on the drive or from a fail-safe control (F control) via PROFIBUS/PROFINET.
The control signals for the drive-based safety functions, as well as the feedback relating to
the safety function status, are safety-oriented and must be transmitted via a communication
channel that is secured by means of the PROFIsafe protocol. The figure below contains a
diagram providing a general overview of how interaction between the various control and
drive processes works, as well as the communication relationships between them that are
required for this purpose.
6LJQDOIORZIRUVHOHFWLQJDQGGHVHOHFWLQJWKHGULYHEDVHGVDIHW\IXQFWLRQV
DQGWKHLUVLJQDOLQJWRWKHGULYHFRQWUROSURFHVV
)DLOVDIHFRQWURO 'ULYHFRQWURO
SURFHVV SURFHVV
6HOHFWLRQRIVDIHW\ ,QIRUPDWLRQDERXW
IXQFWLRQV DFWLYHDQGDFWLYDWHG
)HHGEDFNVWDWXVRI VDIHW\IXQFWLRQV
VDIHW\IXQFWLRQV 'ULYHFRQWUROYLD
VWDQGDUGWHOHJUDP
'ULYH6DIHW\ 'ULYHಭ&RQWURO
3URFHVV 3URFHVV
'ULYHD[LV 352),GULYH'2
$PHQGPHQW352),GULYHRQ352),VDIH 352),GULYHSURILOH
5HOHYDQWVWDQGDUGL]DWLRQGRFXPHQWVIRUDGGLWLRQDOLQIRUPDWLRQ
The "drive safety process" interfaces to the F control and drive control are PROFIdrive
interfaces; their functions are defined in /1/ and /2/.
Communication
System Manual, 11/2010 207
PROFIsafe
8.1 Communication relationships for drive-based safety
The F control introduces and monitors a drive-based safety function via the PROFIsafe-
secured transmission channel between the F control and the drive (drive axis). The
respective statuses of the drive-based safety functions in the drive also have repercussions
on the drive interface to the drive control, since the drive priority switches between the drive
control and drive safety process in the case of some drive-based safety functions.
In order for the F control and drive control to be coordinated effectively, therefore, an
information channel from the "drive safety process" to the drive control is also required so
that the drive control can respond to the required or activated drive-based safety functions
accordingly.
Communication
208 System Manual, 11/2010
PROFIsafe
8.2 Message frames and signals in drive-based safety
Description
Since SIMOTION does not have a safe logic function, it cannot attend to the F control
process. Instead, this is carried out using a second controller featuring F functionality
(usually a SIMATIC F-CPU). The image below shows how this setup works, using the
example of a SINAMICS axis. A PROFIsafe-secured communication channel runs between
the DO drive and the SIMATIC F-CPU. Standard message frame 30, consisting of a safety
control word and status word (among other things), is normally available for this
communication channel. With the user program on the F-CPU, the safety control word is
used to select or deselect the configured drive-based safety functions in the drive (drive
safety process). The feedback from the active safety functions is sent in the input data to the
F-CPU, via the safety status word. A safe process in the drive is used to send the feedback
from the active safety functions via a secured communication channel; therefore, the
feedback may be used for activating protection zones and doors via the F-CPU.
6LJQDOIORZIRUVHOHFWLQJGHVHOHFWLQJGULYHEDVHGVDIHW\IXQFWLRQVDQGVLJQDOLQJ
RIWKHVHWRWKH6,027,21XVHUSURJUDPRU,32
)3/& 6,027,21
6,0$7,& 6,027,2183
)&38 ,32
352),VDIHGULYHU
6DIHW\PHVVDJHIUDPH 6,'%
6WDQGDUGPHVVDJHIUDPH;
6,'%
352),VDIHGULYHU
'ULYHVDIHW\SURFHVV 'ULYHFRQWURO
SURFHVV
'ULYHD[LV 6,1$0,&6'2
YLDPHVVDJHIUDPHH[WHQVLRQ
Communication
System Manual, 11/2010 209
PROFIsafe
8.3 SIMOTION F proxy functions
In addition to controlling safety functions in the drive via the PROFIsafe channel, you have
the option of transmitting statuses and activation states of the drive-based safety functions
from the drive to SIMOTION via a safety information channel (SIDB Safety Data Block). This
information channel is not secured and is implemented in practice by extending the standard
message frame to include the SIDB data block. The purpose of the safety information
channel is to provide the option of integrating the drive motion control (IPO, SERVO) and the
entire user program (UP) into the higher-priority execution of both drive-based safety
functions and the F-control user program. Typical SIMOTION responses are, for example:
● Recognition of safety-related, autonomous handling of the drive (e.g. braking ramp for
SS1 and SS2, and switching to follow-up mode)
● Recognition that a safety function has been selected, and the associated programmed
SIMOTION response to the selected safety function (e.g. control-based braking ramp with
reduction in velocity for SOS and SLS)
Description
SIMOTION features integrated F-Proxy functionality for the purpose of PROFIsafe
connection of integrated SIMOTION D drives, as well as SINAMICS drives that are
controlled by SIMOTION but are in a different communication domain from the F-CPU, for
example. The F proxy functionality enables transparent routing of safety message frames
from the SIMOTION I slave or I device interface to the respective SIMOTION master or
controller interface on which the drive is configured. Despite the SIMOTION routing function,
PROFIsafe communication between the F-CPU and drive is secured, as the PROFIsafe
drivers in the end points (F-CPU, drive) monitor communication securely.
In order to use F proxy functionality, the two paths of communication - from the F-CPU to
SIMOTION and from SIMOTION to the drive - need to be configured separately.
Communication
210 System Manual, 11/2010
PROFIsafe
8.3 SIMOTION F proxy functions
)3/&
6,0$7,&
)&38
6LJQDOIORZIRUVHOHFWLQJDQGGHVHOHFWLQJGULYHEDVHG
352),VDIHGULYHU VDIHW\IXQFWLRQVDQGVLJQDOLQJRIWKHVHWRWKH
6,027,21XVHUSURJUDPRU,32
6DIHW\PHVVDJH
IUDPH
6,027,21
6,027,21
6,027,2183
)3UR[\
,32
6DIHW\PHVVDJH 6WDQGDUGPHVVDJHIUDPH;
IUDPH 6,'%
6,'%
352),VDIHGULYHU
'ULYHVDIHW\SURFHVV 'ULYHFRQWURO
SURFHVV
'ULYHD[LV 6,1$0,&6'2
YLDPHVVDJHIUDPHH[WHQVLRQ
Communication
System Manual, 11/2010 211
PROFIsafe
8.4 PROFIsafe properties for configuration
Note
For SIMOTION projects (RT version) < V4.2, secured PROFIsafe communication is only
possible via PROFIBUS. Therefore, with SIMOTION devices < V4.2 with PROFIBUS and
PROFINET interfaces, you can only implement PROFIsafe via the PROFIBUS interface and
the Motion Control tasks (for example) via the PROFINET interface. However, mixed
operation (Motion Control via PROFINET and PROFIsafe via PROFIBUS) is only possible
with integrated SIMOTION D drives. It is not permissible if you are using external drives
(e.g. S120 CU320-2) on a SIMOTION CPU.
Communication
212 System Manual, 11/2010
PROFIsafe
8.4 PROFIsafe properties for configuration
Figure 8-4 Properties of PROFIsafe taking the example of I device failsafe proxy
Communication
System Manual, 11/2010 213
PROFIsafe
8.4 PROFIsafe properties for configuration
Note
PROFIsafe V2 mode is not supported by all devices and/or firmware versions. Before
configuration, find out which mode is available as of which version.
SINAMICS G120 CU240D DP F and SINAMICS G120 CU240S DP F only support V2
mode as of firmware version V3.2.
F_Dest_Add: 1-65534
F_Dest_Add determines the PROFIsafe destination address of the drive object.
Any value within the range is allowed, although it must be manually entered again in the
Safety configuration of the drive in the SINAMICS drive unit and/or entered when configuring
Safety Integrated (drive parameters p9610/p9810).
F_WD_Time: 10- 65535
A valid current safety telegram must be received from the F-CPU within the monitoring time.
The drive will otherwise switch to the safe state.
The monitoring time should be of sufficient length to ensure not only that the communication
functions tolerate message time delays, but also that the fault response is triggered as
quickly as possible if a fault occurs (e.g. interruption of the communication connection).
For additional information on F Parameters, refer to the online help of the PROFIsafe dialog
box.
Communication
214 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
Short description
Using the I device F-Proxy you can produce a PROFIsafe configuration with an F host (F-
CPU SIMATIC) on PROFINET with SIMOTION devices (SIMOTION D, SIMOTION P,
SIMOTION C) for the lower-level drives. The routing of cyclic PROFIsafe data to SINAMICS
Integrated and SINAMICS drives on external PROFIBUS or PROFINET is therefore
possible.
A failsafe host communicates with the drives via the I device interface and an F-Proxy of a
SIMOTION CPU. These drives may be located on PROFIBUS DP external, PROFIBUS DP
integrated and the PROFINET IO system of the SIMOTION CPU. The SIMOTION CPU's
communication segments feature SINAMICS S120/S110, incl. SINAMICS
Integrated/CX32/CX32-2 and G120.
The higher-level project with the F-CPUs is the master project. There may be several F-
CPUs in the master project. The lower-level projects with SIMOTION CPUs are designated
as subprojects. All F slaves of all segments (PROFIBUS/PROFINET) which originate from
SIMOTION are mapped by the F-Proxy as n F submodules in an F-Proxy module.
During configuration, a failsafe I device is produced as a substitute of a SIMOTION device
with drives and imported into the F-CPU master project.
6,0$7,&)&38
Figure 8-5 Example topology for F-CPU master with SIMOTION D and lower-level drives
Communication
System Manual, 11/2010 215
PROFIsafe
8.5 PROFIsafe via PROFINET
Module/submodule structure
The submodules of the drive with the safety message frame are mapped to submodules of
the PROFINET I device interface, regardless of whether the drive is connected to SIMOTION
via PROFIBUS, integrated PROFIBUS, or PROFINET.
With an I device failsafe proxy, all failsafe proxy submodules of a SIMOTION device are
depicted in one single module (module 2).
The diagram below shows an F-CPU as the master, to which a SIMOTION with integrated
and lower-level drives is subordinate.
)&386,0$7,&
0HVVDJHIUDPH
0RGXOH 0RGXOH
,GHYLFH)3UR[\
LQWHUIDFH
0HVVDJHIUDPH 0HVVDJHIUDPH
0HVVDJHIUDPH
0HVVDJHIUDPH 0HVVDJHIUDPH
/RZHUOHYHOGULYHV
Figure 8-6 Master project with a sub-project as the I device failsafe proxy
8.5.2 Supported devices and software requirements for I device failsafe proxy
Software requirement
● Step7 V5.5 or higher
● SINAMICS S120, V2.6 or higher
● SINAMICS G120, V3.2 or higher
● SIMOTION, V4.2 or higher
Communication
216 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
Supported devices
Drive units
● SINAMICS Integrated
● SINAMICS Controller Extension (CX32, CX32-2)
● SINAMICS devices on lower-level PROFIBUS
● SINAMICS devices on lower-level PROFINET
Table 8- 1 The table shows which SIMOTION devices support the I device F-Proxy and which
SINAMICS devices can be accessed via the I device F-Proxy.
Communication
System Manual, 11/2010 217
PROFIsafe
8.5 PROFIsafe via PROFINET
Supported telegrams
As a rule all PROFIsafe telegrams are supported. In V4.2 this is only telegram 30 and/or
telegram 900 for SINAMICS G120.
Isochronous mode
The F-Proxy submodules on the SIMOTION CPU are RT and can be operated non-
isochronously.
Communication
218 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
8.5.4.1 Topology for I device failsafe proxy for PROFIBUS drive units
Example of topology
The diagram below shows a topology in diagrammatic form in which the Safety drives are
connected to the SIMOTION CPU via PROFIBUS DP.
,VRFKURQRXVPRGHUHTXLUHG
6,0$7,&)&38 ,VRFKURQRXVPRGHQRWUHTXLUHG
0& 0RWLRQ &RQWURO
6W$:3 )$:3
) )DLOVDIH
6W83 6WDQGDUGXVHUSURJUDP
)83 )DLOVDIHXVHUSURJUDP
,2&RQWUROOHU
352),1(7
,'HYLFH
6,027,21
0& )352;<
&8
&8
&;
Figure 8-7 Topology for I device failsafe proxy for PROFIBUS drive units
Communication
System Manual, 11/2010 219
PROFIsafe
8.5 PROFIsafe via PROFINET
8.5.4.2 Topology for I device failsafe proxy for PROFINET drive units
Example of topology
The diagram below shows a topology in schematic form in which the Safety drives are
connected to the SIMOTION CPU via PROFINET and/or internally via PROFIBUS DP
Integrated.
6,0$7,&)&38 ,VRFKURQRXVPRGHUHTXLUHG
,VRFKURQRXVPRGHQRWUHTXLUHG
6W$:3 )$:3 0& 0RWLRQ &RQWURO
) )DLOVDIH
6W83 6WDQGDUGXVHUSURJUDP
,2&RQWUROOHU )83 )DLOVDIHXVHUSURJUDP
352),1(7
,'HYLFH
6,027,21
0& )352;<
&8
&8
&;
Figure 8-8 Topology for I device failsafe proxy for PROFINET drive units
Communication
220 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
8.5.4.3 Topology for I device failsafe proxy for PROFIBUS and PROFINET drive units
Example of topology
The diagram below shows a topology in schematic form in which the Safety drives are
connected to the SIMOTION CPU via PROFINET and PROFIBUS DP.
,VRFKURQRXVPRGHUHTXLUHG
6,0$7,&)&38 ,VRFKURQRXVPRGHQRWUHTXLUHG
0& 0RWLRQ&RQWURO
6W83 )83 ) )DLOVDIH
6W83 6WDQGDUGXVHUSURJUDP
)83 )DLOVDIHXVHUSURJUDP
,2&RQWUROOHU
352),1(7
352),1(7
&8
&8
6,027,21
0& )352;<
'3,QWHJUDWHG '30DVWHU
352),%86'3
,QWHJUDWHG
RQO\LQWKHFDVHRI
6LPRWLRQ' 352),%86'3
&8
&8
&;
Figure 8-9 Topology for I device failsafe proxy for PROFIBUS and PROFINET drive units
Communication
System Manual, 11/2010 221
PROFIsafe
8.5 PROFIsafe via PROFINET
Configuration requirements
A failsafe host communicates with the drives via the I device interface and an F-Proxy of a
SIMOTION CPU. These drives may be located on PROFIBUS DP external, PROFIBUS DP
integrated and the PROFINET IO system of the SIMOTION CPU.
Communication
222 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
&RQILJXUHZLWK
RUSURMHFWV
3URMHFWVKRXOGFRQWDLQ)KRVW 3URMHFWFRQWDLQV)KRVWDQG
3URMHFWVKRXOGFRQWDLQ6,027,21&38 6,027,21&38
&UHDWHRYHUYLHZGLDJUDPRIIDLOVDIHDGGUHVVHV )B'HVWB$GGDQG)B6RXUFHB$GG
IRUDOO,GHYLFH)3UR[\V7KHVHPXVWEHXQLTXHWKURXJKRXWWKHSURMHFW,Q+:
&RQILJ\RXFDQGHILQHDVWDUWDGGUHVVIRUWKH)DGGUHVVHV HJRU RQ
WKH)3UR[\WDERIWKH3URSHUWLHVGLDORJER[IRUWKH&38
&RQILJXUHGULYHREMHFWVIRU'3VODYHV31,2GHYLFHVXVLQJ6,027,216&287
&RQILJXUHPHVVDJHIUDPHVIRUWKHGULYHREMHFWVDVZHOODV352),VDIHPHVVDJH
IUDPHVXVLQJ6,027,216&287
$OLJQZLWK+:&RQILJ7KLVFUHDWHVWKH352),VDIHPRGXOHVLQ67(3
&RQILJXUH)SDUDPHWHUVIRUWKH352),VDIHPRGXOHV
&RQILJXUHWKH),GHYLFHLQWHUIDFHDQG)3UR[\LQWKH31,2FRQWUROOHU
&UHDWH),GHYLFHH[SRUWDV*6'0/7KHH[SRUWHG,GHYLFHLVGLVSOD\HGLQWKH
+:&RQILJFDWDORJXQGHU3UHFRQILJXUHG6WDWLRQV
,QVHUW)KRVW 6,0$7,&)&38
,PSRUW),GHYLFHDQGVHW)SDUDPHWHUVDW31,2V\VWHPRI
)KRVW
&DUU\RXW352),VDIHFRQILJXUDWLRQRIGULYHVLQ6&287 6DIHW\FRQILJXUDWLRQ
)RSHUDWLRQ
Communication
System Manual, 11/2010 223
PROFIsafe
8.5 PROFIsafe via PROFINET
8.5.5.2 Configuration example for SIMOTION D435 and SINAMICS S120 via PROFINET
Communication
224 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
11.Mark the appropriate drive in the tab IF1: PROFIdrive PZD telegram of the telegram
overview and in the bottom part of the window under Adapt telegram configuration select
the entry Add PROFIsafe. The PROFIsafe telegram is added.
Communication
System Manual, 11/2010 225
PROFIsafe
8.5 PROFIsafe via PROFINET
Communication
226 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
17.Click on the Select I/O button and select the corresponding PROFIsafe channel in the
dialog which opens. Confirm both dialogs with OK.
This completes configuration of the lower-level drive. All you need do now is save and
compile the station.
Communication
System Manual, 11/2010 227
PROFIsafe
8.5 PROFIsafe via PROFINET
18.You can view the PROFIsafe settings for the drive unit. The detail view for the rack
contains the entry PROFIsafe. Double-click on this to display the properties.
The PROFIsafe tab contains the failsafe address under F_Dest_Add. This address must
be unique within the entire project. If you are using several failsafe proxies, you must
ensure that this address is only issued once. Change this value as required. The failsafe
address is displayed in HW Config in the detail view in the station window under
comments. This allows for clear assignment if using several participants.
The parameters F_CRC_Length=3-Byte-CRC and F_Par_Version=1 indicate PROFIsafe
V2 mode. Please note these values because an I device F-Proxy configuration is only
possible with this version and higher.
For more information about the failsafe parameters, see PROFIsafe properties for
configuration (Page 212)
Communication
228 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
19.The failsafe address must match the PROFIsafe address during Safety configuration of
the drive in SIMOTION SCOUT. In the example, this is address 200 dec or C8H. You
enter the address in the Configuration window when configuring Safety Integrated. The
value is stored in drive parameters p9610/p9810.
20.Now produce the GSD file for the I device F-Proxy. In the menu, select Options > Create
GSD file for I device. In the dialog which opens, click on Create and then Install. The I
device is displayed under Preconfigured Stations in the hardware catalog.
21.You can now create a new project with F-CPU or open and use the existing project in the
SIMATIC Manager. In our example, open the existing project in the SIMATIC Manager.
22.In the menu, select e.g. Insert > Station > SIMATIC 300 Station. Double-click on the
station and then the entry Hardware. HW Config opens.
23.From the hardware catalog, insert e.g. an S7 300 rack if you want to select an F-CPU
from the S7 300 series.
Communication
System Manual, 11/2010 229
PROFIsafe
8.5 PROFIsafe via PROFINET
24.Insert the F-CPU, e.g. CPU317-2 PN/DP. This must at least be version V3.2.
25.Use drag&drop to move the I device previously created under Preconfigured Stations to
the PROFINET IO network. Once saved and compiled, configuration is complete.
Communication
230 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
In the example below, you set the F address to the value 300 (12CHex) for a SIMOTION
CPU with a drive on PROFINET and an F-CPU in the same project.
Communication
System Manual, 11/2010 231
PROFIsafe
8.5 PROFIsafe via PROFINET
5. In the detail view of the I device, double-click the PROFIsafe I/O, e.g. B. 6I/6O F-
Periphery. In the window that opens, switch to the PROFIsafe tab. The value 300 must be
present next to F_Dest_Add. To change F_Dest_Add, click the Change Value button and
enter 300 in the dialog box that appears.
Communication
232 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
11.Under PROFIsafe address, check the value 12CHex (300) and change it if necessary.
Communication
System Manual, 11/2010 233
PROFIsafe
8.5 PROFIsafe via PROFINET
4. Double-click on the PN IO interface of the SIMOTION CPU. In the I device tab in the
dialog which opens, activate the check box I device mode. Click on New... and select the
failsafe periphery entry in the dialog which opens under Transfer area type. Click on the
Select I/O button and select the corresponding PROFIsafe channel in the dialog which
opens.
Figure 8-20 Releasing PROFIsafe module for SINAMICS_Integrated for transfer area
Communication
234 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
5. Click OK to confirm the dialog box. In the Properties transfer area dialog box, the
inputs/outputs are assigned and an automatically generated comment is displayed. This
comment includes, among other things, the subslot, the SIMOTION device name, the
connection, and the device name of the drive. The F_Dest_Add is at the end. You can
change the comment if necessary.
Communication
System Manual, 11/2010 235
PROFIsafe
8.5 PROFIsafe via PROFINET
6. Click OK to confirm this dialog box. The failsafe data for the two drives is displayed in the
transfer area.
This concludes configuration of the lower level drive. All you need do now is save and
compile the station.
7. Now produce the GSD file for the I device F-Proxy. In the menu, select Options > Create
GSD file for I device. In the dialog which opens, click on Create and then Install. The I
device is displayed under Preconfigured stations in the hardware catalog.
Communication
236 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
8. As in the previous example, create an F-CPU in the project and add the SIMOTION
module's I device.
The diagram shows the project with F-CPU and I device failsafe proxy with one drive on
PROFINET and one drive on SINAMICS_Integrated on a D435.
Figure 8-23 F-CPU with I device failsafe proxy on PROFINET and integrated PROFIBUS
8.5.5.5 Upgrading an existing system with PROFIsafe via PROFIBUS to PROFIsafe via
PROFINET
PROFIBUS to PROFINET
If PROFIsafe communication on an existing system has been operated via PROFIBUS up
until now and you want to switch it to PROFINET, then you will need to upgrade the system.
How to carry out the upgrade
1. Delete the old I slave link.
2. If necessary, switch the DP interface from DP slave to DP master (SIMOTION CPU).
3. The PROFIsafe message frame configuration settings for the drives can remain
unchanged.
Communication
System Manual, 11/2010 237
PROFIsafe
8.5 PROFIsafe via PROFINET
Figure 8-24 Properties of PROFIsafe taking the example of I device failsafe proxy
Communication
238 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
The F_Source_Address is assigned using the same process as for Siemens failsafe modules
with OM:
● PROFIsafe start address of CPU + number of DP master system for PROFIBUS
● PROFIsafe start address of CPU for PROFINET
● 1, if the CPU does not have a PROFIsafe start address parameter (standard CPU and F-
H-CPU)
Communication
System Manual, 11/2010 239
PROFIsafe
8.5 PROFIsafe via PROFINET
● The start value is the PROFIsafe start address of the CPU/10 (or 1022, if there is no
PROFIsafe start address or if it is greater than 10000).
● If the failsafe start address is changed (CPU parameter), then F-Source and F-Dest
addresses already issued are not updated (remain in place). The change only affects the
default address of newly created submodules.
● Several F-Source addresses may be issued in an F-CPU. The F-Source address and F-
Dest address are included in the PROFIsafe CRC total.
● If addresses from an issued range of addresses are no longer used (when failsafe
submodules are subsequently deleted), the gaps are filled first when new addresses are
issued.
Note
If you want to use Safety to work beyond the project limits / proxies, you must ensure that
the F-Source and F-Destination addresses are unique within the entire project. Before
starting configuration, you should have/produce a failsafe addresses plan where unique
ranges of failsafe addresses are assigned to particular sub-projects.
Description
With the new Shared Device functionality, you can configure access to an IO device with
several IO controllers using PROFINET. This enables channels/modules to be flexibly
assigned to different IO controllers. This option is available for inputs and outputs. You can
use this mechanism to access the failsafe data of a drive configured below a SIMOTION
CPU via the F-CPU, for example.
Note
When configuring PROFIsafe, it is recommended that you use the I device F-Proxy instead
of the Shared Device function.
Communication
240 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
,2&RQWUROOHU ,2&RQWUROOHU
,2'HYLFH
Software requirements
● SIMATIC Step 7 V5.5 or higher
● SINAMICS firmware and Support Packages V4.3.2 or higher
● SIMOTION SCOUT V4.2 or higher
● S7 F Configuration Pack, V5.5 SP7 or higher (if using Safety/PROFIsafe)
● GSDML file V2.25 or higher
Introduction
In the following example, the simplest configuration of a shared device is described: Two IO
controllers (SIMOTION D445-2 DP/PN and CPU 317F-2 PN/DP) share the submodules of
an IO device (ET200S HF). The two IO controllers are in the same STEP 7 project with the
advantage that the consistency check is made automatically.
Communication
System Manual, 11/2010 241
PROFIsafe
8.5 PROFIsafe via PROFINET
Procedure
To be able to use the shared device function, you need to take certain configuration steps in
SIMOTION SCOUT, SIMATIC Manager, and HW Config.
Communication
242 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
3. Insert a CPU 317F-2 PN/DP, for example, and configure the PROFINET interface.
4. Save and compile in HW Config.
Figure 8-28 SIMATIC CPU 317F-2 PN/DP with shared device ET200S
Communication
System Manual, 11/2010 243
PROFIsafe
8.5 PROFIsafe via PROFINET
Assigning submodules
The submodules must be assigned separately for each station. Remember that changes to a
station will also impact the other station(s)! A submodule can only ever be assigned to one
station!
1. Open the Properties dialog box of the PROFINET IO device for the SIMOTION CPU.
2. Click the Access tab.
3. Configure the access to the individual submodules. To do this, select the type of access
from the drop-down list in the Value column. You can select from the following:
– No access to the submodule: "- - -"
– Full access to the submodule: "full"
Note that the setting "Full" automatically leads to the setting "- - -" in the other station(s).
Communication
244 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
Figure 8-30 SIMATIC CPU 317F-2 PN/DP access to shared device ET200S
Communication
System Manual, 11/2010 245
PROFIsafe
8.5 PROFIsafe via PROFINET
Description
In this chapter, you will find broad guidelines on how to configure a SINAMICS S120 as a
shared device. In the example, the Motion Control tasks are carried out using the SIMOTION
C240 PN and PROFIsafe monitoring is achieved with a SIMATIC F-CPU, e.g. 317F-2PN/DP.
Note
Constraints
Using the shared device function with SINAMICS on SIMOTION is currently still subject to
some constraints. The shared device function can only be used with SINAMICS on
SIMOTION by using the GSD files for SINAMICS during drive configuration in HW Config,
and no device OM. This means that it is not possible to use alignment mechanisms between
SCOUT, Starter, and HW Config. Instead, you need to ensure consistency in the message
frame configuration manually in the individual configuration steps.
Therefore, the following configuration instructions should only be viewed as explaining the
shared device function in more detail. When using PROFIsafe on PROFINET with
SIMOTION and SINAMICS, communication should always take place via the I device F-
Proxy, as described in the section titled Principles of I device failsafe proxy (Page 215).
Configuring a shared device using the example of SINAMICS S120 and SIMOTION C240 PN
1. Create a new project in SIMOTION SCOUT using a SIMOTION C240 PN.
2. Open the hardware in HW Config and configure the C240 PN as an IRT Sync-Master.
3. Install the S120 GSD file. This can be found as a zip file on the CompactFlash Card of
the drive in folder SIEMENS\SIMATIC\DATA\CFG\ (CBE20GSD.ZIP, for example).
4. Drag the installed GSD from the PROFINET IO/SINAMICS/GSD/SINAMICS S120/S150
CU320-2 PN Shared Device hardware catalog and drop it onto the PROFINET network.
Communication
246 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
5. Insert the DO control unit and DO servo subslots from the GSD in the hardware catalog
into the rack and configure the the message frames including, among others, PROFIsafe
message frame 30.
Communication
System Manual, 11/2010 247
PROFIsafe
8.5 PROFIsafe via PROFINET
6. Open the Object properties of the drive unit and set the slots on the Access tab. On the
PROFIsafe message frame 30 slot, "- - - "must be set as the value.
7. Configure the drive as a Sync-Slave isochronous to the C240 PN servo and interconnect
the topology.
8. Open the project in SIMATIC Manager and insert a SIMATIC 300 station. Open this in
HW Config.
9. Insert a SIMATIC CPU 317F-2PN/DP in HW Config. Interconnect and configure this as
not synchronized.
10.In HW Config, switch to the project with the C240 PN, select the drive unit and choose
Copy in the context menu.
Communication
248 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
11.In the project with the F-CPU, select the PROFINET IO system and choose Paste shared
in the context menu. The S120 is inserted and displayed in the rack.
Communication
System Manual, 11/2010 249
PROFIsafe
8.5 PROFIsafe via PROFINET
12.Open the Object properties of the drive unit and set the slots on the Access tab. On the
PROFIsafe message frame 30 slot, "Full"must be set as the value. The others remain set
to "- - -".
Communication
250 System Manual, 11/2010
PROFIsafe
8.5 PROFIsafe via PROFINET
Figure 8-35 Topology of shared device S120 on C240 PN and CPU 317-F
14.In SIMOTION SCOUT, there is no configurable drive in the C240 PN project due to GSD
integration. Insert an S120 CU320-2 single drive unit and configure it in SIMOTION
SCOUT.
Note
The IP address and device name of the single drive unit must be identical to the S120
inserted via the GSD.
15.Configure the safety functions, remembering to pay attention to the F_Dest_Add when
using PROFIsafe.
16.The shared devices functionality of the drive must be activated with parameter p8929. To
do this, set p8929 to (2) Automation and safety. This will mean that the two PROFINET
controllers can access the drive at the same time (SIMOTION CPU and SIMATIC F-
CPU).
Note:
With a CU320-2 PN via integrated interface: Parameter 8929
With a CU320-2 DP with CBE20: Parameter 8829
Communication
System Manual, 11/2010 251
PROFIsafe
8.6 PROFIsafe via PROFIBUS
Note
As of SIMOTION firmware 4.1.1 HF10 and SINAMICS firmware 2.5 SP1 HF10, five drives
can be configured with a CX32. With earlier firmware versions, a maximum of 4 drives
can be configured.
You will find the components suited to PROFIsafe in the S120 Safety Integrated Function
Manual.
Communication
252 System Manual, 11/2010
PROFIsafe
8.6 PROFIsafe via PROFIBUS
Supported devices
SIMOTION CPU
Controller Based C240
C240 PN
PC Based P350-3
Drive-based (blocksize) D410 DP
Drive-based (booksize) D425
D435
D445
D445-1
D445-2 DP/PN
D455-2 DP/PN
SINAMICS drive units
S120 CX32 CX32
CX32-2
S120 CU320 DP
CU320-2 DP
CU310 DP
CU310-2 DP
S110 CU305 DP
Short description
Using the I slave F-Proxy you can produce a PROFIsafe configuration with an F host (F-CPU
SIMATIC) on PROFIBUS with SIMOTION devices (SIMOTION D, SIMOTION P350,
SIMOTION C) for the lower-level drives. Cyclic PROFIsafe data can then be routed to
SINAMICS drives on SINAMICS_Integrated / PROFIBUS DP.
A failsafe host communicates with the drives via the I-slave interface and a failsafe proxy of
a SIMOTION CPU. The drives may be located on the PROFIBUS DP of the SIMOTION
CPU. The SIMOTION CPU's communication segments feature SINAMICS S120/S110 and
SINAMICS Integrated/CX32/CX32-2.
Communication
System Manual, 11/2010 253
PROFIsafe
8.6 PROFIsafe via PROFIBUS
8.6.3.2 Topology for I-slave failsafe proxy for PROFIBUS drive units
6,0$7,&)&38 ,VRFKURQRXVPRGHUHTXLUHG
,VRFKURQRXVPRGHQRWUHTXLUHG
6W83 )83 0& 0RWLRQ&RQWURO
) )DLOVDIH
6W83 6WDQGDUGXVHUSURJUDP
'30DVWHU )83 )DLOVDIHXVHUSURJUDP
352),%86'3
,6ODYH
6,027,21
0& )352;<
'3,QWHJUDWHG '30DVWHU
352),%86'3
,QWHJUDWHG RQO\LQWKH
FDVHRI6,027,21'
352),%86'3
&8
&8
&;
Figure 8-36 Topology for I-slave failsafe proxy for PROFIBUS drive units
Communication
254 System Manual, 11/2010
PROFIsafe
8.6 PROFIsafe via PROFIBUS
Communication
System Manual, 11/2010 255
PROFIsafe
8.6 PROFIsafe via PROFIBUS
Communication
256 System Manual, 11/2010
PROFIsafe
8.6 PROFIsafe via PROFIBUS
9. In HW Config for the F-CPU, connect the preconfigured SIMOTION station to the F-CPU
(hardware catalog: PROFIBUS DP > Preconfigured stations ...).
Note
To configure the SINAMICS Safety Integrated extended functions by means of
SIMOTION, the telegrams must be extended. To do so, a safety data block is appended
to the PROFIdrive actual value telegram. Configuration and parameter assignment of this
Safety data block are described in the Function Manual SIMOTION Motion Control TO
Axis electric/hydraulic, external encoder.
10.You can display the F-communication parameters via the DP slave properties (double-
click on SIMOTION I-slave). To do this, go to the F configuration tab and click on New.
Mode: Displays the communication relationship. F-MS module represents safety-related
master-slave communication with SIMOTION.
DP partner (F I/O): SINAMICS drive properties.
Here you can select the relevant PROFIsafe drive via DP address or Address.
local: Properties of the SIMOTION CPU.
Enter the logical start address for F-communication of the SIMOTION CPU in the
"Address" row.
The send and receive safety telegrams are assigned an address space of 6 bytes which
must be located outside the process image of the SIMOTION-CPU ( >= 64).
Master (safety program): SIMATIC F-CPU properties.
The logical start address for F communication of the SIMATIC F-CPU must be entered
here under "Address" (LADDR).
The address space for sending and receiving safety message frames is 6 bytes and
must lie within the process image of the SIMATIC F-CPU.
In the SIMATIC F-CPU safety program, this address space can be used to access the
PROFIsafe control or status words.
Communication
System Manual, 11/2010 257
PROFIsafe
8.6 PROFIsafe via PROFIBUS
12.Double-click on the icon of the SINAMICS drive unit and select the Details tab in the
Configuration tab.
Communication
258 System Manual, 11/2010
PROFIsafe
8.6 PROFIsafe via PROFIBUS
13.Click on the PROFIsafe… button and then define the F parameters which are important
to F communication. As of STEP7 V5.5, PROFIsafe V2 is used by default.
(If the PROFIsafe… button cannot be used, you need to activate it using the Activate...
button.)
For more information about the failsafe parameters, see PROFIsafe properties for
configuration (Page 212)
14.Compile HW Config of the SIMOTION CPU. Compile the F-CPU configuration data in HW
Config.
Note
For information about creating a safety program and accessing PROFIsafe useful data
(e.g STW and ZSW) within the safety program, refer to the SIMATIC, S7 Distributed
Safety - Configuring and Programming Programming and Operating Manual.
Note
For further information on safety configuration, see the SINAMICS S120 Safety
Integrated Function Manual.
Communication
System Manual, 11/2010 259
PROFIsafe
8.6 PROFIsafe via PROFIBUS
Method of operation
SIMOTION CPU is the DP master for failsafe data exchange broadcast. The SIMATIC F-
CPU is the DP slave on PROFIBUS DP and controls failsafe communication, e.g. with a
CU320 of the SINAMICS S120.
Note
Control for the Safety Integrated functions cannot be routed to the SINAMICS Integrated of
the SIMOTION D, Controller Extension CX32/CX32-2, or any other DP network in this
constellation.
,VRFKURQRXVPRGHUHTXLUHG
,VRFKURQRXVPRGHQRWUHTXLUHG
6,027,21
'30DVWHU
352),VDIHYLDGDWDH[FKDQJHEURDGFDVW
352),%86'3
,6ODYH
0& ) 0& )
6,0$7,&)&38
6W83 )SURJU
&8
&8
Figure 8-43 Topology of failsafe data exchange broadcast for PROFIBUS drive units
Communication
260 System Manual, 11/2010
PROFIsafe
8.6 PROFIsafe via PROFIBUS
8.6.4.3 PROFIsafe via PROFIBUS with failsafe data exchange broadcast taking the example
of SIMOTION D
PROFIsafe communication is to be configured between a SINAMICS S120, SIMOTION D as
DP master and SIMATIC F-CPU as I-slave via PROFIBUS.
Communication
System Manual, 11/2010 261
PROFIsafe
8.6 PROFIsafe via PROFIBUS
Communication
262 System Manual, 11/2010
PROFIsafe
8.6 PROFIsafe via PROFIBUS
Communication
System Manual, 11/2010 263
PROFIsafe
8.6 PROFIsafe via PROFIBUS
12.Double-click on the icon of the SINAMICS drive unit and select the Details tab in the
Configuration tab. Click the PROFIsafe… button to specify the relevant F Parameters for
failsafe communication.
(If the PROFIsafe… button cannot be used, you need to activate it using the Activate...
button.)
For more information about the failsafe parameters, see PROFIsafe properties for
configuration (Page 212)
13.Compile HW Config of the SIMOTION CPU. Compile the F-CPU configuration data in HW
Config.
Note
For further information on Safety configuration, see the SINAMICS S120 Safety
Integrated Function Manual.
Communication
264 System Manual, 11/2010
PROFIsafe
8.7 PROFIsafe configuration - acceptance test and reports
Note
When carrying out the acceptance test for PROFIsafe communication, please note the
information provided in the SIMATIC, S7 Distributed Safety - Configuring and Programming
Programming and Operating Manual and the SINAMICS S120 Safety Integrated Function
Manual of the drive used.
Description
Additional information on the subject of PROFIsafe is available in the following documents:
● For information on how to connect an axis to a SINAMICS drive with Safety Integrated,
please refer to the TO Axis / External Encoder Function Manual.
● For information on how to configure a SINAMICS S120 drive or SINAMICS S110 drive
with Safety Integrated, please refer to the following:
– SINAMICS S120 Function Manual
– SINAMICS S120 Safety Integrated Function Manual
– SINAMICS S110 Function Manual.
Communication
System Manual, 11/2010 265
PROFIsafe
8.8 Additional information on SIMOTION and PROFIsafe
Communication
266 System Manual, 11/2010
PROFIdrive 9
9.1 Why profiles?
Profiles used in automation technology define certain characteristics and responses for
devices, device groups or whole systems which specify their main and unique properties.
Only devices with manufacturer-independent profiles can behave in exactly the same way on
a fieldbus and thus fully exploit the advantages of a fieldbus for the user.
Profiles are specifications defined by manufacturers and users for certain characteristics,
performance features and behaviors of devices and systems. They aim to ensure a certain
degree of interoperability of devices and systems on a bus which are part of the same
product family due to "profile-compliant" development.
Different types of profiles can be distinguished such as so-called application profiles (general
or specific) and system profiles.
● Application profiles mainly refer to devices, in this case drives, and contain an agreed
selection of bus communication methods as well as specific device applications.
● System profiles describe system classes and include the master functionality, program
interfaces and integration methods.
PROFIdrive
The PROFIdrive profile is a specific application profile. It contains a detailed description of
how the communication functions "data exchange broadcast", "equidistance" and
"isochronous operation" are used appropriately in drive applications. In addition, it specifies
all device characteristics which influence interfaces connected to a controller over
PROFIBUS or PROFINET. This also includes the State machine (sequential control), the
encoder interface, the normalization of values, the definition of standard telegrams, the
access to drive parameters, the drive diagnostics, etc.
The PROFIdrive profile supports both central as well as distributed motion control concepts.
The basic philosophy: – Keep it simple –
The PROFIdrive profile tries to keep the drive interface as simple as possible and free from
technology functions. This philosophy ensures that reference models as well as the
functionality and performance of the PROFIBUS/PROFIDRIVE master have no or very little
effect on the drive interface.
Communication
System Manual, 11/2010 267
PROFIdrive
9.2 PROFIdrive overview
Literature note
PROFIdrive profile
PROFIBUS Profile PROFIdrive – Profile Drive Technology
Version V4.1, May 2006,
PROFIBUS User Organization e. V.
Haid-und-Neu-Strasse 7, 76131 Karlsruhe (Germany)
http://www.profibus.com
Order Number 3.172, specifically Chap. 6
Standards
IEC 61800 standard
Communication
268 System Manual, 11/2010
PROFIdrive
9.3 PROFIdrive base/parameter model
Description
The PROFIdrive base model describes an automation system in terms of a number of
devices and their interrelationships (application interfaces, parameter access). The base
model distinguishes between the following device classes:
Communication
System Manual, 11/2010 269
PROFIdrive
9.3 PROFIdrive base/parameter model
&RQWURO 6XSHUYLVRUGHYLFH
6XSHUYLVRU
&RQWURO
DSSOLFDWLRQ
3DUDPHWHUDFFHVV
$FWXDOYDOXHV
&RPPXQLFDWLRQV\VWHP
6HWSRLQWV
,QWHUIDFHVGHILQHGLQ
352),GULYH 3DUDPHWHUDFFHVV
DSSOLFDWLRQFODVVHV
$FWXDOYDOXHV
'ULYH 'ULYH
DSSOLFDWLRQ DSSOLFDWLRQ
'ULYHXQLW 'ULYHXQLW
Communication
270 System Manual, 11/2010
PROFIdrive
9.3 PROFIdrive base/parameter model
Communication services
Two communication services are defined in the PROFIdrive profile; namely, cyclic data
exchange and acyclic data exchange.
● Cyclic data exchange via a cyclic data channel
Motion control systems need cyclically updated data during operation for open- and
closed-loop control purposes. This data must be sent to the drive units in the form of
setpoints or transmitted from the drive units in the form of actual values, via the
communications system. Transmission of this data is usually time-critical.
● Acyclic data exchange via an acyclic data channel
In addition to cyclic data exchange, there is an acyclic parameter channel for exchanging
parameters between the control/supervisor and drive units. Access to this data is not
time-critical.
● Alarm channel
Alarms are output on an event-driven basis, and show the occurrence and expiry of error
states.
Communication
System Manual, 11/2010 271
PROFIdrive
9.3 PROFIdrive base/parameter model
The graphic below shows the data model and data flow in the P device.
%XVOHYHO )UDPH
3DUDPHWHU
3[[ 3[[ 3[[ ಹ 3[[ 3[[ ಹ 3[[
OHYHO
3URFHVVGDWD
6HWSRLQWV $FWXDOYDOXHV
ಹ
3URFHVV
3URFHVVOHYHO
(UURUPHVVDJH
HYHQWFRQWUROOHG
Communication
272 System Manual, 11/2010
PROFIdrive
9.4 Segmentation in application classes
Parameter model
The parameter model in the PROFIdrive profile makes a distinction between profile
parameters and manufacturer-specific parameters:
● Profile parameters are defined for objects derived from the device model of the
PROFIdrive profile. These may include general functions such as drive identification, fault
buffer, or drive control, for example. These parameters are the same for all drives.
● All other parameters are manufacturer-specific. The parameters are defined by the
interface for the application process, rather than by the profile.
Access to a parameter's elements (values, parameter descriptions, text elements) essentially
works on an acyclic basis (with the exception of G120 drives, which can exchange data
cyclically with PIV). An independent request/response data structure is defined for this
purpose.
Category Drive
Category 1 Standard drives (such as pumps, fans, agitators, etc.); implemented in
SIMOTION and SINAMICS
Category 2 Standard drives with technology functions
Category 3 Positioning drives; implemented in SIMOTION and SINAMICS
Category 4 Motion control drives with central, higher-level motion control intelligence and the
"Dynamic Servo Control" position control concept; implemented in SIMOTION
and SINAMICS
Category 5 Motion control drives with central, higher-level motion control intelligence and
position setpoint interface
Category 6 Motion control drives with distributed, motion control intelligence integrated in the
drives
PROFIdrive defines a device model based on function modules which cooperate in the
device and generate the intelligence of the drive system.
Objects are assigned to these modules that are described in the profile and defined in terms
of their function. The overall functionality of a drive is therefore described through the sum of
its parameters.
In contrast to other drive profiles, PROFIdrive defines only the access mechanisms to the
parameters as well as a subset of approx. 70 profile parameters such as the fault buffer,
drive control and device identification.
Communication
System Manual, 11/2010 273
PROFIdrive
9.4 Segmentation in application classes
All other parameters are manufacturer-specific which gives drive manufacturers great
flexibility with respect to implementing control functions. The elements of a parameter are
accessed acyclically using what is known as "Base Mode Parameter Access".
Note
Jobs involving Base Mode Parameter Access are coded in a way you may already know
from data set 47 (DPV1 communication from PROFIBUS). For any differences, please refer
to Specifications for PROFIBUS and PROFINET IO (Page 286).
PROFIdrive uses DP V0, DP V1, and the DP V2 expansions for PROFIBUS, and the slave
data exchange broadcast and isochronous operation functions contained within them as the
communication protocol.
PROFIdrive for PROFINET contains the functions for IO controller-to-IO device
communication and isochronous operation.
Utilization categories
Utilization category 4 is the most important for highly dynamic and highly complex motion
control tasks. This application category describes in detail the master/slave relationship
between the controller and the drives which are connected to each other over PROFIBUS
and PROFINET.
$SSOLFDWLRQ&ODVV
$XWRPDWLRQ
7HFKQRORJ\
,QWHUSRODWLRQ
3RV&RQWURO
&ORFN
&RQWURO:RUG6SHHG6HWSRLQW 6WDWXV:RUG$FWXDO3RVLWLRQ
&ORFNV\QFKURQLVP
0 0 0
(QFRGHU (QFRGHU (QFRGHU
Communication
274 System Manual, 11/2010
PROFIdrive
9.5 PROFIdrive-specific data types
The DSC (Dynamic Servo Control) function significantly improves the dynamic response and
stiffness of the position control loop. With SIMOTION, this improvement usually relates to the
dead times which occur for speed setpoint interfaces (transmission time, computing time for
the controller and device), which are minimized by an additional, relatively simple feedback
network in the drive. The position controller is pre-controlled in the drive by the SIMOTION
controller using precontrol and position deviation, which enables very fast position control
cycle clocks (e.g. 125 μs for servo in SINAMICS S), thereby restricting dead times to the
control behavior alone.
Description
A range of data types have been defined for the purpose of using communication that is
compliant with PROFIdrive. You will find detailed information on this in the following
standards:
● IEC 61800-7-203
● IEC 61800-7-303
● IEC 61158-5
These standards contain detailed descriptions of the data types. The most important data
types are listed below. Data types are provided by the _readDriveParameterDescription
function, for example.
Note
For S7 communication or communication with SINAMICS, you will have to use the
AnyType_to_BigByteArray or BigByteArray_to_AnyType system functions to perform a type
conversion for different data types (normalized value N2, N4; normalized value X2, X4; fixed-
point value E2 and time constants T2 and T4).
Communication
System Manual, 11/2010 275
PROFIdrive
9.5 PROFIdrive-specific data types
Communication
276 System Manual, 11/2010
PROFIdrive
9.5 PROFIdrive-specific data types
Fixed-point value E2
Linear fixed-point value with four places after the decimal point. 0 corresponds to 0 (0x0),
128 corresponds to 214 (0x4,000). The length is 2 octets.
Coding
Represented in two's complement; MSB (most significant bit) is the first bit after the sign bit
(SN) of the first octet.
● SN = 0; positive numbers with 0
● SN = 1; negative numbers
Fixed-point value C4
Linear fixed-point value with four places after the decimal point. 0 corresponds to 0 (0x0),
0.0001 corresponds to 20 (0x0000 0001).
Coding
As with Integer32, the weighting of the bits has been reduced by a factor of 10,000.
Communication
System Manual, 11/2010 277
PROFIdrive
9.5 PROFIdrive-specific data types
Bit sequence V2
Bit sequence for checking and representing application functions. 16 Boolean variables are
combined to form 2 octets.
Nibble (half-byte) L2
Four associated bits make up a nibble. Four nibbles are represented by two octets.
Coding
Time constant D2
Time data as a fraction of the constant sampling time Ta. Interpreted value = internal value *
Ta/16,348
Coding
● T2: As with Unsigned16, with a restricted range of values of 0 ≤ x ≤ 32,767.
When interpreted, internal values that fall outside this range of values are set to 0.
Communication
278 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Time constant R2
Time data as a reciprocal multiple of the constant sampling time Ta. Interpreted value =
16,348 * Ta/internal value
Coding
● T2: As with Unsigned16, with a restricted range of values of 0 ≤ x ≤ 16,384.
When interpreted, internal values that fall outside this range of values are set to 16,384.
Note
Further data types:
Standard PROFIBUS/PROFINET data types (only available in English) (Page 317)
Profile-specific PROFIBUS/PROFINET data types (only available in English) (Page 328)
See also
Parameter request/response data set (Page 282)
Description
PROFIdrive drive devices are supplied with control signals and setpoints by the controller
and return status signals and actual values.
These signals are normally transferred cyclically (i.e. continuously) between the controller
and the drive.
In addition, PROFIdrive drive units recognize parameters that contain other required data,
such as error codes, warnings, controller parameters, motor data. This data is normally not
transferred cyclically (namely, continuous), but "acyclically" when required. Commands for
the drive can also be transferred using parameter accesses.
Communication
System Manual, 11/2010 279
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
9.6.2 Reading and writing parameters with Base Mode Parameter Access
Description
Base Mode Parameter Access, whose structure is defined in the PROFIdrive profile, is
always used for communicating the writing/reading parameters for PROFIdrive units such as
SINAMICS S120. The structure is also contained, for example, in the Acyclic communication
section of the SINAMICS S120 Function Manual.
Under this arrangement, parameter access always consists of two elements:
● Write request ("Write data set")
● Read request ("Read data set")
This sequence must be observed, irrespective of whether read or write access is involved.
A "Write data record" is used to transfer the parameter job (for example, read parameter x).
A "Read data record" is used to fetch the response for this parameter job (value of
parameter x).
Communication
280 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
UHVSRQVH
:ULWH
GDWD
ZLWKRXW
(UURUDVUHVSRQVH
QRW\HWDYDLODEOHNHHS
ZULWLQJUHTXHVWXQWLO :ULWH
ZLWKVD
DSSHDUV PHGDWD UHTXHVW
SDUDP
HWHUUH
T XH VW
3DUDPHWHUSURFHVVLQJ
VSRQVH
:ULWHUH DW D
ZLWK RX WG
'DWDSURFHVVHGDQG $IWHUSRVLWLYHDFNQRZOHGJH
DYDLODEOH PHQWRIBZULWH5HFRUG
5HDG
UHTXHV
ZLWKRX W
WGDWD
3DUDPHWHUUHVSRQVHZLWK
HVSRQVH
5HDGU SRQVH BUHDG5HFRUG
D SD UD PHWHUUHV
3DUDPHWHUUHVSRQVH ZLWKGDW
'DWDYDOLG
The figure Reading and writing acyclically shows that both "Write data set" and "Read data
set" consist of the following elements:
● Request
● Response
The controller does not process this "Request Reference". However, the user program can
or should process this reference.
Note
An instance of "Write data set" without data enables the status of "Write data set" with data
to be determined until the positive acknowledgment is given.
If "Write data set" is successfully completed, this only signifies that the data set has been
transmitted via the communication path without any errors; it does not signify that the action
has been executed without any errors in the target device.
Communication
System Manual, 11/2010 281
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Since the control has a different internal data representation in certain cases, an explicit
conversion must be performed when grouping and evaluating the data in the P
request/response data block (data set 47).
A conversion may be required for SIMOTION, see Program example.
See also
Rule 5 - a maximum of eight concurrent calls is possible in SIMOTION (Page 299)
Parameter request/response data set (Page 282)
Communication
282 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
The following structure is defined for the subsequent Parameter Response. This must be
retrieved with _readRecord.
The exact coding of the individual parts of the data structure can be obtained from the
PROFIdrive profile or the SINAMICS S120 Function Manual. The assignment of "Request"
and "Response", and "Write data record" and "Read data record" using the "Request
Reference" job reference in the above table is important.
Communication
System Manual, 11/2010 283
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Request Reference
The "Request Reference" is used for the assignment of the write request to the following
read request, because the control can, in principle, process several actions (as many as 8) in
parallel for different target devices using the same fieldbus.
Communication
284 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
For more information on coding PROFIdrive data types, see PROFIdrive-specific data types
(Page 275).
See also
Programming example (Page 312)
Reading and writing parameters with Base Mode Parameter Access (Page 280)
Communication
System Manual, 11/2010 285
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Note
The PROFIdrive standard specifies that in PROFIdrive drives no pipelining of jobs is
supported, namely, only one "Read/write data record" is possible concurrently for a single
drive device. If, however, more than one PROFIdrive drive unit is connected to a control
via PROFIBUS, a job can be processed in parallel for each of these drive units. The
maximum number then depends on the controller. The data for SIMOTION is specified in
Rule 5 - a maximum of eight concurrent calls is possible in SIMOTION (Page 299).
Communication
286 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
With BMPG, it is possible to access not only local parameters of a specific DO via the
PAP/MAP of the DO, but also local parameters of other DOs. The required DO is addressed
via the DO ID in the parameter request structure. This means that in the case of BMPG, a
valid DO ID must also be transferred in all cases.
Use case:
If access to the parameters of a multi-axis drive is only to take place via a PAP/MAP (logical
address), or if parameters are to be read to DOs that do not have a dedicated MAP/PAP
(particularly PROFIBUS devices). In the case of BMPG, the user is responsible for managing
the DO IDs for this purpose.
Description
Two different types of errors can occur in conjunction with Base Mode Parameter Access
services:
● Error in the communication (transfer of data)
For example, the addressed device may not exist and is not switched on. This type of
error is indicated with the return values of the system functions and is defined in the
description of the system functions in the SIMOTION reference lists.
● Error during the processing of the jobs themselves
For example, an attempt is made to write to a read-only parameter.
Error codes for this second type of error are defined for PROFIdrive-compliant drives in
the PROFIdrive standard and listed below.
The ID 0x81 (hex) or 0x82 (hex) response indicates an error for the parameter access.
Error codes are returned in the drive unit's response in the P response/request data block
(see table below). The "Format" field in the parameter response can be used to
distinguish whether the queried parameter represents an error code or a "true" value. See
the Structure after Base Mode Parameter Access - parameter response (Page 282) table,
offset 4, "Format".
This table also contains the coding for the "Format" field. Code 0x44 (hex) indicates an
error code in the "Values" field. Other "Format" values specify the number format (e.g.
Bool, Byte, Integer8, etc.) with which the value in the "Values" field was returned.
Note
The error codes up to 0x19 correspond to the PROFIdrive profile. The error codes from
0x65 onwards are manufacturer-specific and may, therefore, vary from drive to drive.
Communication
System Manual, 11/2010 287
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Communication
288 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Communication
System Manual, 11/2010 289
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Description
From a PROFIdrive drive device, not only the values of parameters, but also the descriptions
of the parameters, can be read.
The P response/request data block in the "Attribute" field is used to express a preference
when sending the "parameter request":
Communication
290 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
If, rather than the value of a parameter, its "Parameter Description" is requested, the "Value"
field in the "Parameter Response" contains the description (data type, possibly the number
of indexes of the parameter, ...).
Note
Normally, parameter descriptions are read-only.
Description
A "write data record" can be performed in SIMOTION using the _writeRecord() system
command. A "read data record" can be performed in SIMOTION using the _readRecord()
system command. This makes it also possible to read, write or fetch the description of
parameters in a PROFIdrive drive.
The description of the system functions, their input parameters and return values is
contained in the SIMOTION system documentation:
● C2xx reference list
● D4XX reference list
● P3xx reference list
The _write/_readRecord system commands can be used universally, not just for PROFIdrive
drives, but, for example, also for intelligent sensors on the PROFIBUS or other peripheral
modules that support the so-called DP V1 services for PROFIBUS.
Note
For SIMATIC, the corresponding system functions are
SFB52 WR_REC Write data record
SFB53 RD_REC Read data record
Communication
System Manual, 11/2010 291
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
As a result, for example in connection with PROFIdrive units, the telegram start address of
the PROFIdrive telegram exchanged cyclically with the device is required.
If a drive has several axes (with a shared PROFIBUS interface connection) on a drive
device, to differentiate the axes in the same device, the "Axis-No." or "DO-ID" in data set 47
is also required. SIMODRIVE 611universal and SINAMICS S120 are examples for such
multi-axis drives. To determine the "DO-ID" for SINAMICS S120, refer to the Acyclical
Communication section in the SINAMICS S120 Commissioning Manual.
"Axis-No." or "DO-ID" = 0 can be used to access the so-called "global parameters".
Examples of such "global parameters" are:
● P0918: PROFIBUS address
● P0964: Device identification (manufacturer, version, number of axes, etc.)
● P0965: Profile number (the implemented PROFIdrive version)
● P0978: List of the DO Ids (the set "Axis-No." or "DO-ID")
Description
Whereas the _readRecord and _writeRecord system functions can be used universally for all
devices on PROFIBUS that support the so-called "read/write data record" DP V1 services,
the following commands are specially tailored to PROFIdrive drives using the PROFIdrive
profile:
● _read/writeDriveParameter (reads/writes a, possibly indexed, drive parameter)
● _read/writeDriveMultiParameter (reads/writes several, possibly indexed, drive parameters
for a drive or drive object)
● _readDriveFaults (reads the current fault buffer entry of a drive or drive object)
● _readDriveParameterDescription (reads the descriptive data of a parameter from the
drive or drive object)
● _readDriveParameterDescription (reads the descriptive data of several parameters from
the drive or drive object)
The commands create internally the data set 47 required for the individual functions in
accordance with PROFIdrive profile using the parameters transferred by the user when the
system functions are called, and independently handle the communication to the PROFIdrive
drive using "read/write data record".
The commands are described in the SIMOTION system documentation, refer to the
reference lists for the associated platform.
See also
Scope for the rules (Page 301)
Communication
292 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Description
The following table shows the most important differences between the two groups of system
commands:
The use of the drive-specific _write/_readDrive... system commands on the one hand makes
it easier for you than using general _write/_readRecord commands, since you do not need to
know the structure of data set 47 and do not need to program the successive _writeRecord
and _readRecord calls in sequencers. Because the general usability of these system
functions means the structure of the transferred data records is not known to the system, you
may need to perform the required conversion into the representation in accordance with the
PROFIdrive profile for sending and receiving yourself, see Program example (Page 312).
Up to SIMOTION V4.1, the use of the _write/_readDrive... commands is restricted to those
cases for which there is cyclic data traffic to the associated drive object, because this is
required as an input parameter. From this version up, it is possible to transfer the DO ID or
axis no. via the doId parameter of the system functions. This means that it is possible to
communicate with every DO, even if acyclic data traffic is involved.
Communication
System Manual, 11/2010 293
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
In contrast, _write/_readRecord can also be used to access drive objects even when no
cyclical data traffic exists (or when the I/O address is not known in the application). This
succeeds with _write/_readRecord because the explicit knowledge of the "DO-ID" or "Axis-
No." and the knowledge of some I/O address on the device suffices to construct the data set
47. This can be advantageous, for example, when individual drive objects are used only
drive-internal (namely, without cyclical telegram traffic for control) or they are not generally
known for "generic programming".
Description
You can use the following functions to cancel or delete incorrect read or write jobs, which, for
example, were called with the _readDriveParameter:
● _abortReadWriteRecordJobs, for the _readRecord or _writeRecord functions
● _abortAllReadWriteDriveParameterJobs, for the following functions:
– _readDrive(Multi)ParameterDescription
– _readDrive(Multi)Parameter
– _writeDrive(Multi)Parameter
– _readDriveFaults
You can call the functions without needing to know or read the CommandID.
Description
R2: For asynchronous programming, you must repeatedly call the system function with the
same IDs until the function is terminated ("longrunner"). The correct use of the system
functions _writeRecord and _readRecord based on communication with SINAMICS S120 is
shown in the figure Correct processing with the _readRecord and _writeRecord system
functions.
Communication
294 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
The communication for reading and writing parameters for the SINAMICS S120 is always
performed using data set 47, whose structure is described in the documentation for the
SINAMICS S120, refer to the Acyclical Communication section in the SINAMICS S120
Commissioning Manual.
Communication
System Manual, 11/2010 295
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
3DUDP
W HWHUUH
HQH[
HDWH GLQWK TXH VW
EHUHS
G PXVW
PPDQ
&R LDO LVVLRQ
RN
F\FOH,QLW UDQVP
J UD P D WD W
7LPHW SUR QRIG
LWLDWLR
F DOOLQ
QGF
DOOBZ
ZLWK ULWH
VWF RP 5HF RUG Z
PDQG ULWHHQ
,' WU \
H QH[ W
HDWH GLQWK
EHUHS
PXVW F DOO
R P PDQG G LD WH
& UPH
F\FOH,QWH WLOODFWLYH
P VV
SURJUD VPLVVLRQL
UDQ
GDWDW
QWKF D
OOBZUL
ZLWK WH5HF
VWF RP RUG Z
PDQG ULWHHQ
,' WU \
\RN
WDHQWU ERN
V LR Q RIGD X OW -R
LV V
UDQVP LYHUH
7 GZLWKSRVLW
WH
RPSOH
-REF
VWF D
OOB UHD
ZLWK G 5H F
QGF R RUG UH
PPDQ DGHQ
G,' WU \
H[ W
QWKHQ
DWHGL
V WE H UHSH
GPX
PPDQ OO
&R LDOF D
F\FOH,QLW LRQRN KURQRXVO\
P Q VPLVV QF
SUR J UD
I G D WD W UD
P LW WH GDV\
RQR QV
LQLWLDWL RPPDQGWUD
IF
RQO\L
QGF
DOOB UH
ZLWK D G 5H
QGF R F RUG
PPDQ UHDGH
G,' QWU \
H QH[ W
GLQWK
HSHDWH
G P X VWEHU
OO
PPDQ LDWHF
D
&R UPHG QO\LI
F\FOH,QWH WLOODFWLYH R VO\
SURJ UD P
LV V LR Q L V V
\ Q F K URQRX
UDQVP VPLW WHGD V
GDWDW Q
DQGWUD
F RPP
QWKF D
OOB UHD
ZLWK G 5H F
QGF R RUG UH
PPDQ DGHQ
G,' WU \ H
VS RQV
HWHUUH
3DUDP
RN
PHWHUV RN
3DUDPHWHUUHVSRQVH LQ J R ISDUD UHVXOW-RE
5 H D G V LW LY H
ZLWKGDWDEORFN LWKS R
WHGZ
RPSOH
-REF
Figure 9-5 Correct processing with the _readRecord and _writeRecord system functions
Communication
296 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Only one read/write data record per PROFIdrive drive device concurrently
The PROFIdrive profile specifies that PROFIdrive drives do not perform any pipelining and
consequently only one job will be processed at any one time. Consequently, this is also
described for SINAMICS S120 in the Commissioning Manual.
Note
It does not matter which system functions are used for the transmission in the controller. A
PROFIdrive drive can process only one job at any one time.
Note
It is certainly possible for other devices on the PROFIBUS that they support several
"read/write data record" in parallel.
Note
Because the _write/_readRecord system functions can be used universally, no interlock is
performed on the controller side to limit only one "read/write data record" per PROFIdrive
drive to be initiated at any one time.
Communication
System Manual, 11/2010 297
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
H[ W
QWKHQ VWSD
DWHGL UD
UHSH PHWHU
XVWEH UHTXH
VW
DQGP
&R
PP QRN
F\FOH PLVVLR
P G D WD WUDQV
SURJUD RI
LDWLRQ
OOLQLW
VWF D
VWF D
OOBZUL
ZLWK WH5HF
QGSDUDPHWHUUHTXHVW QGF R RUG Z
PPDQ ULWHHQ
G,' WU \
W QGS
HQH[ DUDPH
GLQWK WHUUH
WEHU HSHDWH TXH VW
GPXV
PPDQ N
&R VLRQR
7LPHW F\FOH QVPLV
J UD P R IG DWDWUD
SUR LDWLR Q
OOLQLW
VWF D
VWF D
OOBZUL
ZLWK WH5HF
QGF R RUG Z
PPDQ ULWHHQ
G,' WU \
\RN
WDHQWU ERN
V LR Q RIGD X OW -R
LV V
UDQVP LYHUH
7 GZLWKSRVLW
WH
RPSOH
-REF
VWF D
OOB UHD
ZLWK G5
UGF RP HF RUG UHD
PDQG GHQWU
,' \
RQVH
WHUUHVS
3DUDPH
QWKF D
OOB UHD
ZLWK G5
UGF RP HF RUG UHD
PDQG GHQWU
,' \
QVH
UHVSR
DUD PHWHU
QGS
WU \RN
DWDHQ N
LV V LR QRIG V X OW -RER
QVP HUH
QGSDUDPHWHU 7UD LW K S RVLWLY
WHGZ
RPSOH
UHVSRQVH -REF
VWF D
OOB UHD
ZLWK G5
WKF RP HF RUG UHD
PDQG GHQWU
,' \
Communication
298 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Note
The upper limit applies to each SIMOTION controller, not to each bus segment on the
controller. This means it does not matter whether the addressed target devices operate on a
single PROFIBUS segment or are assigned to several PROFIBUS segments.
Note
Because the _write/_readRecord system functions can be used universally, no interlock is
performed on the controller side to limit only one "read/write data record" per PROFIdrive
drive to be initiated at any one time.
Communication
System Manual, 11/2010 299
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
QH[ W 3DUDP
LQWKH HWHUUH
UHS HDWHG TXH V
W
XVWEH
DQGP
&R
PP QRN
F\FOH PLVVLR
P G D WD WUDQV
SURJUD R I
LDWLRQ
OOLQLW
7LPHW VWF D
VWF D
OOBZUL
ZLWK WH5
WKF RP HF RUG ZUL
PDQG WHHQWU
,' \
H[ W
QWKHQ
HSH DWHGL
GPX VWEHU
PPDQ RN
&R LVVLRQ
F \FOH
D WD W UDQVP
P RIG
SURJUD LDWLRQ
OOLQLW
VWF D
QWKF D
OOBZUL
ZLWK WH5
WKF RP HF RUG ZUL
PDQG WHHQWU
,' \
RN
HQWU \ RN
IGDWD
P LV VLRQR U H V X OW-RE
UDQ V LYH
7 GZLWKSRVLW
WH
RPSOH
-REF
VWF D
OOBZUL
ZLWK WH5
WKF RP HF RUG ZUL
PDQG WHHQWU
,' \
H[ W
QWKHQ
DWHGL
VWEH UHSH
PPD QGPX
&R RN
F\FOH LVVLRQ
UDQVP
UR J UD P Q R I GDWDW
S LDWLR
OOLQLW
VWF D
QWKF D
OOBZUL
ZLWK WH5HF
WKF R RUG Z
PPDQ ULWHHQ
G,' WU \
GXUL QJ
HUURU
LVVLRQ
& 7UDQVP EH
Q
))) QGF D
)XUWKHUXVHRI ) RPPD TXLUHG
QWU \F O\5H
SDUDPHWHUUHTXHVWV GDWDH LPPHGLDWH VVLJQHG
D WH G WO \ D
LVEORFNHG UHSH XUUHQ FWLRQ
LW \LVF UGIXQ
F DSDF ZULWH5HF R
W K H B
,Q
HQWU \
ZULWH RGXOH
W K H P
,Q
Communication
300 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Note
If the error 16#80C3 occurs, you must set the CPU to STOP and then back to RUN. This
deletes the job buffer. In order to prevent the error, you should end the job with an abort
command, if you are unable to end the job.
Description
The following examples are shown using the _readDriveParameter system function . The
descriptions also apply similarly for the previously mentioned _writeDrive.../_readDrive...
system functions.
Description
For asynchronous programming, the user must call repeatedly the system function with the
same IDs until the function is terminated ("longrunner").
Communication
System Manual, 11/2010 301
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
The following figure shows the correct use of the _readDriveParameter system function.
VWF D
OOB UHDG
7LPHW 'ULYH
3DUDP
ZLWK HWHU
VWF RP
PDQG
,'
3DUDP
HWHUUH
TX H VW
LQWKH
HSHDWHG
XVWEHU I
& R P PDQGP D OO LQ LWLDWLRQR
,QLWLDOF
J UD P F\FOH
QH[ WSUR RQRN
QVPLVVL
GDWDWUD
QGF
DOOB UH
DG'UL
YH3DUD
ZLWK PHWHU
VWF RP
PDQG
,'
WKH
SHDWHGLQ
VWEHUH
R P P DQGPX G LD WH F DOOGDWD
& H
OH,QWHUP
JUDPF\F
QH[ WSUR Q V WL OODFWLYH
VL R
WUDQVPLV
QWKF D
OOB UHD
G'ULY
H3DUD
ZLWK PHWHU
VWF RP
PDQG
,' H
VSRQV
HWHUUH
3DUDP
N
HWHUVR RERN
SDUDP -
H D G LQJRI LWLYHUHVXOW
5 GZLWKSRV
WH
RPSOH
-REF
Figure 9-8 Correct processing with the _writeDriveParameter and _readDriveParameter system
functions
Description
The PROFIdrive standard specifies that PROFIdrive units do not perform any pipelining and
consequently only one job will be processed at any one time. Consequently, this is also
documented for SINAMICS S120 in the SINAMICS S120 Commissioning Manual.
Communication
302 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Because the SIMOTION _write/_readDrive... system commands have been created for the
frequent use with PROFIdrive units, this is already handled by the controller.
Note
It does not matter which system functions are used for the transmission in the controller. A
PROFIdrive drive can process only one job at any one time.
Consequence for the application on the controller:
An interlock must be set to prevent the application or different parts of the application from
sending overlapping jobs to the same PROFIdrive drive device.
The figure below shows the behavior when this is not handled. The attempt to issue a
second job (with unique commandID) to the same target device will be acknowledged with
an error. A further job to the same target device can then be issued only when the first job
has completed or has been canceled, see Section Releasing the Interlocking (Page 304).
VWSD
UD PHWHU
UHTXH
VW
LQWKH
SHDWHG
Q G P X VWEHUH LD WL R QRI
&RP
PD OOLQLW
LWLDOF D
UD P F \FOH,Q UL S WL R QRN
J V F
QH[ WSUR SDUDPHWHUGH
JRI
UHDGLQ
VWF D
OOB UHD
ZLWK G'ULY
QGF R H3
PPDQ DUDPHWHU
G,'
QGS
DUDP
HWHUUH
TX H VW
Q
DQGF D
UF RPP
DOHUUR F\FOH
)XUWKHUXVHRI & ,QWHUQ UD P
))
))
H[ WSUR
J WHGWR
SDUDPHWHUUHTXHVWV QWKHQ UDQVPLW
H U H S HDWHGL OU H D G \ EHHQW
LVEORFNHG E VD
UMREKD
$ QRWKH
YH
WKHVOD
Communication
System Manual, 11/2010 303
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
9.6.9.4 Rule 8 - release the interlocking after the complete processing of a job
Enable the interlock only after the processing of a job has been completed
The following figure shows that it does not suffice to wait for "something", but rather the
_read/_writeDrive... system functions must be called repeatedly until the job has been
processed completely. The interlock will not be freed and the internal management
resources released beforehand.
The number of calls has been selected so that the SIMOTION DP V1 interface answers each
subsequent call for the first job with 16#7002 and thus is not processed completely.
Depending on the loading of the bus and the drive, this can also be necessary very
frequently (>25 times). This means an estimate cannot be given.
3DUDP
HWHUUH
TXH VW
WKH
HDWHGLQ
EHUHS I
P P D Q GPXVW LQ LW LDWLRQR
&R OO
LWLDOF D
UD P F \FOH,Q UL S WL R QRN
J VF
QH[ WSUR SDUDPHWHUGH
JRI
UHDGLQ
QGF
DOOB UH
ZLWK DG
VWF RP 'ULYH3DUDP
PDQG HWHU
,'
GLQWKH
HSHDWH J
XVWEHU UHDGLQ
& R P PDQGP H G LD WHF DOO
WHUP
\F OH ,Q
OORQJ R LQ J
JUDPF WLRQVWL
QH[ WSUR GHVF ULS
PHWHU
RISDUD
WKF
DOO
ZLWK B UHDG'ULY
VWF RP H3DUD
PDQG PHWHU
,'
GLQWKH
HSHDWH LQJ
XVWEHU OOUHDG
& R P PDQGP H G LDWHF D
WH UP
\FOH,Q QJRLQJ
JUDPF QVWLOOR
QH[ WSUR VFULSWLR
D UD P HWHUGH
RIS
VWF D
OOB UHD
ZLWK G'ULY
QGF R H3
PPDQ DUDPHWHU
G,'
Q
DQGF D
F RPP
OHUURU \FOH
)XUWKHUXVHRI
& , QWHUQD UD PF
)) [ WSUR J WR
SDUDPHWHUUHTXHVWV )) WKHQH VPLW WHG
HDWHGLQ HQWUDQ
LVEORFNHG EHUHS V D OU H DG\EH
UMREKD
$ QRWKH
YH
WKHVOD
Communication
304 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Note
From V4.1 and up, it is possible to cancel without knowing the commandID, see Deleting
_readDrive and _writeDrive jobs (Page 294) .
A sample call of the _readDriveParameter function with the first commandID (id1) and
ABORTED_CURRENT_COMMAND has the following form:
Return_Par_read_delete :=
readDriveParameter(
ioId:=INPUT,
logAddress := 256,
parameterNumber := number,
numberOfElements := 0,
subIndex:= 0,
nextCommand :=
ABORT_CURRENT_COMMAND,
commandId := id1);
Communication
System Manual, 11/2010 305
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
$X
IU XIB
7LPHW 'ULYH UHDG'
ULYH
3DUD
%HIHK PHWHU 3DUDPHWHU
OV ,' OHVHQ
PLW
F RP
PDQG
,'
3DUDP
HWHUUH
TXH V
W
H QH[ W
GLQWK
SHDWH
WEHUH
GPXV N
P P D Q
OO SWLRQR
&R ,Q LW LDOF D H WH U GHVF UL
OH UDP
PF\F RISD
SURJUD RIUHDGLQJ
RQ
LQLWLDWL
$X
IU XIB
'ULYH UHDG'
3DUD ULYH
%HIHK PHWHU 3DUDPHWHU
OV ,' OHVHQ
PLW
F RP
PDQG
,'
F DQ
PDQG
UF RP OH
UQ D OHUUR F \ F
)XUWKHUXVHRI QWH UDP
&, WSURJ UDQVPLW WHG
))) HQH[
SDUDPHWHUUHTXHVWVLV ) WH GLQWK \ EHHQ
W
S H D H D G
EHUH DOU
EORFNHG
H U MR EKDV
$ QRWK
VODYH
WRWKH
QGF
DOOB UH
ZLWK DG'UL
VWFRP YH3DUD
$ %2 5 P DQ G PHWHU
7B&8 ,'DQ
5 5 (1 G
7B&2
00$
1'
)XUWKHUXVH G
ERUWH
HWHUVD
RISDUDPHWHUUHTXHVWV
JRI SDUDP
LVSRVVLEOH7KHEORFN
5 HDGLQ
KDVEHHQOLIWHG
The process in the following figure shows that it is not possible to cancel a job without
knowledge of the original commandID. Not the first job, but rather the cancel attempt will be
canceled. The reason is that the commandID is used for managing the various jobs in the
system.
Communication
306 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
3DUDP
HWHUUH
TXHV
W
H[ W
GL QWKHQ
HSHDWH
VWEHU
P P D QGPX
&R LDOF D
OO
N
F\FOH,QLW VLRQR
P QVPLV
SURJUD RIGDWDWUD
RQ
LQLWLDWL
QGF
DOOB UH
ZLWK DG'UL
QGF R YH3DUD
PPDQ PHWHU
G,'
F DQ
PDQG
UF RP PF\FOH
UQ D OHUUR J UD
WH H[ WSUR
)XUWKHUXVHRI &,Q
WHGLQWKHQ HHQ
SDUDPHWHUUHTXHVWV HD HDG\E
LVEORFNHG EHUHS MREKDVDOU H
H U OD Y
$ QRWK RWKHV
LW WHGW
WUDQVP
UGFD
OOB UHD
ZLWK G'ULY
QGFR H3DUD
$ %2 5 P P DQ PHWHU
7B&8 G,'
55(1 DQG
7B&2
00$
1'
Note
It is therefore important that the user program retains the commandID of the jobs until the job
has completed or has been canceled.
Note
Take particular care, for example, through control by other conditions, that in the user
program the processing of the _write/_readDrive... functions is not bypassed before they
have completed.
Communication
System Manual, 11/2010 307
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Communication
308 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
VWF D
OOB UHD
ZLWK G'ULY
QG H3DUD
WR&8 F RPPDQG PHWHU
IURP& ,'
;
QGS
DUDP
LQWKH HWHUUH
SHDWHG TXH V
Q G P X VWEHUH LD WL R QRI W
&RP
PD DOOLQLW
,QLWLDOF
J UD P F\FOH N
QH[ WSUR GHVFULSWLRQR
HWHU
SDUDP
QGF
DOOB UH
ZLWK DG'UL
QG YH3DUD
WR&8 F RPPDQG PHWHU
IURP& ,'
;
DWHGLQ
HUHSH
P D Q G PXVWE H G LD WH F DOO
&RP ,QWHUP
PF\FOH VWLOO
WSURJUD F ULSWLRQ
WKHQH[ UD P H WHUGHV
LQ J R I SD
UHDG
J
RQJRLQ
QWKF D
OOB UHD
ZLWK G'ULY
QG H3DUD
WR&8 F RPPDQG PHWHU
IURP& ,'
;
QVH
UUHVSR
UDPHWH
QGSD
N-RE
HWHUVR
LQ JR ISDUDP R E R N
5HD
G XOW-
LYHUHV
KSRVLW
WHGZLW
F RPSOH
VWF D
OOB UHD
ZLWK G'ULY
UG H3DUD
IURP6 F RPPDQG PH
,1 $ 0 ,'WR& WHU
,& 6,
QWHJUD 8
WHG
F DQ
PPDQG
)XUWKHUXVHRI UURUF R
SDUDPHWHUUHTXHVWV & , Q WHUQDOH UD P F \FOH
)) H[ WSUR
J G
WR6,1$0,&6,QWHJUDWHG )) QWKHQ QVPLW WH
HDWHGL HHQWUD
'3VODYHLVEORFNHG EHUHS K D V D OUHDG\E
UMRE
$ QRWKH
ODYH
WRWKHV
Communication
System Manual, 11/2010 309
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Note
However, it is important to appreciate that a missing interlock of the system commands
from the two command groups means several jobs could be issued to a PROFIdrive drive
(see following section), which a PROFIdrive drive cannot process. Handling the system-
internal interlocking for _write/_readDrive....
The figure Mixed use of _readDrive... and _read/_writeRecord shows that the
_write/_readRecord functions, in particular, can be used for the same target device when,
because of a running _readDriveParameter job, further jobs with the same command are
suppressed by the system – this situation must be blocked by the user because it cannot be
processed by a PROFIdrive.
Communication
310 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
VWSD
UD
QH[ W PHWH
UUHTX
DWHG LQWKH H VW
HUHSH
E
PXVW
PDQG
&RP LW LD O F DOO N
OH,Q VLRQR
PF\F QVPLV
SURJUD RIGDWDWUD
RQ
LQLWLDWL
VWF D
OOB UHD
ZLWK G'ULY
QGF R H3
PPDQ DUDPHWHU
G,'
F DQ
PDQG
UF RP PF\FOH
)XUWKHUXVHRI UQ D OHUUR J UD G
WH H[ WSUR WUDQVPLW WH
&,Q
SDUDPHWHUUHTXHVWV WHGLQWKHQ \ E HHQ
H D H D G
LVEORFNHG EHUHS MREKDVDOU
HU
$ QRWK Y H
V OD
WRWKH
VWF D
OOBZUL
ZLWK WH5
QGSDUDPHWHUUHTXHVW UGF RP HF RUG ZUL
PDQG WHHQWU
,' \
QGS
DUDP
HWHUUH
W TXH VW
HQH[
GLQWK
E HU H SHDWH
W
GPXV RN
PPDQ FDOO ULSWLRQ
&R LWLDO UGHVF
F OH,Q
DUD P H WH
PF\ JRIS
SURJUD UHDGLQ
RQRI
LQLWLDWL
QWKF D
OOBZUL
ZLWK WH5
UGF RP HF RUG ZUL
PDQG WHHQWU
,' \
RN
HQWU \ RN
LR Q R IGDWD - RE
LVV VX OW
UDQVP LYHUH
7 GZLWKSRVLW
WH
RPSOH
-REF
VWF D
OOB UHD
ZLWK G5
WKF RP HF RUG UHD
PDQG GHQWU
,' \
H[ W
QWKHQ
DWHGL
UHSH
GP XVWEH
PPDQ OO
&R LDOF D N
F\FOH,QLW VLRQR
P QVPLV
SURJUD RIGDWDWUD
RQ
LQLWLDWL
QWKF D
OOB UHD
ZLWK G5
WKF RP HF RUG UHD
PDQG GHQWU QVH
,' \ UHVSR
DUD PHWHU
QGS
QGSDUDPHWHUUHVXOW
\RN
WDHQWU ERN
Q RIGD R
LV V LR VX -
OW
UDQVP LYHUH
7 GZLWKSRVLW
WH
RPSOH
-REF
Communication
System Manual, 11/2010 311
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
The user must interlock for the mixed use of the commands from the two command groups
When the following system commands are used together, it is possible that more than one
"read/write data record" is issued concurrently to a single device because for SIMOTION
interlocking and buffering is performed only within the command groups but not between
command groups.
● _writeRecord/_readRecord SIMOTION system commands
and
● _writeDrive.../_readDrive... SIMOTION system commands
If necessary, this must be interlocked by the user to prevent data loss/overlapping because
the PROFIdrive profile specifies that a PROFIdrive drive does not perform any pipelining and
consequently can process only one job at any given time.
Description
The following example shows how the _writeRecord and _readRecord system commands
can be used to fetch the error code from parameter p0945 of a SINAMICS drive (drive object
DO3, I/O address 256).
Example
The sample program can be called, for example, in the BackgroundTask, because so-called
"asynchronous programming" is used.
//=========================================================================
// demonstrate reading parameter 945 (fault code) via data set 47
// using SIMOTION system functions _write/_readRecord (asynchronous call)
// INPUT address 256 is assumed to address the SINAMICS
// drive is DO3 in SINAMICS S120
//=========================================================================
INTERFACE
PROGRAM record;
// declare request type
TYPE
// declare struct of header request
Header_Type_Request : STRUCT
Request_Reference : USINT;
Request_Id : USINT;
Communication
312 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Axis : USINT;
Number_Of_Parameter : USINT;
END_STRUCT;
Communication
System Manual, 11/2010 313
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Implementation
// ==================================================================
IMPLEMENTATION
PROGRAM record
CASE program_step OF
// initialize -------------------------------------------------------
0:
// get command ids for calling system functions
id_write := _getcommandid();
id_read := _getcommandid();
// header from the request
// here: Axis-No / DO-ID is 3
// read Parameter 945 (drive fault code)
myRequest.Header.Request_Reference := 16#10; // arbitrary no.
myRequest.Header.Request_Id := 16#1; // read request
myRequest.Header.Axis := 16#3; // axis no 3
myRequest.Header.Number_Of_Parameter := 16#1; // one parameter
// next step
program_step := 1;
Communication
314 System Manual, 11/2010
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Communication
System Manual, 11/2010 315
PROFIdrive
9.6 Acyclic communication (Base Mode Parameter Access)
Communication
316 System Manual, 11/2010
Appendix 10
10.1 Standard PROFIBUS/PROFINET data types (only available in
English)
Subset of IEC 61158-5 standard data types for use in PROFIBUS/PROFINET profiles
Coding of most of the data types in these profile guidelines is defined in IEC 61158-6:2003,
clause 6.2. However, the usage in practice is different in some cases. Thus it is highly
recommended to follow the definitions and hints within this annex. The next edition of IEC
61158 is supposed to comply with the content of this annex.
Boolean
A Boolean is representing a data type that only can have two different values i.e. TRUE and
FALSE. Hint: for efficiency reasons this data type is not used in application profiles.
Bits 7 6 5 4 3 2 1 0
True x x x x x x x x 0x01 to
0xFF
False 0 0 0 0 0 0 0 0 0x00
Integer16
An Integer16 is representing a signed number depicted by 16 bits.
In two’s complement; the most significant bit (MSB) is the bit after the sign (SN) in the first
Byte.
SN = 0: positive numbers and zero
SN = 1: negative numbers
Bits 7 6 5 4 3 2 1 0
Octets 1 SN 2 14 2 13 2 12 2 11 2 10 2 9 28
Octets 2 27 26 25 24 23 22 21 20
Communication
System Manual, 11/2010 317
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
Integer32
An Integer32 is representing a signed number depicted by 32 bits.
In two’s complement; the most significant bit (MSB) is the bit after the sign (SN) in the first
Byte.
SN = 0: positive numbers and zero
SN = 1: negative numbers
Bits 7 6 5 4 3 2 1 0
Octets 1 SN 2 30 2 29 2 28 2 27 2 26 2 25 224
Octets 2 2 23 2 22 2 21 2 20 2 19 2 18 2 17 216
Octets 3 215 214 213 212 211 210 29 28
Octets 4 27 26 25 24 23 22 21 20
Integer64
An Integer64 is representing a signed number depicted by 64 bits.
In two’s complement; the most significant bit (MSB) is the bit after the sign (SN) in the first
Byte.
SN = 0: positive numbers and zero
SN = 1: negative numbers
Bits 7 6 5 4 3 2 1 0
Octets 1 SN 2 62 2 61 2 60 2 59 2 58 2 57 256
Octets 1 2 55 2 54 2 53 2 52 2 51 2 50 2 49 248
Octets 1 247 246 245 244 243 252 241 240
Octets 1 239 238 237 236 235 234 233 232
Octets 1 2 31 2 30 2 29 2 28 2 27 2 26 2 25 224
Octets 2 223 222 221 220 219 218 217 216
Octets 3 215 214 213 212 211 210 29 28
Octets 4 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Communication
318 System Manual, 11/2010
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
Unsigned8
An Unsigned8 is representing an unsigned number depicted by 8 bits ("enumerated"). Some
application profiles (e.g. PROFIsafe) are using this data type for the coding of individual
single bits.
Bits 7 6 5 4 3 2 1 0
Octets 1 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Bits 7 6 5 4 3 2 1 0
Octets 1 7 6 5 4 3 2 1 0
Unsigned16
An Unsigned16 is representing an unsigned number depicted by 16 bits ("enumerated").
Some application profiles (e.g. PROFIsafe) are using this data type for the coding of
individual single bits.
Bits 7 6 5 4 3 2 1 0
Octets 1 2 15 2 14 2 13 2 12 2 11 2 10 2 9 28
Octets 2 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Bits 7 6 5 4 3 2 1 0
Octets 1 15 14 13 12 11 10 9 8
Octets2 7 6 5 4 3 2 1 0
Communication
System Manual, 11/2010 319
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
Unsigned32
An Unsigned32 is representing an unsigned number depicted by 32 bits ("enumerated").
Some application profiles (e.g. PROFIsafe) are using this data type for the coding of
individual single bits.
Bits 7 6 5 4 3 2 1 0
Octets 1 2 31 2 30 2 29 2 28 2 27 2 26 2 25 224
Octets 2 2 23 2 22 2 21 2 20 2 19 2 18 2 17 216
Octets 3 215 214 213 212 211 210 29 28
Octets 4 27 26 25 24 23 22 21 20
Bits 7 6 5 4 3 2 1 0
Octets 1 31 30 29 28 27 26 25 24
Octets 2 23 22 21 20 19 18 17 16
Octets 3 15 14 13 12 11 10 9 8
Octets 4 7 6 5 4 3 2 1 0
Unsigned64
An Unsigned64 is representing a signed number depicted by 64 bits.
In two’s complement; the most significant bit (MSB) is the bit after the sign (SN) in the first
Byte.
SN = 0: positive numbers and zero
SN = 1: negative numbers
Bits 7 6 5 4 3 2 1 0
Octets 1 263 262 261 260 259 258 257 256
Octets 2 2 55 2 54 2 53 2 52 2 51 2 50 2 49 248
Octets 3 247 246 245 244 243 252 241 240
Octets 4 239 238 237 236 235 234 233 232
Octets 5 2 31 2 30 2 29 2 28 2 27 2 26 2 25 224
Octets 6 223 222 221 220 219 218 217 216
Communication
320 System Manual, 11/2010
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
Bits 7 6 5 4 3 2 1 0
Octets 7 2 15 2 14 2 13 2 12 2 11 2 10 2 9 28
Octets 8 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Float32
A Float32 is representing a number defined by ANSI/IEEE 754 as single precision.
Bits 7 6 5 4 3 2 1 0
Octets 1 Exponent (E)
SN 27 26 25 24 23 22 21
Octets 2 (E) Fraction (F)
20 2-1 2-2 2-3 2-4 2-5 2-6 2-7
Octets 3 Fraction (F)
2-8 2-9 2-10 2-11 2-12 2-13 2-14 2-15
Octets 4 Fraction (F)
2-16 2-17 2-18 2-19 2-20 2-21 2-22 2-23
Float64
A Float64 is representing a number defined by ANSI/IEEE 754 as single precision.
Bits 7 6 5 4 3 2 1 0
Octets 1 Exponent (E)
SN 210 29 28 27 26 25 24
Octets 2 Exponent (E) Fraction (F)
23 22 21 20 2-1 2-2 2-3 2-4
Octets 3 Fraction (F)
2-5 2-6 2-7 2-8 2-9 2-10 2-11 2-12
Octets 4 Fraction (F)
2-13 2-14 2-15 2-16 2-17 2-18 2-19 2-20
Octets 5 Fraction (F)
2-21 2-22 2-23 2-24 2-25 2-26 2-27 2-28
Octets 6 Fraction (F)
2 -29 2 -30 2 -31 2 -32 2-33 2-34 2-35 2-36
Octets 7 Fraction (F)
Communication
System Manual, 11/2010 321
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
Bits 7 6 5 4 3 2 1 0
2 -37 2 -38 2 -39 2 -40 2 -41 2 -42 2 -43 2-44
Octets 8 Fraction (F)
2-45 2-46 2-47 2-48 2-49 2-50 2-51 2-52
Visible String
This data type is defined as the ISO 646 string type. Characters are based on 8 Bit ASCII.
Bits 7 6 5 4 3 2 1 0
Octets 1 1. Character
Octets 2 2. Character
... ...
Octets n n. Character
OctetString
An OctetString is an ordered sequence of Bytes, numbered from 1 to n.
Bits 7 6 5 4 3 2 1 0
Octet 1 1. Character
Octet 2 2. Character
... ...
Octet n n. Character
BYTE
A Byte is 1 octet.
Bits 7 6 5 4 3 2 1 0
Octet 1 1. Byte
Communication
322 System Manual, 11/2010
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
WORD
A Word is an ordered sequence of 2 octets.
Bits 7 6 5 4 3 2 1 0
Octet 1 1. Byte
Octet 2 2. Byte
DWORD
A DWord is an ordered sequence of 4 octets.
Bits 7 6 5 4 3 2 1 0
Octet 1 1. Byte
Octet 2 2. Byte
Octet 3 3. Byte
Octet 4 4. Byte
LWORD
A LWord is an ordered sequence of 8 octets.
Bits 7 6 5 4 3 2 1 0
Octet 1 1. Byte
Octet 2 2. Byte
Octet 3 3. Byte
Octet 4 4. Byte
Octet 5 5. Byte
Octet 6 6. Byte
Octet 7 7. Byte
Octet 8 8. Byte
Communication
System Manual, 11/2010 323
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
TimeOfDay
This data type is composed of two elements of unsigned values representing the time of day
and the date. The first element is an Unsigned32 data type and contains the number of
milliseconds since midnight, where midnight = 0.
The second element is of type Unsigned 16 containing the number of completed days since
January 1, 1984.
The time is interpreted as 32 bit value. The first 4 (MSB) bits have the value zero. The date
indication is coded as 16 bit value.
Bits 7 6 5 4 3 2 1 0
Octets 1 0 0 0 0 227 226 225 224 Number of
Octets 2 2 23 2 22 2 21 2 20 2 19 2 18 2 17 2 16 millisecond
s since
Octets 3 215 214 213 212 211 210 29 28 midnight
Octets 4 27 26 25 24 23 22 21 20
Octets 5 2 15 2 14 2 13 2 12 2 11 2 10 2 9 28 days since
Octets 6 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20 January 1st,
1984
TimeDifference
This data type is composed of two elements of unsigned values and expresses the
difference in time. The first element is an Unsigned32 data type that contains the fractional
portion of one day in milliseconds. The optional second element is an Unsigned16 data type
that contains the difference in days.
The time is interpreted as 32 bit value. The first 4 (MSB) bits have the value zero. The date
indication is coded as 16 bit value.
Bits 7 6 5 4 3 2 1 0
Octets 1 2 31 2 30 2 29 2 28 2 27 2 26 2 25 224 Number of
Octets 2 2 23 2 22 2 21 2 20 2 19 2 18 2 17 216 millisecond
s (of one
Octets 3 215 214 213 212 211 210 29 28 day)
Octets 4 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Octets 5 2 15 2 14 2 13 2 12 2 11 2 10 2 9 28 Number of
Octets 6 27 26 25 24 23 22 21 20 days
(optional)
Communication
324 System Manual, 11/2010
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
Date
This data type is composed of six elements of unsigned values and expresses calendar date
and time. The first element is an Unsigned16 data type and gives the fraction of a minute in
milliseconds. The second element is an Unsigned8 data type and gives the fraction of an
hour in minutes. The third element is an Unsigned8 data type and gives the fraction of a day
in hours with the most significant bit indicating Standard Time or Daylight Saving Time. The
fourth element is an Unsigned8 data type. Its upper three (3) bits give the day of the week
and its lower five (5) bits give the day of the month. The fifth element is an Unsigned8 data
type and gives the month. The last element is Unsigned8 data type and gives the year. The
values 0 ... 50 correspond to the years 2000 to 2050; the values 51 ... 99 correspond to the
years 1951 to 1999.
Bits 7 6 5 4 3 2 1 0
Octet 1 215 214 213 212 211 210 29 28 0...59999
Octet 2 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 millisecond
s
Octet 3 res res 25 24 23 22 21 20 0...59
minutes
Octet 4 SU res res 24 23 22 21 20 0...23 hours
Octet 5 day of week day of month 1...7 day of
22 21 20 24 23 22 21 20 week
1...31 day
of month
Octet 6 res res 25 24 23 22 21 20 1...12
month
Octet 7 res 26 25 24 23 22 21 20 0...99 years
Communication
System Manual, 11/2010 325
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
Bits 7 6 5 4 3 2 1 0
Octet 1 0 0 0 0 2 27 2 26 2 25 224 Number of
Octet 2 2 23 2 22 2 21 2 20 2 19 2 18 2 17 216 millisecond
s since
Octet 3 215 214 213 212 211 210 29 28 midnight
Octet 4 27 26 25 24 23 22 21 20
The time is interpreted as 32 bit value. The date indication is coded as 16 bit value.
Bits 7 6 5 4 3 2 1 0
Octet 1 2 31 2 30 2 29 2 28 2 27 2 26 2 25 224 Number of
Octet 2 223 222 221 220 219 218 217 216 millisecond
s (of one
Octet 3 215 214 213 212 211 210 29 28 day)
Octet 4 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Octet 5 2 15 2 14 2 13 2 12 2 11 2 10 2 9 28 Number of
Octet 6 27 26 25 24 23 22 21 20 days
Bits 7 6 5 4 3 2 1 0
Octet 1 2 31 2 30 2 29 2 28 2 27 2 26 2 25 224 Number of
Octet 2 223 222 221 220 219 218 217 216 millisecond
s (of one
Octet 3 215 214 213 212 211 210 29 28 day)
Octet 4 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Communication
326 System Manual, 11/2010
Appendix
10.1 Standard PROFIBUS/PROFINET data types (only available in English)
NetworkTime
This data type is based on the RFC 1305 standard and composed of two unsigned values
that express the network time related to a particular date. Its semantic has changed in IEC
61158-6:2003.
The first element is an Unsigned32 data type that provides the network time in seconds
since 1.1.1900 0.00,00(UTC) or since 7.2.2036 6.28,16(UTC) for time values less than
0x9DFF4400, which represents the 1.1.1984 0:00,00(UTC). The second element is an
Unsigned32 data type that provides the fractional portion of seconds in 1/232 s. Rollovers
after 136 years are not automatically detectable and are to be maintained by the application.
Bits 7 6 5 4 3 2 1 0
Octet 1 2 31 2 30 2 29 2 28 2 27 2 26 2 25 224 Number of
Octet 2 2 23 2 22 2 21 2 20 2 19 2 18 2 17 216 seconds
since
Octet 3 215 214 213 212 211 210 29 28 1.1.1900.
Octet 4 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20 Rollover
after 136
years.
Thus, next
would be
7.2.2036.
Octet 5 231 230 229 228 227 226 225 224 Fractional
Octet 6 223 222 221 220 219 218 217 216 portion of
seconds:
Octet 7 215 214 213 212 211 210 29 28 1/232 s
Octet 8 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
The Time Stamp mechanism in PROFIBUS DP is using this data type. However, the
semantic is slightly different:
● The least significant Bit of the fractional portion (20) is device internally used to indicate a
synchronized or unsynchronized state of the clock time.
NetworkTimeDifference
This data type is composed of an integer value and of an unsigned value that express the
difference in network time. The first element is an Integer32 data type that provides the
network time difference in seconds. The second element is an Unsigned32 data type that
provides the fractional portion of seconds in 1/232 s.
Communication
System Manual, 11/2010 327
Appendix
10.2 Profile-specific PROFIBUS/PROFINET data types (only available in English)
Bits 7 6 5 4 3 2 1 0
Octet 1 SN 230 229 228 227 226 225 224 Signed
Octet 2 223 222 221 220 219 218 217 216 number of
seconds
Octet 3 215 214 213 212 211 210 29 28
Octet 4 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Octet 5 231 230 229 228 227 226 225 224 Fractional
Octet 6 2 23 2 22 2 21 2 20 2 19 2 18 2 17 2 16 portion of
seconds:
Octet 7 215 214 213 212 211 210 29 28 1/232 s
Octet 8 27 26 25 24 23 22 21 20
See also
PROFIdrive-specific data types (Page 275)
Bits 7 6 5 4 3 2 1 0
Octets 1 Exponent (E)
SN 27 26 25 24 23 22 21
Octets 2 (E) Fraction (F)
20 2-1 2-2 2-3 2-4 2-5 2-6 2-7
Octets 3 Fraction (F)
2-8 2-9 2-10 2-11 2-12 2-13 2-14 2-15
Octets 4 Fraction (F)
2-16 2-17 2-18 2-19 2-20 2-21 2-22 2-23
Octet 5 27 26 25 24 23 22 21 20
Communication
328 System Manual, 11/2010
Appendix
10.2 Profile-specific PROFIBUS/PROFINET data types (only available in English)
In two’s complement; the most significant bit (MSB) is the bit after the sign (SN) in the first
Byte.
Bits 7 6 5 4 3 2 1 0
Octet 1 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Octet 2 2 7 2 6 2 5 2 4 2 3 2 2 2 1 20
Bits 7 6 5 4 3 2 1 0
Octet 1 1. Byte
Octet 2 2. Byte
Octet 3 27 26 25 24 23 22 21 20
Unsigned16_S
This data structure consists of the value and the status embedded in an unsigned 16 data
type. The parameter using this data type can be input or output.
Bits 7 6 5 4 3 2 1 0
Octets 1 2 13 2 12 2 11 2 10 2 9 2 8 2 7 26
Octets 2 25 24 23 22 21 20 St1 St0
Communication
System Manual, 11/2010 329
Appendix
10.2 Profile-specific PROFIBUS/PROFINET data types (only available in English)
Integer16_S
This data structure consists of the value and the status embedded in an integer 16 data type.
The parameter using this data type can be input or output.
Bits 7 6 5 4 3 2 1 0
Octets 1 SN 212 211 210 29 28 27 26
Octets 2 2 5 2 4 2 3 2 2 2 1 2 0 St1 St0
Unsigned8_S
This data structure consists of the value and the status embedded in an Unsigned8 data
type. The parameter using this data type can be an input or output.
Communication
330 System Manual, 11/2010
Appendix
10.2 Profile-specific PROFIBUS/PROFINET data types (only available in English)
Bits 7 6 5 4 3 2 1 0
Octets 1 2 5 2 4 2 3 2 2 2 1 2 0 St1 St0
OctetString_S
This data structure consists of the value and the status embedded in an octet string data
type. The parameter using this data type can be an input or output.
In the scope of this profile, this is the preferred data type for digital values. It contains the
value of a binary channel as a bit in a value field (ch(x)), and a status information in a status
field (st1(x) and st0(x)) coded as shown below. If a channel is unused, its position in the
value field and in the status field has to be set to 0.
The value field and the status field are packed into an OctetString with the bit coding as
shown below. This data type is defined as OctetString_S.
ch(x) value for channel x; st(x) status information for channel x; 1<x≤n
Communication
System Manual, 11/2010 331
Appendix
10.2 Profile-specific PROFIBUS/PROFINET data types (only available in English)
Bits 7 6 5 4 3 2 1 0
Octet 1 Status/Control octet
Octet 2 Consecutive number (V1-mode) or High-octet
CRC(V2-mode) *)
Octet 3 CRC *)
Octet 4 Low-byte CRC (least significant octet) *)
Communication
332 System Manual, 11/2010
Appendix
10.2 Profile-specific PROFIBUS/PROFINET data types (only available in English)
Bits 7 6 5 4 3 2 1 0
Octet 1 Status/Control octet
Octet 2 1. byte CRC (most significant octet) *)
Octet 3 2. byte CRC *)
Octet 4 3. byte CRC *)
Octet 5 4. byte CRC (least significant octet) *)
Bits 7 6 5 4 3 2 1 0
Octet 1 Status/Control octet
Octet 2 Consecutive number
Octet 3 1. byte CRC (most significant octet) *)
Octet 4 2. byte CRC *)
Octet 5 3. byte CRC *)
Octet 6 4. byte CRC (least significant octet) *)
See also
PROFIdrive-specific data types (Page 275)
Communication
System Manual, 11/2010 333
Appendix
10.2 Profile-specific PROFIBUS/PROFINET data types (only available in English)
Communication
334 System Manual, 11/2010
Index
B
_ Base Mode Parameter Access, 279
_readRecord
Application, 294
C
_tcpCloseConnection
TCP communication, 164 CIDR
_tcpCloseConnection system function, 164 Classless Inter-Domain Routing, 188
_tcpCloseServer Commissioning
TCP communication, 164 PROFIsafe with Scout, 254, 261
_tcpCloseServer system function, 164 Communication
_tcpOpenClient Between SIMOTION and SIMATIC, 25
TCP communication, 161 SIMATIC as an I-slave, 30
_tcpOpenClient system function, 161 SIMATIC as DP slave, 30
_tcpOpenServer SIMOTION as an I-slave, 27
TCP communication, 161 SIMOTION as DP slave, 27
_tcpOpenServer system function, 161 Configuring
_tcpReceive Shared Device, 241
TCP communication, 163 Configuring the sender, 118
_tcpReceive system function, 163 Controller Application Cycle Factor, 62
_tcpSend Cycle clock scaling, 62
TCP communication, 162
_tcpSend system function, 162
_udpAddMulticastGroupMembership, 181 D
_udpAddMulticastGroupMembership system
Data block (PAP), 282
function, 181
Diagnostics model, 139
_udpDropMulticastGroupMembership, 182
DP cycle
_udpReceive, 180
PROFINET IO, 94
_udpReceive system function, 180
DP slave
_udpSend, 179
SIMOTION, 27
_udpSend system function, 179
DP V1 communication
_writeRecord
Program example, 312
Application, 294
Drive Based Safety
_xreceive, 36
Functions, 207
_xsend, 35
Message frames, 209
A E
Acyclic communication, 279
Ethernet
AG_LRECV (FC60), 171
LCom library, 156
AG_LSEND (FC50), 171
Properties of the subnets, 155
AG_RECV (FC6), 171
Using interface, 156
AG_SEND (FC5), 171
Ethernet CP communication
AG_SRECV (FC63), 171
Configuring, 172, 184
AG_SSEND (FC53), 171
Communication
System Manual, 11/2010 335
Index
Communication
336 System Manual, 11/2010
Index
Sync master
Redundant, 72
T
TCP communication, 157
LCom library, 156
SIMOTION system functions, 160
Topology
Configuring, 98
U
UDP communication, 177
System functions, 179
UDT65, 166, 168
X
X_RCV, 34
X_SEND, 33
Communication
System Manual, 11/2010 337
Index
Communication
338 System Manual, 11/2010