Вы находитесь на странице: 1из 11

Drive System Application

STEP 7 function block to control an MM4 via


Profibus-DP

Application describtion
for SINAMICS G120 and MICROMASTER 440
Warranty, liability and support

STEP 7 function block to control an MM4 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.
PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc

Warranty, liability and support


Copyright © Siemens AG 2008 All rights reserved

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 - 3.0 Issue September 2008 2/11


Preposition

STEP 7 function block to control an MM4 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 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
PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc

The following main points are discussed in this application:


Copyright © Siemens AG 2008 All rights reserved

• 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.
http://support.automation.siemens.com/WW/view/en/22078757

Version - 3.0 Issue September 2008 3/11


Application description
Table of Contents

STEP 7 function block to control an MM4 via Profibus-DP ID-No: 22078757

Table of Contents
Table of Contents ......................................................................................................... 4
Application description................................................................................................ 5
1 Overview.......................................................................................................... 5
2 Parameter settings ......................................................................................... 7
3 Additional information ................................................................................... 8
Appendix and references........................................................................................... 11
4 References .................................................................................................... 11
4.1 Internet link data ............................................................................................. 11
4.2 History............................................................................................................. 11
PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc
Copyright © Siemens AG 2008 All rights reserved

Version - 3.0 Issue September 2008 4/11


Application description
Overview

STEP 7 function block to control an MM4 via Profibus-DP ID-No: 22078757

Application description
Inhalt
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 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.
PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc
Copyright © Siemens AG 2008 All rights reserved

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
Peripheral input and output address according to
hw_config_I_O_address Integer 256
HW-Config, e.g. 256
drive_on_off Bool M 0.0 1 = ON / 0 = OFF1
drive_reversing Bool M 0.1 1 = setpoint inversion / 0 = no setpoint inversion
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 1 = operation enabled / 0 = operation inhibited
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

Version - 3.0 Issue September 2008 5/11


Application description
Overview

STEP 7 function block to control an MM4 via Profibus-DP ID-No: 22078757

Function block FC14 is integrated in a functioning and tested STEP 7


project example. 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.
PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc
Copyright © Siemens AG 2008 All rights reserved

Version - 3.0 Issue September 2008 6/11


Application description
Parameter settings

STEP 7 function block to control an MM4 via Profibus-DP ID-No: 22078757

2 Parameter settings
The following parameters are changed with respect to the factory setting:

Table 2-1 Parameter settings


P-No. Designation Parameter value Note / Comments
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!
PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc

Note:
The Profibus slave address can either be set using the DIP switch at the
Copyright © Siemens AG 2008 All rights reserved

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.

Version - 3.0 Issue September 2008 7/11


Application description
Additional information

STEP 7 function block to control an MM4 via Profibus-DP ID-No: 22078757

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

1st step – unzip the project example


PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc
Copyright © Siemens AG 2008 All rights reserved

Figure 3-1 Unzip the project example

Retrieve and open the project example in the SIMATIC Manager.

Version - 3.0 Issue September 2008 8/11


Application description
Additional information

STEP 7 function block to control an MM4 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, additional and Profibus addresses with your actual
configuration. If required, adapt the configuration.
PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc
Copyright © Siemens AG 2008 All rights reserved

Figure 3-2 Hardware configuration

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

Version - 3.0 Issue September 2008 9/11


Application description
Additional information

STEP 7 function block to control an MM4 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 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


PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc

The function block can be simply operated using the VAT1 table of
variables.
Copyright © Siemens AG 2008 All rights reserved

ON/OFF1 command

Frequency setpoint

Figure 3-3 Using the project example

Version - 3.0 Issue September 2008 10/11


Appendix and references
References

STEP 7 function block to control an MM4 via Profibus-DP ID-No: 22078757

Appendix and references

4 References
4.1 Internet link data

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


references.

Table 4-1
Subject area Title
\1\ Documentation MICROMASTER 4
\2\ Manual MICROMASTER PROFIBUS Optional Board
\3\ FAQ Are there program examples for the Instruction
PDF_Function_block_to_control_MM4_via_Profibus-DP_en_V3.doc

Manual of the MICROMASTER PROFIBUS


option module?
Copyright © Siemens AG 2008 All rights reserved

\4\ FAQ 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?
\5\ FAQ Can the PKW mechanism be used for SINAMICS
G120 / G120D?
\6\ FAQ How can I use SFC58 and SFC to read
parameters from my G120?
\7\ FAQ How do I control a G120 using the system
functions SFC58 and SFC59?
\8\ Applikation SINAMICS G: Reading from and writing to
parameters of the Control Units CU240S/D
PN/PN-F of the SINAMICS G120/G120D via
PROFINET & PROFIBUS

4.2 History

Table 4-2 History


Version Datum Change
V1.0 March 2003 First edition
V2.0 December 2003 Second edition
V3.0 September The text was revised, comments in English and
2008 German inserted in the S7 project example

Version - 3.0 Issue September 2008 11/11

Вам также может понравиться