74455218 Datenquerverkehr SINAMICS-G120 V1-1 En
Transcript of 74455218 Datenquerverkehr SINAMICS-G120 V1-1 En
-
Applications & Tools
Answers for industry.
SINAMICS G: PROFIBUS slave-to-slave communication with SINAMICS G120 SINAMICS G120, G120C, G120D, G120P
Application description y June 2013
-
2 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
Siemens Industry Online Support This article is taken from the Siemens Industry Online Support. The following link takes you directly to the download page of this document: http://support.automation.siemens.com/WW/view/en/74455218 Caution The functions and solutions described in this article are predominantly confined to the realization of the automation task. Please also take into account that appropriate protective measures have to be taken with regard to industrial security when connecting your equipment to other parts of the plant, the company network or the Internet. Further information can be found under the item ID 50203404. http://support.automation.siemens.com/WW/view/en/50203404
-
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 3
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
s
SIMATIC Slave to Slave Communication SINAMICS G120
Task 1
Solution 2
Basics 3
Configuring the slave-to-slave communication
4
Internet links 5
Contact person 6
History 7
-
Warranty and liability
4 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
Warranty and liability Note The application examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The application examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These application examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance. When using these application examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these application examples at any time without prior notice. If there are any variations between the recommendations provided in these application examples and other Siemens publications, e.g. catalogs, the contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data, etc. described in this application example, shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act (Produkthaftungsgesetz), in case of intent, gross negligence or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract (wesentliche Vertragspflichten). The damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change of the burden of proof to your detriment. Any form of duplication or distribution of these application examples or excerpts thereof is prohibited without the express consent of Siemens Industry Sector.
-
Preface
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 5
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
Preface Aim of the application
In many applications, data must be very quickly exchanged between drives. Direct data exchange between the drives using PROFIBUS slave-to-slave communication is faster than the indirect route through a control system. Applications include, for example, speed setpoint cascade, controlling additional drives using a control word or leading/following drives with closed-loop torque control for rigidly coupled axes.
Key contents of this application This application deals with the following key points: x Direct communication between two DP slaves using direct telegram exchange. x Configuring the SIMATIC S7 hardware configuration and the SINAMICS
telegram interconnection of the SINAMICS drives for direct data exchange.
Validity The application is applicable for all SINAMICS G120 / G120C / G120D G120P with PROFIBUS from FW V4.4
-
Table of contents
6 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
Table of contents Warranty and liability ............................................................................................... 4 Preface ...................................................................................................................... 5 1 Task................................................................................................................. 7
1.1 Description ........................................................................................ 7 2 Solution........................................................................................................... 8
2.1 Overview of the overall solution ......................................................... 8 2.2 Description of the core functionality .................................................... 9 2.2.1 Parameterizing the communication .................................................... 9
SIMATIC S7-300/400 ......................................................................... 9 2.2.2 Data exchange .................................................................................. 9
SINAMICS G120 ............................................................................... 9 2.3 Hardware and software components used ....................................... 10
3 Basics ........................................................................................................... 11
3.1 Basics direct data exchange ............................................................ 11 3.2 Direct data exchange between SINAMICS drives ............................. 12
4 Configuring the slave-to-slave communication .......................................... 13
4.1 Requirement .................................................................................... 13 4.2 Setting up direct data exchange in HW Config ................................. 14 4.3 Interconnecting direct data exchange in STARTER .......................... 17
5 Internet links ................................................................................................. 20 6 Contact person ............................................................................................. 20 7 History .......................................................................................................... 20
-
1 Task
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 7
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
1 Task 1.1 Description
Overview of the automation task The following diagram provides an overview of the automation task. Fig. 1-1 Overview of the task
Description of the automation task This application will show how direct data exchange between several PROFIBUS slaves functions.
-
2 Solution
8 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
2 Solution 2.1 Overview of the overall solution
Schematic The following schematic diagram shows the most important components of the solution:
Fig. 2-1 Schematic diagram
PROFIBUS PROFIBUS
PG/PC
Slave to slave
SINAMICS G120 SINAMICS G120SIMATIC S7-300/400-
Publisher Subscriber
The example shows you... x ... the fundamentals of direct data exchange. x how direct data exchange with DP slaves is setup.
Demarcation This application does not include... x ... the use of direct data exchange in a specific example x engineering a drive. x ... commissioning SINAMICS drives.
-
2 Solution
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 9
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
x SIMATIC programming of a drive control. Other articles go into detail regarding the specific use of direct data exchange. -continuous material web with PROFIBUS direct data exchange at SINAMICS G120 See: http://support.automation.siemens.com/WW/view/en/74455574 -load distribution via PROFIBUS direct data exchange with SINAMICS G120/G120D See: http://support.automation.siemens.com/WW/view/en/60602336
Knowledge required It is assumed that readers have basic knowledge about handling SIMATIC S7, cyclic data exchange via PROFIBUS, STARTER commissioning software as well as drive technology.
2.2 Description of the core functionality
2.2.1 Parameterizing the communication
SIMATIC S7-300/400 SIMATIC S7-300/400 is programmed using STEP 7 V5.5. It is important that in the hardware configuration and in STARTER, the same telegram length and the same telegram type are selected. When inserting the SINAMICS in the SIMATIC project, the peripheral addresses are also defined, which the SIMATIC control should use to access the converter.
2.2.2 Data exchange
SIMATIC S7-300/400 Data exchange between SINAMICS drives and the SIMATIC control is realized via cyclic process data exchange, i.e. data is transferred in each bus cycle.
SINAMICS G120 Data exchange between the two SINAMICS drives direct data exchange is handled via an area reserved in the hardware configuration using the telegram length. Data exchange is cyclic.
-
2 Solution
10 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
2.3 Hardware and software components used
The application was created with the following components:
Standard software components Table 2-1
Component Qty. MLFB/order number Note
SIMATIC STEP V5.5 1 STEP 7 V5.5 SP2 floating license 6ES7810-4CC10-0YA5
STARTER V4.3.2 1 6SL3072-0AA00-0AG0
http://support.automation.siemens.com/WW/view/en/26233208
-
3 Basics
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 11
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
3 Basics 3.1 Basics direct data exchange
The publisher/subscriber model is used to implement direct data exchange between the PROFIBUS slaves. PROFIBUS slaves declared as publishers make their input data available to other slaves, the subscribers, for reading. Direct telegram exchange allows the direct and therefore time-saving communication between slaves via broadcast, without going indirectly through a master. In so doing, the slaves act as "publisher"; i.e. the slave response is not returned to a coordinating master, but is sent directly to the other slaves known as "subscribers". As a consequence, slaves can directly track data from other slaves, and use this data for their own inputs (e.g. setpoints). This opens up completely new applications. Further, bus response times are significantly reduced. Direct data exchange is realized cyclically. Direct data exchange requires a PROFIBUS-DP master, which supports direct data exchange as functionality; for example, these include all SIMATIC S7-CPUs with the "equidistant" (isochronous functionality) in the Catalog.
Publisher - sender: With the "slave-to-slave communication" function, at least one slave must act as the publisher. The publisher is addressed by the master when the output data are transferred with a modified layer 2 function code (DXB.req). The publisher then sends its input data for the master with a broadcast telegram to all bus nodes. An explicit configuration of the direct data exchange sender (broadcast publisher) is not required.
Subscriber - receiver: The subscribers evaluate the broadcast telegrams, sent from the publishers, and use the data which has been received as setpoints. These setpoints of the publisher are used, in addition to the setpoints received from the master, corresponding to the configured telegram structure (p0922).
Links and taps: The links configured in the subscriber (connections to publisher) contain the following information: x From which publisher is the input data received? x What is the content of the input data? x Where are the additional setpoints received? Several taps are possible within a link. Several input data or input data areas, which are not associated with one another, can be used as setpoint via a tap.
-
3 Basics
12 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
Fig. 3-1
3.2 Direct data exchange between SINAMICS drives
When creating the hardware configuration it must be taken into account that the area required for direct data exchange must be reserved in the I/O. For the communication settings in STARTER, the data for the subscribers are interconnected to the reserved PZD in the publisher. In the subscriber, the received data are interconnected with the intended function (e.g. main setpoint).
Fig. 3-2 The principle of slave-slave communication
-
4 Configuring the slave-to-slave communication
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 13
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
4 Configuring the slave-to-slave communication
4.1 Requirement
A SIMATIC project with a SIMATIC module capable of direct data exchange with a PROFIBUS subnet must already have been created in the hardware configuration. You can find a list with the SIMATIC modules capable of direct data exchange at the following link. http://support.automation.siemens.com/WW/view/en/17660809 Fig. 4-1
-
4 Configuring the slave-to-slave communication
14 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
4.2 Setting up direct data exchange in HW Config
Table 4-1 Configuring direct telegram exchange in HW Config No. Action Remark
1. Insert the SINAMICS, which should be used as publisher, as DP slave.
2. Assign the SINAMICS a
PROFIBUS address.
3. Under the "Configuration" tab of
the DP slave properties, the I/O addresses are assigned PZDs. The length in words is also specified. PZDs declared as "actual value" can be used for direct data exchange. In this particular case, PZD 3 and PZD 4 are parameterized with a length of 1 word for direct data exchange.
-
4 Configuring the slave-to-slave communication
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 15
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
No. Action Remark 4. You can change the name under
the "General" tab of the DP slave properties.
5. Insert the SINAMICS, which
should be used as subscriber, as DP slave.
6. Assign the SINAMICS a
PROFIBUS address.
-
4 Configuring the slave-to-slave communication
16 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
No. Action Remark 7. Under the "Configuration" tab of
the DP slave properties, the I/O addresses are assigned PZDs. The length in words is also specified. PZDs declared as "setpoint" can be used for direct data exchange. To do this, change the type of input to direct data exchange. Then select the PROFIBUS address of the publisher and the required I/O address. In this particular case, PZD 3 and PZD 4 are parameterized with a length of 1 word for direct data exchange.
8. You can change the name under
the "General" tab of the DP slave properties.
-
4 Configuring the slave-to-slave communication
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 17
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
No. Action Remark 9. The configuration of the direct
data exchange is clearly shown under the "Direct data exchange overview" tab of the DP slave properties.
10. You must "save and compile" the
changes in HW Config and load to the module.
4.3 Interconnecting direct data exchange in STARTER
1. You open STARTER by double-clicking on the SINAMICS commissioning symbol in the SIMATIC Manager.
Interconnection in the publisher
2. Establish the online connection to the publisher and load the drive into the PG
-
4 Configuring the slave-to-slave communication
18 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
3. Under "Communication", open the "PROFIBUS" screen form For the telegram configuration, select "999 Free telegram configuration with BICO
4. The transmit data are
interconnected under the "Transmit direction" tab. In this case, PZD 3 and PZD 4 were reserved for direct data exchange. The speed setpoint is interconnected to PZD 3, and status word 1 is interconnected to PZD 4.
Interconnection in the subscriber
5. Establish the online connection to the subscriber and load the drive into the PG. Under "Communication", open the "PROFIBUS" screen form For the telegram configuration, select "999 Free telegram configuration with BICO The PZD are interconnected word-by-word under the "Receive direction" tab The speed setpoint from the publisher is received in PZD3 and can be interconnected at the required location
-
4 Configuring the slave-to-slave communication
Slave to Slave Communication SINAMICS G120 V1.0, Item ID: 74455218 19
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
6. Using parameters r2090 to r2093, the received PZDs 1 to 4 are interconnected bit-by-bit. For instance, the "enable operation" signal of the publisher can be used in the subscriber in r2093.2.
-
5 Internet links
20 Slave to Slave Communication SINAMICS G120
V1.0, Item ID: 74455218
Cop
yrig
ht
Sie
men
s A
G 2
013
All
right
s re
serv
ed
5 Internet links This list does not purport to be complete and merely reflects a selection of suitable information. Table 5-1
Topic Title
\1\ Reference to the article
http://support.automation.siemens.com/WW/view/en/74455218
\2\ Siemens Industry Online Support
http://support.automation.siemens.com
\3\ Siemens Industry Online Support SINAMICS G
http://support.automation.siemens.com/WW/view/en/36426537/133300
\4\ SIMATIC S7 modules with direct data exchange
http://support.automation.siemens.com/WW/view/en/17660809
6 Contact person Siemens AG Industry Sector I DT MC PMA APC Frauenauracher Strasse 80 D - 91056 Erlangen, Germany E-mail: [email protected]
7 History Table 7-1
Version Date Change
V1.0 06/2013 First edition V 1.1 09/2013 Formatting changed
SINAMICS G: PROFIBUS slave-to-slave communication with SINAMICS G120 Table of contentsWarranty and liabilityPreface1 Task1.1 Description
2 Solution2.1 Overview of the overall solution2.2 Description of the core functionality2.2.1 Parameterizing the communication2.2.2 Data exchange
2.3 Hardware and software components used
3 Basics3.1 Basics direct data exchange3.2 Direct data exchange between SINAMICS drives
4 Configuring the slave-to-slave communication4.1 Requirement4.2 Setting up direct data exchange in HW Config4.3 Interconnecting direct data exchange in STARTER
5 Internet links6 Contact person7 History