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 Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 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. 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:[email protected] 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 Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 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. 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 Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 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 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. Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 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 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 Type Default Designation 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 1 = setpoint inversion / 0 = no setpoint inversion AWP Æ FC14 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 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 FC14 Æ AWP 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. Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 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 Issue December 2008 6/12 Application description Parameter settings STEP 7 function block to control a MICROMASTER 4 / SINAMICS G120/G120D via Profibus-DP 2 ID-No: 22078757 Parameter settings Set the following parameters in the drive converter: Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 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! 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 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 3 ID-No: 22078757 Additional information The following steps indicate the rough procedure for using the STEP 7 project example „FC14_Profibus_DP_en“: Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 1st step – unzip the project example 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 Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 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 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! Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc 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. 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 4 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. Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc Note: 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 References 5.1 Internet link data This list is in no way complete and only reflects a selection of suitable references. Table 5-1 Copyright © Siemens AG 2008 All rights reserved PDF_Function_block_to_control_MM4_G120_via_Profibus-DP_en_V3.1.doc Subject area 5.2 Title \1\ Documentation SINAMICS G120 \2\ Documentation SINAMICS G120D \3\ Documentation MICROMASTER 4 \4\ Manual MICROMASTER PROFIBUS Optional Board \5\ Application Reading and writing parameters of the frequency inverters SINAMICS G120/G120D, ET200S FC and ET200pro via PROFINET and PROFIBUS \6\ FAQ Are there program examples for the Instruction Manual of the MICROMASTER PROFIBUS option module? \7\ 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? \8\ FAQ Can the PKW mechanism be used for SINAMICS G120 / G120D? \9\ FAQ How can I use SFC58 and SFC59 to read parameters from my G120? \10\ FAQ How do I control a G120 using the system functions SFC58 and SFC59? History Table 5-2 History Version Version V3.1 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 Issue December 2008 12/12