Professional Documents
Culture Documents
Sinamics g120 at s7-1200 Short-Docu v1d3 en
Sinamics g120 at s7-1200 Short-Docu v1d3 en
http://support.automation.siemens.com/WW/view/en/70155469
The Application Examples are not binding and do not claim to be complete with
regard to configuration, equipment or any contingencies. 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 of safely and professionally using, installing,
operating and servicing equipment. 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 and without prior notice. If there are any
deviations between the recommendations provided in this Application Example
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 will be excluded. Such an exclusion will not
apply in the case of mandatory liability, e.g. under the German Product Liability Act
(Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life, body
or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
(wesentliche Vertragspflichten). The compensation for damages due to a breach
of a fundamental contractual obligation is, 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 in the burden of proof to your disadvantage.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of Siemens Industry Sector.
Security
information
Siemens provides products and solutions with industrial security functions that
support the secure operation of plants, solutions, machines, equipment and/or
networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information on
industrial security, visit http://www.siemens.com/industrialsecurity
To stay informed about product updates as they occur, sign up for a productspecific newsletter. For more information, visit
http://support.automation.siemens.com.
Table of Contents
Table of Contents
Warranty and Liability ................................................................................................. 2
1
Overview ............................................................................................................. 4
2.2
3.1
3.2
4
Commissioning ................................................................................................ 14
PROFINET ......................................................................................... 14
PROFIBUS ......................................................................................... 15
History............................................................................................................... 17
1 Overview
Overview
The short documentation on hand describes the blocks which can be used for
connecting a SINAMICS G120 to a SIMATIC S7-1200 in the TIA Portal. The blocks
can be used with PROFINET and PROFIBUS DP.
This short documentation does not focus on explanations and only shows the most
important points for integrating the blocks into your own projects.
Function
Explanation
Process_Data [FB11] 1
Write/read
access to
process data
Parameters [FB20]1
write_drive_parameters [DB100]
read_drive_parameters [DB101]
answer_from_drive [DB103]
Write/read
access to
Parameter
Normalization [FC12]
Denormalization [FC11]
Standardization
Denormalization
Preconditions
To be able to use the blocks, you need:
2.1
Process_Data [FB11]
General information
For the block, the following applies:
In the TIA Portal of the device configuration of the drive, the Telegram 352
frame must be selected.
Since this block is an FB, you always have the choice to create actual parameters
during the block call or access the parameters directly in the respective instance
DB. The latter makes sense, for example, for a direct HMI access.
Transfer method
The block offers a cyclic exchange of consistent data between a SIMATIC S7-1200
and a SINAMICS G120 as DP standard slave/PROFINET IO device. It uses the
system instructions
Interface
Table 2-1: Interface of the Process_Data FB
Parameter
Start
value
Data type
Description
Input parameters
RD_HW-ID
HW_SUBMODULE -
WR_HW-ID
HW_SUBMODULE -
control_word
Word
16#047E
setpoint
Real
0.0
ref_speed_
p2000
Real
1500.0
ref_current_
p2002
Real
0.0
ref_torque_
p2003
Real
0.0
Parameter
Start
value
Data type
Description
Output parameters
status_word
actual_speed
Word
Real
actual_current Real
actual_torque Real
2.2
actual_alarm
Word
actual_fault
Word
RETVAL_RD
Word
RETVAL_WR
Word
Parameters [FB20]
Motivation
For a parameter transfer between SINAMICS drive and SIMATIC controller a
number of boundary conditions must be taken into consideration for programming,
such as:
How many parameters shall be transferred?
Which data format do these parameters have?
Are the parameters indexed?
How many indices do they have?
For the above reasons, it is not sensible to offer a less performant block which
supports all sorts of parameter transfers. The Parameters [FB20] block fulfills the
following specific task:
Writing and reading the ramp-up and ramp-down time
Reading the first eight current failure and acknowledged failures
This makes it comprehensible, and the user can use it as a template for his own
modifications.
General information
For the block, the following applies:
In the TIA Portal of the device configuration of the SINAMICS drive, any
message frame type can be selected. If you do not require a cyclic process
data exchange, you can use the (shortest) Telegram 1 frame.
Since this block is an FB, you always have the choice to create actual parameters
during the block call or access the parameters directly in the respective instance
DB. The latter makes sense, for example, for a direct HMI access.
Transfer method
The Parameters [FB20] block uses the Data set 47 structure to respectively
transfer
the drive response (data, error detection) to the respective job at the SIMATIC
control.
Interface
Table 2-2: Interface - Parameters [FB20]
Parameter
Start
value
Data type
Description
Input parameters
HW-ID
HW_SUBMODULE -
Bool
False
Ramp_Time_Up
Real
10.0
Ramp_Time_Down Real
10.0
Output parameters
actual_
Ramp_Time_Up
Real
actual_
Real
Ramp_Time_Down
Bool
Bool
Job running
done
drive_error
Bool
error
Bool
busy
10
Acknowledged alarms
Note
Since the structure of the data set to be sent or received depends on the number
of jobs and their number format, a generally valid structure cannot be used.
11
Normalization [FC12]
Denormalization [FC11]
(dimensionless normalized),
(normalized dimensionless )
3.1
Normalization [FC12]
Interface
Parameter
Data type
Description
Input parameters
value_REAL
Real
Dimensionless value
normalization
Real
Reference value
Value_INT
Int
Output parameters
Standardized value
12
3.2
Denormalization [FC11]
Interface
Parameter
Data type
Description
Input parameters
actual_value_INT
Int
Standardized value
normalization
Real
Reference value
Output parameters
actual_value_REAL
Real
Dimensionless value
13
4 Commissioning
Commissioning
If you wish to use the prefabricated example, follow the respective application
description (/7/) in chapter 3.
If you create your own project, proceed according to chapter 6 of the respective
application description (/7/), for example. A summary of the steps concerning the
SINAMICS drive and the SIMATIC controller is given below.
PROFINET
1. Wire the involved components and create the physical PROFINET
connections.
2. Open the TIA Portal and create a new STEP 7 project.
3. Add the desired SIMATIC S7-1200 CPU into the project via Add new device
or from the hardware catalog and configure its properties (e.g. IP address, PN
name, other required features).
4. Add the desired SINAMICS drive into the project via Add new device or from
the hardware catalog, and configure its PROFINET interface in Properties
(especially IP address, PN name, message frame, I/O address). If you wish to
use the Process_Data [FB11] block, it is mandatory that you chose Telegram
352 as the message frame type. If you only use the acyclic data exchange
(e.g. realized with FB Parameters [FB20]), the Standard Telegram 1 frame is
sufficient. Check the default I/O addresses and, if necessary, assign them to
an area not used otherwise.
5. In the network view of the Devices and Networks editor you use PROFINET
to network the SINAMICS drive with the SIMATIC controller and assign the
drive to the controller.
6. Use the commissioning wizard to perform a basic commissioning of the
SINAMICS drive (at the appropriate drive in the Parameter branch of the
project navigation).
7. Create your code blocks (in LAD, FBD or SCL) and data blocks.
8. Load the entire STEP7 program into the SIMATIC controller.
9. In the Devices & Networks editor you assign the PN device name to the
SINAMICS drive.
10. Load the drive configuration into the SINAMICS drive. Here you select the
Save configuration to EEPROM option. If necessary, reset the SINAMICS
drive to factory settings beforehand (at the appropriate drive in the
Commissioning branch of the project navigation).
11. At the SINAMICS drive you perform a POWER ON.
14
4 Commissioning
PROFIBUS
1. Wire the involved components and create the physical PROFIBUS
connections.
2. Use the DIP switch to set the PROFIBUS address at the SINAMICS G120.
3. Open the TIA Portal and create a new STEP 7 project.
4. Add the desired SIMATIC S7-1200 CPU into the project via Add new device
or from the hardware catalog and configure its properties (e.g. IP address,
other required features).
5. In the device configuration of the SIMATIC CPU you enter the PROFIBUS
communication module CM1243-5. Assign a PROFIBUS address in Properties
(default value = 1).
6. Add the desired SINAMICS drive into the project via Add new device or from
the hardware catalog, and configure its PROFIBUS interface in Properties
(especially PROFIBUS address, message frame, I/O address). If you wish to
use the Process_Data [FB11] block, it is mandatory that you chose Telegram
352 as the message frame type. If you only use the acyclic data exchange
(e.g. realized with FB Parameters [FB20]), the Standard Telegram 1 frame is
sufficient. Check the default I/O addresses and, if necessary, assign them to
an area not used otherwise.
7. In the network view of the Devices and Networks editor you use PROFIBUS
to network the SINAMICS drive with the SIMATIC controller and assign the
drive to the controller.
8. Use the commissioning wizard to perform a basic commissioning of the
SINAMICS drive (at the appropriate drive in the Parameter branch of the
project navigation).
9. Create your code blocks (in LAD, FBD or SCL) and data blocks.
10. Load the entire STEP7 program into the SIMATIC controller.
11. Load the drive configuration into the SINAMICS drive. Here you select the
Save configuration to EEPROM option. If necessary, reset the SINAMICS
drive to factory settings beforehand (at the appropriate drive in the
Commissioning branch of the project navigation).
12. At the SINAMICS drive you perform a POWER ON.
15
5 Related Literature
Related Literature
This list is not complete and only represents a selection of relevant information.
Table 5-1: Literature
Topic
Title / link
SIMATIC S7-1200 System Manual 03/2014
/1/
http://support.automation.siemens.com/WW/view/en/91696622
http://support.automation.siemens.com/WW/view/en/89851659
/2/
/3/
http://support.automation.siemens.com/WW/view/en/89336297
SIMATIC S7-1200
STEP 7 Basic
http://support.automation.siemens.com/WW/view/en/91379840
http://support.automation.siemens.com/WW/view/en/91018783
/4/
SIMATIC
Basic Panels
/5/
SINAMICS
Startdrive
Operating instructions
http://support.automation.siemens.com/WW/view/en/31032678
/6/
http://support.automation.siemens.com/WW/view/en/102316337
SINAMICS
G110M Manuals
http://support.automation.siemens.com/WW/view/en/99684082
http://support.automation.siemens.com/WW/view/en/94003326
http://support.automation.siemens.com/WW/view/en/99685159
http://support.automation.siemens.com/WW/view/en/94020562
SINAMICS G120
with CU240B/E-2
Manuals
http://support.automation.siemens.com/WW/view/en/99683523
http://support.automation.siemens.com/WW/view/en/94003326
http://support.automation.siemens.com/WW/view/en/99685159
http://support.automation.siemens.com/WW/view/en/94020554
SINAMICS G120
with CU250S-2
Manuals
http://support.automation.siemens.com/WW/view/en/99683523
http://support.automation.siemens.com/WW/view/en/94003326
http://support.automation.siemens.com/WW/view/en/99685159
http://support.automation.siemens.com/WW/view/en/99710404
SINAMICS G120C
Manuals
http://support.automation.siemens.com/WW/view/en/99683780
http://support.automation.siemens.com/WW/view/en/94003326
http://support.automation.siemens.com/WW/view/en/99685159
16
6 History
Topic
Title / link
Operating instructions (V4.7):
http://support.automation.siemens.com/WW/view/en/99711357
SINAMICS G120D
with CU240D-2
Manuals
http://support.automation.siemens.com/WW/view/en/99684194
http://support.automation.siemens.com/WW/view/en/94003326
http://support.automation.siemens.com/WW/view/en/99685159
http://support.automation.siemens.com/WW/view/en/99721485
SINAMICS G120D
with CU250D-2
Manuals
http://support.automation.siemens.com/WW/view/en/99684194
http://support.automation.siemens.com/WW/view/en/94003326
http://support.automation.siemens.com/WW/view/en/99685159
http://support.automation.siemens.com/WW/view/en/94020570
http://support.automation.siemens.com/WW/view/en/99683691
http://support.automation.siemens.com/WW/view/en/99685159
/7/
/8/
http://support.automation.siemens.com/WW/view/en/70155469
This entry
Siemens Industry
Online Support
http://support.automation.siemens.com
History
Table 6-1
Version
Date
Modifications
V1.0
07/2013
First version
V1.2
07/2014
V1.3
11/2014
17