User Manual 07/2005 Edition simodrive Absolute Value Encoder with PROFIBUS-DP SIMODRIVE sensor SIMODRIVE sensor Absolute Value Encoder with PROFIBUS-DP User Manual General Information 1 Installation 2 Device Configuration 3 Class 1 and Class 2 4 Encoder Classes, 5 Version 2.1 and 2.2 Diagnostic Messages 6 Configuration Example STEP 7 7 DPV2 Functionality- 8 General Information Data Transfer 9 Isochronous Operation Parameterizing 10 Isochronous Operation Non-Cyclic Utilities 11 Fault Signals/ 12 Valid for Product SIMODRIVE sensor Version Firmware version 2.0 Diagnostics Configuring Example 13 for Isochr. Operation 07/05 Edition Technical Data 14 Appendix 15 Index 16 SIMODRIVE(R) Documentation Printing history Brief details of this edition and previous editions are listed below. The status of each edition is shown by the code in the Remarks" column. Status code in the Remarks" column: A .... B .... C .... New documentation. Unrevised reprint with new Order No. Revised edition with new status. If factual changes have been made on the page within the same software version, this is indicated by a new edition coding in the header on that page. Edition 05/97 02/99 03/03 03/04 07/05 Order No. 6SN 1197-0AB10 - 0YP0 6SN 1197-0AB10 - 0YP1 6SN 1197-0AB10 - 0YP2 6SN 1197-0AB10 - 0YP3 6SN 1197-0AB10 - 0YP4 Remarks A C C C C Trademarks SIMATIC(R), SIMATIC HMI(R), SIMATIC NET(R), SIROTEC(R), SINUMERIK(R) and SIMODRIVE(R) are trademarks of Siemens. Other product names used in this documentation may be trademarks which, if used by third parties, could infringe the rights of their owners. Further information is available on the Internet under: http://www.siemens.com/motioncontrol This publication was produced with WinWord V 8.0 and Designer V 7.0 and the DokuTool AutWinDoc. Other functions not described in this documentation might be executable in the control. This does not, however, represent an obligation to supply such functions with a new control or when servicing. We have checked that the contents of this publication agree with the hardware and software described herein. Nevertheless, differences might exist and therefore we cannot guarantee that they are completely identical. The information given in this publication is reviewed at regular intervals and any corrections that might be necessary are made in the subsequent printings. Suggestions for improvement are welcome at all times. (c) Siemens AG 1997 - 2005. All Rights Reserved. Subject to change without prior notice. Order No. 6SN 1197-0AB10-0YP4 Printed in the Federal Republic of Germany Siemens-Aktiengesellschaft. 07/05 SIMODRIVE sensor Contents Contents General Information................................................................................................................................. 1-9 1.1 Absolute value encoders............................................................................................. 1-10 1.2 Validity of the documentation and references .............................................................1-10 1.3 Profibus technology .................................................................................................... 1-11 Installation .............................................................................................................................................. 2-13 2.1 2.1.1 2.1.2 Settings in the connecting cover ................................................................................. 2-15 Node address ............................................................................................................. 2-15 Bus termination...........................................................................................................2-15 2.2 Connecting-up the signal and power supply cables .................................................... 2-17 2.3 Connecting-up the connecting cover .......................................................................... 2-18 2.4 Connecting the shielded cable.................................................................................... 2-19 2.5 Information on mechanically installing and electrically connecting-up the absolute value encoder......................................................................................... 2-19 Device Configuration ............................................................................................................................. 3-21 3.1 Overview, data transfer principle ................................................................................ 3-22 3.2 Overview, functionality of the encoder classes ........................................................... 3-23 3.3 Overview, data format of the encoder classes ............................................................ 3-24 Class 1 and Class 2 ............................................................................................................................... 4-25 4.1 Note ............................................................................................................................ 4-27 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 Parameterization.........................................................................................................4-28 Direction of rotation..................................................................................................... 4-29 Activating/de-activating Class 2 functionality ..............................................................4-29 Activating/de-activating commissioning diagnostics.................................................... 4-29 Activating/de-activating the scaling function ............................................................... 4-29 Measuring steps per revolution...................................................................................4-29 Total resolution 4-30 4.3 4.3.1 4.3.2 Data transfer in normal operation ............................................................................... 4-32 Transferring the process actual value.........................................................................4-32 Preset function............................................................................................................4-32 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition v SIMODRIVE sensor Contents 07/05 Encoder Classes, Version 2.1 and 2.2.................................................................................................. 5-33 5.1 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 Parameters .................................................................................................................5-35 Activating the manufacturer-specific parameters ........................................................ 5-35 Required measuring steps .......................................................................................... 5-35 Resolution reference................................................................................................... 5-36 Activating the commissioning mode............................................................................5-37 Reduced diagnostics .................................................................................................. 5-37 Software limit switches................................................................................................ 5-38 Physical measuring steps ........................................................................................... 5-39 Absolute value encoder type.......................................................................................5-40 Dimension units of the velocity ................................................................................... 5-40 5.2 Data transfer in the normal mode ...............................................................................5-41 5.3 5.3.1 5.3.2 5.3.3 5.3.4 The commissioning mode ........................................................................................... 5-42 Setting the direction of rotation ...................................................................................5-43 Starting teach-in..........................................................................................................5-43 Stopping teach-in........................................................................................................5-44 Preset value ................................................................................................................ 5-44 Diagnostic Messages ............................................................................................................................ 6-45 6.1 Overview .....................................................................................................................6-46 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 6.2.9 6.2.10 6.2.11 6.2.12 6.2.13 6.2.14 Diagnostic messages which are supported................................................................. 6-47 Expanded diagnostics header..................................................................................... 6-47 Memory errors ............................................................................................................6-47 Operating state ...........................................................................................................6-47 Encoder type...............................................................................................................6-47 Single-turn resolution.................................................................................................. 6-47 Number of revolutions................................................................................................. 6-48 Operating time alarm .................................................................................................. 6-48 Profile version ............................................................................................................. 6-48 Software version .........................................................................................................6-48 Operating time ............................................................................................................6-48 Zero offset .................................................................................................................. 6-48 Parameterized resolution per revolution ..................................................................... 6-48 Parameterized total resolution ....................................................................................6-49 Serial number .............................................................................................................6-49 6.3 Status signals using LEDs in the connecting cover .................................................... 6-50 Configuration Example STEP 7 ............................................................................................................ 7-51 vi 7.1 Reading-in the GSD files ............................................................................................ 7-52 7.2 Configuring the absolute value encoder...................................................................... 7-53 7.3 Selecting the device class........................................................................................... 7-54 7.4 Parameterization.........................................................................................................7-55 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 SIMODRIVE sensor Contents DPV2 Functionality - General Information .......................................................................................... 8-59 8.1 Isochronous operation ................................................................................................ 8-61 8.2 Slave-to-slave communication ....................................................................................8-62 Data Transfer Isochronous Operation ................................................................................................. 9-63 9.1 9.1.1 9.1.2 9.1.3 9.1.4 9.1.5 Run-up ........................................................................................................................ 9-65 Slave parameterization, configuration.........................................................................9-65 Synchronizing to the clock cycle Global Control ......................................................... 9-65 Synchronizing the slave application to the master sign-of-life..................................... 9-65 Synchronizing the master application to the slave sign-of-life character..................... 9-66 Cyclic operation 9-66 9.2 Telegram type 81........................................................................................................ 9-67 Parameterizing Isochronous Operation ............................................................................................. 10-69 10.1 Parameter - overview............................................................................................... 10-71 10.2 10.2.1 10.2.2 10.2.3 10.2.4 10.2.5 Device-specific parameters....................................................................................... 10-72 Direction of rotation................................................................................................... 10-72 Scaling/preset/counting direction .............................................................................. 10-72 Measuring steps per revolution................................................................................. 10-73 Total resolution 10-73 Maximum master sign-of-life character failures ........................................................ 10-73 10.3 10.3.1 10.3.2 10.3.3 10.3.4 10.3.5 10.3.6 10.3.7 10.3.8 10.3.9 Isochronous parameters ........................................................................................... 10-74 TBASE_DP ..................................................................................................................... 10-74 TDP............................................................................................................................. 10-74 TMAPC ......................................................................................................................... 10-74 TBASE_IO ...................................................................................................................... 10-74 TI ...............................................................................................................................10-74 TO .............................................................................................................................. 10-75 TDX............................................................................................................................. 10-75 TPLL_W ........................................................................................................................ 10-75 TPLL_D......................................................................................................................... 10-75 10.4 Slave-to-slave communication .................................................................................. 10-76 Non-Cyclic Utilities .............................................................................................................................. 11-77 Fault Signals/Diagnostics in Isochronous Operation....................................................................... 12-79 12.1 Profibus diagnostics.................................................................................................. 12-80 12.2 Status signals using the LEDs in the connecting cover............................................. 12-81 12.3 Fault codes in G1_XIST2.......................................................................................... 12-82 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition vii SIMODRIVE sensor Contents 07/05 Configuring Example for Isochronous Operation - STEP 7 ............................................................ 13-83 13.1 Downloading the GSD file......................................................................................... 13-84 13.2 Configuring the absolute value encoder.................................................................... 13-85 13.3 Telegram selection ................................................................................................... 13-86 13.4 13.4.1 13.4.2 Parameterization.......................................................................................................13-87 Device-specific parameters....................................................................................... 13-87 Isochronous parameters ........................................................................................... 13-88 Technical Data...................................................................................................................................... 14-91 14.1 Electrical data............................................................................................................14-92 14.2 Mechanical data........................................................................................................14-93 14.3 Ambient conditions ................................................................................................... 14-94 14.4 Dimension drawings..................................................................................................14-95 Appendix............................................................................................................................................... 15-97 15.1 15.1.1 15.1.2 15.1.3 Additional encoder classes ....................................................................................... 15-98 Version 2.0 multi-turn................................................................................................ 15-98 Version 1.1 multi-turn................................................................................................ 15-98 Version 1.0 multi-turn................................................................................................ 15-98 15.2 FAQ Absolute value encoders, Profibus ................................................................... 15-99 15.3 Terminology............................................................................................................. 15-101 Index .................................................................................................................................................. 16-103 viii (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition General Information 1.1 Absolute value encoders................................................................................. 1-10 1.2 Validity of the documentation and references ................................................. 1-10 1.3 Profibus technology ........................................................................................ 1-11 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 1 1-9 1 General Information 1.1 Absolute value encoders 1.1 07/05 Absolute value encoders This Manual describes the commissioning and configuring of absolute value encoders with PROBIFUS-DP interface. The device fulfills the requirements placed on a Profibus slave in compliance with the Profibus Standard and is certified by the Profibus User Organization. The basic principle of operation of the absolute measured value sensing is the optical scanning of a transparent coding disk which is coupled to the shaft to be measured. The position of the shaft can be determined by evaluating the code with a resolution of up to 8192 steps per revolution (13 bit). For so-called multi-turn devices, other coding disks are coupled through stepdown gearing. These subsequently coupled disks allow the number of shaft revolutions to be determined in absolute terms (up to 16384 revolutions = 14 bits). For absolute value encoders with PROFIBUS-DP, the position value, optically detected, is computed in an integrated microprocessor and the data is transferred via Profibus. 1.2 Validity of the documentation and references This documentation applies to absolute value encoders with PROFIBUS-DP with the following Order No. [MLFB]: 6FX2001-5xPxx from Version A10 onwards; this can be seen in the lowest line on the rating plate. 1-10 Version Introduction date Introduction from Serial No. A00 A01 A02 May 96 Nov 96 01.08.97 A03 01.08.98 A04 02.04.99 73871 A05 01.07.00 87133 A06 04.07.02 114764 A07 A08 17.09.02 01.04.03 117670 125568 A09 01.09.03 133050 A10 A11 01.03.04 26.05.04 144258 151904 A12 16.08.04 156529 A12 20.10.04 161000 Feature Release for general available with 2xPG9, 1xPG7 Connection cover is supplied with 3xPG9 Gearbox modification; length shortened for MT, length shortened to 109 mm For multi-turn encoders, velocity signal averaged over 8 measured values Online parameterization LEDs in the connection cover Velocity output, now also for ST New shaft version with increased degree of protection for synchronous flange Connection cover with de-coupled continuing bus when the terminating resistor is switched-in Software change; improved rotary axis routine Software change: DPV2 functionality (can be called using an additional GSD file) changeover to 13/25 bit; downwards compatibility for Class 1 or disabled scaling is implemented by adapting the encoder software. Software change: Error message "Operating time alarm/incorrect limit value" rectified. Sensor system innovated, change over to Multiturn 27 bit Change only for 6FX2001-5LP25: Additional hole in the shaft and dowel pin provided Standard versions remain at A10 Parameter 964, sub-index 1-4 changed: Device type adapted to "7010" hex, version and date Change, reset generator, basis sensor system (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 1.3 Version GSD file/version A00 A01 A02 A03 A04 A05 A06 SIEM0024.GSD - Version 2.0 SIEM0024.GSD - Version 2.0 SIEM0024.GSD - Version 3.0 A07 A08 SIEM0024.GSD - Version 3.0 SIEM0024.GSD - Version 3.0 SIEM80F9 - Version 1.0 A09 SIEM0024.GSD - Version 3.0 SIEM80F9 - Version 1.0 SIEM0024.GSD - Version 4.0 SIEM80F9 - Version 1.1 A10 A11 A12 A12 SIEM0024.GSD - Version 4.0 SIEM80F9 - Version 1.1 SIEM0024.GSD - Version 4.0 SIEM80F9 - Version 1.1 SIEM0024.GSD - Version 4.0 SIEM80F9 - Version 1.4 1 General Information Profibus technology Changes Modification to change over to DPC31; new encoder also functional with V2.0 Clock cycle synchronism and peer-to-peer data transfer implemented, can be called using a special GSD file "SIEM80F9.GSD" Both GSD files adapted to an extended measuring range (16384 revolutions) Various changes "SIEM80F9": Default settings, comments Note regarding GSD files SIEM80F9: From A08 onwards for functions, clock cycle synchronism and peer-to-peer data transfer SIEM0024: Standard DP functionality, new encoder also functional for old versions. From A10 onwards, for correct teach-in operation, GSD version 4 or higher must be used. 1.3 Profibus technology PROFIBUS is a non-proprietary, open fieldbus Standard which is defined by international Standards EN 50170 and EN 50254. There are 3 versions: DP, FMS and PA. SIEMENS absolute value encoders support the DP version and are designed for the usual data transfer rates of up to 12 Mbaud. In addition to manufacturer-specific functions, the devices support Classes 1 and 2 according to the encoder profile. This device profile can be ordered from the Profibus User Organization under Order No. 3.062. Additional information on PROFIBUS can also be obtained from the Profibus User Organization (functionality, manufacturer, products) as well as Standards and profiles: Profibus User Organization Haid-und-Neu-Strae 7 D-76131 Karlsruhe Tel: +49 721 / 96 58 590 Fax: +49 721 / 96 58 589 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 1-11 1 General Information 1.3 Profibus technology 07/05 Space for your notes 1-12 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Installation 2.1 2.1.1 2.1.2 Settings in the connecting cover ........................................................................ 2-15 Node address.....................................................................................................2-15 Bus termination ..................................................................................................2-15 2.2 Connecting-up the signal and power supply cables ........................................... 2-17 2.3 Connecting-up the connecting cover .................................................................. 2-18 2.4 Connecting the shielded cable ........................................................................... 2-19 2.5 Information on mechanically installing and electrically connecting-up the absolute value encoder ...................................................................................... 2-19 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 2 2-13 2 Installation 2.1 Settings in the connecting cover 07/05 The absolute value encoder is connected-up through the so-called connecting cover. This is connected to the rotary encoder through a 15-pin D-Sub plug connector. It can be removed by releasing 2 screws at the rear of the device. Bus and power supply cables are fed into the connecting cover through cable glands and connected to screw terminals. 2-14 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 2.1 2.1 Settings in the connecting cover 2.1.1 Node address 2 Installation Settings in the connecting cover A decimal rotary switch in the connecting cover is used to set the Profibus node address. The weighting (x 10 or x 1) is specified at the switch. Permissible addresses lie between 1 and 99, whereby each one must be unique in the complete system. The device address is read-in from the absolute value encoder when the power supply voltage is switched-on. Address changes by the master ("Set_Slave_Add") are not supported. R ON B A + B A 78 901 23 456 456 2.1.2 23 78 901 + x10 x1 Bus termination If the encoder is connected at the end or beginning of the bus line, the terminating resistor must be switched on (slide switch in position "ON"): R R ON ON Node X Last node Note When the terminating resistor is switched-in, the bus out is de-coupled! (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 2-15 2 Installation 2.1 Settings in the connecting cover 07/05 The bus has only been correctly terminated if the encoder is mounted to the connecting cover. If the encoder must be replaced in operation (hot swap), then we recommend that a separate active bus termination is used. After the address has been set on the hardware side, and where necessary, the cable terminating-resistor switched-in, then the absolute value encoder can be commissioned. 2-16 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 2.2 2.2 2 Installation Connecting-up the signal and power supply cables Connecting-up the signal and power supply cables B A + B A + Terminal Description B (left) Signal cable B, bus in A (left) Signal cable A, bus in - 0V + 10 - 30 V B (right) Signal cable B, bus out A (right) Signal cable A, bus out - 0V + 10 - 30 V The power supply cables only have to be connected once (it doesn't matter at which terminals). When the terminating resistor is switched-in the bus out is decoupled. R ON B (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition A + B A + 2-17 2 Installation 2.3 Connecting-up the connecting cover 2.3 07/05 Connecting-up the connecting cover The pressure screw, insert and taper sleeve must be removed from the cable gland. Approximately 55 mm of the bus cable sheath must be removed and approximately 50 mm of the braided screen. Approximately 5 mm insulation must be removed from the individual conductors. The pressure screw and insert are then threaded onto the cable. The taper sleeve is pushed under the screen as shown in the drawing. The complete assembly is then inserted in the cable gland and the pressure screw tightened. 55 mm 50 mm 5 mm 2-18 5 mm (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 2.4 2.4 2 Installation Connecting the shielded cable Connecting the shielded cable In order to achieve the highest possible noise immunity, shielded cables are used to transfer signals between the system components. The shields of these cables are connected at both ends. For specific system configurations an equalization current can flow through the cable shield which is connected at both ends. This is the reason that we recommend a potential bonding conductor. 2.5 Information on mechanically installing and electrically connecting-up the absolute value encoder The following points should be observed: * Do not drop the absolute value encoder or subject it to excessive vibration. The encoder is a precision device. * Do not open the absolute value encoder housing (this does not mean that you cannot remove the cover). If the device is opened and closed again, then it can be damaged and dirt may enter the unit. * The absolute encoder shaft must be connected to the shaft to be measured through a suitable coupling. This coupling is used to dampen vibrations and imbalance on the encoder shaft and also avoid inadmissibly high forces. * Although SIEMENS absolute value encoders are rugged, when used in tough ambient conditions, they should be protected against damage using suitable protective measures. Care should be taken that they are not installed so that they can be used as handles or even steps. * Only qualified personnel may commission and operate these devices. These are personnel who are authorized to commission, ground and tag devices, systems and circuits according to the current state of safety technology. * It is not permissible to make any electrical changes to the encoder. * Route the connecting cable to the absolute value encoder at a considerable distance away or completely separated from power cables with their associated noise. Completely screen cables must be used for reliable data transfer and good grounding must be provided. * Cabling, establishing and interrupting electrical connections may only be carried-out when the equipment is in a no-voltage condition. Short-circuits, voltage spikes etc. can result in erroneous functions and uncontrolled statuses which can even include severe personnel injury and material damage. * Before powering-up the system, check all of the electrical connections. Connections, which are not correct, can cause the system to function incorrectly and fault connections can result in severe personnel injury and material damage. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 2-19 2 Installation 07/05 2.5 Information on mechanically installing and electrically connecting-up the absolute value encoder Space for your notes 2-20 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Device Configuration 3.1 Overview, data transfer principle .................................................................... 3-22 3.2 Overview, functionality of the encoder classes ............................................... 3-23 3.3 Overview, data format of the encoder classes ................................................ 3-24 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 3 3-21 3 Device Configuration 3.1 Overview, data transfer principle 07/05 Absolute value encoders with PROFIBUS-DP can be configured and parameterized corresponding to the requirements of the user. To do this, so-called GSD files, associated with the device, are downloaded into the configuring tool. When configuring the encoders various "encoder classes" can be selected. Selectable parameters and functionality of the device depend on the selected encoder class. SIEMENS absolute value encoders support all of the encoder classes described in the following. This means that the functionality is not restricted from the hardware side and is exclusively defined by the user. In addition to the "Class 1" and "Class 2" encoder classes, described in the encoder profile, SIEMENS absolute value encoders offer additional encoder classes with manufacturer-specific functions. When configuring the device, configuration and parameter data are defined by selecting the encoder class. This data, saved in the Profibus master is transferred once to the absolute value encoder when the system runs-up (configuration and parameterizing phase - "DDLM_Set_Prm"). It is not possible to change configuration or parameters during operation (exception: "Commissioning mode" refer to Section 5.3). After the configuration and parameter data have been received the absolute value encoder goes into "normal operation" (cyclic data transfer - "DDLM_Data_Exchange mode"). Among other things, the position value is transferred in this mode. The length and format of the data exchanged are also defined when configuring the device by selecting the appropriate encoder class. 3.1 Overview, data transfer principle GSD-File Software Tool database Parameter (DDLM_Set_Prm") Once at Start-Up Choice of encoder configuration Parameter settings 3-22 PLC Cyclic Data Transmission (e.g. position value) (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 3.2 3.2 3 Device Configuration Overview, functionality of the encoder classes Overview, functionality of the encoder classes Designation Cyclic data transfer Parameters which can be set Others Class 1 single-turn Class 1 multi-turn Class 2 single-turn Position value -16-bit input Direction of rotation - Position value - 32-bit input Direction of rotation - Position value - 16-bit input preset value - 16-bit output Direction of rotation Gearbox factor Preset function Class 2 multi-turn Version 2.1 single-turn Position value - 32-bit input Preset value - 32-bit output Position value (32-bit input) Preset value/teach-in (32-bit output) Preset function Version 2.1 multi-turn Position value (32-bit input) Preset value/teach-in (32-bit output) Version 2.2 single-turn Position value (32-bit input) Direction of rotation Gearbox factor Direction of rotation Gearbox factor Reduced diagnostics Limit switch Direction of rotation Gearbox factor Reduced diagnostics Limit switch Direction of rotation Gearbox factor Reduced diagnostics Limit switch Units of the velocity output Direction of rotation Gearbox factor Reduced diagnostics Limit switch Units of the velocity output Preset function Commissioning mode Velocity output Preset value/teach-in (32-bit output) Version 2.2 multi-turn Velocity (16-bit input) Position value (32-bit input) Preset value/teach-in (32-bit output) Preset function Commissioning mode Preset function Commissioning mode Preset function Commissioning mode Velocity output Velocity (16-bit input) (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 3-23 3 Device Configuration 3.3 Overview, data format of the encoder classes 3.3 07/05 Overview, data format of the encoder classes Designation Configuration (ID) Hex Dec. Input words (AWC -> master) Output words (master -> AWC) Description, refer to Section Page Class 1 single-turn (acc. to the encoder profile) Class 1 multi-turn (acc. to the encoder profile) Class 2 single-turn (acc. to the encoder profile) Class 2 multi-turn (acc. to the encoder profile) Version 2.1 single-turn Version 2.1 multi-turn Version 2.2 single-turn D0 208 1 0 4 27 D1 209 2 0 F0 240 1 1 F1 241 2 2 F1 F1 F1 D0 F1 D0 241 241 241 208 241 208 2 2 2 1 2 1 2 2 2 5 35 Version 2.2 multi-turn 2 The following encoder classes are still supported due to ensure upwards compatibility. However, these encoder classes should not be used for new projects (description: Refer to the Appendix): Version 1.0 multi-turn Version 1.1 multi-turn Version 2.0 multi-turn D3 D3 E1 F1 D0 211 211 225 241 208 4 4 0 2 1 0 0 2 2 15.1.3 15.1.2 98 98 15.1.1 98 3-24 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Class 1 and Class 2 4.1 Note ................................................................................................................4-27 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 Parameterization.............................................................................................4-28 Direction of rotation......................................................................................... 4-29 Activating/de-activating Class 2 functionality .................................................. 4-29 Activating/de-activating commissioning diagnostics........................................ 4-29 Activating/de-activating the scaling function ................................................... 4-29 Measuring steps per revolution.......................................................................4-29 Total resolution ...............................................................................................4-30 4.3 4.3.1 4.3.2 Data transfer in normal operation ................................................................... 4-32 Transferring the process actual value.............................................................4-32 Preset function................................................................................................4-32 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 4 4-25 4 Class 1 and Class 2 4.1 Note 07/05 Encoder classes Class 1 and Class 2 are the versions according to the encoder profile defined by the Encoder Working Group in the Profibus User Organization (this is available from the PNO under Order No. 3.062). 4-26 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 4.1 4 Class 1 and Class 2 4.1 Note Note In order to guarantee compatibility to previously supplied devices with a resolution of 4096 steps per revolution (versions < "A08"), from version "A08" the absolute value encoders do not operate with the complete resolution of 8192 steps (13 bits) per revolution, but instead with 4096 steps per revolution (12 bits) scaled value: 1. Utilizing the device in Class 1 2. Utilizing the device in a higher class (Class 2 or manufacturer-specific) with disabled scaling function (parameter byte 9, bit 3) 3. Using the device in a higher class (Class 2 or manufacturer-specific) with disabled Class 2 functionality (parameter byte 9, bit 1) In all three cases, the absolute value encoder generally operates with a 12-bit resolution (4096 steps) per revolution. In order to use the full (that specified on the rating plate) resolution of 13 bits (8192 steps) per revolution, the device must be operated in Class 2 or in a manufacturer-specific class with the scaling function and with Class 2 functionality switched-in. In order to ensure that compatibility is maintained to multi-turn encoders with 4096 revolutions that were previous supplied (version < "A10"). In the following cases, multi-turn angular encoders, from version "A10" do not operate with the full 16384 revolutions but instead with the reduced number of 4096: 1. Utilizing the device in Class 1 2. Utilizing the device in a higher class (Class 2 or manufacturer-specific) with disabled scaling function (parameter byte 9, bit 3) 3. Using the device in a higher class (Class 2 or manufacturer-specific) with disabled Class 2 functionality (parameter byte 9, bit 1) In all three cases, the absolute value encoder generally operates with the number rotations reduced to 4096. In order to use the full (specified on the rating plate) number of 16384 revolutions (14 bit), the device must be operated in Class 2 or a manufacturer-specific Class with the scaling enabled and Class 2 functionality enabled. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 4-27 4 Class 1 and Class 2 4.2 Parameterization 4.2 07/05 Parameterization The following table includes an overview of the parameters which can be set according to the encoder profile as well as their arrangement in the parameterizing telegram. Generally, parameters are set using user-friendly input masks in the configuring tool. This means that a precise description of the parameterizing telegram is normally of little interest to the user. Octet (=byte) No. 1 ... 8 Parameter Bit No. Details, refer to 9 Direction of rotation 0 Section 4.2.1, page 29 Class 2 functionality 1 Section 4.2.2, page 29 Activate "Commissioning Diagnostics" 2 Section 4.2.3, page 29 Scaling function 3 Section 4.2.4, page 29 Reserved 4 Reserved 5 Not used for Class 1 and Class 2 6 Profibus Standard parameters 7 10 ... 13 14 ... 17 18 ... 25 26 4-28 Measuring steps/revolution Section 4.2.5, page 29 Total resolution Section 4.2.6, page 30 Reserved (for the encoder profile) Not used for Class 1 and Class 2 (refer to version 2.1 and 2.2) (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 4.2.1 4 Class 1 and Class 2 4.2 Parameterization Direction of rotation The direction of rotation defines the counting direction when the process actual value is output as the shaft rotates clockwise (CW) or counter-clockwise (CCW) when viewing the shaft. The count direction is defined by bit 0 in octet 9: Octet 9 bit 0 0 Direction of rotation when viewing the shaft Clockwise Output code increasing 1 Counter-clockwise increasing For Class 1, this is the only parameter, which can be set. 4.2.2 Activating/de-activating Class 2 functionality Using this switch, Class 2 angular encoders can be restricted to the functionality of Class 1, i.e. the parameterizing capability is disabled. Bit 1 in octet 9 is set in order to use the functions of a Class 2 encoder. 4.2.3 Octet 9 bit 1 Class 2 functionality 0 Switched-out 1 Switched-in Activating/de-activating commissioning diagnostics This function has no significance for the SIMODRIVE sensor absolute value encoder. 4.2.4 Activating/de-activating the scaling function The scaling function enables the resolution per revolution and the selected total resolution to be parameterized. This switch should always be switched-in, if the functions of Class 2 (or manufacturer-specific classes) are to be used. 4.2.5 Octet 9 bit 3 Scaling function 0 Switched-out 1 Switched-in Measuring steps per revolution The `Measuring steps per revolution` parameter is used to program the absolute value encoder so that a required number of steps can be realized, referred to one revolution. If a value greater than the basic resolution of the absolute value encoder is selected as resolution per revolution, the output code is no longer in single steps. For absolute value encoders from version "A06", in this case, a parameter error is displayed indicating that the device doesn't go into cyclic data transfer. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 4-29 4 Class 1 and Class 2 4.2 Parameterization 07/05 Octet 10 Bit 31 - 24 Data 31 11 12 23 - 16 24 2 to 2 23 13 15 - 8 16 2 to 2 15 7-0 8 2 to 2 7 0 2 to 2 Required number of measuring steps per revolution 4.2.6 Total resolution Octet 14 Bit 31 - 24 Data 31 15 16 23 - 16 24 2 to 2 23 17 15 - 8 16 2 to 2 15 7-0 8 2 to 2 7 0 2 to 2 Selected total resolution in measuring steps The user can adapt the measuring range of the device using the `Total resolution' parameter: The absolute value encoder counts up to the parameterized total resolution and then starts again at 0. Example: 100 steps are selected for each revolution, total resolution 12 800, and then the absolute value encoder starts again at zero after 128 revolutions and then counts up to 11 799. For many configuring tools it is necessary to split-up the value into a high word and low word; also refer to Page 36. When entering the parameter "Total resolution" the following must still be observed: If n steps per revolution are selected, then the selected total resolution may not result in the fact that the periods are longer than the maximum available (physical) number of revolutions of the device (refer to the rating plate). For instance, for a multi-turn device with 16384 revolutions, the total resolution must be less than 16384 times the parameterized number of steps per revolution: Total resolution < measuring steps per revolution x number of revolutions (physical revolutions) If this is not observed, then the LEDs in the connecting cover display a parameterizing error and the device does not go into cyclic data transfer. For older versions, when selecting the total resolution, an additional rule had to be observed (refer below). If the total resolution was not selected in compliance with this rule, when using the device on a so-called endless axis/rotary axis, when the physical zero was exceeded, a step was output. For new devices (version A06), this particular problem has been resolved using an internal software routine. This means that the rule, shown below, can be ignored for new devices. 4-30 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 4 Class 1 and Class 2 4.2 Parameterization Note The internal software routine only intervenes if the device is operational. If the encoder shaft is rotated further than 4096 revolutions, and if the device is not connected to the power supply voltage, problems can occur. If this situation can occur in the application itself, the following rule should also be observed for new devices: The periods, i.e. total resolution/measuring steps per revolution must be an integer number. This must fit an integer number of times (integer multiple) in 16384. Thus, the following equation must apply: (16384 x measuring steps per revolution) / total resolution = integer number (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 4-31 4 Class 1 and Class 2 4.3 Data transfer in normal operation 4.3 07/05 Data transfer in normal operation The so-called DDLM_Data_Exchange mode is the normal status when operating the system. When requested to do so, the absolute value encoder sends actual (position) values to the master. On the other hand, the absolute value encoder can also receive cyclic data (e.g. the preset value for Class 2 encoders). 4.3.1 Transferring the process actual value For multi-turn encoders, the actual position value is transferred to the master as 32-bit value (double word): Word Function Bit Word 1 Status bits 31 30 29 0 0 0 28 0 27 0 26 0 25 0 Word Function Bit Word 1 Status bits 24 23 22 X X X 21 X 20 X 19 X 18 X 17 X 16 X Word Function Bit Word 0 Process actual value 15 14 13 12 11 X X X X X 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1 X 0 X Analog to this, for single-turn encoders data is transferred as 16-bit value (word). For Class 1 and Class 2 no status bits are included. The position value is max. 27 bit. 4.3.2 Preset function The encoder zero point can be adapted to the mechanical zero of the system using the preset function The rotary encoder actual value is set to the required "preset value" by setting the preset value. The device computes the required zero offset and saves this in an EEPROM so that it is non-volatile (this takes less than 40 ms). The preset value is activated by setting bit 31 in the (peripheral) output double word (this is transferred with a rising signal edge). The preset value is automatically set after the scaling parameters have been transferred, i.e. the preset value refers to the scaled actual value. (This procedure is essentially the same for single-turn encoder versions - in this case, bit 15 is used to activate the preset value.) Status bits 31 1 0 0 0 Bit Master AWC AWC Master Master AWC AWC Master 30 0 0 0 0 29 0 0 0 0 28 0 0 0 0 27 0 0 0 0 26 0 0 0 0 25 0 0 0 0 Data bits Bit Master AWC AWC Master Master AWC AWC Master 2 4 2 3 2 2 2 1 2 0 1 9 1 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 0 9 8 7 6 5 4 Required value is transferred (= preset value) New = required process actual value is transferred here Reset bit 31 - normal mode New = required process actual value is transferred here If high precision is required, the preset mode should only be executed when the encoder shaft is at a standstill. If the shaft moves quickly during this time, offsets can occur, as even when the preset value is set, bus propagation times occur (bus delay times). The preset value has max. 27 bit. 4-32 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 3 2 1 0 Encoder Classes, Version 2.1 and 2.2 5.1 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 Parameters .....................................................................................................5-35 Activating the manufacturer-specific parameters ............................................ 5-35 Required measuring steps .............................................................................. 5-35 Resolution reference....................................................................................... 5-36 Activating the commissioning mode................................................................5-37 Reduced diagnostics ......................................................................................5-37 Software limit switches.................................................................................... 5-38 Physical measuring steps ............................................................................... 5-39 Absolute value encoder type...........................................................................5-40 Dimension units of the velocity ....................................................................... 5-40 5.2 Data transfer in the normal mode ...................................................................5-41 5.3 5.3.1 5.3.2 5.3.3 5.3.4 The commissioning mode ............................................................................... 5-42 Setting the direction of rotation .......................................................................5-43 Starting teach-in..............................................................................................5-43 Stopping teach-in............................................................................................5-44 Preset value.................................................................................................... 5-44 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 5 5-33 5 Encoder Classes, Version 2.1 and 2.2 5.1 Parameters 07/05 Using the manufacturer-specific encoder classes, Version 2.1 and Version 2.2, the absolute value encoder offers, in addition to the functions in compliance with the encoder profile, features such as commissioning mode (teach-in mode), velocity output and limit switch. The transfer of the individual parameters in the parameterizing telegram is listed in the following Table. The following also applies in this case: Generally, users apply the user-friendly input masks (input screen forms) in the configuring tool; the structure of the parameterizing telegram is only of marginal interest in exceptional cases. Octet (byte) No. Parameter Bit No. Details ref. to 1 .. 8 Profibus Standard parameters Sect. Page 9 Direction of rotation 0 4.2.1 29 Class 2 functionality 1 4.2.2 29 Commissioning diagnostics 2 4.2.3 29 Scaling function 3 4.2.4 29 Reserved 4 Reserved 5 Activate manufacturer-specific parameters (octet 26) 6 5.1.1 35 Reserved 7 10 .. 13 Required measuring steps (ref.: Octet 26 bits 0 and 1) 5.1.2 35 14 .. 17 Total resolution 4.2.6 30 18 .. 25 Reserved 26 Reference for required measuring steps 5.1.3 36 0 1 Activate commissioning mode 2 5.1.4 37 Reduced diagnostics 3 5.1.5 37 Reserved 4 Activate lower software limit switch 5 5.1.6 38 Activate upper software limit switch 6 5.1.6 38 Activate the parameter from octet 27 7 5.1.1 35 27 .. 30 Lower limit switch 5.1.6 38 31 .. 34 Upper limit switch 5.1.6 38 35 .. 38 Physical measuring steps 5.1.7 39 39 Reserved 0 Absolute value encoder type (single/multi-turn) 1 5.1.8 40 Reserved 2 Reserved 3 Selecting the dimension units for velocity output 4 5.1.9 40 5 5-34 Reserved 6 Reserved 7 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 5.1 5 Encoder Classes, Version 2.1 and 2.2 5.1 Parameters Parameters The manufacturer-specific parameters are described in more detail in the following text. The description of the (also supported) parameters according to the encoder profile should be taken from Section 4. 5.1.1 Activating the manufacturer-specific parameters The manufacturer-specific parameter byte 26 is activated using bit 6 in octet 9. In turn, the manufacturer-specific bytes 27-39 are activated in byte 26. When selecting the encoder classes, Version 2.1 or Version 2.2, this is realized automatically. These bits are only of significance if they are directly and manually parameterized in the hexadecimal notation. 5.1.2 Octet 9 bit 6 0 1 Octet 26 De-activated Activated Octet 26 bit 7 0 1 Octet 27 - 39 De-activated Activated Required measuring steps The "required measuring steps" parameter is used to program the device so that any number of measuring steps, referred to a revolution, the complete measuring range or any partial measuring range can be covered. Octet Bit Data 10 31 - 24 31 24 2 to 2 11 12 23 - 16 15 - 8 23 16 15 8 2 to 2 2 to 2 Required measuring steps 13 7-0 7 0 2 to 2 The parameter "Resolution reference" (refer to 5.1.3) is used to define the reference for the measuring steps entered here. If "per revolution" is selected here as reference for the requested measuring steps, then the measuring range can be adapted using the "Total resolution" parameter. In this case, the rules, listed in Section 4.2.6, should be carefully observed. Note For many configuring tools it is necessary to split-up the word into a high word and low word; also refer to Page 56. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 5-35 5 Encoder Classes, Version 2.1 and 2.2 5.1 Parameters 5.1.3 07/05 Resolution reference This parameter is used to specify the reference for the "Required measuring steps" (refer to 5.1.2) which is entered: - revolution - maximum total resolution - physical measuring steps Requested resolution per revolution In this case, the position value is scaled so that the position value increases by the number of required measuring steps at each revolution. In addition, in this particular case, the "Total resolution" parameter is evaluated. This can be used to adapt the measuring range (refer to 4.2.6). Requested resolution per maximum total resolution The requested measuring steps which are entered refer to the complete measuring range of the device, i.e. the device outputs the parameterized number of measuring steps over the complete (physical) number of revolutions. Requested resolution per physical measuring steps In this case, the required number of steps refers to the physical measuring steps, entered using parameter "Physical measuring steps" (also refer to Section 5.1.7). In this particular case physical steps mean the following: The numerical value which is read from the coding disk internally from the absolute value encoder (e.g. 4096 steps per revolution for the standard 12-bit version). Gearbox factors can be freely set using this option. Reference Per revolution Per maximum total resolution Per physical measuring steps (= steps specified in octet 35-38) 5-36 Octet 26 bit 0 0 1 0 Octet 26 bit 1 0 0 1 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 5.1.4 5 Encoder Classes, Version 2.1 and 2.2 5.1 Parameters Activating the commissioning mode Bit 2 in octet 26 represents a switch for the so-called commissioning mode. The commissioning mode is a specific status of the device which can be used to transfer additional parameters, extending beyond the preset value, to the absolute value encoder. When the commissioning mode has been activated, a so-called "teach-in" can be executed. This means that the gearbox factor can be determined by directly moving the system. In this particular mode (this can be identified at the unit as a result of the flashing green LED), the direction of rotation and scaling, set when configuring the system, are ignored and instead, the values saved in the EEPROM are used. The device can also be continually operated in the commissioning mode; however, we recommend that the parameters, determined in the commissioning mode, are transferred to the configuring and the device is then subsequently used in the normal mode (this means that it is possible to replace the device without having to carry-out a new teach-in). A detailed description of the commissioning mode is provided in Section 5.3. 5.1.5 Octet 26 bit 2 Commissioning mode 0 Disabled 1 Enabled Reduced diagnostics For some Profibus masters, the full number of diagnostic bytes can result in problems (standard diagnostics: 57 bytes). Especially older masters often cannot process the full number of diagnostic bytes. With SIEMENS absolute value encoders it is possible to reduce the number of diagnostic bytes output from the absolute value encoder to 16. Only 16 diagnostic bytes are output if the "Class 1" device class is selected. Octet 26 bit 3 Diagnostics 0 Standard = 57 bytes 1 Reduced = 16 bytes (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 5-37 5 Encoder Classes, Version 2.1 and 2.2 5.1 Parameters 5.1.6 07/05 Software limit switches 2 positions can be programmed which when violated (exceeded or fallen below) the absolute value encoder sets bit 27 in the 32-bit process actual value to "1". This bit is set to "0" between the two positions. Both limit switch values can be set as required by appropriately parameterizing them; however the value of the "total resolution" parameter may not be exceeded. The limit switches are activated using bits 5 and 6 in octet 26. Many configuring tools required that the value is split-up into a high word and low word; also refer to Page 56. Octet 27 Bit 31 - 24 Data 31 28 29 23 - 16 24 2 to 2 23 30 15 - 8 16 15 2 to 2 7-0 8 2 to 2 7 0 2 to 2 Lower limit switch in measuring steps (referred to the scaled value) Octet 31 Bit 31 - 24 Data 31 32 33 23 - 16 24 2 to 2 23 34 15 - 8 16 15 2 to 2 7-0 8 2 to 2 7 0 2 to 2 Upper limit switch in measuring steps (referred to the scaled value) 5-38 Octet 26 bit 5 Lower limit switch 0 Disabled 1 Enabled Octet 26 bit 6 Upper limit switch 0 Disabled 1 Enabled (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 5.1.7 5 Encoder Classes, Version 2.1 and 2.2 5.1 Parameters Physical measuring steps Octet 35 36 37 38 Bit 31 - 24 23 - 16 15 - 8 7-0 Data 2 to 2 31 24 23 16 2 to 2 15 8 2 to 2 7 0 2 to 2 Physical measuring steps The device evaluates this parameter if, the option "Physical measuring steps" is selected as reference for the required measuring steps (refer to 5.1.3). A gearbox factor can be freely set using the "Physical measuring steps". In this case it is specified as to how many measuring steps ("Required measuring steps") should be output for a specified sub-measuring range. This option is helpful if "uneven" scaling factors are to be entered. Here is an example: Problem: The absolute value encoder should output 400 steps over 3 revolutions. This number of steps cannot be set with the reference "Required measuring steps per revolution" (the "Required measuring steps" parameter would have to contain the value 133,333; however, in this case only integer numbers may be entered). Remedy: The "Physical measuring steps" is selected as reference for the requested measuring steps. Using the actual (physical) resolution of the device (rating plate) the number of physical measuring steps is determined over the required measuring range. For an absolute value encoder with 12-bit standard resolution this would be, for example, in this particular case 4096 steps/revolution x 3 revolutions = 12288 steps This value is now entered as "Physical measuring steps" parameter; the actually required step number of 400 is entered under "Required measuring steps". The absolute value encoder now outputs 400 steps over a measuring range of 12288 physical steps (i.e. over 3 revolutions). Note Many configuring tools require that the value is split-up into a high word and low word; also refer to Page 57. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 5-39 5 Encoder Classes, Version 2.1 and 2.2 5.1 Parameters 5.1.8 07/05 Absolute value encoder type The type of the absolute value encoder (single or multi-turn) is defined in bit 1 of octet 39. When the encoder class is selected this is realized automatically. The user must only observe these parameters if the parameterization is done directly in the hexadecimal code. 5.1.9 Octet 39 bit 1 Type 0 Single-turn 1 Multi-turn Dimension units of the velocity The units in which the velocity is output (Version 2.2) is set using this parameter. This basis is saved in bit 4 and 5 of the octet 39. 5-40 Units Bit 4 Bit 5 Steps/second 0 0 Steps/100 ms 1 0 Steps/10 ms 0 1 Revolutions/minute 1 1 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 5.2 5 Encoder Classes, Version 2.1 and 2.2 5.2 Data transfer in the normal mode Data transfer in the normal mode For manufacturer-specific encoder classes, Version 2.1 and Version 2.2 the process actual value is generally transferred as 32-bit value (double word). In addition to 25 bits, which are provided for the position value, 7 additional bits are used as status bits. The master sends the preset value and additional control bits to the absolute value encoder in the (peripheral) output double word. For a device class, Version 2.2, the actual velocity is transferred in an additional (peripheral) input word: ID AWC Master Master AWC F1 hex Status + position actual value 24 23 16 15 8 Status + 2 2 -2 2 -2 Preset value + control bits 24 23 16 Control + 2 2 -2 7 2 -2 15 2 -2 8 0 D0 hex Velocity 15 8 2 -2 7 2 -2 7 2 -2 0 0 The status bits in the input double word have the following significance: Bit 28 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Bit 27 Bit 26 Bit 25 Significance Ready 0 = absolute value encoder not ready 1 = absolute value encoder ready Operating mode 0 = commissioning mode 1 = normal mode Software limit switch 0 = lower limit switch actual value upper limit switch 1 = actual value > upper limit switch or actual value < lower limit switch Direction of rotation 0 = increasing in the clockwise rotation (when viewing the shaft) 1 = increasing in the counter-clockwise rotation (when viewing the shaft) 5-41 5 Encoder Classes, Version 2.1 and 2.2 5.3 The commissioning mode 5.3 07/05 The commissioning mode If the absolute value encoder is switched into the commissioning mode using the appropriate parameterization, then gearbox factors can be directly determined in the system using a so-called "teach-in". The absolute value encoder signals when it is in the commissioning mode by the flashing green LED in the connecting cover and using bit 26 in the input double word (this is set to 0). In the commissioning mode, the parameters, set in the configuring (direction of rotation, scaling) are ignored and instead the values, saved in the internal EEPROM, are used. If the direction of rotation and gearbox factor are changed in the commissioning mode, then the new values are saved in the EEPROM and the device operates with these values. The principle mode of operation in the commissioning mode is as follows: 5-42 - The device is installed in the system. - The commissioning mode is switched-in using the appropriate parameterization (refer to 5.14). - If required, the direction of rotation is modified. - The system is moved into the initial position. - The start command for the teach-in is transferred to the absolute value encoder. - The system is moved to the end position. - The required step number is transferred to the absolute value encoder with the teach-in stop command. - The preset value is set. - The values, determined in the teach-in phase are transferred into the configuring (parameter). - The commissioning mode is switched-out in the parameterization. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 5 Encoder Classes, Version 2.1 and 2.2 5.3 The commissioning mode 5.3.1 Setting the direction of rotation In the commissioning mode, the direction of rotation in which the output code increases, can be changed online. The actual direction of rotation is displayed using bit 28 in the input double word (0: increasing/1: decreasing in the clockwise direction of rotation). The direction of rotation can be reversed using bit 28 in the output double word. Status bits Bit Master AWC AWC Master Master AWC AWC Master 31 30 29 28 Data bits 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 1 0 0 0 The direction of rotation is changed via bit 28 0 0 0 0/1 0 0 1 Absolute value encoder acknowledged in bit 0 and bit 28 with a new direction of rotation 0 0 0 0 0 0 0 The changeover operation is completed by resetting bit 28 0 0 0 0/1 X 0 1 The process actual value is output with a modified direction of rotation 0 0/1 The direction of rotation which is set is saved in a non-volatile fashion in the EEPROM. 5.3.2 Starting teach-in After the system has been moved to the beginning of the measuring range, the teach-in start command is transferred to the absolute value encoder. The device now internally starts the measuring to determine the gearbox factor. Status bits Data bits Bit 31 30 29 28 27 26 25 24 Master AWC 0 0 0 0 1 1 0 1 0 0 0 0 0 X 0 X 0 X 0 X 0 0 0 0 0 1 0 1 Teach-in is started by setting bit 30 The absolute value encoder acknowledges the start of teach-in by setting bit 30 Bit 30 is reset The non-processed actual value is output (gearbox factor = 1, preset is not active) AWC Master Master AWC AWC Master 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Note The gearbox factor is internally set to 1 and the zero offset is deleted. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 5-43 5 Encoder Classes, Version 2.1 and 2.2 5.3 The commissioning mode 5.3.3 07/05 Stopping teach-in After the system has been moved over the measuring range using the teach-in stop command, the step number, required over the traversing measured distance is transferred. In this case it must be ensured that the physical resolution is not exceeded (e.g. 3000 steps for quarter of a revolution). Positive and negative directions of rotation and if the zero is possibly exceeded, are automatically taken into account. The measuring distance moved through may not exceed 2047 revolutions. The absolute value encoder transfers the total resolution, calculated by the device, as response to the teach-in stop command. This value should be documented and used later in the configuring/parameterization for normal operation of the system. After this procedure has been completed, the device operates with the new scaling factor which has just been determined. This is then saved in the EEPROM in a non-volatile fashion. Status bits Data bits Bit 31 30 29 28 26 25 24 Master AWC 0 0 0 1 1 1 0 0 0 X X 0 0 1 0 0 0 0 0 0 0 0 0 X X 0 0 1 Number of required steps over the measuring distance moved through The complete resolution f. new gearbox factor is transferred (this should be documented) Bit 29 is reset Output of the actual value including the gearbox factor AWC Master Master AWC AWC Master 27 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 In order that the encoder can be subsequently replaced without requiring a new teach-in procedure, the total resolution, determined by the encoder, should be transferred into the configuring. This is realized by entering the complete resolution, determined in the teach-in phase (and documented) into the parameter field "Required measuring steps" (refer to 5.1.2). The "Resolution reference" switch is then set to "Maximum total resolution" (refer to 5.1.3). For the new configuration it must be ensured that the direction of rotation (refer to 4.2.1) is correctly entered - the setting in the commissioning mode must also be taken into account in the parameterization. The commissioning mode can then be disabled via the parameterization and the rotary encoder is now used in the "normal mode". 5.3.4 Preset value The preset value is set in essentially the same way as the procedure described in 4.3.2. The only difference: For the manufacturer-specific classes, Version 2.1 and Version 2.2, when the preset value is set, this is acknowledged using a status bit: Status bits Data bits Bit 31 30 29 28 27 26 25 24 Master AWC 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 The required value is transferred (= preset value) New = required process actual value is transferred Bit 31 is reset - normal mode New = required process actual value is transferred AWC Master Master AWC AWC Master 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 5-44 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Diagnostic Messages 6.1 Overview......................................................................................................... 6-46 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 6.2.9 6.2.10 6.2.11 6.2.12 6.2.13 6.2.14 Diagnostic messages which are supported.....................................................6-47 Expanded diagnostics header......................................................................... 6-47 Memory errors ................................................................................................6-47 Operating state ............................................................................................... 6-47 Encoder type...................................................................................................6-47 Single-turn resolution...................................................................................... 6-47 Number of revolutions..................................................................................... 6-48 Operating time alarm ...................................................................................... 6-48 Profile version .................................................................................................6-48 Software version .............................................................................................6-48 Operating time ................................................................................................ 6-48 Zero offset ......................................................................................................6-48 Parameterized resolution per revolution ......................................................... 6-48 Parameterized total resolution ........................................................................6-49 Serial number .................................................................................................6-49 6.3 Status signals using LEDs in the connecting cover ........................................ 6-50 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 6 6-45 6 Diagnostic Messages 6.1 Overview 6.1 07/05 Overview When requested by the master, in the DDLM_Slave_Diag mode, a series of data is transferred. There are 57 pieces of diagnostics data. Exception: Reduced diagnostics (refer to 5.1.5). The diagnostics data are output according to the Profibus Standard (octet 1-6) and the encoder profile rules (from octet 7). 6-46 Diagnostics function Data type Encoder class Octet Diagnostics octet no. 1 Station status 1 (ref. to: Profibus Standard) Station status 2 (ref. to: Profibus Standard) Station status 3 (ref. to: Profibus Standard) Diagnostics Master Add Octet 2 1 Octet 3 1 Octet 4 1 PNO identification number Octet 5,6 1 Extended diagnostics header Octet String 7 1 Alarm messages Octet String 8 1 Operating status Octet String 9 1 Encoder type Octet String 10 1 Resolution per revolution (hardware) unsigned 32 11 - 14 1 Number of revolutions (hardware) unsigned 32 15, 16 1 Additional alarm messages Octet String 17 2 Supported alarm messages Octet String 18, 19 2 Alarm messages Octet String 20, 21 2 Supported alarms Octet String 22, 23 2 Profile version Octet String 24, 25 2 Software version Octet String 26, 27 2 Operating time Unsigned 32 28 - 31 2 Zero offset Unsigned 32 32 - 35 2 1 Manufacturer-specific: Offset value Unsigned 32 36 - 39 2 Parameterized resolution per revolution Unsigned 32 40 - 43 2 Parameterized total resolution Unsigned 32 44 - 47 2 Serial number ASCII String 48 - 57 2 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 6.2 6.2 6 Diagnostic Messages Diagnostic messages which are supported Diagnostic messages which are supported The implemented diagnostics messages are described in more detail below. 6.2.1 Expanded diagnostics header The length of the extended diagnostic bytes, including diagnostics header, is contained in diagnostics byte 7. 6.2.2 Memory errors Bit 4 in diagnostics byte 8 is used to display whether a memory error has occurred. Memory errors means in this case, that the angular encoder EEPROM no longer functions correctly and the preset value is no longer saved so that it is kept during power outages (non-volatile data save). 6.2.3 Bit Definition 0 1 4 Memory error (defect in the EEPROM) No Yes Operating state The operating parameters which are set can be interrogated using diagnostics byte 9. 6.2.4 Bit Definition 0 1 0 Direction of rotation CW CCW 1 Class 2 functionality Off On 2 Diagnostic routine Off On 3 Scaling function Off On Encoder type The angular encoder version can be interrogated using diagnostics byte 10. 6.2.5 Byte 10 Definition 0 Single-turn angular encoder 1 Multi-turn angular encoder Single-turn resolution The hardware resolution per revolution of the angular encoder can be interrogated via diagnostic bytes 11-14. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 6-47 6 Diagnostic Messages 6.2 Diagnostic messages which are supported 6.2.6 07/05 Number of revolutions The number of revolutions of the angular encoder which can be differentiated between on the hardware side, can be interrogated using diagnostic bytes 15 and 16. The two standard values are 1 for single-turn and/or 16384 for multiturn. 6.2.7 Operating time alarm The alarm signal when the operating time is exceeded, is output in bit 4 of diagnostic byte 20. This bit is set after 105 hours. 6.2.8 Profile version The profile version of the angular encoder is saved in diagnostic bytes 24 and 25: Byte 24 Bit 15 - 8 Data 6.2.9 7 25 7-0 0 7 0 2 to 2 2 to 2 Service No. Index Software version The software version of the angular encoder is saved in diagnostic bytes 26 and 27. Octet 26 Bit 15 - 8 Data 6.2.10 7 27 7-0 0 7 0 2 to 2 2 to 2 Service No. Index Operating time The angular encoder operating time is kept in diagnostic bytes 28 to 31. When the power supply voltage is connected, the operating time is saved every six minutes in 0.1h steps in the angular encoder. 6.2.11 Zero offset The zero offset is output in diagnostic bytes 32 to 35. 6.2.12 Parameterized resolution per revolution The parameterized resolution per revolution is saved in diagnostic bytes 40 to 43. This value is only valid, if the gearbox factor was calculated in the parameter mask using the setting "Resolution per revolution" (refer to 5.1.3). 6-48 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 6.2 6.2.13 6 Diagnostic Messages Diagnostic messages which are supported Parameterized total resolution The parameterized and calculated total resolution can be read-out of diagnostic bytes 44-47. 6.2.14 Serial number Diagnostic bytes 48 - 57 are provided for a serial number. This signal has presently not been implemented. The bytes are pre-assigned hex 2A (default value). (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 6-49 6 Diagnostic Messages 6.3 Status signals using LEDs in the connecting cover 6.3 07/05 Status signals using LEDs in the connecting cover LED grun /green LED rot /red The connecting cover has two LEDs, which optically represent the status of the bus at the angular encoder. This red LED is used to display errors and the green LED is used to display the status of the angular encoder. Each LED can have one of three conditions: dark, bright, flashing. From the nine combination possibilities, six are used to display various conditions. If problems occur when commissioning the device, then initially the status of the LEDs should be checked; these can often provide important information regarding the possible cause of the fault. No. 1 Red LED Dark Green LED Dark Status signal/possible cause Power supply missing 2 Bright Bright 3 Bright Flashing 4 Flashing Bright 5 Bright Dark 6 Dark Bright Absolute value encoder is ready, but after the power was connected, it still had not received configuration data. Possible causes: Address incorrectly set, bus cables incorrectly connected Parameterizing or configuring error i.e. the encoder receives configuring or parameterizing data with the incorrect length or inconsistent data. Possible cause: for example, the total resolution has been set too high Encoder ready, but is not addressed from the master (for example an incorrect address was addressed) Encoder doesn't receive data for a longer period of time (approx. 40 sec) (for example, the data line has been interrupted) Standard operation in the Data Exchange mode 7 Dark Flashing Commissioning mode in the Data Exchange mode 6-50 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Configuration Example STEP 7 7.1 Reading-in the GSD files ................................................................................ 7-52 7.2 Configuring the absolute value encoder.......................................................... 7-53 7.3 Selecting the device class...............................................................................7-54 7.4 Parameterization.............................................................................................7-55 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 7 7-51 7 Configuration Example STEP 7 7.1 Reading-in the GSD files 7.1 07/05 Reading-in the GSD files When used for the first time, the GSD file ("SIEM0024.gsd") must be installed in order to include the absolute value encoder in the hardware Catalog. To do this, the "Install new GSD .." item should be selected in the "HW Config" window of the SIMATIC Manager under the menu item "Options". The appropriate GSD file ("SIEM0024.gsd" or the German Version "SIEM0024.gsg") should be selected. The GSD file can be obtained from SIEMENS. After the GSD file has been read-in, the absolute value encoder appears in the hardware Catalog under "PROFIBUS-DP" - "Other field devices" - "Encoder" "SIMODRIVE sensor". For more recent versions of the "SIMATIC Manager" the sensor is already included in the hardware Catalog. 7-52 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 7.2 7.2 7 Configuration Example STEP 7 Configuring the absolute value encoder Configuring the absolute value encoder After the Profibus network has been configured in the hardware configurator under the menu item "Insert" - "Master system" the absolute value encoder can be selected from the hardware Catalog and inserted in the network. To do this, the "SIMODRIVE sensor" device is coupled to the bus by dragging & dropping it (or by double clicking on the module with the bus selected). After the device has been inserted, the node address of the slave device is entered. This must match the address set in the connecting cover. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 7-53 7 Configuration Example STEP 7 7.3 Selecting the device class 7.3 07/05 Selecting the device class As described in Section 3, the functionality of the device depends on the selected encoder class. After the device, as described, was inserted in the Profibus network, the required device class can now be selected. In this case, one of the modules, listed in the hardware Catalog under "SIMODRIVE sensor" can be dragged&dropped at slot 1 (Table in the lower section of the station [node] window: 7-54 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 7.4 7 Configuration Example STEP 7 7.4 Parameterization Parameterization Select the absolute value encoder to be parameterized in the configuring and then double click on slot 1 (Table in the lower area of the station [node] window). The dialog box "Properties DP slave" is displayed. The default addresses (if required) of the device can be changed here. The "Parameterizing" tab should be selected to enter parameters. The parameters of the device are now entered here. After the "Device-specific parameter" folder has been selected, then, depending on the encoder class which has been selected, different parameters can be entered. If there are several possibilities in the fields located to the right, then an additional selection window opens with a double click. On the other hand, numerical values are directly entered. The example indicates the parameter selection for Version 2.2 - the device class with the highest functionality. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 7-55 7 Configuration Example STEP 7 7.4 Parameterization 07/05 As a result of the STEP 7 configuring software, 32-bit parameter values (e.g. total resolution, limit switch, etc.) are split-up into high and low words. Example: Decimal Hexadecimal 129600 00 01 FA 40 Hexadecimal Decimal High word: 00 01 1 Low Word: FA 40 64 064 Decimal value "1" is now entered in the high field and decimal value "64 064" in the low field. Or: Divide the value by 65536 - enter the integer part of the result into the high word and the remainder into the low word: 129600 / 65536 = 1.977539 integer part = 1 high word: 1 129600 - 1 x 65536 = 64064 remainder = 64064 low word = 64064 The data can also be directly entered in the hexadecimal format. However, this is significantly more complex; if possible this alternative should not be used. 7-56 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 7 Configuration Example STEP 7 7.4 Parameterization (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 7-57 7 Configuration Example STEP 7 7.4 Parameterization 07/05 Space for your notes 7-58 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition DPV2 Functionality - General Information 8.1 Isochronous operation .................................................................................... 8-61 8.2 Slave-to-slave communication ........................................................................8-62 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 8 8-59 8 DPV2 Functionality - General Information 8.1 Isochronous operation 07/05 The latest generation of SIEMENS Profibus absolute value encoders supports the new Profibus functionality - isochronous operation and slave-to-slave communications. 8-60 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 8 DPV2 Functionality - General Information 8.1 Isochronous operation 8.1 Isochronous operation Isochronous communication (equidistance) forms the basis for synchronizing several drives. In this case, Profibus slaves are synchronized to a cyclic clock cycle signal (GC) sent by the master as "Global-Control-Command". The instants in time where the actual value is sensed (TI) and the setpoint transfer (TO) within the bus cycle (TDP) can be selected in the configured software. This means that the position values of several axes can be simultaneously sensed to a precision of just microseconds. GC GC GC TDP TDP TDX S1 S2 S3 TDX S4 MSG Res./ GC S1 S2 S3 S4 MSG Res./ GC TOmin TI (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition TO 8-61 8 DPV2 Functionality - General Information 8.2 Slave-to-slave communication 8.2 07/05 Slave-to-slave communication The slave-to-slave communication function allows Profibus slave devices to "listen to" the actual values of other slaves and use these as setpoints. A slave device, which provides its actual values to other slaves is called a "Publisher". Devices which listen to the actual values of other slaves are called "Subscribers". A master must initiate slave-to-slave communications and this can be realized within one DP cycle. 8-62 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Data Transfer Isochronous Operation 9.1 9.1.1 9.1.2 9.1.3 9.1.4 9.1.5 Run-up ............................................................................................................ 9-65 Slave parameterization, configuration .............................................................9-65 Synchronizing to the clock cycle Global Control .............................................. 9-65 Synchronizing the slave application to the master sign-of-life ......................... 9-65 Synchronizing the master application to the slave sign-of-life character ......... 9-66 Cyclic operation...............................................................................................9-66 9.2 Telegram type 81 ............................................................................................ 9-67 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 9 9-63 9 Data Transfer Isochronous Operation 9.1 Run-up 07/05 The absolute value encoder must be operated with the GSD file "SIEM80F9.GSD" in order to be able to use the new functionality. If the device was previously used with another GSD file, then the operating voltage must initially be withdrawn and then it must be switched-in again. An example in Section 13 explains how the device should be configured. 9-64 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 9.1 9 Data Transfer Isochronous Operation 9.1 Run-up Run-up The device runs-up to cyclic operation in several phases: 9.1.1 Slave parameterization, configuration Parameter and configuration data are transferred from the master to the slave. The parameter structure and possibilities of assigning parameters (parameterization) are described in more detail in Section 10. Telegram type 81 (according to the PROFIdrive profile) is the only configuration possible. Telegram 81 is described in detail in Section 9.2. Telegram type 81 9.1.2 Output data 2 words Input data 6 words ID (specific ID format) 0xC3,0xC1,0xC5,0xFD,0x00,0x51 Synchronizing to the clock cycle Global Control As soon as the slave application detects the "Operate" state and receives valid Data_Exchange telegrams, synchronization to the clock cycle Global Control is started. Initially, a bus cycle time of TDP (from the parameterization, refer to 10.3.2) is assumed and the tolerance window width is a multiple of the parameterized time TPLL_W (refer to 10.3.8). During the synchronization phase, the bus cycle TDP is adapted to the real bus cycle and the tolerance window is decreased down to the parameterized window width TPLL_W (refer to 10.3.8). The slave application starts with the clock cycle monitoring after synchronization has been completed. More detailed information on this can be taken from the PROFIdrive profile. If the maximum permissible number of clock cycle failures is exceeded, the error bit is set in the status word, the appropriate error code (refer to 12.3) is output and the slave application re-attempts to synchronize itself. 9.1.3 Synchronizing the slave application to the master sign-of-life After having successfully synchronized to the clock cycle Global Control, the slave application attempts to synchronize itself to the master sign-of-life. It expects that the master sign-of-life character counter increments itself at each cycle of the master application. The cycle time of the master application must be transferred via the parameter TMAPC (refer to 10.3.3). Synchronization can start at any value of the master sign-of-life. If the value range of the master sign-of-life character was run-through once error-free, then the synchronization phase is considered to have been completed and the monitoring of the master sign-of-life character starts. More detailed information on this subject can be taken from the PROFIdrive profile. If a "Sign-of-life error" occurs, the error bit is set in the status word, the appropriate fault code is output and the slave application re-attempts to resynchronize itself. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 9-65 9 Data Transfer Isochronous Operation 9.1 Run-up 9.1.4 07/05 Synchronizing the master application to the slave sign-of-life character After the slave application has been successfully synchronized to the master sign-of-life character, the slave sign-of-life character is set to a value not equal to 0 and incremented with each bus cycle. This means that the master application can now synchronize to the slave sign-of-life character. 9.1.5 Cyclic operation In the cyclic mode, the slave application monitors the sign-of-life character of the master application. When the sign-of-life character fails, the slave application automatically tries to re-synchronize itself. As long as the master sign-of-life character is available error-free, the slave sign-of-life character is incremented in each bus cycle and can be monitored by the master application. 9-66 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 9.2 9 Data Transfer Isochronous Operation 9.2 Telegram type 81 Telegram type 81 Telegram type 81 (based on the Profidrive profile) is transferred in cyclic data transfer: Output data (master to the absolute value encoder) 2 x 16 bits (consistent) STW2 G1_STW1 Input data (absolute value encoder to the master) 2 x 16 bits + 2 x 32 bits (consistent) ZSW2 G1_ZSW1 G1_XIST1 G1_XIST2 STW2 (16 bits): Master sign-of-life character 4-bit counter, left justified. The master application starts the master sign-of-life character at any value between 1 and 15. The master increments the counter in each master application cycle. The value range extends from 1 to 15; a value of "0" indicates a fault and is skipped in fault/error-free operation. X X X Counter X 0 0 0 Unused 0 0 0 0 0 0 0 0 0 ZSW2 (16 bits): Slave sign-of-life character 4-bit counter, left justified. The slave application starts the slave sign-of-life character at any value between 1 and 15 after it has been successfully synchronized to the clock cycle. The slave increments the counter in each DP cycle. The value range extends between 1 - 15, a value of "0" indicates a fault and is skipped in fault/error-free operation. X X X Counter (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition X 0 0 0 Unused 0 0 0 0 0 0 0 0 0 9-67 9 Data Transfer Isochronous Operation 9.2 Telegram type 81 07/05 G1_STW1 (16 bits): Encoder control word Bit 0 .. 10 11 Value Significance Description Reserved, presently it is not used 0/1 "Home position mode" 12 1 Set preset/request shift 13 1 Request transfer, actual value 2 14 1 "Park encoder" 15 1 Acknowledge encoder error Specifies whether the actual value is set to an absolute value or is to be shifted by a specific value. 0: set home position (absolute) 1: shift home position The preset value is set (or the value shifted) with the rising edge. Default (preset value, shift): 0 Requests that the actual value is additionally transferred in G1_XIST2. The additional actual value is generally transferred in the current version. If this bit is set, then the encoder does not output any error messages. Acknowledges/resets an encoder error. G1_ZSW1 (16 bits): Encoder status word Bit 0 .. 10 11 Value Significance 12 1 13 1 14 1 15 1 Acknowledges encoder error being processed Acknowledgement, set preset/shift value Acknowledgement, transfer actual value 2 Acknowledgement "Park encoder" Encoder fault Description Reserved, presently it is not used This bit is set if it takes longer than one bus cycle to reset an error after acknowledgement. The actual value is additionally transferred in G1_XIST2 Acknowledgement "Park encoder": The encoder does not output any error messages. This indicates an encoder fault. The fault code is output in G1_XIST2. G1_XIST1 (32 bits): Actual value (position) The absolute position value is output in G1_XIST1. The output is realized left justified. The "Shift factor" (number of bits through which the position value is shifted) can be read-out using parameter P979 (non-cyclic). G1_XIST2 (32 bits): Actual value 2/error codes An additional actual value (right justified) is transferred in G2_XIST2. A possible shift can be read-out using the non-cyclic parameter P979. When a fault situation occurs, fault codes are output depending on the encoder control word. 9-68 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Parameterizing Isochronous Operation 10 10.1 Parameter - overview ..................................................................................... 10-71 10.2 10.2.1 10.2.2 10.2.3 10.2.4 10.2.5 Device-specific parameters .............................................................................10-72 Direction of rotation ......................................................................................... 10-72 Scaling/preset/counting direction.....................................................................10-72 Measuring steps per revolution .......................................................................10-73 Total resolution................................................................................................10-73 Maximum master sign-of-life character failures ............................................... 10-73 10.3 10.3.1 10.3.2 10.3.3 10.3.4 10.3.5 10.3.6 10.3.7 10.3.8 10.3.9 Isochronous parameters.................................................................................. 10-74 TBASE_DP ........................................................................................................... 10-74 TDP................................................................................................................... 10-74 TMAPC ............................................................................................................... 10-74 TBASE_IO ............................................................................................................ 10-74 TI ..................................................................................................................... 10-74 TO .................................................................................................................... 10-75 TDX................................................................................................................... 10-75 TPLL_W .............................................................................................................. 10-75 TPLL_D............................................................................................................... 10-75 10.4 Slave-to-slave communication.........................................................................10-76 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 10-69 10 Parameterizing Isochronous Operation 10.1 Parameter - overview 07/05 The parameters which can be set and the various engineering/configuring possibilities are now described in the following. 10-70 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 10.1 10 Parameterizing Isochronous Operation 10.1 Parameter - overview Parameter - overview The parameter data are transferred in the parameterizing telegram as so-called "Structured_Prm_Data" blocks: Byte No. Parameter 1-7 Profibus Standard parameters DPV1 bytes 8-10 11-14 Data type Details Refer to the Profibus Standard Block header, user parameters Direction of rotation 4 x unsigned8 Bit 10.2.1 Bit 10.2.2 15 Bit 3 Scaling/preset/activate direction of rotation Scaling function Bit 10.2.2 15 Bit 2, 4- 7 Reserved Presently not used 16 - 19 Measuring steps/revolution Unsigned32 10.2.3 20 - 23 Total resolution Unsigned32 10.2.4 24 Maximum failures, master sign-of-life character Reserved Unsigned8 10.2.5 15 Bit 0 15 Bit 1 25 - 31 32 - 35 Presently unused 36 Block header, isochronous 4 x Unsigned8 parameters Version Unsigned8 37 - 40 TBASE_DP Unsigned32 10.3.1 41 - 42 TDP Unsigned16 10.3.1 43 TMAPC Unsigned8 10.3.3 44 - 47 TBASE_IO Unsigned32 10.3.4 48 - 49 TI Unsigned16 10.3.5 50 - 51 TO Unsigned16 10.3.6 52 - 55 TDX Unsigned32 10.3.7 56 - 57 TPLL_W Unsigned16 10.3.8 58 - 59 TPLL_D Unsigned16 10.3.9 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 10-71 10 Parameterizing Isochronous Operation 10.2 Device-specific parameters 10.2 07/05 Device-specific parameters The following device-specific parameters can be set to adapt the absolute value encoder to the particular application: 10.2.1 Direction of rotation The direction of rotation defines the direction in which the counter of the output of the process actual value counts when the shaft rotates clockwise (CW) or counter-clockwise (CCW) when viewing the shaft. The count direction is defined by bit 0 in byte 15: Octet 15 bit 0 0 1 10.2.2 Direction of rotation when viewing the shaft Clockwise (CW) Counter-clockwise (CCW) Output code Increasing Increasing Scaling/preset/counting direction Using this switch, for the absolute value encoder, the scaling, preset and direction of rotation change functions can be either enabled or disabled. This switch is important if the device is to be operated with the minimum time TI of 125 s. This is only possible if scaling, preset and direction of rotation selection are disabled. In this particular case, the encoder rejects all data that is transferred using the parameters "direction of rotation", measuring steps per revolution" and "total resolution" and instead uses the following default settings: Direction of rotation: increasing in the clockwise sense Measuring steps per revolution: 8192 Total resolution: 33554432 If this functionality "scaling, preset and direction of rotation" is enabled, then the following must be carefully observed: TI must be a minimum of 375 s. The time which elapses between the setpoint being accepted (TO) up to the actual value latch (TI) must be a minimum of 375 s. Octet 15 bit 1 Scaling/preset/direction of rotation change 0 Disabled 1 Enabled In order that scaling can be executed, bit 3 must be additionally set in octet 15 (default setting): 10-72 Octet 15 bit 3 Scaling function 0 Disabled 1 Enabled (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 10.2.3 10 Parameterizing Isochronous Operation 10.2 Device-specific parameters Measuring steps per revolution The `Measuring steps per revolution' parameter is used to assign the absolute value encoder the required number of steps referred to 1 revolution. If the parameter value exceeds the actual (physical) basic resolution of the encoder, then the output value is no longer in single steps. In this particular case, a parameter error indicates that the device does not go into the cyclic data transfer mode. Octet 16 Bit 31 - 24 Data 31 17 18 23 - 16 24 2 to 2 23 19 15 - 8 16 2 to 2 15 7-0 8 2 to 2 7 0 2 to 2 Required measuring steps per revolution 10.2.4 Total resolution Octet 20 Bit 31 - 24 Data 31 21 22 23 - 16 24 2 to 2 23 23 15 - 8 16 2 to 2 15 7-0 8 2 to 2 7 0 2 to 2 Selected total resolution in measuring steps The user can adapt the measuring range of the device using the `Total resolution' parameter: The absolute value encoder counts up to the parameterized total resolution and then re-starts at 0. Example: 100 steps are selected for each revolution, the total resolution is 12800 and then the absolute value encoder restarts after 128 revolutions and then counts again up to 11799. For many configuring tools it is necessary to split-up the value into a high word and low word (refer to the User Manual). The following should be carefully observed when entering the parameter "Total resolution": If n steps per revolution were selected then the selected total resolution may no longer result in the fact that the periods are longer than the maximum number of revolution of the device which are available (physically) (refer to the rating plate). This means, for a multi-turn device with 16384 revolutions, the total resolution must be less than 16384 x the parameterized number of steps per revolution: Total resolution < measuring steps per revolution x number of revolutions (physical) If this is not observed, the device outputs a parameter error and does not go into the cyclic data transfer mode. 10.2.5 Maximum master sign-of-life character failures The maximum permissible number of master sign-of-life character failures can be parameterized in parameter byte 24. Default: 1. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 10-73 10 Parameterizing Isochronous Operation 10.3 Isochronous parameters 10.3 07/05 Isochronous parameters Some of the isochronous parameters are set by the user and others by the configuring tool. The individual parameters are briefly described below: 10.3.1 TBASE_DP Timebase of the DP cycle time TDP. Units: 1/12 s Set to 125 s using the GSD file. 10.3.2 TDP DP cycle time Units: TBASE_DP Comprises the following: - duration of the cyclic utility [service]: This depends on the number of slaves, telegram length - duration of the non-cyclic utility [service]: This depends on the maximum length of the DPV1 telegrams - duration up to the new DP clock cycle: GAP, token transfer, reserve, Global Control The minimum DP cycle time, resulting from the secondary conditions, should be listed as recommendation when configuring the system; however it is still possible to enter higher values. The maximum value for TDP is, for absolute value encoders, 32 ms - the (theoretical) minimum value is 500 s. 10.3.3 TMAPC Cycle time of the master application. This is specified as a multiple of TDP and is used to evaluate the master sign-of-life character. 10.3.4 TBASE_IO Timebase of TI and TO (instants in time of the actual value sensing/setpoint transfer) Units: 1/12 s This is set to125 s using the GSD file. 10.3.5 TI Instant in time of the actual value sensing referred to the end of the cycle. Units: TBASE_IO 10-74 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 10 Parameterizing Isochronous Operation 10.3 Isochronous parameters The following rules apply: The minimum time for TI (this is also specified in the GSD file) is only 125 s if the scaling is disabled using the device-specific parameter. TI must be at least 375 s if the scaling function is used. Further, a minimum time must be maintained between the instants that the setpoint is transferred (this is defined using TO) and the actual value sensing (this is defined using TI). This minimum time is 125 s when the scaling function is disabled and 375 s when the scaling function is enabled. 10.3.6 TO Instant in time that the setpoint is accepted referred to the start of the cycle. Units: TBASE_IO For an absolute value encoder, the setpoint is a preset value and various calculations must be carried-out internally before the actual value sensing. This means that a minimum time must be maintained between the instant that the setpoint is accepted (this is defined by TO) and the actual value sensing (defined by TI). When the scaling function is disabled, this minimum time is 125 s, and when enabled, 375 s. Further, the following must apply: TO > TDX + TO_MIN 10.3.7 TDX Data_Exchange_time Units: 1/12 s This is the time which is required for the cyclic data transfer. This depends on the number of slaves and telegram lengths. 10.3.8 TPLL_W Half the tolerance window width. Units: 1/12 s Clock cycles within the tolerance window, defined here, which the encoder identifies as being valid. When synchronizing, initially the encoder starts with a multiple of the tolerance window width and then reduces the window down to the parameterized window width. 10.3.9 TPLL_D Delay time of the clock cycle signal. Units: 1/12 s This is internally added to the configured cycle time TDP . (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 10-75 10 Parameterizing Isochronous Operation 10.4 Slave-to-slave communication 10.4 07/05 Slave-to-slave communication In order to use the slave-to-slave communication function, the slave-to-slave communication links must be defined in the configured software. The absolute value encoder operates as Publisher. This means that so-called Subscribers can directly "listen to" the encoder data. The procedure when generating/creating slave-to-slave communication links can be taken from the documentation of the respective configuring tool. 10-76 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 11 Non-Cyclic Utilities The following parameters are supported (only reading): Parameter No. 918 922 964 965 979 Significance Profibus address Telegram type Device identification Profile number Sensor format Data type Unsigned16 Unsigned16 Array[n] Unsigned16 Octet String 2 Array[n] Unsigned32 R/W R R R R R More detailed information on the individual parameters can be taken from the PROFIdrive profile. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 11-77 11 Non-Cyclic Utilities 07/05 Space for your notes 11-78 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Fault Signals/Diagnostics in Isochronous Operation 12 12.1 Profibus diagnostics ........................................................................................... 12-80 12.2 Status signals using the LEDs in the connecting cover ...................................... 12-81 12.3 Fault codes in G1_XIST2 ................................................................................... 12-82 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 12-79 12 Fault Signals/Diagnostics in Isochronous Operation 12.1 Profibus diagnostics 12.1 07/05 Profibus diagnostics 6 diagnostics bytes are output in accordance with the Profibus Standard: Diagnostics function Station status 1 (refer to: Profibus Standard) Station status 2 (refer to: Profibus Standard) Station status 3 (refer to: Profibus Standard) Diagnostics, master address PNO ID number 12-80 Data type Octet Diagnostics, octet number 1 Octet 2 Octet 3 Octet Octet 4 5, 6 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 12.2 12 Fault Signals/Diagnostics in Isochronous Operation 12.2 Status signals using the LEDs in the connecting cover Status signals using the LEDs in the connecting cover Various (fault) states of the devices are displayed using the two LEDs in the connecting cover: No. Red LED 1 2 Dark Bright Green LED Dark Bright 3 Bright Flashing 4 Flashing Bright 5 Bright Dark 6 Dark Bright (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Status signal/possible cause Power supply missing The absolute value encoder is ready, but has still not received configuration data after the power was connected. Possible causes: Incorrectly set address, bus cables incorrectly connected Parameterizing or configuration error The absolute value encoder receives configuration or parameter data with the incorrect length or inconsistent data. Possible cause: e.g. the total resolution was set too high Absolute value encoder is ready, but has still not been addressed from the master. (e.g. the incorrect address is being used) Absolute value encoder does not receive any data for a long period of time (approx. 40 seconds) (e.g. the data line is interrupted) Normal operation in the data exchange modus 12-81 12 Fault Signals/Diagnostics in Isochronous Operation 12.3 Fault codes in G1_XIST2 12.3 07/05 Fault codes in G1_XIST2 Encoder faults are displayed by setting fault bits in the encoder status word (bit 15). The appropriate fault codes are output in G1_XIST2: Error code (hex) 0F01 Significance Description Command not supported 0F02 Master sign-of-life fault 0F04 PLL synchronization fault The command is not supported (e.g. requested via the control word) This is set if (after the encoder has been synchronized to the master sign-of-life character) the maximum permissible number of sign-of-life character failures has been exceeded. This is set, if after the synchronization to the clock cycles the maximum permissible number of clock cycle failures has been exceeded. 12-82 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Configuring Example for Isochronous Operation - STEP 7 13 13.1 Reading-in the GSD file ..................................................................................... 13-84 13.2 Configuring the absolute value encoder ............................................................. 13-85 13.3 Telegram selection............................................................................................. 13-86 13.4 13.4.1 13.4.2 Parameterization ................................................................................................13-87 Device-specific parameters ................................................................................13-87 Isochronous parameters .................................................................................... 13-88 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 13-83 13 Configuring Example for Isochronous Operation - STEP 7 13.1 Downloading the GSD file 13.1 07/05 Downloading the GSD file When used for the first time, the GSD file ("SIEM80F9.GSD") must be installed in order to include the absolute value encoder in the hardware catalog. In this case, the "Install new GSD.." item must be selected in the window "HW Config" of the SIMATIC Manager under the menu item "Options". The appropriate GSD file ("SIEM80F9.GSD") should then be selected. The GSD file can be obtained from SIEMENS. After the GSD file has been downloaded, the absolute value encoder appears in the hardware Catalog under "PROFIBUS-DP" - "Other field devices" "Encoder" - "SIMODRIVE sensor isochronous". 13-84 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 13.2 13 Configuring Example for Isochronous Operation - STEP 7 13.2 Configuring the absolute value encoder Configuring the absolute value encoder After the Profibus network has been configured in the hardware configurator under the menu item "Insert" - "Master system" the absolute value encoder can be selected from the hardware Catalog and inserted in the network. To do this, the "SIMODRIVE sensor isochronous" device is coupled to the bus by dragging & dropping it (or by double clicking on the module with the bus selected). After the device has been inserted, the node address of the slave device is entered. This must match the address set in the connecting cover. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 13-85 13 Configuring Example for Isochronous Operation - STEP 7 13.3 Telegram selection 13.3 07/05 Telegram selection After the device was inserted, as described, in the Profibus network, the telegram can now be selected. Currently, only telegram type 81 is supported. The module is dragged and dropped at slot 1 (table in the lower section of the station [node] window). 13-86 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 13 Configuring Example for Isochronous Operation - STEP 7 13.4 Parameterization 13.4 Parameterization 13.4.1 Device-specific parameters The dialog box "DP slave properties" is displayed by double clicking on the encoder to be parameterized. The "parameterizing" table should be selected to enter parameters. Various parameters of the device can be defined under (Device-specific parameter) (refer to 10.2). (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 13-87 13 Configuring Example for Isochronous Operation - STEP 7 13.4 Parameterization 13.4.2 07/05 Isochronous parameters Initially, the "Equidistance" function should be configured in the Profibus network (an appropriate master must be selected supports this functionality): In the network view double click on the PROFIBUS sub-network. After selecting the "Properties" button in the properties dialog box select the "Network settings" tab. Select the "DP" profile and click on the "Options" button. 13-88 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 13 Configuring Example for Isochronous Operation - STEP 7 13.4 Parameterization In the subsequent dialog box, activate the control box "Activate equidistant bus cycle" and select the required equidistant (isochronous) DP cycle. Double-click on the slave to be parameterized and select the "Equidistant" tab. Activate the control box "Synchronize DP slave to DP cycle". Select the required times for TI and TO. In this case, please observe the minimum and maximum values as well as the rules from Section 10.3.5 and 10.3.6. After all of the slaves have been configured and parameterized, the equidistant times for the bus system should be again checked and possibly adapted. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 13-89 13 Configuring Example for Isochronous Operation - STEP 7 13.4 Parameterization 07/05 Space for your notes 13-90 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Technical Data 14 14.1 Electrical data .......................................................................................................14-92 14.2 Mechanical data....................................................................................................14-93 14.3 Ambient conditions................................................................................................14-94 14.4 Dimension drawings..............................................................................................14-95 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 14-91 14 Technical Data 14.1 Electrical data 14.1 07/05 Electrical data General design Power supply voltage According to DIN VDE 0160 Protective Class III, degree of pollution 2, overvoltage Category II 10 - 30 V DC (absolute limit values) Power drain max. 2.5 watts EMC Noise emission according to EN 61000-6-4 Noise immunity according to EN 61000-6-2 Electrically isolated through an opto coupler Line driver according to RS 485 Bus connection Interface Baud rates Resolution 12 Mbaud; 6 Mbaud; 3 Mbaud; 1.5 Mbaud; 500 kbaud; 187.5 kbaud; 93.75 kbaud; 45.45 kbaud; 19.2 kbaud; 9.6 kbaud 8192 steps/revolution Number of revolutions which are sensed Scale accuracy 1 or 16384 Step frequency LSB Max. 800 kHz Code type Binary Electrical lifetime > 10 h Addressing Using a rotary switch in the connecting cover 1/2 LSB 5 Note The absolute angular encoder may only be operated with extra low safety voltage. 14-92 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 14.2 14 Technical Data 14.2 Mechanical data Mechanical data Housing Aluminum Flange Synchronous flange Clamping flange Diameter of the solid shaft 6 mm 10 mm Diameter of the hollow shaft with reducing adapter Shaft length 15 mm 8 mm, 10 mm, 12 mm 10 mm 20 mm Shaft loading Axial 40 N, radial 110 N Friction torque 3 Ncm Rotor moment of inertia 30 gcm Lifetime, mechanical refer to the table Speed 6000 RPM (continuous operation) Shock immunity (EN 60068-2-27) 100 g (half sine, 6 ms) Continuous shock immunity (EN 60028-2-29) Vibration immunity (EN 60068-2-6) 10 g (half sine, 16 ms) Connection Connecting cover with terminal strip as T distributor Single-turn Approx. 500 g Multi-turn Approx. 700 g Weight (incl. connecting cover) 2 10 g (10 Hz ... 2000 Hz) Minimum mechanical lifetime 8 Lifetime in 10 revolutions at Fa/Fr 40 N/60 N 40 N/80 N 40 N/110 N Clamping flange 247 104 40 Synchronous flange 822 347 133 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 14-93 14 Technical Data 14.3 Ambient conditions 14.3 07/05 Ambient conditions Operating temperature -40 .. +85 C Storage temperature - 40 ... + 85 C Relative air humidity 98 % (without moisture condensation) Degree of protection (EN 60529) 14-94 Housing/enclosure IP 65 Shaft IP 64 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 14 Technical Data 14.4 Dimension drawings 14.4 Dimension drawings Synchronous flange Single-Turn=82, Multi-Turn=92 30 3xM4x6 3x 0 12 O42 O60 63,5 O59 O6 f6 o58 o50 f7 23 ~32 10 3 3 4 O5,5-9 15 20 20 Schlusselweite, wrench size=17 Clamping flange Single-Turn=82, Multi-Turn=92 30 30 3xM4x6 3x 3xM3x6 12 0 8 O4 15 O60 63,5 O59 O36 f7 1 23 O10 h8 O53 3x12 18 O58 0 10 ~27 3 3 15 O5,5-9 20 20 Schlusselweite, wrench size=17 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 14-95 14 Technical Data 14.4 Dimension drawings 07/05 Hollow shaft 72 O63 Single-Turn=100 , Multi-Turn=112 3.3 1.3 20 O60 63.5 O59 20 O15 F7 23 ~32 Anlagekante an Momentenstutze (lay-on edge torque support) O3.2 Max. W ** = 30 Min. W ** = 15 O6.5-9 15 ** Welleneinstecktiefe (hollow shaft depth) 20 20 Schlusselweite, wrench size=17 Mounting instructions The clamping ring may only be tightened onto the hollow shaft if the angular encoder is inserted on the drive element shaft. The diameter of the hollow shaft can be reduced to 12 mm, 10 mm or 8 mm using a reducing adapter. This reducing adapter is simply inserted into the hollow shaft. We do not recommend thinner drive element shafts due to the mechanical load. The permissible shaft motions of the drive element are listed in the table: Axial Radial Static 0.3 mm 0.5 mm Dynamic 0.1 mm 0.2 mm 14-96 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Appendix 15 15.1 15.1.1 15.1.2 15.1.3 Additional encoder classes................................................................................. 15-98 Version 2.0 multi-turn ......................................................................................... 15-98 Version 1.1 multi-turn ......................................................................................... 15-98 Version 1.0 multi-turn ......................................................................................... 15-98 15.2 FAQ Absolute value encoders, Profibus ............................................................ 15-99 15.3 Terminology ....................................................................................................... 15-101 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 15-97 15 Appendix 15.1 Additional encoder classes 15.1 07/05 Additional encoder classes The encoder classes, listed in the following, are still supported for reasons regarding upwards compatibility. However, they should no longer be used for new projects. 15.1.1 Version 2.0 multi-turn This version only differs from the Version 2.2 by the fact that there are fewer parameters available in the configuring tool mask. 15.1.2 Version 1.1 multi-turn This is an older version. Previously, it was unofficially designated as a so-called Class "3". It behaves just like Class 2, but in addition outputs the velocity. It is still available, if a user does not wish to make any changes; however, it should no longer be used for new systems. 15.1.3 Version 1.0 multi-turn Position value and velocity outputs are available without the possibility of making a preset. This should no longer be used. 15-98 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 15.2 15 Appendix 15.2 FAQ Absolute value encoders, Profibus FAQ Absolute value encoders, Profibus Problem When using one of the following Profibus masters and for encoder classes higher than Class 1, problems occur when running-up the system (bus fault, encoder does not log-on): - SIEMENS S5-95U - Master interface SIEMENS IM 308-B - Softing PROFIboard - Allen Bradley 1785 PFB/B - Mitsubishi A1SJ 71PB92D Possible cause Under certain circumstances, the master does not support the full number of diagnostic bytes (57 bytes) provided by the absolute value encoder. Remedy If possible, the maximum number of diagnostics data per slave should be increased in the master. If this is not possible, then the absolute value encoder can either be used as Class1 device (16 diagnostic bytes) or one of the manufacturer-specific Classes is selected (Version 2.1 or 2.2) and "Reduced diagnostics" is enabled in the parameterization (refer to Section 5.1.5). Problem For COM PROFIBUS Version 5.0, the absolute value encoder cannot be configured together with the S5-95U. Cause The S5-95U does not support the full complement of diagnostics data (57 bytes). For COM Profibus V5.0, the GSD entry "Max_Diag_Data_Len=57" is checked and it is prevented from configuring together with the S5-95U. Remedy Use COM Profibus Version 3.3, select one of the manufacturer-specific Classes (Version 2.1 or 2.2) and activate the shortened diagnostics (parameter). It is only possible to use the device with COM Profibus V5.0 using a modified GSD file (the slave key "Max_Diag_Data_Len" must be modified). (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 15-99 15 Appendix 15.2 FAQ Absolute value encoders, Profibus 07/05 Problem PLC and master interface are switched-in, the bus is active, but the absolute value encoder does not log-on. Remedy To start, check the state of the LEDs in the connecting cover (refer to Section 6.3); under certain circumstances, information can be obtained about the possible fault causes. Both LEDs dark: Check the power supply! Both LEDs bright: The device is not receiving parameters and configuration data. Check the address setting in the connecting cover. Check that the bus lines (cables) are correctly connected (BUS IN/BUS OUT). Check the configuring. Red LED bright, green LED flashing: Parameter error! Check the parameterization: e.g. total resolution (refer to 4.2.6) Problem Bus faults sporadically occur. Possible cause The terminating resistors are not correct Remedy Check the terminating resistors! The 220 terminating resistor must be switched-in at the beginning and at the end of the bus segment. Measure the resistance between the two data lines! To do this, the power supply must be powered-down and a measurement made between connections "A" and "B" in the connecting cover. The measured resistance value must be approx. 110 (220 parallel 220 ). Possible causes EMC problems Remedy Check as to whether the selected baud rate is permissible for the cable length; if required, use a lower baud rate. Check the connecting cover that it is correctly located and ensure that the cables have been correctly routed regarding EMC. 15-100 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 07/05 15.3 15 Appendix 15.3 Terminology Terminology Terminating resistor Address Baud rate Bus node Configuring DDLM DDLM_Data_Exchange DDLM_Set_Prm DDLM_Slave_Diag DP Diagnostics Encoder Freeze GSD file Master Octet Parameterization Profibus Slave Type file Word Resistor to adapt bus cables; terminating resistors are always required at the end of a cable or segment. A number, which is assigned to each node, no matter whether it is a master or slave. The setting is realized in the connecting cover using rotary switches so that it is nonvolatile. Data transfer rate specified as the number of bits transferred per second (baud rate = bit rate). Device, which can send, receive or amplify data via the bus. When configuring, the master signals the angular encoder how it is to behave, e.g. the number of input and output words. (also refer to DDLM_Set_Prm). Direct Data Link Mapper. Interface between Profibus-DP functions and the encoder software. Operating status of the bus, for standard data transfer. Operating status of the bus, in which configuration data is sent. Operating status of the bus, in which diagnostics data are requested from the slave (e.g. absolute value encoder). Distributed peripherals Identification, localization, classification, display, additional evaluation of faults, errors and messages. Alternative designation for (angular) encoders or absolute value encoders This is a master command to the slave. This allows the master to freeze the statuses of the inputs to their instantaneous value. The input data are only updated again, when the master sends the UNFREEZE command. Master device data file, in which the slave-specific properties and characteristics are defined. The GSD is a file, which is made available for most Profibus nodes (stations) by the manufacturer. The GSD formats are unified, so that the corresponding control software can access it. (also refer to Type file). Bus nodes, which can send data on their own initiative, and define which slave should send data. Slave Data unit of 8 bits = 1 byte Transfers specific values (such as resolution per revolution, direction of rotation, etc.) from the master to the slave (in this case: absolute value encoder). This is realized when the system runs-up. Process Fieldbus, European fieldbus standard, which is defined in the PROFIBUS Standard. This specifies functional, electrical and mechanical characteristics for a bit-serial fieldbus system. Bus node, which essentially only sends data when instructed to do so by the Master. Absolute value encoders are always slaves. Similar to a GSD file - is used by older engineering/configuring tools. Is frequently used, but not in a unified fashion, for a data unit of 2 bytes. (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 15-101 15 Appendix 15.3 Terminology 07/05 Space for your notes 15-102 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition 16 Index Class 1 25 Class 2 25 Commissioning mode 42 Configuration 53 Connecting cover Connecting-up 18 LEDs 50 Settings 15 Connecting-up the signal and power supply cables 17 Data format 24 Device class Selecting 54 Dimension drawings 95 Direction of rotation 29 Encoder classes 23 Additional 98 Encoder profile 11 Endless axis 30 FAQ 99 GSD file 101 Reading in 52 Installation 13 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Memory error 47 Node 15 Node address 15 Operating time alarm 48 Parameterization 55 Physical measuring steps 34, 36, 39 Preset function 32 Profibus User Organization 11 Reduced diagnostics 37 Required measuring steps 35 Rotary axis 30 Software limit switch 38 Starting teach-in 43 Status bits 41 STEP 7 51 Stopping teach-in 44 Terminating resistors 15 Total resolution 30 Type file 101 Validity of the documentation and references 10 Velocity Dimension units 40 16-103 16 Index 07/05 Space for your notes 16-104 (c) Siemens AG 2005 All Rights Reserved SIMODRIVE sensor (BN) - 07/05 Edition Suggestions Siemens AG A&D MC BMS Postfach 3180 D-91050 Erlangen Corrections For Publication/Manual: SIMODRIVE sensor Absolute Value Encoder with PROFIBUS-DP Tel.: +49 (0)180 / 5050-222 [Hotline] Fax: +49 (0)9131 / 98-63315 [Documentation] eMail: mailto:motioncontrol.docu@siemens.com Manufacturer Documentation From User Manual Name: Order No.: Edition: Company/Department Should you come across any printing errors when reading this publication, please notify us on this sheet. Suggestions for improvement are also welcome. Address: Telephone: __________ / Telefax: ________ / Suggestions and/or corrections 6SN 1197-0AB10-0YP4 07/05 Siemens AG Automation and Drive Motion Control Systems Postfach 3180, D - 91050 Erlangen Bundesrepublik Deutschland www.siemens.com/motioncontrol (c) Siemens AG 2005 Subject to change without prior notice Order No.: 6SN1197-0AB10-0YP4 Printed in the Federal Republic of Germany