Automation Systems Controller-based Automation 13462093 Ä.
Contents ________________________________________________________________ 1 1.1 1.2 1.3 1.
Contents ________________________________________________________________ 7 Mixed operation PROFIBUS with EtherCAT _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 42 8 8.1 8.2 Function libraries _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ CAA_Device_Diagnosis.lib function library _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ IIoDrvDPV1C1.
1 About this documentation ________________________________________________________________ 1 About this documentation This documentation ... • contains detailed information about the commissioning, configuration, and diagnostics of the PROFIBUS® bus system as part of the Lenze automation system Controller-based Automation. • is part of the "Controller-based Automation" manual collection.
1 About this documentation ________________________________________________________________ More technical documentation for Lenze components Further information on Lenze products which can be used in conjunction with Controller-based Automation can be found in the following sets of documentation: Mounting & wiring Symbols: Mounting instructions • Controller • Communication cards (MC-xxx) • I/O system 1000 (EPM-Sxxx) • Inverter, Servo Drives • Communication modules Printed documentation Online h
1 About this documentation 1.1 Document history ________________________________________________________________ 1.1 Document history Version 1.0 6 Description 05/2009 TD17 First edition 2.0 10/2009 TD17 General revision 3.0 10/2010 TD17 Commissioning and configuration with the Lenze »PLC Designer« V3.x 3.1 03/2011 TD17 Revision on the Lenze automation system"Controller-based Automation", Release 3.1 3.
1 About this documentation 1.2 Conventions used ________________________________________________________________ 1.2 Conventions used This documentation uses the following conventions to distinguish different types of information: Type of information Identification Examples/notes Numbers Decimal Decimal separator Hexadecimal Binary • Nibble Normal spelling Point 0x[0 ... 9, A ... F] 0b[0, 1] Example: 1234 In general, the decimal point is used. Example: 1234.
1 About this documentation 1.3 Terminology used ________________________________________________________________ 1.3 Terminology used Term Meaning Code Parameter for parameterising or monitoring the field device. The term is also referred to as "index" in common usage. Controller The controller is the central component of the automation system which controls the Logic and Motion functionalities (by means of the runtime software).
1 About this documentation 1.4 Definition of the notes used ________________________________________________________________ 1.
2 Safety instructions ________________________________________________________________ 2 Safety instructions Observe the following safety instructions if you want to commission an inverter or a system with the Lenze Controller. Read the documentation supplied with the system components carefully before you start commissioning the devices and the Lenze Controller! Danger! The system manual contains safety instructions which must be observed! Risk of injury There is risk of injury by ...
3 Controller-based Automation: Central motion control ________________________________________________________________ 3 Controller-based Automation: Central motion control The Lenze automation system "Controller-based Automation" serves to create complex automation solutions with central motion control. Here, the Controller is the control centre of the system.
3 Controller-based Automation: Central motion control ________________________________________________________________ Lenze provides especially coordinated system components: • Engineering software The Lenze Engineering tools ( 21) on your Engineering PC (Windows operating system ) serve to parameterise, configure and diagnose the system. The Engineering PC communicates with the Controller via Ethernet.
3 Controller-based Automation: Central motion control ________________________________________________________________ Fieldbus communication The Lenze Controllers have different interfaces for fieldbus communication: Area Cabinet Controller c300 3221 C 3231 C Panel Controller 3241 C p300 p500 Interfaces (on board) Ethernet 1 2 1 2 EtherCAT 1 1) 1 1 1) 1 CANopen 1 2) - 1 2) - Optional interfaces (communication cards) CANopen MC-CAN2 - - PROFIBUS master MC-PBM - - PR
4 The Lenze automation system with PROFIBUS 4.1 Brief description of PROFIBUS ________________________________________________________________ 4 The Lenze automation system with PROFIBUS Note! In the Lenze automation system PROFIBUS is exclusively used as Logic bus. The Motion functionality is not supported when PROFIBUS is used. Always use EtherCAT to connect inverters to be controlled via the central motion functionality.
4 The Lenze automation system with PROFIBUS 4.1 Brief description of PROFIBUS ________________________________________________________________ 4.1.1 Structure of the PROFIBUS system [4-1] Example: PROFIBUS with the 3231 C Lenze Controller (I/O system 1000 and Servo Drive 9400 as slaves) In the example (Fig. [4-1]), the 3231 C Lenze Controller is the PROFIBUS master. It can communicate with one or several stations (slaves).
4 The Lenze automation system with PROFIBUS 4.1 Brief description of PROFIBUS ________________________________________________________________ Parameter setting The PROFIBUS stations can be parameterised in different ways. If field devices are used the parameters of which are completely written to an GSD/GSE file, PROFIBUS can only be configured with the »PLC Designer«: • Import of the PROFIBUS slaves' GSD/GSE files into the »PLC Designer« project.
4 The Lenze automation system with PROFIBUS 4.1 Brief description of PROFIBUS ________________________________________________________________ 4.1.2 Basic wiring of PROFIBUS Two simple RS485 networks are described in the following examples. Each segment of the network must be terminated at both ends. The bus terminators of the PROFIBUS are marked with a "Z" in each one of the following examples.
4 The Lenze automation system with PROFIBUS 4.1 Brief description of PROFIBUS ________________________________________________________________ Number of nodes M R S S S 1 R S S 2 3 2133PFB004 [4-4] Number of nodes Segment Master (M) Slave (S) Repeater (R) 1 1 31 - 2 30 - 2 - 30 1 3 - 30 1 Tip! Repeaters do not have a station address. When calculating the maximum number of stations, they reduce the number of stations by 1 on each side of the segment.
4 The Lenze automation system with PROFIBUS 4.1 Brief description of PROFIBUS ________________________________________________________________ 4.1.
4 The Lenze automation system with PROFIBUS 4.2 PROFIBUS hardware for Lenze Controllers ________________________________________________________________ 4.2 PROFIBUS hardware for Lenze Controllers MC-PBM / MC-PBS communication card • The MC-PBM communication card serves to connect a Lenze Controller as PROFIBUS master to a PROFIBUS network. • The MC-PBS communication card serves to connect a Lenze Controller as PROFIBUS slave to a PROFIBUS network.
4 The Lenze automation system with PROFIBUS 4.3 Lenze Engineering tools ________________________________________________________________ 4.3 Lenze Engineering tools The Lenze Engineering tools enable the configuration and operation of controller-based Lenze automation systems according to individual requirements. Use the corresponding Engineering tool applicable to the field device.
5 Technical data 5.1 Technical data of the MC-PBM / MC-PBS communication card ________________________________________________________________ 5 Technical data 5.
5 Technical data 5.1 Technical data of the MC-PBM / MC-PBS communication card ________________________________________________________________ PROFIBUS connection By means of the 9-pin Sub-D socket you can connect the communication card with the bus system.
5 Technical data 5.2 Bus cable specification ________________________________________________________________ 5.2 Bus cable specification Note! Only use cables that comply with the specifications of the PROFIBUS user organisation. Area Values Cable resistance 135 ... 165 /km, (f = 3 ... 20 MHz) Capacitance per unit length 30 nF/km Loop resistance < 110 /km Core diameter > 0.64 mm Core cross-section > 0.
6 Commissioning of PROFIBUS 6.1 Overview of the commissioning steps ________________________________________________________________ 6 Commissioning of PROFIBUS Note! Via PROFIBUS only Logic Field devices ( 19) can be operated in the Lenze automation system. Inverters which are to be controlled via the central Motion functionality must always be connected via EtherCAT.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2 Detailed commissioning steps In the following sections, the individual commissioning steps are described. Follow the instructions of these sections step by step in order to commission your system. 6.2.1 More detailed information about how to work with the Lenze Engineering tools can be found in the corresponding manuals and online helps.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2.3 Create a project folder Create a project folder on the Engineering PC.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2.5 Creating a PLC program with a target system (Logic/Motion) By means of the »PLC Designer« you can map the network topology in the control configuration. Tip! In the »PLC Designer«, PROFIBUS stations and stations of other fieldbus systems can be configured. Mixed operation PROFIBUS with EtherCAT ( 42) How to create a PLC program in the »PLC Designer«: 1.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 4. Go to the Standard project dialog window and select the target system in the Device selection field: • Lenze Logic Controller For actuating controllers that execute simple movements, have no Motion functionality, or are controlled via pure PLC functionalities.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2.6 Configuring the communication parameters Set the communication parameters to establish an online connection to the Lenze Controller later on. How to configure the communication parameters 1. Go to the Communication settings tab of the target system (device, Lenze Controller ...) and click the Add gateway button.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 3. Click the Scan network button. 4. Select the suitable means of the controller for the IP address entered under 2. and activate it by Set active path button (or by double-click). 5.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2.7 Importing missing devices / device description files The device description file contains the data of the fieldbus peripherals required for the master control. This file is required to program the control system.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2.8 Creating a control configuration (adding field devices) Note! The configuration of a PROFIBUS network must be created in the »PLC Designer«, since, during the start-up of the Lenze Controller, the complete configuration is written to the slaves connected. Settings that have been made previously in the slaves will be overwritten.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 2. Go to the context menu of the PROFIBUS (master) and execute the Add device command. 34 Lenze · Controller-based Automation · PROFIBUS® Communication Manual · DMS 4.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 3. Go to the "Add device" dialog box, select the respective slave field device from the selection list and use the Add device button to add it below the PROFIBUS master. You can only select those devices the PROFIBUS device description file of which has been imported in the »PLC Designer«. Importing missing devices / device description files ( 32) 4.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 5. Assign appropriate names to the added slaves (e. g. "Drive_vertical_L9400_HighLine"). The names must … • only contain the characters "A ... Z", "a ... z", "0 ... 9" or "_"; • not begin with a digit. You can enter a name by clicking the element. Example: 36 Lenze · Controller-based Automation · PROFIBUS® Communication Manual · DMS 4.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2.9 Configuration of the PROFIBUS master How to configure the PROFIBUS master: 1. Set the DP parameters for the PROFIBUS master (PROFIBUS MC-PBM). Setting Description Station address PROFIBUS master station address • The standard setting is ’0’. • Only change the setting if the address is not supposed to be ’0’.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ For each group, select whether it is supposed to be operated in the freeze mode and/or sync mode. By assigning the slaves to different groups (on the DP Parameters tab of the DP slaves, Groups... button), you can synchronise the data exchange from the master via a global control command.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 2. Especially in the case of mixed operation with EtherCAT, we recommend selecting a special bus cycle task on the Profibus DP I/O Mapping tab of the PROFIBUS master (PROFIBUS MCPBM).
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2.10 Configuring the PROFIBUS slave Set the DP Parameters for the PROFIBUS slave. • The PROFIBUS slave station address is automatically assigned after adding the slave to the control configuration tree. The PROFIBUS master receives the station address ’0’, the first slave the address ’1’, the second slave the address ’2’, and so on.
6 Commissioning of PROFIBUS 6.2 Detailed commissioning steps ________________________________________________________________ 6.2.11 Compiling the PLC program code In order to compile the PLC program code, select the menu command Build Build, or press function key . • If errors have occurred during the compilation process, you can locate and eliminate them by means of the »PLC Designer« error messages. Then re-translate the program code.
7 Mixed operation PROFIBUS with EtherCAT ________________________________________________________________ 7 Mixed operation PROFIBUS with EtherCAT [7-1] Example: Mixed operation of PROFIBUS with EtherCAT on the 3231 C Lenze Controller Within the Lenze Controller-based Automation, PROFIBUS can be used in parallel to the EtherCAT bus system. This is useful if not all field devices are available for the same bus system or if a Motion bus (EtherCAT) is required in parallel to PROFIBUS.
8 Function libraries 8.1 CAA_Device_Diagnosis.lib function library ________________________________________________________________ 8 Function libraries For configuring the PROFIBUS and for diagnostic purposes, the following function libraries are available in the »PLC Designer«: • CAA_Device_Diagnosis.lib • IIoDrvDPV1C1.lib 8.1 CAA_Device_Diagnosis.lib function library This library serves to query diagnostics information from the PROFIBUS master and the slaves. 8.
9 Defining the minimum cycle time of the PLC project 9.1 Determining the task utilisation of the application ________________________________________________________________ 9 Defining the minimum cycle time of the PLC project This chapter provides information on how to ... • Determining the task utilisation of the application ( 44) • Optimising the system ( 46) 9.
9 Defining the minimum cycle time of the PLC project 9.1 Determining the task utilisation of the application ________________________________________________________________ How to determine the task utilisation: Initial situation: A complete project, e.g. with a PROFIBUS task and 2 lower priority tasks has been created. 1. For a first measurement of the task utilisation, set the cycle times of all cyclic tasks available in the PLC system "high" (e.g.
9 Defining the minimum cycle time of the PLC project 9.2 Optimising the system ________________________________________________________________ 9.2 Optimising the system How to optimise the system: 1. Use the menu command Online Login, or log in on the Lenze Controller with +. • For this, the PLC program must be error-free. • With the log-in, the fieldbus configuration and the PLC program are loaded into the Controller. 2. Check the task processing times. 3.
10 Diagnostics 10.1 LED status displays of the MC-PBM communication card ________________________________________________________________ 10 Diagnostics The PROFIBUS field devices, communication modules, and the MC-PBM and MC-PBS communication cards have LED status displays for diagnostics. Furthermore, the »PLC Designer« provides a function library for diagnosing PROFIBUS. 10.
10 Diagnostics 10.2 LED status displays of the MC-PBS communication card ________________________________________________________________ 10.
10 Diagnostics 10.3 Diagnostics in the »PLC Designer« ________________________________________________________________ 10.3 Diagnostics in the »PLC Designer« For the diagnostics of PROFIBUS, the »PLC Designer« provides the CAA_Device_Diagnosis.lib function library. Note! The diagnostics information in the CAA_Device_Diagnosis.lib function library is currently only partly available. You can only execute a diagnostics process if the node works without errors or if there is a fault.
11 Parameter reference ________________________________________________________________ 11 Parameter reference This chapter complements the parameter list in the online help of the Lenze Controller by the parameters of the MC-PBM / MC-PBS communication card. These parameters ... • are for instance shown in the Lenze »WebConfig« (Engineering tool for web-based parameterisation); • are listed in numerically ascending order.
11 Parameter reference ________________________________________________________________ C1037 Parameter | Name: C1037 | Device: manufacturer Data type: VISIBLE_STRING Index: 23538 = 0x5BF2 Manufacturer of the card Read access Write access CINH PLC-STOP No transfer C1038 Parameter | Name: C1038 | Device: manufacturing date Data type: VISIBLE_STRING Index: 23537 = 0x5BF1 Manufacturing date of the card Read access Write access CINH PLC-STOP No transfer Lenze · Controller-based Aut
Index ________________________________________________________________ A E Activating the bus terminating resistor 26 Adding devices 33 Adding field devices 33 Application notes 9 EASY Navigator 21 E-mail to Lenze 54 Engineering software 21 Engineering tools 21 B F Baud rate 24 Brief description of PROFIBUS 14 Bus cable length 24 Feedback to Lenze 54 Field devices 19 Fieldbus communication (interfaces) 13 Function libraries 43 C C1031 | Device: Identification 50 C1032 | Device: Version 50 C1033 | D
Index ________________________________________________________________ P Parameter reference 50 PROFIBUS 14 PROFIBUS connection 23 Profibus DP I/O mapping 39 PROFIBUS hardware for Lenze Controllers 20 PROFIBUS wiring 17 PROFIBUS with EtherCAT (mixed operation) 42 Protocol 22 S Safety instructions 9, 10 Screenshots 5 Software 21 Starting the PLC program 41 Status displays of the MC-PBM communication card 47 Status displays of the MC-PBS communication card 48 Structure of the PROFIBUS system 15 Structure of
)(('%$&. 54 Your opinion is important to us These instructions were created to the best of our knowledge and belief to give you the best possible support for handling our product. Perhaps we have not succeeded in achieving this objective in every respect. If you have suggestions for improvement, please e-mail us to: feedback-docu@lenze.com Thank you very much for your support.
Controller-based Automation · PROFIBUS® Communication Manual · KHBPBPCBAUTO · 13462093 · DMS 4.3 EN · 04/2014 · TD17 Lenze Automation GmbH Postfach 10 13 52, D-31763 Hameln Hans-Lenze-Straße 1, D-31855 Aerzen Germany +49 5154 82-0 +49 5154 82-2800 lenze@lenze.com www.lenze.com Service Lenze Service GmbH Breslauer Straße 3, D-32699 Extertal Germany 008000 24 46877 (24 h helpline) +49 5154 82-1112 service@lenze.