Sei sulla pagina 1di 12

Drive System Application

STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP


Application description for MICROMASTER 4 and SINAMICS G120/G120D

Warranty, liability and support

STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP Note

ID-No: 22078757

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 pro-vide support for typical applications. You are responsible in ensuring that the de-scribed products are correctly used. These Application Examples do not relieve you of the responsibility in safely and professionally using, installing, operating and servicing equipment. When using these Application Examples, you recognize that Siemens 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 deviations between the recommendations provided in these Application Examples and other Siemens publications - e.g. Catalogs - then the contents of the other documents have priority.

Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Warranty, liability and support


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 Examples 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). However, claims arising from a breach of a condition which goes to the root of the contract shall be limited to the foreseeable damage which is intrinsic to the contract, unless caused by intent or gross negligence or based on mandatory liability for injury of life, body or health The above provisions does not imply a change in the burden of proof to your detriment. Copyright 2008 Siemens A&D. It is not permissible to transfer or copy these Application Examples or excerpts of them without first having prior authorization from Siemens A&D in writing. If you have any recommendations relating to this document then please send them to us at the following e-mail address: mailto:sdsupport.aud@siemens.com

Version V3.1

Issue December 2008

2/12

Preposition

STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP

ID-No: 22078757

Preposition
Aim of the application This application has been created in order to provide users with a possibility of quickly and simply connecting a MICROMASTER 4 or a SINAMICS G120/G120D drive converter with Control Units CU240S/D DP/DP-F or CU230P-2 to a SIMATIC S7-300/400 control system via Profibus-DP. To do this, a STEP7 project example has been created in which the FC14 function block is used to establish communications between the MICROMASTER 4 and a SIMATIC S7-300/400 control system via Profibus-DP. This application shows the possibilities that users have when using the FC14 function block and which parameters and interface signals can be exchanged between the FC14 function block and the user program (AWP). This application also shows how the STEP7 project example should be used. Scope The following main points are discussed in this application: Exclusion This application does not include a description of the SIMATIC STEP 7 programming tool the basic commissioning of the frequency inverter Description of the FC14 function block Use of the STEP7 project example

Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

It is assumed that readers have fundamental knowledge about these particular subjects. Reference to the Automation and Drives Service & Support This article is from the Internet Application Portal of the Automation and Drives Service & Support. You can go directly to the download page of this document using this link. http://support.automation.siemens.com/WW/view/en/22078757

Version V3.1

Issue December 2008

3/12

Application description Table of Contents


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

Table of Contents
Table of Contents ......................................................................................................... 4 Application description................................................................................................ 5 1 2 3 Overview.......................................................................................................... 5 Parameter settings ......................................................................................... 7 Additional information ................................................................................... 8 1st step unzip the project example............................................................ 8 2nd step hardware configuration............................................................... 9 3rd step STEP 7 program ....................................................................... 10 4th step operation ................................................................................... 10 Entering the reference frequency ............................................................... 11

Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Appendix and references........................................................................................... 12 5 5.1 5.2 References .................................................................................................... 12 Internet link data ............................................................................................. 12 History............................................................................................................. 12

Version V3.1

Issue December 2008

4/12

Application description Overview


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

Application description
Here, you will obtain an overview of the functions of the FC14 function block, parameter settings of the drive and information on how to use the STEP7 project example.

Overview
Using the FC14 function block it is now possible to quickly and simply couple a MICROMASTER 4 or a SINAMICS G120/G120D drive converter with Control Units CU240S/D DP/DP-F or CU230P-2 to a SIMATIC S7300/400 control via Profibus-DP. The block provides the user with a simple control and setpoint interface. The signals used are comparable with the control and setpoint interface via terminal strip. The following parameters and interface signals are exchanged between the FC14 and the user program.

Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Table 1-1 Default assignment of interface FC14 Name AWP FC14 hw_config_I_O_address drive_on_off drive_reversing drive_fault_ackn drive_f_setpoint FC14 AWP drive_in_operation drive_fault_active drive_alarm_active drive_f_act Bool Bool Bool Real M 0.3 M 0.4 M 0.5 MD 6 1 = operation enabled / 0 = operation inhibited 1 = fault / 0 = no fault 1 = alarm / 0 = no alarm Frequency actual value in Hz Integer Bool Bool Bool Real 256 M 0.0 M 0.1 M 0.2 MD 2 Peripheral input and output address according to HW-Config, e.g. 256 1 = ON / 0 = OFF1 1 = setpoint inversion / 0 = no setpoint inversion 1 = acknowledge fault / 0 = no significance Frequency setpoint between 0..50 Hz Type Default Designation

Version V3.1

Issue December 2008

5/12

Application description Overview


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

Function block FC14 is integrated in a functioning and tested STEP 7 project example (FC14_Profibus_DP_en). The user can use the project unchanged, or for different hardware platforms can use the block container from the project example. The FC14 is not write-protected and when required, can be adapted. Internally, using direct I/O access operations, two words can be exchanged between the control and the drive. Control word 1 and the main setpoint are transferred from the control to the drive. The drive sends status word 1 and the actual output frequency back to the control.

Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Version V3.1

Issue December 2008

6/12

Application description Parameter settings


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

Parameter settings
Set the following parameters in the drive converter:

Table 2-1 Parameter settings P-No. P0700 P1000 P0918


Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Designation Control source Setpoint source Profibus address

Parameter value 6 6 7

Note / Comments Selects the command source: 6 = control via Profibus-DP Selects the setpoint source: 6 = Profibus-DP In the STEP 7 project example, the MM4 is configured with slave address 7. If required, adapt the slave address! 1 = Standard Telegram 1

P0922 *

Selection of PROFIdrive Standard Telegram

Note: The Profibus slave address can either be set using the DIP switch at the Profibus module or using parameter P0918. The DIP switch setting has priority and is displayed using parameter P0918 if the DIP switch is not = 0. This means that the address defined in parameter P0918 is only valid if the DIP switch = 0.

Set only for SINAMICS G120/G120D

Version V3.1

Issue December 2008

7/12

Application description Additional information


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

Additional information
The following steps indicate the rough procedure for using the STEP 7 project example FC14_Profibus_DP_en:

1st step unzip the project example

Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Figure 3-1 Unzip the project example

Retrieve and open the project example FC14_Profibus_DP_en in the SIMATIC Manager.

Version V3.1

Issue December 2008

8/12

Application description Additional information


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

2nd step hardware configuration If you use the hardware configuration in the project example, compare all of the components, issues and Profibus addresses with your actual configuration. If required, adapt the configuration.

Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Figure 3-2 Hardware configuration

Download the hardware project into the S7-CPU. The hardware project must run, error-free!

Version V3.1

Issue December 2008

9/12

Application description Additional information


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

3rd step STEP 7 program FC14 is cyclically called in OB1. The FC14 interface is pre-assigned the appropriate default values as listed in Table 1-1. When the hardware configuration is changed or another FC14 interface parameter is used, then the block call must be appropriately adapted in the OB1. Set the operating mode switch on the CPU to RUN. The program must be executed errorfree. Note! FC14 uses UDT11 and UDT33 and they may neither be deleted nor renamed. The user-defined data types (UDT) have been generated for control word 1 UDT11 and status word 1 UDT33.
Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

4th step operation The function block can be simply operated using the VAT1 table of variables.

ON/OFF1 command

Frequency setpoint

Figure 3-3 Using the project example

Version V3.1

Issue December 2008

10/12

Application description Entering the reference frequency


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

Entering the reference frequency


If it is necessary to operate motors at frequencies greater than 50 Hz (e.g. 87 Hz or 100 Hz, up to a max. of 650 Hz) on a frequency inverter, in the project example "FC14_DP_Ref_Freq_en" it is possible to additionally enter a reference frequency for the inverter. This reference frequency is used to convert the setpoint and actual value in the CPU. This reference frequency must correspond to the reference frequency P2000 in the frequency inverter in order that the setpoint and actual value are precisely calculated.

Note:
Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

The user must set the maximum frequency P1082 and the reference frequency P2000 in the frequency inverter.

Example:

Entering the reference frequency

Frequency setpoint Actual frequency

Figure 4-1 Entering the reference frequency

Version V3.1

Issue December 2008

11/12

Appendix and references References


STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP ID-No: 22078757

Appendix and references


5
5.1

References
Internet link data
This list is in no way complete and only reflects a selection of suitable references.
Table 5-1

Subject area \1\


Copyright Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Title SINAMICS G120 SINAMICS G120D MICROMASTER 4 MICROMASTER PROFIBUS Optional Board Reading and writing parameters of the frequency inverters SINAMICS G120/G120D, ET200S FC and ET200pro via PROFINET and PROFIBUS Are there program examples for the Instruction Manual of the MICROMASTER PROFIBUS option module? How do I read / write parameters using PROFIBUS on the MICROMASTER 4 and CU240S/D DP/DP-F and PROFINET on the CU240S/D PN/PN-F? Can the PKW mechanism be used for SINAMICS G120 / G120D? How can I use SFC58 and SFC59 to read parameters from my G120? How do I control a G120 using the system functions SFC58 and SFC59?

Documentation Documentation Documentation Manual Application

\2\ \3\ \4\ \5\

\6\

FAQ

\7\

FAQ

\8\ \9\ \10\

FAQ FAQ FAQ

5.2

History
Table 5-2 History

Version V1.0 V2.0 V3.0

Datum March 2003 December 2003 September 2008 First edition Second edition

Change

The text was revised, comments in English and German inserted in the S7 project example Expanded for SINAMICS G120/G120D

V3.1

December 2008

Version V3.1

Issue December 2008

12/12

Potrebbero piacerti anche