Professional Documents
Culture Documents
PDF Function Block To Control Mm4 g120 Via Profibus-Dp en v3 1
PDF Function Block To Control Mm4 g120 Via Profibus-Dp en v3 1
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.
Version V3.1
2/12
Preposition
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
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
3/12
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
Appendix and references........................................................................................... 12 5 5.1 5.2 References .................................................................................................... 12 Internet link data ............................................................................................. 12 History............................................................................................................. 12
Version V3.1
4/12
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.
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
5/12
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.
Version V3.1
6/12
Parameter settings
Set the following parameters in the drive converter:
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 *
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.
Version V3.1
7/12
Additional information
The following steps indicate the rough procedure for using the STEP 7 project example FC14_Profibus_DP_en:
Retrieve and open the project example FC14_Profibus_DP_en in the SIMATIC Manager.
Version V3.1
8/12
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.
Download the hardware project into the S7-CPU. The hardware project must run, error-free!
Version V3.1
9/12
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
Version V3.1
10/12
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:
Version V3.1
11/12
References
Internet link data
This list is in no way complete and only reflects a selection of suitable references.
Table 5-1
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?
\6\
FAQ
\7\
FAQ
5.2
History
Table 5-2 History
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
12/12