Download  Print this page

Advertisement

Advertisement

   Related Manuals for Siemens SIMATIC ST-1500

   Summary of Contents for Siemens SIMATIC ST-1500

  • Page 2 ___________________ Preface ___________________ Documentation guide The basics of counting, ___________ measurement and position SIMATIC detection Using the ___________ S7-1500, ET 200MP, ET 200SP High_Speed_Counter Counting, measurement and technology object position detection Using the ___________ SSI_Absolute_Encoder technology object Function Manual ___________________ Using the module ___________________ Service &...
  • Page 3 Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 4: Preface

    Preface Purpose of the documentation This documentation supports you in configuring and programming modules for counting and measurement tasks of the S7-1500, ET 200MP and ET 200SP, as well as in position feedback and position input. Basic knowledge required The following knowledge is required in order to understand the documentation: ●...
  • Page 5 Support (Page 199). ● The range of technical documentation for the individual SIMATIC products and automation systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal). ● The online catalog and the ordering system are available on the Internet (https://mall.industry.siemens.com). Counting, measurement and position detection...
  • Page 6: Table Of Contents

    Table of contents Preface ..............................3 Documentation guide ..........................9 The basics of counting, measurement and position detection ..............14 Overview of modules and properties ..................14 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) ........................18 2.2.1 Convention ..........................
  • Page 7 Table of contents 2.2.14 Signal evaluation of incremental signals ................72 2.2.14.1 Overview ..........................72 2.2.14.2 Single evaluation ........................72 2.2.14.3 Double evaluation ........................73 2.2.14.4 Quadruple evaluation ......................74 2.2.15 Clock synchronization (TM Count and TM PosInput) ............75 Basics of counting (TM Timer DIDQ) ..................
  • Page 8 Table of contents Commissioning the High_Speed_Counter ................132 3.7.1 Commissioning the technology object .................. 132 High_Speed_Counter diagnostics ..................134 3.8.1 Monitoring counter values, measured values, DIs and DQs ..........134 Using the SSI_Absolute_Encoder technology object ................136 Technology object SSI_Absolute_Encoder ................136 Overview of the configuration steps ..................
  • Page 9 Table of contents Using the digital input module ....................192 5.2.1 Configuring and assigning parameters to the module ............192 5.2.1.1 Adding a module to the hardware configuration ..............192 5.2.1.2 Open hardware configuration ....................192 5.2.1.3 Counting operating mode ..................... 193 5.2.2 Online &...
  • Page 10: Documentation Guide

    Documentation guide The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require. Basic information System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and...
  • Page 11 You must register once to use the full functionality of "mySupport". You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en). "mySupport" - Documentation In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual.
  • Page 12 ● Manuals, characteristics, operating manuals, certificates ● Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline). Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system - separated from the focus on individual products.
  • Page 13 You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300). PRONETA With SIEMENS PRONETA (PROFINET network analysis), you analyze the plant network during commissioning. PRONETA features two core functions: ● The topology overview independently scans PROFINET and all connected components.
  • Page 14 Documentation guide SINETPLAN SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves.
  • Page 15: The Basics Of Counting, Measurement And Position Detection

    The basics of counting, measurement and position detection Overview of modules and properties Modules for the S7-1500 and ET 200MP systems The table below summarizes the performance features of the modules for counting, measuring and position input for the S7-1500 and ET 200MP systems. Property S7-1500 / ET 200MP Technology module...
  • Page 16 The basics of counting, measurement and position detection 2.1 Overview of modules and properties Property S7-1500 / ET 200MP Technology module Digital input mod- Compact CPU TM Count 2x24V TM PosInput 2 TM Timer DIDQ DI 32x24VDC HF, CPU 1511C-1 16x24V DI 16x24VDC HF CPU 1512C-1 PN...
  • Page 17 The basics of counting, measurement and position detection 2.1 Overview of modules and properties Modules for the ET 200SP system The following table provides an overview of the performance features of the modules for counting, measuring and position input for the ET 200SP system. Property ET 200SP Technology module...
  • Page 18 The basics of counting, measurement and position detection 2.1 Overview of modules and properties Property ET 200SP Technology module Digital input module TM Count 1x24V TM PosInput 1 TM Timer DIDQ DI 8x24VDC HS 10x24V Support for isochronous mode X (Page 75) X (Page 75) X (Page 80) X (Page 91)
  • Page 19: Basics Of Counting, Measuring And Position Input (tm Count, Tm Posinput, Compact Cpu)

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.1 Convention Technology module: We use the term "technology module" in this documentation both for the technology modules TM Count and TM PosInput and the technology component of the compact CPUs.
  • Page 20 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Application scenarios Components required Configuration software In the user program Central operation with a STEP 7 (TIA Portal): Direct access to control and S7-1500 CPU or ET 200SP feedback interface of the...
  • Page 21 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) System environment for a Compact CPU The Compact CPUs can be used in the following system environments: Application scenarios Components required Configuration software In the user program...
  • Page 22 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Configuration via technology object For central and distributed use, we recommend the convenient, graphics-assisted configuration using a technology object. A detailed description of this configuration can be found starting from section High_Speed_Counter technology object (Page 92).
  • Page 23: Recording Of Count Signals

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.3 Recording of count signals 2.2.3.1 Counting with incremental or pulse encoder Counting refers to the recording and adding up of events. The counters of the technology modules capture and evaluate pulse and incremental signals.
  • Page 24 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Capture (Latch) You can configure an external reference signal edge that triggers the saving of the current counter value or position value as a Capture value. The following external signals can trigger the Capture function: ●...
  • Page 25: Position Input With Ssi Absolute Encoder

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.3.2 Position input with SSI absolute encoder Description You can use the TM PosInput technology modules with an SSI absolute encoder for position detection.
  • Page 26: Behavior At The Counting Limits

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.4 Behavior at the counting limits Violation of a counting limit The high counting limit is violated when the current counter value is equal to the high counting limit and another upward count pulse is received.
  • Page 27 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) The figure below shows an example for continuing the counting process after an overflow and setting the counter to the start value: The figure below shows an example for terminating counting after an overflow and setting the counter to the opposite counting limit: The figure below shows an example for continuing the counting process after an overflow...
  • Page 28: Gate Control With Incremental Or Pulse Encoder

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.5 Gate control with incremental or pulse encoder Many applications require counting processes to be started or stopped in accordance with other events.
  • Page 29: Internal Gate

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Edge-triggered opening and closing of the hardware gate with two digital inputs The figure below shows an example of opening and closing with two digital inputs. The two digital inputs are configured so that the rising edge of the hardware gate opens: The hardware gate is opened with the configured edge at the digital input that is configured for opening.
  • Page 30: Counter Behavior At Gate Start

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.5.4 Counter behavior at gate start You have the following configuration options for counter behavior upon gate start: ●...
  • Page 31: Capture (latch)

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.6 Capture (Latch) 2.2.6.1 Capture with incremental or pulse encoder Description The "Capture" function is used to save the current counter value with an external reference signal.
  • Page 32 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) The figure below shows another example of the Capture function with the following configuration: ● Start value = 0 ●...
  • Page 33 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Hardware interrupt You can configure a hardware interrupt for the Capture function. Individual hardware interrupts may be lost if the hardware interrupt rate is higher than the system acknowledgement rate.
  • Page 34: Capture With Ssi Absolute Encoder

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.6.2 Capture with SSI absolute encoder Description The "Capture" function is used to save the current position value using an external reference signal.
  • Page 35 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) The figure below shows an example of the EN_CAPTURE and EVENT_CAP bits with use of the Capture function by the rising edge at a digital input: Note The configured input filters delay the control signal of the corresponding digital input.
  • Page 36: Synchronization

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.7 Synchronization Description You use the "Synchronization" function to set the counter to the pre-defined start value with an external reference signal.
  • Page 37 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Single synchronization The figure below shows an example of the EN_SYNC_UP, EN_SYNC_DNand EVENT_SYNC bits with single synchronization by an edge at a digital input for count pulses in an upwards direction: After synchronization is enabled for counting in an upwards direction, the counter is synchronized at the first rising edge at the configured digital input.
  • Page 38 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Periodic synchronization The figure below shows an example of the EN_SYNC_UP, EN_SYNC_DN and EVENT_SYNC bits with periodic synchronization by an edge at a digital input for count pulses in an upwards direction: As long as synchronization for counting in an upwards direction is enabled, the counter is synchronized at each rising edge at the configured digital input.
  • Page 39: Synchronization By Digital Input

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.7.1 Synchronization by digital input You can trigger synchronization by edges at a digital input. Single synchronization The figure below shows an example for single synchronization by an edge at a digital input: After synchronization is enabled for counting in an upwards direction, the counter is synchronized at the first rising edge at the configured digital input.
  • Page 40 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Periodic synchronization The figure below shows an example for periodic synchronization by an edge at a digital input: As long as synchronization for counting in an upwards direction is enabled, the counter is synchronized at each rising edge at the configured digital input.
  • Page 41: Synchronization At Signal N

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.7.2 Synchronization at signal N You can trigger synchronization at signal N at the encoder input either directly or depending on the status of a digital input.
  • Page 42 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Periodic synchronization The figure below shows an example for periodic synchronization at signal N: As long as synchronization for counting in an upwards direction is enabled, the counter is synchronized at each signal N.
  • Page 43 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Enable by a digital input The figure below shows an example for periodic synchronization at signal N depending on the status of a digital input: As long as synchronization for counting up is enabled and the corresponding digital input is active, the counter is synchronized at each signal N.
  • Page 44: Comparison Values

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.8 Comparison values 2.2.8.1 Comparison values and outputs Description You can specify two comparison values to control both digital outputs of the channel independently of the user program: ●...
  • Page 45: Switching At Comparison Values With Counter Value As Reference

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.8.2 Switching at comparison values with counter value as reference The comparison values are compared with the current counter value. If the counter value meets the assigned comparison condition and the technological function of the associated digital output is enabled, the digital output is set.
  • Page 46 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting between comparison value 0 and comparison value 1 The comparison event can be configured for the digital output DQ1 if "Use by user program" has been configured for the digital output DQ0.
  • Page 47 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) The figure below shows an example of the comparison event when counting in a downward direction: To repeat the comparison event, the counter value must change and then correspond to the respective comparison value again.
  • Page 48 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting by the user program up to comparison value You can set the respective digital output to 1 (edge) by setting the control bit (Page 185) SET_DQm.
  • Page 49: Switching At Comparison Values With Position Value (ssi Absolute Value) As Reference

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.8.3 Switching at comparison values with position value (SSI absolute value) as reference The comparison values are compared with the current position value. If the position value meets the assigned comparison condition and the technological function of the associated digital output is enabled, the digital output is set.
  • Page 50 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting between comparison value and low limit The low limit corresponds to the position value "0". The digital output is set to 1 if: 0 <= position value <= comparison value The comparison event is independent of the direction of the position value change.
  • Page 51 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting at comparison value for one pulse duration The respective digital output is set to 1 for a specified period of time when the following conditions are fulfilled: ●...
  • Page 52 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting by the user program up to comparison value You can set each digital output to 1 (edge) by setting the control bit (Page 185) SET_DQm. The respective digital output is set to 0 by any of the following events: ●...
  • Page 53: Switching At Comparison Values With Measured Value As Reference

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.8.4 Switching at comparison values with measured value as reference The comparison values are compared with the current measured value. If the measured value meets the configured comparison condition and the technological function of the corresponding digital output is enabled, the digital output is set.
  • Page 54 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting between comparison value 0 and comparison value 1 The comparison event can be configured for the digital output DQ1 if "Use by user program" has been configured for the digital output DQ0.
  • Page 55: Measured Value Determination

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.9 Measured value determination 2.2.9.1 Overview of measuring functions The following measuring functions are available: Measurement type (Page 55) Description Frequency measurement The mean frequency is calculated at set measuring intervals on the...
  • Page 56: Measured Value Determination With Incremental Or Pulse Encoder

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.9.2 Measured value determination with incremental or pulse encoder Measuring range (TM Count and TM PosInput) The measuring functions have the following measuring limits: Measurement type Low measuring range limit High measuring range limit...
  • Page 57 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) The following figures show the principle of measurement and the dynamic adjustment of the measuring interval: Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 58 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Frequency measurement A value "0" is returned until the first measured value is available. The measurement process begins with the first pulse detected once the internal gate has been opened.
  • Page 59 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Period measurement The reciprocal of the frequency is output as the measured value for period measurement. A value "25 s" is returned until the first measured value is available. Velocity measurement The normalized frequency is output as the measured value in velocity measurement.
  • Page 60: Measured Value Determination With Ssi Absolute Encoder

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.9.3 Measured value determination with SSI absolute encoder Measuring range SSI absolute encoder The measuring functions have the following measuring limits: Measurement type Low measuring range limit High measuring range limit...
  • Page 61 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Frequency measurement The value "0.0" is reported in the time up to the first available measured value. The measuring process begins with the first detected change in position value. The first measured value can be calculated after the second detected change in position value at the earliest.
  • Page 62 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Velocity measurement The normalized frequency is output as the measured value in velocity measurement. You can configure the scaling using the time basis and the number of increments that your encoder delivers per unit.
  • Page 63: Hysteresis

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.10 Hysteresis 2.2.10.1 Hysteresis with incremental or pulse encoder Description Hysteresis allows you to specify a range around the comparison values within which the digital outputs are not to be switched again until the counter value has gone outside this range.
  • Page 64 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) The figure below shows an example for the hysteresis with the following configuration: ● Setting at comparison value for one pulse duration ●...
  • Page 65: Hysteresis With Ssi Absolute Encoder

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.10.2 Hysteresis with SSI absolute encoder Description Hysteresis allows you to specify a range around the comparison values within which the digital outputs are not to be switched again until the position value has gone outside this range.
  • Page 66 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) The figure below shows an example for the hysteresis with the following parameter assignment: ● Setting at comparison value for one pulse duration ●...
  • Page 67: Interrupts

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.11 Interrupts Hardware interrupt The technology module can trigger a hardware interrupt in the CPU if, for example, a comparison event occurs;...
  • Page 68: Encoder Signals

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.13 Encoder signals 2.2.13.1 24 V and TTL count signals 24 V and TTL incremental encoder count signals The 24 V incremental encoder returns the 24 V signals A, B, and N to the technology module.
  • Page 69 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 24 V and TTL pulse encoder count signals with Up/Down count signal The Up count signal is connected to terminal A. The Down count signal is connected to terminal B.
  • Page 70: Rs422 Count Signals

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.13.2 RS422 count signals RS422 incremental encoder count signals The RS422 incremental encoder sends the following differential signals to the technology module: ●...
  • Page 71 The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Count signals of RS422 pulse encoders without/with direction signal The encoder, for example a light barrier, only returns a count signal that is connected to terminal A.
  • Page 72: Ssi Signals

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.13.3 SSI signals Signals from SSI absolute encoders The SSI absolute encoder and the technology module communicate via SSI data signals DAT and /DAT (D) and the SSI clock signals CLK and /CLK (C).
  • Page 73: Signal Evaluation Of Incremental Signals

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.14 Signal evaluation of incremental signals 2.2.14.1 Overview The technology module counter counts the edges of encoder signals A and B. For incremental encoders with phase-shifted signals A and B, you can select either single or multiple evaluation to improve the resolution.
  • Page 74: Double Evaluation

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.14.3 Double evaluation With double evaluation, the rising and falling edges of signal A are evaluated. The edge direction of signal A and the level at signal B determines whether count pulses are generated in an upward or downward direction.
  • Page 75: Quadruple Evaluation

    The basics of counting, measurement and position detection 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) 2.2.14.4 Quadruple evaluation With quadruple evaluation, the rising and falling edges of signals A and B are evaluated. The edge direction of one signal and the level of the other signal determines whether count pulses are generated in an upward or downward direction.
  • Page 76: Clock Synchronization (tm Count And Tm Posinput)

    Additional information For a detailed description of isochronous mode, refer to the PROFINET with STEP 7 function manual, which is available as download at Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856). Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 77: Basics Of Counting (tm Timer Didq)

    The basics of counting, measurement and position detection 2.3 Basics of counting (TM Timer DIDQ) Basics of counting (TM Timer DIDQ) 2.3.1 Overview of applications Introduction You configure the TM Timer DIDQ and assign its parameters with the configuration software. The module's functions are controlled and monitored via the user program.
  • Page 78: Counting With Incremental Encoder

    The basics of counting, measurement and position detection 2.3 Basics of counting (TM Timer DIDQ) 2.3.2 Counting with incremental encoder You can use a few channels of a TM Timer DIDQ for simple counting tasks with an incremental encoder. Counting refers to the recording and adding up of events. The channels configured as counters each acquire the two incremental signals and evaluate these accordingly.
  • Page 79: Counting With Pulse Encoder

    The basics of counting, measurement and position detection 2.3 Basics of counting (TM Timer DIDQ) 2.3.3 Counting with pulse encoder You can use a few channels of a TM Timer DIDQ for simple counting tasks with a pulse encoder. Counting refers to the recording and adding up of events. The channels configured as counters each acquire one pulse signal and evaluate this accordingly.
  • Page 80: Count Signals

    The basics of counting, measurement and position detection 2.3 Basics of counting (TM Timer DIDQ) 2.3.4 24 V count signals Count signals of 24 V incremental encoders The 24 V incremental encoder returns the 24 V signals A and B to the technology module. The A and B signals are phase-shifted by 90°.
  • Page 81: Isochronous Mode

    Additional information For a detailed description of isochronous mode, refer to the PROFINET with STEP 7 function manual, which is available as download at Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856). Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 82: Basics Of Counting (digital Input Modules)

    The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) Basics of counting (digital input modules) 2.4.1 Overview of applications Introduction The digital input module is configured and assigned parameters using the configuration software. The module's functions are controlled and monitored via the user program. System environment The respective module can be used in the following system environments: Applications...
  • Page 83: Counting With Pulse Encoders

    The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) 2.4.2 Counting with pulse encoders Counting refers to the detection and summation of events. The modules' counters record and evaluate pulse signals. The counting direction can be specified using encoder or pulse signals or through the configuration.
  • Page 84: Behavior At The Counting Limits

    The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) 2.4.3 Behavior at the counting limits Violation of a counting limit The high counting limit is violated when the current counter value is equal to the high counting limit and another upward count pulse is received.
  • Page 85 The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) The figure below shows an example for continuing the counting process after an overflow and setting the counter to the opposite counting limit: Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 86: Gate Control

    The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) 2.4.4 Gate control Many applications require counting processes to be started or stopped in accordance with other events. In such cases, counting is started and stopped using the gate function. The digital input modules have two gates for each counting channel.
  • Page 87: Internal Gate

    The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) 2.4.4.3 Internal gate Internal gate The internal gate is open if the software gate is open and the hardware gate is open or has not been configured. The status of the internal gate is indicated by the STS_GATE feedback bit.
  • Page 88: Comparison Values

    The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) 2.4.5 Comparison values Depending on the module, you can define up to two comparison values that control a reset bit for the channel, independent of the user program. When there are two comparison values, comparison value 1 must be greater than comparison value 0.
  • Page 89 The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) Setting between comparison value and low counter limit The respective STS_DQ feedback bit is set to 1 when: Low counter limit <= counter value <= comparison value Setting between comparison value 0 and comparison value 1 The respective STS_DQ feedback bit is set to 1 when: Comparison value 0 <= counter value <= comparison value 1...
  • Page 90 The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) Not setting between comparison value 0 and comparison value 1 The respective STS_DQ feedback bit is set to 1 when: Comparison value 0 <= counter value <= comparison value 1 Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 91: Interrupts

    The basics of counting, measurement and position detection 2.4 Basics of counting (digital input modules) 2.4.6 Interrupts Hardware interrupt The module can trigger a hardware interrupt in the CPU during operation for certain events. The hardware interrupts can be enabled in the configuration. Refer to the device manual for the module to learn about the events that can trigger a hardware interrupt during operation.
  • Page 92: Isochronous Mode

    Additional information For a detailed description of isochronous mode, refer to the PROFINET with STEP 7 function manual, which is available as download at Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856). Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 93: Using The High_speed_counter Technology Object

    Using the High_Speed_Counter technology object Convention Technology module: We use the term "technology module" in this documentation both for the technology modules TM Count and TM PosInput and the technology component of the compact CPUs. High_Speed_Counter technology object STEP 7 (TIA Portal) supports you in the configuration, commissioning and diagnostics of counting and measuring functions for the following technology modules with the "Technology objects"...
  • Page 94: Overview Of The Configuration Steps

    Using the High_Speed_Counter technology object 3.3 Overview of the configuration steps Overview of the configuration steps Introduction The overview below shows the basic procedure for configuring the counting and measuring functions of the technology module with the High_Speed_Counter technology object. Requirement (TM Count and TM PosInput) Before you can use the High_Speed_Counter technology object, a project with an S7-1500 CPU or an ET 200SP CPU must be created in STEP 7 (TIA Portal) .
  • Page 95: Add Technology Object

    Using the High_Speed_Counter technology object 3.4 Add technology object Add technology object Add technology object in the project navigator When a technology object is added, an instance DB is created for the instruction of this technology object. The configuration of the technology object is stored in this instance DB. Requirement (TM Count and TM PosInput) A project with a CPU S7-1500 has been created.
  • Page 96 Using the High_Speed_Counter technology object 3.4 Add technology object Result The new technology object has now been created and stored in the project tree in the "Technology objects" folder. Object Description ① Configuration (Page 96) In the configuration dialog: Assignment of technology module and channel •...
  • Page 97: Configuring The High_speed_counter

    Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Configuring the High_Speed_Counter 3.5.1 Working with the configuration dialog You configure the properties of the technology object in the configuration window. Proceed as follows to open the configuration window of the technology object: 1.
  • Page 98 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Configuration window icons Icons in the area navigation of the configuration show additional details about the status of the configuration: The configuration contains default values and is complete. The configuration contains only default values. With these default values, you can use the technology object without additional changes.
  • Page 99: Basic Parameters

    Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter 3.5.2 Basic parameters You can establish the connection between the High_Speed_Counter technology object and the technology module under "Basic parameters". Module (TM Count and TM PosInput) You select the technology module in a subsequent dialog box. All technology modules (central or distributed) that are configured for use with a "Counting and measurement"...
  • Page 100: Counter Inputs (high_speed_counter)

    Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter 3.5.3 Counter inputs (High_Speed_Counter) Signal type You can choose from the following signal types (Page 67): Symbol Signal type Meaning Additional option-specific parameters Incremental encoder (A, B An incremental encoder with phase-shifted A Invert direction •...
  • Page 101 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Signal evaluation By configuring signal evaluation (Page 72), you can specify which edges of the signals are counted. You can select from the following options: Symbol Signal evaluation Meaning Single (Page 72) The edges of signal A are evaluated during a low level of (default) signal B.
  • Page 102 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Filter frequency Minimum pulse/break time 200 kHz** (preset for TM Count) 2.0 µs 500 kHz* 0.8 µs 1 MHz* (default at TM PosInput) 0.4 µs Only available with TM PosInput ** * Only available with TM Count and TM PosInput Sensor type (TM Count) By configuring the sensor type, you specify how the counter inputs are switched for the TM Count.
  • Page 103 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Interface Standard (TM PosInput) You use this parameter to specify whether the encoder outputs symmetric (RS422) or asymmetric (TTL) signals for the TM PosInput. You can select from the following options: Interface standard Meaning RS422, symmetrical...
  • Page 104 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Note For High_Speed_Counter as of V3.0, the following applies: You can choose "Capture at signal N" only in operating mode "Use count value as reference": Frequency This parameter is used to define the frequency of the following events: ●...
  • Page 105: Counter Behavior

    Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter 3.5.4 Counter behavior 3.5.4.1 Counting limits and start value High counting limit You limit the counting range by setting the high counting limit. You can enter a value up to 2147483647 (2 -1).
  • Page 106: Counter Behavior At Limits And Gate Start

    Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter 3.5.4.2 Counter behavior at limits and gate start Reaction to violation of a counting limit You can configure the following characteristics for violation of a counting limit (Page 25): Reaction Meaning Stop counting If a counting limit is violated, counting is stopped and the internal gate is closed.
  • Page 107: Behavior Of A Di (high_speed_counter)

    Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter 3.5.5 Behavior of a DI (High_Speed_Counter) Setting function of the DI By configuring a digital input, you specify which functions the digital input triggers at switching. You can select from the following options: Function of a digital input Meaning Additional option-specific parame-...
  • Page 108 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Note For High_Speed_Counter as of V3.0, the following applies: You can choose the "Capture" function only in operating mode "Use count value as reference". Input delay (TM Count and TM PosInput) You use this parameter to suppress signal interference at the digital inputs.
  • Page 109 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Input delay (Compact CPU) You use this parameter to suppress interference at the digital inputs of the DIn signals. Changes to the signal are only detected if they remain stable for longer than the configured input delay time.
  • Page 110 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Edge selection You can use this parameter to specify the edge of the digital input at which the configured function is triggered. The following options may be available depending on the function selected: ●...
  • Page 111: Behavior Of A Dq (high_speed_counter)

    Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter 3.5.6 Behavior of a DQ (High_Speed_Counter) Operating mode (High_Speed_Counter V3.0 or higher) The operating mode determines which value comparison functions work. Operating mode Meaning Use count value as reference The comparison functions and hardware interrupts for com- (default) pare events work with the counter value.
  • Page 112 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Function of a digital output (Page 44) Meaning Additional option-specific pa- in operating mode "Use count value rameters as reference" After set command from CPU until When a set command is sent from the CPU, the Comparison value 0 •...
  • Page 113 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Note You can select the "Between comparison value 0 and 1" and "Not between comparison value 0 and 1" functions only for digital output DQ1 and only if you have selected the "Use by user program"...
  • Page 114 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Comparison value 1 Operating mode "Use count value as reference" With the parameter assignment of the comparison value (Page 44), you specify the counter value at which the digital output DQ1 switches as a result of the selected comparison event. You must enter an integer (DINT) that is greater than comparison value 0 and less than or equal to the high counting limit.
  • Page 115 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Hysteresis (in increments) By configuring the hysteresis (Page 62), you can define a range around the comparison values. Within the hysteresis range, the digital outputs cannot switch again until the counter value is outside the range.
  • Page 116: Specify Measured Value (high_speed_counter)

    Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter 3.5.7 Specify measured value (High_Speed_Counter) Measured variable This parameter is used to specify the measured variable (Page 55) to be provided by the technology module. The technology object displays the measured value at the output parameter MeasuredValue.
  • Page 117 Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter Time base for velocity measurement This parameter defines the time base on which the velocity is to be returned. You can select from the following options: ● 1 ms ● 10 ms ●...
  • Page 118: Programming The High_speed_counter

    Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter Programming the High_Speed_Counter 3.6.1 High_Speed_Counter instruction High_Speed_Counter The High_Speed_Counter instruction is part of the High_Speed_Counter technology object. It supplies the control and feedback interface of the technology module. The High_Speed_Counter instruction thereby forms the software interface between the user program and the technology module.
  • Page 119: Call Instruction In The User Program

    Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter 3.6.2 Call instruction in the user program The High_Speed_Counter instruction can be called once for each counter in the cycle or, alternatively, in a time-controlled program. The call is not permitted in an event-controlled interrupt program.
  • Page 120: Description High_speed_counter

    Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter 3.6.3 Description High_Speed_Counter Description The High_Speed_Counter instruction is used to control the technology module counting and measuring functions via the user program. Call The instruction High_Speed_Counter must be called once per counter, either cyclically or in a time-controlled program.
  • Page 121 Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter Synchronization: The output parameter SyncStatus = TRUE indicates that a synchronization has occurred. ● The counter value is synchronized under the following conditions: – A digital input has the parameter assignment "Synchronization" or the incremental encoder has the parameter assignment "Synchronization at signal N"...
  • Page 122 Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter 3. Set the relevant Set tag for execution of the change command. 4. Use the output parameter Error to check whether an error has occurred. If no errors have occurred and the Set tag has been automatically reset by the technology object, the parameter change was successful.
  • Page 123 Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter Acknowledgment of events You acknowledge signaled events using the positive edge of the input parameter EventAck . EventAck must stay set until the technology object has reset the status bits of the following events of the count channel: ●...
  • Page 124 Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter Use digital outputs by user program (Compact CPU) You can set the DQ1 digital output with the High_Speed_Counter instruction. ● If the "Use by user program" setting is configured for "Set output". ●...
  • Page 125 Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter Changing the count direction The count direction can only be changed by the user program if "Pulse (A)" is configured as the signal type. In all other cases, the count direction is determined by the input signals of the technology module.
  • Page 126: High_speed_counter Input Parameters

    Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter 3.6.4 High_Speed_Counter input parameters Parameter Declaration Data Default Description type SwGate INPUT BOOL FALSE Control software gate: Positive edge: Software gate opens • Negative edge: Software gate closes • Together with the hardware gate, the SwGate enables the inter- nal gate.
  • Page 127: High_speed_counter Output Parameters

    Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter 3.6.5 High_Speed_Counter output parameters Parameter Declaration Data Default Description type StatusHW OUTPUT BOOL FALSE Status bit technology module: The module is configured and ready for operation. The module data is valid. StatusGate OUTPUT BOOL...
  • Page 128 Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter Parameter Declaration Data Default Description type Error OUTPUT BOOL FALSE An error has occurred. Refer to the output parameter ErrorID for the cause of the error. ErrorID OUTPUT WORD The ErrorID (Page 128) parameter displays the number of the error message.
  • Page 129: Error Codes Of Parameter Errorid

    Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter 3.6.6 Error codes of parameter ErrorID Error code Description (W#16#...) 0000 No error Error messages from technology module 80A1 POWER_ERROR from feedback interface: Incorrect supply voltage L+ 80A2 ENC_ERROR from feedback interface: Incorrect encoder signal 80A3 LD_ERROR from feedback interface: Error when loading via control interface Error messages of the instruction High_Speed_Counter...
  • Page 130 Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter Error code Description (W#16#...) 80B9 For operating mode "Use count value as reference", the following applies: New comparison value 1 does not meet the following conditions: Low counting limit <= comparison value 1 <= high counting limit •...
  • Page 131: High_speed_counter Static Variables

    Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter 3.6.7 High_Speed_Counter static variables Data type Default Access Description NewCountValue DINT Write New counter value NewReferenceValue0 DINT Write New comparison value 0 NewReferenceValue1 DINT L#10 Write New comparison value 1 NewReferenceValue0_M REAL L#0.0 Write...
  • Page 132 Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter Data type Default Access Description ManualCtrlDQ0 BOOL FALSE Write Enable setting of digital output DQ0: TRUE: SetDQ0 sets DQ0 • Control bit TM_CTRL_DQ0 = FALSE • FALSE: Setting not enabled • Control bit TM_CTRL_DQ0 = TRUE •...
  • Page 133: Commissioning The High_speed_counter

    Using the High_Speed_Counter technology object 3.7 Commissioning the High_Speed_Counter Commissioning the High_Speed_Counter 3.7.1 Commissioning the technology object A graphic display of the block in the commissioning editor helps you with commissioning and the function test for the technology object. You can change specific parameters of the High_Speed_Counter instruction in CPU/IM online mode and monitor their effects.
  • Page 134 Using the High_Speed_Counter technology object 3.7 Commissioning the High_Speed_Counter ● New start value (NewStartValue) ● Start and stop counter (SwGate) ● Enable Capture (CaptureEnable) ● Enable synchronization (SyncEnable) ● Acknowledgment of signaled error states (ErrorAck) ● Resetting the status flag (EventAck) Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 135: High_speed_counter Diagnostics

    Using the High_Speed_Counter technology object 3.8 High_Speed_Counter diagnostics High_Speed_Counter diagnostics 3.8.1 Monitoring counter values, measured values, DIs and DQs You use the diagnostic functions to monitor the counting and measuring functions. Requirements ● There is an online connection between STEP 7 (TIA Portal) and the CPU. ●...
  • Page 136 Using the High_Speed_Counter technology object 3.8 High_Speed_Counter diagnostics Additional information on status displays is available in the context-sensitive help for each event in STEP 7 (TIA Portal). When the CPU is in STOP, the status display is not updated. Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 137: Using The Ssi_absolute_encoder Technology Object

    Using the SSI_Absolute_Encoder technology object Technology object SSI_Absolute_Encoder STEP 7 (TIA Portal) supports you in the configuration, commissioning and diagnostics of counting and measuring functions for the technology module TM PosInput: with the "Technology objects" function ● In STEP 7 (TIA Portal), you configure the SSI_Absolute_Encoder technology object with the settings for the position input with an SSI absolute encoder.
  • Page 138: Overview Of The Configuration Steps

    Using the SSI_Absolute_Encoder technology object 4.2 Overview of the configuration steps Overview of the configuration steps Introduction The overview below shows the basic procedure for configuring the position input and measuring functions of the technology module with the SSI_Absolute_Encoder technology object.
  • Page 139: Add Technology Object

    Using the SSI_Absolute_Encoder technology object 4.3 Add technology object Add technology object Add technology object in the project navigator When a technology object is added, an instance DB is created for the instruction of this technology object. The configuration of the technology object is stored in this instance DB. Requirement A project with a CPU S7-1500 has been created.
  • Page 140 Using the SSI_Absolute_Encoder technology object 4.3 Add technology object Result The new technology object has now been created and stored in the project tree in the "Technology objects" folder. Object Description ① Configuration (Page 140) In the configuration dialog: Assignment of technology module and channel •...
  • Page 141: Configuring Ssi_absolute_encoder

    Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Configuring SSI_Absolute_Encoder 4.4.1 Working with the configuration dialog You configure the properties of the technology object in the configuration window. Proceed as follows to open the configuration window of the technology object: 1.
  • Page 142: Basic Parameters

    Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder 4.4.2 Basic parameters Under "Basic parameters", you can establish the connection between the technology object and the TM PosInput technology module. Module You select the technology module in a subsequent dialog box. All TM PosInput technology modules (central or distributed) that are configured for use with a "Counting and measurement"...
  • Page 143: Ssi Absolute Encoder

    Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder 4.4.3 SSI absolute encoder Frame length With the parameter assignment of the frame length, you specify the number of bits of an SSI frame of the SSI absolute encoder (Page 24) used. You can find the frame length of your SSI absolute encoder in the data sheet of the encoder.
  • Page 144 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder ● 48 µs ● 64 µs Note If you select the "Automatic" option, the monoflop time automatically adapts to the encoder used. In isochronous mode, the "Automatic" option corresponds to a monoflop time of 64 µs. If the monoflop time of the employed SSI absolute value encoder is less than 64 µs, you can select the value of the encoder to achieve faster isochronous times.
  • Page 145 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Bit number MSB of the position value This parameter is used to specify the bit number of the MSB (most significant bit) of the position value in the frame of the SSI absolute encoder. In this way you limit the range in the frame that supplies the position value.
  • Page 146: Behavior Of A Di (ssi_absolute_encoder)

    Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder 4.4.4 Behavior of a DI (SSI_Absolute_Encoder) Setting function of the DI By configuring a digital input, you specify which functions the digital input triggers at switching. You can select from the following options: Function of a digital Meaning Additional option-specific parame-...
  • Page 147 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Note If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs. Note You configure the input delay under "Behavior of DI0" for all digital inputs together. The input delay is also displayed under "Behavior of DI1".
  • Page 148: Behavior Of A Dq (ssi_absolute_encoder)

    Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder 4.4.5 Behavior of a DQ (SSI_Absolute_Encoder) Operating mode With the operating mode, you specify the reference value with which the comparison functions work. Operating mode Meaning Use position value (SSI absolute The comparison functions and hardware interrupts for compare value) as reference events work with the position value.
  • Page 149 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Function of a digital output Meaning Additional option-specific pa- (Page 48) in operating mode "Use rameters position value (SSI absolute val- ue) as reference" After set command from CPU until When a set command is sent from the CPU, the Comparison value 0 •...
  • Page 150 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Comparison value 0 Operating mode "Use position value (SSI absolute value) as reference" With the parameter assignment of the comparison value (Page 48), you specify the position value at which the digital output DQ0 switches as a result of the selected comparison event. You must enter a positive integer (DINT) that is less than comparison value 1.
  • Page 151 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Count direction You use this parameter to specify the direction of position value change for which the selected function is valid. You can select from the following options: Direction of position value Meaning change In both directions...
  • Page 152: Specify Measured Value (ssi_absolute_encoder)

    Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder 4.4.6 Specify measured value (SSI_Absolute_Encoder) Measured variable With this parameter you specify whether the technology module is to provide a certain measured variable (Page 59) or the complete SSI frame. You can select from the following options: Option Meaning Additional option-specific pa-...
  • Page 153 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Update time By configuring the update time (Page 59) in milliseconds, you can specify the time interval between two measured value updates. Unsteady measured variables can be smoothed through longer update times If you enter "0", the measured value is updated once per module-internal cycle.
  • Page 154: Examples Of The Frame Format

    Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder 4.4.7 Examples of the frame format Example 1 In this example the SSI absolute encoder has the following specification: ● The encoder has a resolution of 13 bits per revolution and a value range of 12 bits of revolutions.
  • Page 155 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Example 2 In this example the SSI absolute encoder has the following specification: ● The encoder has a resolution of 17 bits per revolution and a value range of 11 bits of revolutions.
  • Page 156 Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder Position value The position value supplied in Gray code is converted into binary code by the technology module and returned right-justified in the feedback interface: The special bits are ignored in this case. The parity bit is evaluated but is not returned with the position value: Multiturn bit as binary code Singleturn bit as binary code Counting, measurement and position detection...
  • Page 157: Programming The Ssi_absolute_encoder

    Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder Programming the SSI_Absolute_Encoder 4.5.1 Instruction SSI_Absolute_Encoder SSI_Absolute_Encoder The SSI_Absolute_Encoder instruction is part of the SSI_Absolute_Encoder technology object. It supplies the control and feedback interface of the TM PosInput technology module. The SSI_Absolute_Encoder instruction thereby forms the software interface between the user program and the technology module.
  • Page 158: Call Instruction In The User Program

    Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder 4.5.2 Call instruction in the user program The SSI_Absolute_Encoder instruction can be called once per channel, either cyclically or in a time-controlled program. The call is not permitted in an event-controlled interrupt program. Procedure Proceed as follows to call the instruction in the user program: 1.
  • Page 159: Description Ssi_absolute_encoder

    Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder 4.5.3 Description SSI_Absolute_Encoder Description The SSI_Absolute_Encoder instruction is used to control the position input and measuring functions of the technology module TM PosInput via the user program. Call The instruction must be called once per channel, either cyclically or in a time-controlled program.
  • Page 160 Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder Parameter changes via the user program Proceed as follows to modify parameters using the user program: 1. Check the relevant Set tag to establish whether the technology object is ready for the parameter change (Set tag = FALSE) or whether a change job is still running (Set tag = TRUE).
  • Page 161 Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder Acknowledgment of events You acknowledge signaled events using the positive edge of the input parameter EventAck . EventAck must stay set until the technology object has reset the status bits of the following events of the count channel: ●...
  • Page 162: Input Parameter Ssi_absolute_encoder

    Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder 4.5.4 Input parameter SSI_Absolute_Encoder Parameter Declaration Data Default Description type CaptureEna- INPUT BOOL FALSE Enable Capture function After the enable, a Capture event occurs at the next configured edge at the relevant digital input. A negative edge at CaptureEn- able resets the output parameter CaptureStatus.
  • Page 163: Output Parameter Ssi_absolute_encoder

    Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder 4.5.5 Output parameter SSI_Absolute_Encoder Parameter Declaration Data Default Description type StatusHW OUTPUT BOOL FALSE Status bit technology module: The module is configured and ready for operation. The module data is valid. StatusUp OUTPUT BOOL...
  • Page 164 Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder Parameter Declaration Data Default Description type Measured- OUTPUT REAL Current measured value for frequency, period duration or velocity Value (depending on configuration) Either MeasuredValue or CompleteSSIFrame is valid, depending on the parameter assignment in the technology object under "Measured value".
  • Page 165: Error Codes Of Parameter Errorid

    Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder 4.5.6 Error codes of parameter ErrorID Error code Description (W#16#...) 0000 No error Error messages from technology module 80A1 POWER_ERROR from feedback interface: Incorrect supply voltage L+ 80A2 ENC_ERROR from feedback interface: Incorrect encoder signal 80A3 LD_ERROR from feedback interface: Error when loading via control interface Error messages of the instruction SSI_Absolute_Encoder...
  • Page 166: Static Tags Ssi_absolute_encoder

    Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder 4.5.7 Static tags SSI_Absolute_Encoder Data type Default Access Description NewReferenceValue0 DINT Write New comparison value 0 in operating mode "Use position value (SSI absolute value) as reference" NewReferenceValue1 DINT L#10 Write New comparison value 1 in operating mode "Use position value (SSI absolute value) as reference"...
  • Page 167: Commissioning Ssi_absolute_encoder

    Using the SSI_Absolute_Encoder technology object 4.6 Commissioning SSI_Absolute_Encoder Commissioning SSI_Absolute_Encoder 4.6.1 Commissioning the technology object A graphic display of the block in the commissioning editor helps you with commissioning and the function test for the technology object. You can change specific parameters of the SSI_Absolute_Encoder instruction in CPU/IM online mode and monitor their effects.
  • Page 168: Ssi_absolute_encoder Diagnostics

    Using the SSI_Absolute_Encoder technology object 4.7 SSI_Absolute_Encoder diagnostics SSI_Absolute_Encoder diagnostics 4.7.1 Monitoring counter values, measured values, DIs and DQs The diagnostic functions are used to monitor the position input and measuring functions. Requirements ● There is an online connection between STEP 7 (TIA Portal) and the CPU. ●...
  • Page 169 Using the SSI_Absolute_Encoder technology object 4.7 SSI_Absolute_Encoder diagnostics Display The following values are read by the technology object from the feedback interface and displayed: ● Event display/diagnostics information ● Signal states of the digital inputs and digital outputs ● Position value ●...
  • Page 170: Using The Module

    Using the module Using the technology module 5.1.1 Convention Technology module: We use the term "technology module" in this documentation both for the technology modules TM Count and TM PosInput and the technology component of the compact CPUs. 5.1.2 Configuring a module 5.1.2.1 Adding a technology module for hardware configuration (TM Count and TM PosInput) Requirement...
  • Page 171: Adding A Technology Module To Hardware Configuration (compact Cpu)

    Using the module 5.1 Using the technology module 5.1.2.2 Adding a technology module to hardware configuration (Compact CPU) Requirement The project has been created. Procedure To add a Compact CPU to the project tree, follow these steps: 1. Double-click "Add new device". The "Add new object"...
  • Page 172: Parameter Assignment Options

    Using the module 5.1 Using the technology module 5.1.2.3 Parameter assignment options Counting, measuring and position input with SSI absolute encoder For the counting and measuring function and the position input with an SSI absolute encoder, you have two options for parameter assignment and control of the technology module: ●...
  • Page 173: Basic Parameters

    Using the module 5.1 Using the technology module 5.1.2.4 Basic parameters Reaction to CPU STOP Reaction to CPU STOP You set the response of the technology module for each channel to CPU STOP in the basic parameters of the device configuration. Option Meaning Continue operation...
  • Page 174 Using the module 5.1 Using the technology module Substitute value for DQ0 (Compact CPU) You can use this parameter to specify the value to be output for a STOP of the Compact CPU in the feedback interface for DQ0 in the context of the "Substitute value for DQ0" behavior.
  • Page 175 Using the module 5.1 Using the technology module Enable additional diagnostic interrupts You use this parameter to specify whether diagnostic interrupts are to be triggered for additional errors. See the device manual for the technology module to find out which errors during operation can trigger a diagnostic interrupt.
  • Page 176 Using the module 5.1 Using the technology module Selection of the operating mode for the channel You use this parameter in "Manual operation" to specify the main task for which the channel of the technology module is used. This defines the setting options under "Parameters" (hardware configuration).
  • Page 177 Using the module 5.1 Using the technology module Module parameters for SSI absolute encoders If you use an TM PosInput with an SSI absolute encoder, you need to configure the following parameters for the encoder signals of the channel. ● Signal type ●...
  • Page 178 Further configuring You can perform additional configuration using an axis technology object of S7-1500 Motion Control . See the S7-1500 Motion Control (http://support.automation.siemens.com/WW/view/en/59381279) function manual for further details on configuring and commissioning position input. Hardware interrupts You can set for each channel the events which are to trigger a hardware interrupt during operation when assigning the basic parameters of the technology module.
  • Page 179 Using the module 5.1 Using the technology module Lost hardware interrupt If an event occurs which is supposed to trigger a hardware interrupt but the previous, identical event has not yet been processed, no further hardware interrupt is triggered. The hardware interrupt is lost.
  • Page 180 Using the module 5.1 Using the technology module Hardware Available in counting Available in measuring Available in Description Event interrupt mode using mode using operating Type mode Position number Incremen- SSI abso- Incremen- SSI abso- input for "Mo- tal or pulse lute en- tal or pulse lute en-...
  • Page 181: Additional Parameters For Compact Cpu

    Using the module 5.1 Using the technology module 5.1.2.5 Additional parameters for Compact CPU Introduction When using a Compact CPU, the following parameters are additionally available for the signals of the high-speed counter. Compatibility 1511C (high-speed counters of Compact CPU 1512C-1 PN) Front connector assignment same as CPU 1511C You can use this parameter to specify if the pin assignment for the front connector of the CPU 1511C-1 PN is to be used for the high-speed counter of the CPU 1512C-1 PN:...
  • Page 182 Using the module 5.1 Using the technology module Hardware inputs/outputs Clock generator input (A) / Pulse input (A) / Clock generator forward (A) This parameter specifies which input is used for the encoder signal A for the respective counter. The value cannot be changed. Clock generator input (B) / Pulse input (B) / Clock generator forward (B) If you use an encoder with multiple signals for the respective counter, this parameter specifies which input is used for the encoder signal B.
  • Page 183 Using the module 5.1 Using the technology module Measuring input This parameter is used to define the hardware input which is used as the external measuring input for saving the encoder position. You can select from the following options: Option Meaning None No external measuring input is used.
  • Page 184: Parameter Assignment Of Module

    Using the module 5.1 Using the technology module 5.1.3 Parameter assignment of module 5.1.3.1 Parameter setting (hardware configuration) Opening (TM Count and TM PosInput) Proceed as follows: 1. Open the device configuration of the CPU or IM. 2. Select the device view. 3.
  • Page 185 Using the module 5.1 Using the technology module Additional information Additional information on the diagnostic alarms and possible remedies can be found in the technology module device manual. Note Position input for Motion Control In operating mode "Position input for "Motion Control" technology object", channel diagnostics is not available for the technology module.
  • Page 186: Control And Feedback Interface (tm Count, Tm Posinput)

    Using the module 5.1 Using the technology module 5.1.5 Control and feedback interface (TM Count, TM PosInput) Information on using the control and feedback interface can be found under Overview of application options (Page 18). 5.1.5.1 Assignment of the control interface The user program uses the control interface to influence the behavior of the technology module.
  • Page 187 Using the module 5.1 Using the technology module Byte offset from Parameter Meaning start address LD_SLOT_1* Specifies the significance of the value in Slot 1 Bit 7 Bit 6 Bit 5 Bit 4 No action, idle Load count value (with incremental or pulse encoder) Invalid Load start value (with incremental or pulse...
  • Page 188 Using the module 5.1 Using the technology module Notes on the control bits Control bit Notes EN_CAPTURE Use this bit to enable the Capture function. Resetting this bit resets a set EVENT_CAP in the feedback interface. EN_SYNC_DN Use this bit to enable the synchronization of the counter when counting in downward direction with an incremental encoder or pulse encoder.
  • Page 189: Assignment Of The Feedback Interface

    Using the module 5.1 Using the technology module 5.1.5.2 Assignment of the feedback interface The user program receives current values and status information from the technology module via the feedback interface. Feedback interface per channel The following table shows the assignment of the feedback interface: Byte offset from Parameter Meaning...
  • Page 190 Using the module 5.1 Using the technology module Notes on the feedback bits Feedback bit Notes ENC_ERROR This bit indicates that one of the following errors has occurred at the encoder signals (retentive) for the respective technology module: TM Count: Wire break of digital input A, B, or N (with push-pull encoder) •...
  • Page 191 Using the module 5.1 Using the technology module Feedback bit Notes LD_STS_SLOT_0 This bit indicates by a status change (toggling) that the load request for Slot 0 (LD_SLOT_0) has been detected and executed. LD_STS_SLOT_1 This bit indicates by a status change (toggling) that the load request for Slot 1 (LD_SLOT_1) has been detected and executed.
  • Page 192 Using the module 5.1 Using the technology module Complete acknowledgment principle Saving bits are acknowledged according to the complete acknowledgment principle. The figure below shows an example of the sequence of the complete acknowledgment principle in the event of an overflow: ①...
  • Page 193: Using The Digital Input Module

    Using the module 5.2 Using the digital input module Using the digital input module 5.2.1 Configuring and assigning parameters to the module 5.2.1.1 Adding a module to the hardware configuration Requirements ● The project has been created. ● The CPU has been created. ●...
  • Page 194: Counting Operating Mode

    Using the module 5.2 Using the digital input module 5.2.1.3 Counting operating mode In counting operating mode, you can set the following parameters for each channel. Note Some of the parameters and options are not available for all digital input modules. See the module's device manual for the associated parameters and options.
  • Page 195 Using the module 5.2 Using the digital input module Reaction to violation of a counting limit The following behavior can be configured for Violation of the counter high limit in the upward direction or the counter low limit in the downward direction (Page 83): Reaction Meaning Stop counting...
  • Page 196 Using the module 5.2 Using the digital input module Set output Use this parameter to specify the Function (Page 87) that controls the STS_DQ feedback bit. You can use the STS_DQ reset bit in order to control a digital output module's digital output. You can select from the following options: Option Meaning...
  • Page 197 Using the module 5.2 Using the digital input module High counting limit You limit the counting range by setting the counter high limit. The maximum value for the counter high limit depends on the module: High counting limit DI 8x24VDC HS DI 32x24VDC HF, DI 16x24VDC HF Maximum value...
  • Page 198 Using the module 5.2 Using the digital input module Hardware interrupt: Comparison event for DQ occurred This parameter specifies whether a hardware interrupt is generated when a comparison event occurs based on the comparison function that was selected under "Set output". The hardware interrupt is not enabled in the default setting.
  • Page 199: Online & Diagnostics Module

    Using the module 5.2 Using the digital input module 5.2.2 Online & diagnostics module 5.2.2.1 Displaying and evaluating diagnostics The online and diagnostics view enables hardware diagnostics. You can also ● Obtain information on the module (e.g., Firmware version and serial number) ●...
  • Page 200: Service & Support

    Our Service & Support accompanies you worldwide in all matters concerning automation and drive technology from Siemens. We provide direct on-site support in more than 100 countries through all phases of the life cycle of your machines and plants.
  • Page 201 The comprehensive online information platform supports you in all aspects of our Service & Support at any time and from any location in the world. You can find Online Support at the following address on the Internet (http://www.siemens.com/automation/service&support). Technical Consulting Support in planning and designing your project: From detailed actual-state analysis, definition of the goal and consultation on product and system questions right through to the creation of the automation solution.
  • Page 202 At your service locally, around the globe: your partner for consultation, sales, training, service, support, spare parts... for the entire range of products from Industry Automation and Drive Technologies. You can find your personal contact in our contacts database on the Internet (http://www.siemens.com/automation/partner). Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...
  • Page 203: Index

    Index Digital input module Applications, 81 Hardware configuration, 192 Performance features, 14, 16 Absolute encoder, 24 Digital output Comparison value, 43, 110, 147 Functions, 110, 147 Dual code, 66 Basic parameters High_Speed_Counter, 98 SSI_Absolute_Encoder, 141 Technology module, 172 Enable Diagnostic interrupt, 66 Hardware interrupt, 66, 90 Error response Call...
  • Page 204 Index Output parameters, 127 Programming, 118 Sensor type, 100 Static tags, 131 Signal evaluation, 100 Hysteresis, 23, 24, 62, 64, 114, 150 Signal N, 100 Signal type, 99 Sinking output, 100 Software gate, 22, 27, 82, 85 Input parameters Sourcing output, 100 High_Speed_Counter, 125 SSI absolute encoder, 142 SSI_Absolute_Encoder, 161...
  • Page 205 Index Velocity measurement, 54 Wire break, 173 Counting, measurement and position detection Function Manual, 12/2017, A5E32009889-AG...

This manual also for:

Simatic et 200mpSimatic et 200sp

Comments to this Manuals

Symbols: 0
Latest comments: