Sunteți pe pagina 1din 12

Drive System Application

STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP
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

Warranty, liability and support

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

ID-No: 22078757

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 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.

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:

Preposition

Preposition

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

Preposition

Aim of the application

ID-No: 22078757

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:

Description of the FC14 function block

Use of the STEP7 project example

Exclusion

This application does not include a description

of the SIMATIC STEP 7 programming tool

the basic commissioning of the frequency inverter

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.

Application description Table of Contents

Application description Table of Contents

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

Table of Contents

ID-No: 22078757

Table of Contents

4

Application description

5

1 Overview

5

2 Parameter settings

7

3 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

4 Entering the reference frequency

11

Appendix and references

12

5

References

12

5.1

Internet link data

12

5.2

History

12

Application description Overview

Application description Overview

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

Application description

ID-No: 22078757

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.

1

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 S7- 300/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.

Table 1-1 Default assignment of interface FC14

Name

Type

Default

Designation

AWP FC14

hw_config_I_O_address

Integer

256

Peripheral input and output address according to HW-Config, e.g. 256

 

drive_on_off

Bool

M

0.0

1

= ON / 0 = OFF1

drive_reversing

Bool

M

0.1

= setpoint inversion / 0 = no setpoint inversion

1

drive_fault_ackn

Bool

M

0.2

1

= acknowledge fault / 0 = no significance

drive_f_setpoint

Real

MD

2

Frequency setpoint between 0

50

Hz

FC14 AWP

drive_in_operation

Bool

M

0.3

= operation enabled / 0 = operation inhibited

1

drive_fault_active

Bool

M

0.4

1 = fault / 0 = no fault

drive_alarm_active

Bool

M

0.5

1 = alarm / 0 = no alarm

drive_f_act

Real

MD

6

Frequency actual value in Hz

Application description Overview

Application description Overview

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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.

Application description Parameter settings

Application description Parameter settings

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

2 Parameter settings

ID-No: 22078757

Set the following parameters in the drive converter:

Table 2-1 Parameter settings

P-No.

Designation

Parameter

Note / Comments

value

P0700

Control source

6

Selects the command source:

6

= control via Profibus-DP

P1000

Setpoint source

6

Selects the setpoint source:

6

= Profibus-DP

P0918

Profibus address

7

In the STEP 7 project example, the MM4 is configured with slave address 7. If required, adapt the slave address!

P0922 *

Selection of PROFIdrive Standard Telegram

1

1

= Standard Telegram 1

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

Application description Additional information

Application description Additional information

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

3 Additional information

ID-No: 22078757

The following steps indicate the rough procedure for using the STEP 7 project example „FC14_Profibus_DP_en“:

1st step – unzip the project example

1st step – unzip the project example Figure 3-1 Unzip the project example Retrieve and open

Figure 3-1 Unzip the project example

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

Application description Additional information

Application description Additional information

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

2nd step – hardware configuration

ID-No: 22078757

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.

Figure 3-2 Hardware configuration Copyright © Siemens AG 2008 All rights reserved
Figure 3-2 Hardware configuration
Copyright © Siemens AG 2008 All rights reserved
PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

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

Application description Additional information

Application description Additional information

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

3rd step – STEP 7 program

ID-No: 22078757

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 error- free.

Note!

FC14 uses UDT11 and UDT33 and they may neither be deleted nor re- named. The user-defined data types (UDT) have been generated for control word 1 – UDT11 and status word 1 – UDT33.

4th step – operation

The function block can be simply operated using the VAT1 table of variables.

can be simply operated using the VAT1 table of variables. Figure 3-3 Using the project example

Figure 3-3 Using the project example

ON/OFF1 command

Frequency setpoint

Application description Entering the reference frequency

Application description Entering the reference frequency

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

ID-No: 22078757

4 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:

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

Example:

frequency P2000 in the frequency inverter. Example: Figure 4-1 Entering the reference frequency Entering the

Figure 4-1 Entering the reference frequency

Entering the reference frequency

Frequency setpoint

Actual frequency

Appendix and references References

Appendix and references References

PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc

Copyright © Siemens AG 2008 All rights reserved

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

Appendix and references

5

References

5.1 Internet link data

ID-No: 22078757

This list is in no way complete and only reflects a selection of suitable references.

Table 5-1

5.2 History

Table 5-2 History

Version

Datum

Change

V1.0

March 2003

First edition

V2.0

December 2003

Second edition

V3.0

September 2008

The text was revised, comments in English and German inserted in the S7 project example

V3.1

December 2008

Expanded for SINAMICS G120/G120D