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

Application description 01/2014

STEP 7 function block to


control a MICROMASTER 4 or
SINAMICS G120/G120D via
PROFIBUS DP
Function / application of the FB14 in a SIMATIC S7-300/400
in STEP 7V5.x

http://support.automation.siemens.com/WW/view/en/22078757
Warranty and liability

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 deviations 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,
Siemens AG 2014 All rights reserved

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


hereof is prohibited without the expressed consent of Siemens Industry Sector.

Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion 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
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.automation.siemens.com.

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 2
Table of contents

Table of contents
Warranty and liability ............................................................................................... 2
Preposition ............................................................................................................... 4
Validity ...................................................................................................................... 4
1 Application description .................................................................................. 5
2 Parameter settings ......................................................................................... 6
3 Additional information ................................................................................... 7
3.1 1st step – unzip the project example .................................................. 7
3.2 2nd step – hardware configuration ..................................................... 8
3.3 3rd step – STEP 7 program ............................................................... 9
3.4 4th step – operation ........................................................................... 9
4 Entering the reference frequency ................................................................ 10
5 Related literature .......................................................................................... 11
6 Contact.......................................................................................................... 11
7 History .......................................................................................................... 12
Siemens AG 2014 All rights reserved

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 3
1 Application description

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:
Description of the FC14 function block
Use of the STEP7 project example

Exclusion
Siemens AG 2014 All rights reserved

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.

Validity
The example applies to an implementation with STEP 7 V5.x for all PROFIBUS-
capable...
MICROMASTER 4
SINAMICS G120 / G120C / G120D
If you work with a SIMATIC S7-1200 or S7-1500 in the TIA Portal, you better use
FB SINA_SPEED (FB285) from "DriveLib_S71200/1500...". Function block,
description and instructions how to configure and to include you will find under
http://support.automation.siemens.com/WW/view/de/68034568.

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 4
1 Application description

1 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 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
Peripheral input and output address
Siemens AG 2014 All rights reserved

hw_config_I_O_address INT 256


according to HW-Config, e.g. 256
1 = ON
drive_on_off BOOL M 0.0
0 = OFF1
1 = setpoint inversion
drive_reversing BOOL M 0.1
0 = no setpoint inversion
1 = acknowledge fault
drive_fault_ackn BOOL M 0.2
0 = no significance
drive_f_setpoint REAL MD 2 Frequency setpoint between 0..50 Hz
FC14 AWP
1 = operation enabled
drive_in_operation BOOL M 0.3
0 = operation inhibited
1 = fault
drive_fault_active BOOL M 0.4
0 = no fault
1 = alarm
drive_alarm_active BOOL M 0.5
0 = no alarm
drive_f_act REAL MD 6 Frequency actual value in Hz

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.

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 5
2 Parameter settings

2 Parameter settings
Set the following parameters in the drive converter:

Table 2-1 Parameter settings


P-No. Designation Para- Note / Comments
meter
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 1 1 = Standard Telegram 1
PROFIdrive Standard
Telegram

NOTE The PROFIBUS slave address can either be set using the DIP switch at the
PROFIBUS module or using parameter P0918.
Siemens AG 2014 All rights reserved

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

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 6
3 Additional information
3.1 1st step – unzip the project example

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

3.1 1st step – unzip the project example


Siemens AG 2014 All rights reserved

Figure 3-1 Unzip the project example

Retrieve and open the project example „FC14_PROFIBUS_DP_en“ in the


SIMATIC Manager.

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 7
3 Additional information
3.2 2nd step – hardware configuration

3.2 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.
Siemens AG 2014 All rights reserved

Figure 3-2 Hardware configuration

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

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 8
3 Additional information
3.3 3rd step – STEP 7 program

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

3.4 4th step – operation


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

ON/OFF1 command

Frequency setpoint

Figure 3-3 Using the project example

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 9
4 Entering the reference frequency

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:
Siemens AG 2014 All rights reserved

Entering the reference


frequency

Frequency setpoint

Actual frequency

Figure 4-1 Entering the reference frequency

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 10
5 Related literature

5 Related literature
Table 5-1
Subject area Title
\1\ Siemens Industry http://support.automation.siemens.com
Online Support
\2\ Download page of http://support.automation.siemens.com/WW/view/en/22078757
this entry
\3\ SINAMICS G120
http://support.automation.siemens.com/WW/view/en/22339653/133300
\4\ SINAMICS G120D
http://support.automation.siemens.com/WW/view/en/25021636/133300
Manuals
\5\ MICROMASTER 4
http://support.automation.siemens.com/WW/view/en/10804923/133300
\6\ MICROMASTER PROFIBUS Optional Board
http://support.automation.siemens.com/WW/view/en/6586565
\7\ Application Reading and writing parameters of the frequency inverters
SINAMICS G120/G120D, ET200S FC and ET200pro via
PROFINET and PROFIBUS
http://support.automation.siemens.com/WW/view/en/29157692
\8\ FAQ Are there program examples for the Instruction Manual of the
MICROMASTER PROFIBUS option module?
Siemens AG 2014 All rights reserved

http://support.automation.siemens.com/WW/view/en/22813212
\9\ 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?
http://support.automation.siemens.com/WW/view/en/8894584
\10\ FAQ Can the PKW mechanism be used for SINAMICS G120 /
G120D?
http://support.automation.siemens.com/WW/view/en/23689387
\11\ FAQ How can I use SFC58 and SFC59 to read parameters from my
G120?
http://support.automation.siemens.com/WW/view/en/23990917
\12\ Download Startdrive und DriveLib
http://support.automation.siemens.com/WW/view/en/68034568

6 Contact
Siemens AG
Industry Sector
I DT MC PMA APC
Frauenauracher Strasse 80
91056 Erlangen
Germany
mailto: tech.team.motioncontrol@siemens.com

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 11
7 History

7 History
Table 7-1 History
Version Datum Change
V1.0 03/2003 First edition
V2.0 12/2003 Second edition
V3.0 09/2008 The text was revised, comments in English and
German inserted in the S7 project example
V3.1 12/2008 Expanded for SINAMICS G120/G120D
V3.2 01/2014 Link to implementation with S7-1200/1500 in TIA
Portal; editorial revision;
Siemens AG 2014 All rights reserved

FC14 to control a MM4 / SINAMICS G120(D) via PROFIBUS-DP


Entry-ID: 22078757, V3.2, 01/2014 12

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