Siemens SIMATIC ET 200S Operating Instructions Manual

Siemens SIMATIC ET 200S Operating Instructions Manual

Technological functions
Hide thumbs Also See for SIMATIC ET 200S:
Table of Contents

Advertisement

SIMATIC ET 200S SIMATIC ET 200S Technological Functions
SIMATIC
ET 200S
Technological Functions
Operating Instructions
02/2007
A5E00124867-05
______________
Preface
______________
1Count24V/100kHz
______________
1Count5V/500kHz
______________
1SSI
______________
2PULSE
1
2
3
4
5

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC ET 200S

  • Page 1 ______________ Preface SIMATIC ET 200S SIMATIC ET 200S Technological Functions ______________ 1Count24V/100kHz ______________ 1Count5V/500kHz SIMATIC ______________ 1SSI ET 200S Technological Functions ______________ 2PULSE Operating Instructions 02/2007 A5E00124867-05...
  • Page 2 Trademarks All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
  • Page 3: Table Of Contents

    Table of contents Preface ..............................9 1Count24V/100kHz..........................11 Product Overview.........................11 Clocked Mode ..........................14 Example: Start 1Count24V/100kHz .....................15 Terminal Assignment Diagram.....................19 Settings modes of the 1Count24V/100kHz..................20 Count Modes..........................21 2.6.1 Overview ............................21 2.6.2 Endless Counting.........................23 2.6.3 Once-Only Counting ........................24 2.6.4 Periodic Counting.........................27 2.6.5 Behavior of the Digital Input......................29 2.6.6...
  • Page 4 Table of contents Evaluation of count and direction signal ................... 106 2.10 Behavior at CPU-Master-STOP ....................109 2.11 Technical Specifications......................111 1Count5V/500kHz..........................115 Product Overview........................115 Clocked Mode ........................... 117 Example: Start 1Count5V/500kHz .................... 119 Terminal Assignment Diagram....................123 Operating mode of the 1Count5V/500kHz ................124 Count Modes..........................
  • Page 5 Table of contents 1SSI............................219 Product Overview........................219 Clocked Mode ..........................222 Example: Starting 1SSI......................223 Terminal Assignment Diagram....................227 Configuring standard mode and fast mode................228 Functions of the 1SSI.........................229 4.6.1 Overview of 1SSI functions......................229 4.6.2 Encoder Value Detection ......................230 4.6.3 Gray/Binary Converter .......................232 4.6.4 Transmitted Encoder Value and Standardization ..............232 4.6.5...
  • Page 6 Table of contents Tables Table 2-1 Terminal Assignment of the 1Count24V/100kHz ................ 19 Table 2-2 RESET States ..........................22 Table 2-3 Feedback Interface (Inputs) ......................46 Table 2-4 Control Interface (Outputs)......................47 Table 2-5 Notes on the Control Bits ......................48 Table 2-6 Notes on the Feedback Bits ......................
  • Page 7: Table 2-12 Possible Measuring Ranges With Error Indication

    Table of contents Table 3-6 Notes on the Control Bits ......................154 Table 3-7 Notes on the Feedback Bits.......................155 Table 3-8 Access to the Control and Feedback Interface in STEP 7 Programming........156 Table 3-9 Parameter List for Counting Modes ...................160 Table 3-10 Calculation of the Integration Time ....................167 Table 3-11 Calculation of the Update Time....................169...
  • Page 8 Table of contents Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 9: Preface

    The index contains keywords that come up in the manual. Additional Support Please talk to your Siemens contact at one of our agencies or local offices if you have any questions about the products described here and do not find the answers in this manual.
  • Page 10 Technical Support You will find technical support for all A&D products • By filling out a Support Request at: http://www.siemens.de/automation/support-request • Phone: + 49 180 5050 222 • Fax:+ 49 180 5050 223 For additional information about our technical support, refer to the Internet at http://www.siemens.com/automation/service.
  • Page 11: 1Count24V/100Khz

    1Count24V/100kHz Product Overview Order Number 6ES7 138-4DA04-0AB0 Compatibility The 1Count24V/100kHz with the order number 6ES7 138-4DA04-0AB0 replaces the 1Count24V/100kHz with the order number 6ES7 138-4DA03-0AB0 with full compatibility. In STEP 7 version V5.3 SP2 and later, you can use it in non-isochrone and isochrone modes. Features •...
  • Page 12 – You can change the integration time and the update time during operation Configuration You can use either of the following to configure the 1Count24V/100kHz: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.3 SP2 and later, or with the HSP (hardware support package available online) STEP 7 V.5.2 SP1 and later.
  • Page 13 1Count24V/100kHz 2.1 Product Overview Identification Data • Hardware release status • Firmware release status • Serial number See also ET 200S Distributed I/O System Manual, section: Identification Data Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 14: Clocked Mode

    1Count24V/100kHz 2.2 Clocked Mode Clocked Mode Note The principles of isochrone mode are described in a separate manual. See Isochrone Mode Function Manual (A5E00223279). Hardware Requirements You will require the following for the 1Count24V/100kHz in isochrone mode: • A CPU that supports isochrone mode •...
  • Page 15: Example: Start 1Count24V/100Khz

    1Count24V/100kHz 2.3 Example: Start 1Count24V/100kHz Example: Start 1Count24V/100kHz Introduction These instructions guide you to a functioning application that will enable you to count the switching operations of a contact and become familiar with and check the basic hardware and software functions of the 1Count24/100kHz. The counting mode used in this example is "Count continuously".
  • Page 16 1Count24V/100kHz 2.3 Example: Start 1Count24V/100kHz Configuring with STEP 7 using HW Config You must first adapt the hardware configuration of your existing ET 200S station. 1. Open the relevant project in SIMATIC Manager. 2. Open the HW Config configuration table in your project. 3.
  • Page 17 1Count24V/100kHz 2.3 Example: Start 1Count24V/100kHz Integration into the User Program (not for modified user data interface) 1. Create block FC101 and integrate it in your control program (in OB1, for example). This block requires the data block DB1 with a length of 16 bytes. The start address of the module in the following example is 256.
  • Page 18 1Count24V/100kHz 2.3 Example: Start 1Count24V/100kHz Testing Use "Monitor/Modify Variables" to monitor the count value and the gate. 1. Select the "Block" folder in your project. Choose the "Insert > S7 Block > Variable Table" menu command to insert the VAT 1 variable table, and then confirm with "OK". 2.
  • Page 19: Terminal Assignment Diagram

    1Count24V/100kHz 2.4 Terminal Assignment Diagram Terminal Assignment Diagram Wiring Rules The cables (terminals 1 and 5 and terminals 2 and 8) must be shielded. The shield must be ET 200S Distributed I/O supported at both ends. To do this use the shield contact (see the System manual).
  • Page 20: Settings Modes Of The 1Count24V/100Khz

    1Count24V/100kHz 2.5 Settings modes of the 1Count24V/100kHz Settings modes of the 1Count24V/100kHz Introduction To begin with, decide how you want to use the 1Count24V/100kHz. You can choose between the following modes: Counting modes Measuring modes Position feedback Count continuously Frequency measurement Position detection Count once Rotational speed measurement...
  • Page 21: Count Modes

    1Count24V/100kHz 2.6 Count Modes Count Modes 2.6.1 Overview Principle The counting modes are used in counting applications (for counting of items, for example). For the "Counting modes" parameter, you can select from the following modes: • Count continuously (for position detection with incremental encoders, for example) •...
  • Page 22: Table 2-2 Reset States

    1Count24V/100kHz 2.6 Count Modes Gate Control To control the 1Count24V/100kHz, you have to use the gate functions. Main Count Direction With the main count direction, you assign which RESET states (status following parameter assignment) the load value and count value can take on. It is thus possible to create incrementing or decrementing count applications.
  • Page 23: Endless Counting

    1Count24V/100kHz 2.6 Count Modes 2.6.2 Endless Counting Definition In this mode, the 1Count24V/100kHz counts continuously starting from the load value: • If the 1Count24V/100kHz reaches the high counting limit when counting up, and another count pulse then comes, it will jump to the low counting limit and continue counting from there without losing a pulse.
  • Page 24: Once-Only Counting

    1Count24V/100kHz 2.6 Count Modes Influencing the Behavior of the Digital Outputs via: • Hysteresis • Pulse duration Changing Values during Operation The following values can be changed during operation: • Load value (LOAD_PREPARE) • Count (LOAD_VAL) • Comparison value 1 (CMP_VAL1) •...
  • Page 25 1Count24V/100kHz 2.6 Count Modes • When the count direction is down: – Counts starting from the load value. – Counts up or down. – When the low counting limit is reached, the 1Count24V/100kHz jumps to the load value and the gate is closed. –...
  • Page 26 1Count24V/100kHz 2.6 Count Modes Function of the Digital Input For the "Function DI" parameter, select one of the following functions for the digital input: • Input • HW gate • Latch function • Synchronization Function of the Digital Outputs For the "Function DO1" and "Function DO2" parameters, select one of the following functions for each digital output: •...
  • Page 27: Periodic Counting

    1Count24V/100kHz 2.6 Count Modes 2.6.4 Periodic Counting Definition In this mode, the 1Count24V/100kHz counts periodically, depending on the main count direction set. • When there is no main count direction: – Counts as of the load value. – Counts up or down. –...
  • Page 28 1Count24V/100kHz 2.6 Count Modes Figure 2-6 Periodic Counting with Up as the Main Count Direction Function of the Digital Input Select one of the following functions for the digital input: • Input • Hardware gate • Latch Function • Synchronization Function of the Digital Outputs Select one of the following functions for each digital output: •...
  • Page 29: Behavior Of The Digital Input

    1Count24V/100kHz 2.6 Count Modes Changing values during operation The following values can be changed during operation: • Load value (LOAD_PREPARE) • Counter status (LOAD_VAL) • Comparison value 1 (CMP_VAL1) • Comparison value 2 (CMP_VAL2) • Function and behavior of the digital outputs (C_DOPARAM) See also Latch Function (Page 33) Synchronization (Page 36)
  • Page 30: Gate Functions In Count Modes

    1Count24V/100kHz 2.6 Count Modes 2.6.6 Gate Functions in Count Modes Software Gate and Hardware Gate The 1Count24V/100kHz has two gates • A software gate (SW gate), which is controlled by the SW_GATE control bit. The software gate can only be opened by a positive edge of the SW_GATE control bit. It is closed when this bit is reset.
  • Page 31 1Count24V/100kHz 2.6 Count Modes Canceling- and Interrupting-Type Gate Function When assigning the gate function ("Gate Function" parameter), you can specify whether the internal gate is to cancel or interrupt counting. When counting is canceled, after the gate is closed and restarted, counting starts again from the beginning. When counting is interrupted, after the gate is closed and restarted, counting continues from the previous value.
  • Page 32 1Count24V/100kHz 2.6 Count Modes Gate Control by Means of the SW Gate and HW Gate If the SW gate opens when the HW gate is already open, counting continues starting from the current count. When the HW gate is opened, one of the following occurs, depending on the parameter assignment: •...
  • Page 33: Latch Function

    1Count24V/100kHz 2.6 Count Modes 2.6.7 Latch Function Introduction There are two latch functions: • The Latch and Retrigger function • The Latch function The Latch and Retrigger Function Requirement In order to use this function, you must first select it with the "Latch and Retrigger on Positive Edge"...
  • Page 34 1Count24V/100kHz 2.6 Count Modes The stored count rather than the current count is indicated in the feedback interface. The STS_DI bit indicates the status of the latch and retrigger signal. The latch value is preassigned with its RESET state. It is not changed when the SW gate is opened.
  • Page 35 1Count24V/100kHz 2.6 Count Modes The latch value is always the exact count at the time of the positive edge on the digital input The stored count rather than the current count is indicated in the feedback interface. The STS_DI bit indicates the level of the latch signal. Direct loading of the counter does not cause the indicated stored count to be changed.
  • Page 36: Synchronization

    1Count24V/100kHz 2.6 Count Modes 2.6.8 Synchronization Requirement In order to use this function, you must first select it with the "Synchronize on Positive Edge" Function DI parameter. Description Figure 2-11 Once-Only and Periodic Synchronization If you have assigned synchronization, the rising edge of a reference signal on the input sets the 1Count24V/100kHz to the load value.
  • Page 37: Behavior Types Of The Outputs In Count Modes

    1Count24V/100kHz 2.6 Count Modes The following conditions apply: • The counting mode must have been started with the SW gate. • The "Enable synchronization CTRL_SYN" control bit must be set. • In once-only synchronization, the first edge loads the 1Count24V/100kHz with the load value after the enable bit is set.
  • Page 38 1Count24V/100kHz 2.6 Count Modes Output You can switch the outputs on and off with the control bits SET_DO1 and SET_DO2. The control bits CTRL_DO1 or CTRL_DO2 must be set for this. You can query the status of the outputs with the status bits STS_DO1 and STS_DO2 in the feedback interface.
  • Page 39 1Count24V/100kHz 2.6 Count Modes Pulse Duration when the Comparison Value is Reached The pulse duration begins when the respective digital output is set. The inaccuracy of the pulse duration is less than 2 ms. The pulse duration can be set to suit the actuators used. The pulse duration specifies how long the output is to be set for.
  • Page 40 1Count24V/100kHz 2.6 Count Modes Isochrone mode: In isochrone mode, as well, the DO1 output is switched as soon as the comparison condition is fulfilled and is therefore independent of the bus cycle. The status of the virtual output DO2 is signaled at time T Figure 2-12 V2 <...
  • Page 41 1Count24V/100kHz 2.6 Count Modes Hysteresis An encoder can remain at a particular position and then fluctuate around this position. This state causes the count to fluctuate around a particular value. If there is a comparison value in this fluctuation range, for example, the associated output is switched on and off in accordance with the rhythm of the fluctuations.
  • Page 42 1Count24V/100kHz 2.6 Count Modes Method of Operation when the Comparison Value Is Reached and the Pulse Duration = 0 The diagram below provides an example of how hysteresis works. The figure shows the differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as opposed to hysteresis of 3.
  • Page 43 1Count24V/100kHz 2.6 Count Modes Method of Operation when the Comparison Value Is Reached, Output Pulse Duration The diagram below provides an example of how hysteresis works. The figure shows the differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as opposed to hysteresis of 3.
  • Page 44 1Count24V/100kHz 2.6 Count Modes Controlling the Outputs Simultaneously with the Comparators If you have selected a comparison function for the outputs, you can continue to control the outputs with SET_DO1 or SET_DO2. This allows you to simulate the effect of the comparison functions on your control program: •...
  • Page 45 1Count24V/100kHz 2.6 Count Modes Modifying the Function and Behavior of Digital Outputs You can modify the functions and behavior of the outputs during operation using the control interface. The 1Count24V/100kHz deletes the outputs and accepts the values as follows: • Function of digital outputs DO1 and DO2: If you change this function so that the comparison condition is satisfied, the output is not set until after the next count pulse.
  • Page 46: Assignment Of The Feedback And Control Interface For The Count Modes

    1Count24V/100kHz 2.6 Count Modes 2.6.10 Assignment of the Feedback and Control Interface for the Count Modes Note The following data of the control and feedback interfaces are consistent for the 1Count24V/100kHz: Bytes 0 to 3 Bytes 4 to 7 Bytes 8 to 11 (modified user data interface) Use the access or addressing mode for data consistency over the entire control and feedback interface on your master (only for configuration using the GSD file).
  • Page 47: Table 2-4 Control Interface (Outputs)

    1Count24V/100kHz 2.6 Count Modes Address Assignment Designation Byte 6 Bit 7: Zero-crossing in the count range when counting without a main count STS_ND direction Bit 6: STS_UFLW Low counting limit Bit 5: STS_OFLW High counting limit Bit 4: STS_CMP2 Comparator 2 status Bit 3: STS_CMP1 Comparator 1 status...
  • Page 48: Table 2-5 Notes On The Control Bits

    1Count24V/100kHz 2.6 Count Modes Address Assignment Byte 5 Bit 7: Reserve = 0 Bit 6: Reserve = 0 Bit 5: Reserve = 0 C_DOPARAM Bit 4: Change function and behavior of DO1, DO2 CMP_VAL2 Bit 3: Load comparison value 2 CMP_VAL1 Bit 2: Load comparison value 1...
  • Page 49: Table 2-6 Notes On The Feedback Bits

    1Count24V/100kHz 2.6 Count Modes Notes on the Feedback Bits Table 2-6 Notes on the Feedback Bits Feedback bits Notes ERR_24V Short circuit of the encoder supply The error bit must be acknowledged by the EXTF_ACK control bit (see figure below) Diagnostic message if assigned.
  • Page 50: Table 2-7 Access To The Control And Feedback Interface In Step 7 Programming

    1Count24V/100kHz 2.6 Count Modes Access to the Control and Feedback Interface in STEP 7 Programming Table 2-7 Access to the Control and Feedback Interface in STEP 7 Programming Configuring with STEP 7 Configuring with STEP 7 using the GSD File using HW Config (Hardware catalog\PROFIBUS-DP\Additional (Hardware catalog\PROFIBUS-...
  • Page 51 1Count24V/100kHz 2.6 Count Modes Acceptance of Values with the Load Function Figure 2-18 Acceptance of Values with the Load Function Note Only one of the following control bits can be set at a particular time: CMP_VAL1 or CMP_VAL2 or LOAD_VAL or LOAD_PREPARE or C_DOPARAM. Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted again.
  • Page 52 1Count24V/100kHz 2.6 Count Modes Acknowledgment Principle in Isochrone Mode In isochrone mode, exactly 4 bus cycles are always required to reset the status bits and to accept values during the load function. Figure 2-19 Acknowledgment Principle in Isochrone Mode Error Detection The program errors must be acknowledged.
  • Page 53: Parameter Assignment For The Count Modes

    2.6.11 Parameter Assignment for the Count Modes Introduction You can use either of the following to assign parameters for the 1Count24V/100kHz: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.3 SP2 or later Parameter List for Counting Modes Table 2-8...
  • Page 54 1Count24V/100kHz 2.6 Count Modes Parameter Value range Default Mode Counting mode Continuous counting/ Count continuously One-time counting/ Periodic counting Gate function Cancel counting/ Cancel counting Interrupt counting Input signal HW gate Normal/Inverted Normal Function DI Input/ Input HW gate/ Latch and retrigger on positive rising edge/ Synchronization on positive edge Synchronization Once-only/Periodically...
  • Page 55: Measurement Modes

    1Count24V/100kHz 2.7 Measurement Modes Measurement Modes 2.7.1 Overview Introduction For the "Measuring Mode" parameter, you can select from the following modes: • Frequency measurement • Period measurement • Rotational speed measurement For the "Measuring Method" parameter, you can select from the measurement methods: •...
  • Page 56: Sequence Of Continuous-Action Measurement

    1Count24V/100kHz 2.7 Measurement Modes 2.7.2 Sequence of continuous-action measurement Measuring Principle The 1Count24/100kHz counts each positive edge of a pulse and assigns it a time value in µs. The update time indicates the time interval at which the measured value is updated by the module in the feedback interface.
  • Page 57 1Count24V/100kHz 2.7 Measurement Modes If the "1 Pulse per dynamic measuring time" estimated measured value is less than the last measured value during the frequency and speed measurement, this estimated measured value is output as the new measured value. With the period measurement, the dynamic measuring time is output as the estimated period if the dynamic measuring time is greater than the last measured period.
  • Page 58 1Count24V/100kHz 2.7 Measurement Modes The following figure illustrates the principle of continuous measurement using frequency measurement as an example. Figure 2-22 Principle of Continuous Measurement (Frequency Measurement Example) Gate Control To control the 1Count24V/100kHz, you have to use the gate functions. Isochrone Mode In isochrone mode, the 1Count24V/100kHz accepts control bits and control values from the control interface in each bus cycle and reports back the response in the same cycle.
  • Page 59 1Count24V/100kHz 2.7 Measurement Modes Integration Time and Update Time in Isochrone Mode If the integration time/update time lasts several T cycles, you can recognize the new measured value in the user program at the bit STS_CMP1 status bit (measurement completed) of the feedback interface. This enables monitoring of the measuring operation or a synchronization with the measuring operation.
  • Page 60: Frequency Measurement

    1Count24V/100kHz 2.7 Measurement Modes 2.7.3 Frequency Measurement Definition In frequency measurement mode, the 1Count24V/100kHz counts the pulses that arrive within a set integration time. Integration time Preset the integration time with the integration time parameter (see the table). Table 2-9 Calculating the Integration Time Specific Conditions Integration time...
  • Page 61 1Count24V/100kHz 2.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Lower limit f Upper limit f 0 to 99,999,999 Hz*10 +1 to 100,000,000 Hz*10 Possible Measurement Ranges with Error Indication Integration time fmin + absolute error fmax + absolute error 10 s 0.1 Hz ±...
  • Page 62: Continuous Frequency Measurement

    1Count24V/100kHz 2.7 Measurement Modes 2.7.4 Continuous Frequency Measurement Definition In frequency measurement mode, the 1Count24V/100kHz counts the pulses that arrive within a dynamic measuring time. Update Time The 1Count24V/100kHz updates the measured values cyclically. You preset the update time with the Update Time parameter (see table). You can change the update time during operation.
  • Page 63 1Count24V/100kHz 2.7 Measurement Modes Possible Measuring Ranges with Error Indication Frequency f Absolute error 0.1 Hz ±0.001 Hz 1 Hz ±0.001 Hz 10 Hz ±0.003 Hz 100 Hz ±0.02 Hz 1 000 Hz ±0.18 Hz 10 000 Hz ±1.8 Hz 100 000 Hz ±18 Hz Function of the Digital Input...
  • Page 64: Rotational Speed Measurement

    1Count24V/100kHz 2.7 Measurement Modes 2.7.5 Rotational Speed Measurement Definition In rotational speed measurement mode, the 1Count24V/100kHz counts the pulses that arrive from a rotary encoder within a set integration time and calculates the speed of the connected motor. Integration Time You preset the integration time with the Integration Time parameter (see table).
  • Page 65 1Count24V/100kHz 2.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Low limit n High limit n 0 to 24 999 999 x10 /min +1 to 25 000 000 x10 /min Possible Measuring Ranges with Error Indication Table 2-12 Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder Revolution = 60)
  • Page 66: Continuous Rotational Speed Measurement

    1Count24V/100kHz 2.7 Measurement Modes 2.7.6 Continuous Rotational Speed Measurement Definition In rotational speed measurement mode, the 1Count24V/100kHz counts the pulses that are received from a tachometer generator within a dynamic measuring time and calculates the speed from this value with the number of pulses per encoder revolution. Update Time The 1Count24V/100kHz updates the measured values cyclically.
  • Page 67: Table 2-14 Possible Measuring Ranges With Error Indication (Number Of Pulses Per Encoder Revolution = 60)

    1Count24V/100kHz 2.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Low limit n High limit n 0 to 24 999 999 x10 /min +1 to 25 000 000 x10 /min Possible Measuring Ranges with Error Indication Table 2-14 Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder Revolution = 60)
  • Page 68 1Count24V/100kHz 2.7 Measurement Modes Values that Can Be Changed During Operation • Low limit (LOAD_PREPARE) • High limit (LOAD_VAL) • Function of the digital output DO1 (C_DOPARAM) • Integration time/update time (C_INTTIME) See also Gate Functions in Measurement Modes (Page 74) Behavior of the Output in Measurement Modes (Page 75) Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 77) Technological Functions...
  • Page 69: Period Measurement

    1Count24V/100kHz 2.7 Measurement Modes 2.7.7 Period Measurement Definition In period measurement mode, the 1Count24V/100kHz measures the time between two positive edges of the counting signal by counting the pulses of an internal quartz-accurate reference frequency (16 MHz) within a preset integration time. Integration Time You preset the integration time with the Integration Time parameter (see table).
  • Page 70 1Count24V/100kHz 2.7 Measurement Modes 1 µs resolution Low limit T High limit T 0 to 119 999 999 µs +1 to 120 000 000 µs 1/16 µs resolution Low limit T High limit T 0 to 1 919 999 999 µs +1 to 1 920 000 000 µs Possible Measuring Ranges with Error Indication 1 µs resolution...
  • Page 71: Continuous Period Measurement

    1Count24V/100kHz 2.7 Measurement Modes 2.7.8 Continuous Period Measurement Definition In period measurement mode, the 1Count24V/100kHz indicates the dynamic measuring time as a period. If the period is less than the update time, then an average is calculated for the period. Update Time The 1Count24V/100kHz updates the measured values cyclically.
  • Page 72 1Count24V/100kHz 2.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: 1 µs resolution Low limit T High limit T 0 to 119 999 999 µs +1 to 120 000 000 µs 1/16 µs resolution Low limit T High limit T 0 to 1 919 999 999 µs +1 to 1 920 000 000 µs...
  • Page 73 1Count24V/100kHz 2.7 Measurement Modes Function of the Digital Output DO1 For the "Function DO1" parameter, select one of the following functions for the digital output: • Output (no switching by the limit-value monitoring) • Measured value outside the limits • Measured value under the low limit •...
  • Page 74: Gate Functions In Measurement Modes

    1Count24V/100kHz 2.7 Measurement Modes 2.7.9 Gate Functions in Measurement Modes Software Gate and Hardware Gate The 1Count24V/100kHz has two gates • A software gate (SW gate), which is controlled by the SW_GATE control bit. The software gate can only be opened by a positive edge of the SW_GATE control bit. It is closed when this bit is reset.
  • Page 75: Behavior Of The Output In Measurement Modes

    1Count24V/100kHz 2.7 Measurement Modes 2.7.10 Behavior of the Output in Measurement Modes Introduction The various ways of setting the behavior of the output are described in this section. Behavior of the Output in Measuring Modes You can assign parameters for the digital output of the 1Count24V/100kHz. You can store a high and a low limit for frequency measurement, rotational speed measurement or period measurement.
  • Page 76 1Count24V/100kHz 2.7 Measurement Modes Limit-Value Monitoring Figure 2-29 Limit-Value Monitoring After the integration time elapses, the measured value obtained (frequency, rotational speed, or period) is compared with the assigned limit values. If the current measured value is under the assigned low limit (measured value <low limit), the STS_UFLW = 1 bit is set in the feedback interface.
  • Page 77: Assignment Of The Feedback And Control Interfaces For The Measurement Modes

    1Count24V/100kHz 2.7 Measurement Modes 2.7.11 Assignment of the Feedback and Control Interfaces for the Measurement Modes Note The following data of the control and feedback interfaces are consistent for the 1Count24V/100kHz: Bytes 0 to 3 Bytes 4 to 7 Bytes 8 to 11 (modified user data interface) Use the access or addressing mode for data consistency over the entire control and feedback interface on your master (only for configuration using the GSD file).
  • Page 78: Table 2-18 Control Interface (Outputs)

    1Count24V/100kHz 2.7 Measurement Modes Address Assignment Designation Byte 6 Bit 7: Reserve = 0 Bit 6: Low limit of measuring range STS_UFLW Bit 5: High limit of measuring range STS_OFLW Bit 4: Reserve = 0 Bit 3: Measurement completed STS_CMP1 Bit 2: Reserve = 0 Bit 1:...
  • Page 79: Table 2-19 Notes On The Control Bits

    1Count24V/100kHz 2.7 Measurement Modes Address Assignment Byte 5 Bit 7: Reserve = 0 Bit 6: Reserve = 0 Bit 5: Reserve = 0 Bit 4: Change function of DO1, C_DOPARAM Bit 3: Reserve = 0 Bit 2: Change integration time, C_INTTIME Bit 1: Load high limit LOAD_PREPARE Bit 0:...
  • Page 80: Table 2-20 Notes On The Feedback Bits

    1Count24V/100kHz 2.7 Measurement Modes Notes on the Feedback Bits Table 2-20 Notes on the Feedback Bits Feedback bits Notes ERR_24V Short circuit of the encoder supply The error bit must be acknowledged by the EXTF_ACK control bit (see figure below) Diagnostic message if assigned.
  • Page 81: Table 2-21 Access To The Control And Feedback Interface In Step 7 Programming

    1Count24V/100kHz 2.7 Measurement Modes Access to the Control and Feedback Interface in STEP 7 Programming Table 2-21 Access to the Control and Feedback Interface in STEP 7 Programming Configuring with STEP 7 Configuring with STEP 7 using the GSD file using HW Config (Hardware catalog\PROFIBUS-DP\Additional (Hardware catalog\PROFIBUS-...
  • Page 82 1Count24V/100kHz 2.7 Measurement Modes Acceptance of Values with the Load Function Figure 2-31 Acceptance of Values with the Load Function Note Only one of the following control bits can be set at a particular time: LOAD_VAL or LOAD_PREPARE or C_DOPARAM or C_INTTIME. Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted again.
  • Page 83 1Count24V/100kHz 2.7 Measurement Modes Acknowledgment Principle in Isochrone Mode In isochrone mode, exactly 4 bus cycles are always required to reset the status bits and to accept values during the load function. Figure 2-32 Acknowledgment Principle in Isochrone Mode Error Detection The diagnostic errors must be acknowledged.
  • Page 84: Parameter Assignment For Measurement Modes

    2.7.12 Parameter Assignment for Measurement Modes Introduction You can use either of the following to assign parameters for the 1Count24V/100kHz: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.3 SP2 or later Parameter List for Measuring Modes Table 2-22 Parameter List for Measuring Modes...
  • Page 85 1Count24V/100kHz 2.7 Measurement Modes Parameter Value Range Default Low limit Frequency measurement: 0...f Rotational speed measurement: 0...n Period measurement: 0...T High limit Frequency measurement: low limit+1...f Rotational speed measurement: low limit+1...n Period measurement: low limit+1...T Integration time [n*10ms] (update time) Frequency measurement: 1 to 1000 Rotational speed measurement:...
  • Page 86: Position Detection

    1Count24V/100kHz 2.8 Position Detection Position Detection 2.8.1 Overview Description This mode encompasses a subset of the functionality of the continuous counting mode. It is intended for isochrone mode and differs from continuous counting by a smaller T Module and a T equal to zero.
  • Page 87 1Count24V/100kHz 2.8 Position Detection Isochrone mode In isochrone mode the 1Count24V/100kHz accepts control bits and control values from the control interface in each bus cycle and reports back the response in this mode in the same cycle or in the next cycle. In each cycle the 1Count24V/100kHz transfers the count and latch value that were valid at time T and the status bits valid at time T...
  • Page 88: Position Detection

    1Count24V/100kHz 2.8 Position Detection 2.8.2 Position Detection Definition In this mode, the 1Count24V/100kHz counts continuously starting from the load value: • If the 1Count24V/100kHz reaches the high counting limit when counting up, and another count pulse then comes, it will jump to the low counting limit and continue counting from there without losing a pulse.
  • Page 89: Gate Functions For Position Detection

    1Count24V/100kHz 2.8 Position Detection 2.8.3 Gate Functions for Position Detection Software Gate and Hardware Gate The 1Count24V/100kHz has two gates • A software gate (SW gate), which is controlled by the SW_GATE control bit. The software gate can only be opened by a positive edge of the SW_GATE control bit. It is closed when this bit is reset.
  • Page 90 1Count24V/100kHz 2.8 Position Detection Canceling- and Interrupting-Type Gate Function When assigning the gate function, you can specify whether the internal gate is to cancel or interrupt counting. When counting is canceled, after the gate is closed and restarted, counting starts again from the beginning. When counting is interrupted, after the gate is closed and restarted, counting continues from the previous value.
  • Page 91 1Count24V/100kHz 2.8 Position Detection Gate control by means of the SW gate and HW gate If the SW gate opens when the HW gate is already open, counting continues starting from the current count. When the HW gate is opened, one of the following occurs, depending on the parameter assignment: •...
  • Page 92: Latch Function

    1Count24V/100kHz 2.8 Position Detection 2.8.4 Latch Function Overview There are two latch functions: • The Latch and Retrigger function • The Latch function The Latch and Retrigger Function In order to use this function, you must first select it with the "Latch and Retrigger on Positive Edge"...
  • Page 93 1Count24V/100kHz 2.8 Position Detection If you close the SW gate, it only interrupts counting; this means that when you open the SW gate again, counting is continued. The digital input DI remains active even when the SW gate is closed. Counting is also latched and triggered in isochrone mode with each edge on the digital input.
  • Page 94 1Count24V/100kHz 2.8 Position Detection Further possible causes of parameter assignment errors with the latch function: • Incorrect parameter assignment of the digital output function (Function DI) Modified User Data Interface If the 1Count24V/100kHz is inserted behind an IM 151 that supports the reading and writing of broader user data interfaces, the current count value can be read from bytes 8-11 of the feedback interface.
  • Page 95: Synchronization

    1Count24V/100kHz 2.8 Position Detection 2.8.5 Synchronization Synchronization In order to use this function, you must first select it with the "Synchronize on Positive Edge" Function DI parameter. Figure 2-39 Once-Only and Periodic Synchronization Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 96 1Count24V/100kHz 2.8 Position Detection If you have assigned synchronization, the positive edge of a reference signal on the input sets the 1Count24V/100kHz to the load value. You can select between once-only and periodic synchronization ("Synchronization" parameter). The following conditions apply: •...
  • Page 97: Assignment Of The Feedback And Control Interface For Position Feedback

    1Count24V/100kHz 2.8 Position Detection 2.8.6 Assignment of the Feedback and Control Interface for Position Feedback Note The following data of the control and feedback interfaces are consistent for the 1Count24V/100kHz: Bytes 0 to 3 Bytes 4 to 7 Bytes 8 to 11 (modified user data interface) Use the access or addressing mode for data consistency over the entire control and feedback interface on your master (only for configuration using the GSD file).
  • Page 98: Table 2-25 Control Interface (Outputs)

    1Count24V/100kHz 2.8 Position Detection Address Assignment Designation Byte 6 Bit 7: Zero crossing STS_ND Bit 6: Low counting limit STS_UFLW Bit 5: High counting limit STS_OFLW Bit 4: Reserve = 0 Bit 3: Reserve = 0 Bit 2: Reserve = 0 Bit 1: Reserve = 0 Bit 0:...
  • Page 99: Table 2-26 Notes On The Control Bits

    1Count24V/100kHz 2.8 Position Detection Address Assignment Byte 5 Bit 7: Reserve = 0 Bit 6: Reserve = 0 Bit 5: Reserve = 0 Bit 4: Reserve = 0 Bit 3: Reserve = 0 Bit 2: Reserve = 0 LOAD_PREPARE Bit 1: Load counter preparatory LOAD_VAL Bit 0:...
  • Page 100: Table 2-27 Notes On The Feedback Bits

    1Count24V/100kHz 2.8 Position Detection Notes on the Feedback Bits Table 2-27 Notes on the Feedback Bits Feedback bits Notes ERR_24V Short circuit of the encoder supply The error bit must be acknowledged by the EXTF_ACK control bit (see figure below) Diagnostic message if assigned.
  • Page 101 1Count24V/100kHz 2.8 Position Detection Resetting of the Status Bits STS_SYN, STS_OFLW, STS_UFLW, STS_ND Figure 2-40 Resetting of the Status Bits Acceptance of Values with the Load Function Figure 2-41 Acceptance of Values with the Load Function Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 102 1Count24V/100kHz 2.8 Position Detection Note Only one of the following control bits can be set at a particular time: LOAD_VAL or LOAD_PREPARE. Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted again. The ERR_LOAD error bit is only deleted when a correct value is transferred as follows. Acknowledgment Principle in Isochrone Mode In isochrone mode, exactly 4 or 6 bus cycles are always required to reset the status bits and to accept values during the load function.
  • Page 103 1Count24V/100kHz 2.8 Position Detection Error Detection The program errors must be acknowledged. They have been detected by the 1Count24V/100kHz and are indicated in the feedback interface. A channel-specific diagnosis is carried out if you have enabled group diagnostics in your parameter assignment (see the ET 200S Distributed I/O System Manual).
  • Page 104: Assigning Parameters For Position Feedback

    2.8.7 Assigning Parameters for Position Feedback Introduction You can use either of the following to assign parameters for the 1Count24V/100kHz: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.3 SP2 or later Parameter List for Position Feedback Table 2-29 Parameter List for Position Feedback...
  • Page 105 1Count24V/100kHz 2.8 Position Detection Parameter Assignment Error • The "Input signal HW gate" parameter is set to inverted and the "Function DI" parameter is not set to HW gate. What to Do in the Event of Errors Check the set value ranges. Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 106: Evaluation Of Count And Direction Signal

    1Count24V/100kHz 2.9 Evaluation of count and direction signal Evaluation of count and direction signal Signal Evaluation A, B Signal evaluation by means of A, B allows you to count directionally. Different evaluation modes are possible depending on what you assign parameters to: •...
  • Page 107 1Count24V/100kHz 2.9 Evaluation of count and direction signal Pulse and Direction The level at direction input B is used as the direction setting. An unwired input corresponds to the "Up" count direction if you have selected "Pulse/direction" for the "Signal evaluation" parameter. Figure 2-45 Signals of a 24-V Pulse Generator with Direction Indicator Rotary Transducer...
  • Page 108 1Count24V/100kHz 2.9 Evaluation of count and direction signal Double Evaluation Double evaluation means that the rising and falling edge of the A signal are evaluated. Whether up or down count pulses are generated depends on the level of the B signal. The diagram below illustrates the double evaluation of the signals.
  • Page 109: Behavior At Cpu-Master-Stop

    1Count24V/100kHz 2.10 Behavior at CPU-Master-STOP 2.10 Behavior at CPU-Master-STOP Setting the Behavior at CPU/Master-STOP You can assign the behavior of the 1Count24V/100kHz in the event of the failure of the parent controller. Parameter Status of the 1Count24V/100kHz at What Happens if CPU/Master STOP New Parameters Have Been Assigned? Turn off DO1...
  • Page 110 1Count24V/100kHz 2.10 Behavior at CPU-Master-STOP Leaving the Assigned State Under what conditions does the 1Count24V/100kHz leave the assigned state? The CPU or master must be in RUN mode, and you have to make a change at the control interface. Automatic New Parameter Assignment A new parameter assignment of the ET 200S station is made by your CPU/ DP master: •...
  • Page 111: Technical Specifications

    1Count24V/100kHz 2.11 Technical Specifications 2.11 Technical Specifications Technical Specifications General technical deta specifications Dimensions and Weight Dimensions W x H x D (mm) 15x81x52 Weight Approx. 40 g Data for Specific Modules Number of Channels Counter range 32 bits Voltages, Currents, Potentials Rated load voltage L+ 24 VDC Range...
  • Page 112 1Count24V/100kHz 2.11 Technical Specifications General technical deta specifications Data for the Digital Output Output voltage Rated value • 24 VDC 0 signal • ≤ 3V 1 signal • ≥ L+ (-1V) Output current 0 signal (residual current) • ≤ 0.5 mA 1 signal •...
  • Page 113 1Count24V/100kHz 2.11 Technical Specifications General technical deta specifications Isochronous Times of the Module in counting modes 380 µs 320 µs 55 µs 900 µs in measuring modes 465 µs 280 µs 50 µs 995 µs in position feedback 370 µs 815 µs Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 114 1Count24V/100kHz 2.11 Technical Specifications Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 115: 1Count5V/500Khz

    1Count5V/500kHz Product Overview Order Number: 6ES7 138-4DE02-0AB0 Compatibility The 1Count5V/500kHz with the order number 6ES7 138-4DE02-0AB0 replaces the 1Count5V/500kHz with the order number 6ES7 138-4DE01-0AB0 and is fully compatible. In STEP 7 version V5.3 SP2 and later, you can use it in non-isochrone and isochrone modes. Features •...
  • Page 116 1Count5V/500kHz 3.1 Product Overview • Gate control, synchronization or latch function via digital inputs • 2 digital outputs for direct control or output of the comparison results. • Firmware update • Identification data The following IM 151 modules support this function: IM 151-1 Standard: 6ES7151-1AA04- 0AB0 and later and IM 151-1 High Feature: 6ES7151-1BA01-0AB0 and later.
  • Page 117: Clocked Mode

    1Count5V/500kHz 3.2 Clocked Mode Clocked Mode Note The principles of isochrone mode are described in a separate manual. Hardware Requirements You will require the following for the 1Count5V/500kHz in isochrone mode: • A CPU that supports isochrone mode • A master that supports the equidistant bus cycle •...
  • Page 118 1Count5V/500kHz 3.2 Clocked Mode Identification data • Hardware release status • Firmware release status • Serial number See also ET 200S Distributed I/O System Manual, section: Identification Data Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 119: Example: Start 1Count5V/500Khz

    1Count5V/500kHz 3.3 Example: Start 1Count5V/500kHz Example: Start 1Count5V/500kHz Task These instructions guide you to a functioning application that will enable you to count the pulses of an encoder and become familiar with and check the basic hardware and software functions of your 1Count5V/500kHz. The counting mode used in this example is "Count continuously".
  • Page 120 1Count5V/500kHz 3.3 Example: Start 1Count5V/500kHz Configuring with STEP 7 using HW Config You must first adapt the hardware configuration of your existing ET 200S station. 1. Open the relevant project in SIMATIC Manager. 2. Open the HW Config configuration table in your project. 3.
  • Page 121 1Count5V/500kHz 3.3 Example: Start 1Count5V/500kHz Integration into the User Program (Not for Modified User Data Interface) Create block FC101 and integrate it in your control program (in OB1, for example). This block requires the data block DB1 with a length of 16 bytes. The start address of the module in the following example is 256.
  • Page 122 1Count5V/500kHz 3.3 Example: Start 1Count5V/500kHz Testing Use "Monitor/Modify Variables" to monitor the count value and the gate. 1. Select the "Block" folder in your project. Choose the "Insert > S7 Block > Variable Table" menu command to insert the VAT 1 variable table, and then confirm with OK. 2.
  • Page 123: Terminal Assignment Diagram

    1Count5V/500kHz 3.4 Terminal Assignment Diagram Terminal Assignment Diagram Wiring Rules The cables (terminals 1 and 8 and terminals 15 and 16) must be shielded. The shield must ET 200S Distributed be supported at both ends. To do this use the shield contact (see the I/O System manual in the Appendix).
  • Page 124: Operating Mode Of The 1Count5V/500Khz

    1Count5V/500kHz 3.5 Operating mode of the 1Count5V/500kHz Operating mode of the 1Count5V/500kHz Introduction To begin with, decide how you want to use the 1Count5V/500kHz. You can choose from the following operating modes: Counting modes Measuring modes Position feedback Count continuously Frequency measurement Position detection Count once...
  • Page 125: Count Modes

    1Count5V/500kHz 3.6 Count Modes Count Modes 3.6.1 Overview Introduction The counting modes are used in counting applications (for counting of items, for example). For the "Counting Mode" parameter, you can select from the following modes: • Count continuously (for position detection with incremental encoders, for example) •...
  • Page 126: Table 3-2 Reset States

    1Count5V/500kHz 3.6 Count Modes Main Count Direction With the main count direction, you assign which RESET states (status following parameter assignment) the load value and count value can take on. It is thus possible to create incrementing or decrementing count applications. The assigned main count direction has no effect on the direction evaluation when the count pulses are detected.
  • Page 127: Endless Counting

    1Count5V/500kHz 3.6 Count Modes 3.6.2 Endless Counting Definition In this mode, the 1Count5V/500kHz counts endlessly as of the load value: • If the 1Count5V/500kHz reaches the upper count limit when counting up, and another count pulse then comes, it will jump to the lower count limit and continue counting from there without losing the pulse.
  • Page 128 1Count5V/500kHz 3.6 Count Modes Influencing the Behavior of the Digital Outputs through: The behavior of the digital outputs can be influenced as follows: • Hysteresis • Pulse duration Changing values during operation The following values can be changed during operation: •...
  • Page 129: Once-Only Counting

    1Count5V/500kHz 3.6 Count Modes 3.6.3 Once-Only Counting Definition In this mode, the 1Count5V/500kHz counts once only, depending on the main count direction set. • When there is no main count direction: – Counts as of the load value. – Counts up or down. –...
  • Page 130 1Count5V/500kHz 3.6 Count Modes The internal gate is automatically closed in the event of an overflow/underflow at the count limits. To restart counting, you have to open the gate again. Figure 3-3 Once-Only Counting Without Main Count Direction; Terminating Gate Function With an interrupting gate function, the count remains at the underflow when the gate is started.
  • Page 131 1Count5V/500kHz 3.6 Count Modes Function of the Digital Input Select one of the following functions for the digital input: • Input • Hardware gate • Latch Function • Synchronization Function of the Digital Outputs Select one of the following functions for each digital output: •...
  • Page 132: Periodic Counting

    1Count5V/500kHz 3.6 Count Modes 3.6.4 Periodic Counting Definition In this mode, the 1Count5V/500kHz counts periodically, depending on the main count direction set. • When there is no main count direction: – Counts as of the load value. – Counts up or down. –...
  • Page 133 1Count5V/500kHz 3.6 Count Modes Figure 3-6 Periodic Counting with Up as the Main Count Direction Function of the Digital Input Select one of the following functions for the digital input: • Input • Hardware gate • Latch Function • Synchronization Function of the Digital Outputs Select one of the following functions for each digital output: •...
  • Page 134 1Count5V/500kHz 3.6 Count Modes Changing values during operation The following values can be changed during operation: • Load value (LOAD_PREPARE) • Counter status (LOAD_VAL) • Comparison value 1 (CMP_VAL1) • Comparison value 2 (CMP_VAL2) • Function and behavior of the digital outputs (C_DOPARAM) See also Gate Functions in Count Modes (Page 135) Latch Function (Page 137)
  • Page 135: Behavior Of The Digital Inputs

    1Count5V/500kHz 3.6 Count Modes 3.6.5 Behavior of the Digital Inputs Digital Input of the 1Count5V/500kHz The DI digital input can be operated with 24 V sensors (P switch and series mode). In the case of the input and HW gate functions, the level of the digital input can be inverted by means of parameter assignment.
  • Page 136 1Count5V/500kHz 3.6 Count Modes The diagrams below indicate how the interrupting and canceling gate functions work: Figure 3-7 Count Continuously, Up, Interrupting Gate Function Figure 3-8 Count Continuously, Down, Canceling Gate Function Gate control by means of the SW gate only When the gate is opened, one of the following occurs, depending on the parameter assignment: •...
  • Page 137: Latch Function

    1Count5V/500kHz 3.6 Count Modes 3.6.7 Latch Function Introduction There are two latch functions: • The Latch and Retrigger function • The Latch function The Latch and Retrigger Function In order to use this function, you must first select it with the "Latch and Retrigger on Positive Edge"...
  • Page 138 1Count5V/500kHz 3.6 Count Modes Direct loading of the counter does not cause the indicated stored count to be changed. If you close the SW gate, counting is only interrupted; this means that when you open the SW gate again, counting is continued. The DI digital input remains active even when the SW gate is closed.
  • Page 139 1Count5V/500kHz 3.6 Count Modes When you close the SW gate, the effect is either canceling or interrupting, depending on the parameter assignment. The digital input DI remains active even when the SW gate is closed. Further possible causes of parameter assignment errors with the latch function: •...
  • Page 140: Synchronization

    1Count5V/500kHz 3.6 Count Modes 3.6.8 Synchronization Introduction There are two methods of synchronizing the 1Count5V/500kHz: • Synchronization with DI • Synchronization with DI and zero mark Synchronization with DI In order to use this function, you must first select it with the "Synchronize on Positive Edge" Function DI parameter.
  • Page 141 1Count5V/500kHz 3.6 Count Modes If you have assigned synchronization, the positive edge of a reference signal on the input sets the 1Count5V/500kHz to the load value. You can select between once-only and periodic synchronization ("Synchronization" parameter). The following conditions apply: •...
  • Page 142 1Count5V/500kHz 3.6 Count Modes Synchronization with DI and Zero Mark In order to be able to use this function, you must have selected it from the digital input function parameters. Figure 3-12 Once-Only and Periodic Synchronization If you have assigned synchronization with DI and zero mark, the DI serves as the HW enable.
  • Page 143 1Count5V/500kHz 3.6 Count Modes The following conditions apply: • The counting mode must have been started with the SW gate. • The "Enable synchronization CTRL_SYN" control bit must be set. • In once-only synchronization, the first zero mark loads the 1Count5V/500kHz with the load value after the enable bit and the HW enable are set.
  • Page 144: Behavior Of The Outputs In Count Modes

    1Count5V/500kHz 3.6 Count Modes 3.6.9 Behavior of the Outputs in Count Modes Introduction The 1Count5V/500kHz lets you store two comparison values, which are assigned to the digital outputs. The outputs can be activated, depending on the count and comparison values. The various ways of setting the behavior of the outputs are described in this section. Behavior Types of the Digital Outputs The 1Count5V/500kHz has two digital outputs.
  • Page 145 1Count5V/500kHz 3.6 Count Modes Count ≤ Comparison Value and Count ≥≤ Comparison Value If the comparison conditions are fulfilled, the respective comparator switches on the output. The status of the output is indicated by STS_DO1 and STS_DO2. The control bits CTRL_DO1 or CTRL_DO2 must be set for this. The comparison result is indicated by the status bits STS_CMP1 or STS_CMP2.
  • Page 146 1Count5V/500kHz 3.6 Count Modes Switch at comparison values The comparator switches the output when the following conditions are met: • The two comparison values must be loaded using the load functions CMP_VAL1 and CMP_VAL2, and • After the comparison values are loaded, the DO1 output must be enabled with CRTL_DO1.
  • Page 147 1Count5V/500kHz 3.6 Count Modes Isochrone mode:In isochrone mode, as well, the DO1 output is switched as soon as the comparison condition is fulfilled and is therefore independent of the bus cycle. Figure 3-13 V2 < V1 at the Start of Counting Figure 3-14 V2 >...
  • Page 148 1Count5V/500kHz 3.6 Count Modes Hysteresis An encoder can remain at a particular position and then fluctuate around this position. This state causes the count to fluctuate around a particular value. If there is a comparison value in this fluctuation range, for example, the associated output is switched on and off in accordance with the rhythm of the fluctuations.
  • Page 149 1Count5V/500kHz 3.6 Count Modes Method of Operation when the Comparison Value Is Reached and the Pulse Duration = 0 The diagram below provides an example of how hysteresis works. The figure shows the differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as opposed to hysteresis of 3.
  • Page 150 1Count5V/500kHz 3.6 Count Modes When hysteresis becomes active, the 1Count5V/500kHz stores the count direction. If the hysteresis range is exited in a different direction to the one stored, a pulse is output. Figure 3-17 Example of How Hysteresis Works Controlling the Outputs Simultaneously with the Comparators If you have selected a comparison function for the outputs, you can continue to control the outputs with SET_DO1 or SET_DO2.
  • Page 151: Table 3-3 Valid Range For The Two Comparison Values

    1Count5V/500kHz 3.6 Count Modes Loading Comparison Values You transfer the comparison values to the 1Count5V/500kHz. The counting is not affected by this. Table 3-3 Valid Range for the Two Comparison Values Main count direction: Main count direction: Main count direction: None Down Low counting limit...
  • Page 152: Assignment Of The Feedback And Control Interface For The Count Modes

    1Count5V/500kHz 3.6 Count Modes 3.6.10 Assignment of the Feedback and Control Interface for the Count Modes Note The following data of the control and feedback interfaces are consistent for the 1Count5V/500kHz: Bytes 0 to 3 Bytes 4 to 7 Bytes 8 to 11 (modified user data interface) Use the access or addressing mode for data consistency over the entire control and feedback interface on your DP master (only for configuration using the GSD file).
  • Page 153: Table 3-5 Control Interface (Outputs)

    1Count5V/500kHz 3.6 Count Modes Address Assignment Designation Byte 6 Bit 7: Zero-crossing in the count range when counting without a main count direction STS_ND Bit 6: Low counting limit STS_UFLW Bit 5: High counting limit STS_OFLW Bit 4: Comparator 2 status STS_CMP2 Bit 3: Comparator 1 status STS_CMP1...
  • Page 154: Table 3-6 Notes On The Control Bits

    1Count5V/500kHz 3.6 Count Modes Address Assignment Byte 5 Bit 7: Reserve = 0 Bit 6: Reserve = 0 Bit 5: Reserve = 0 C_DOPARAM Bit 4: Change function and behavior of DO1, DO2 CMP_VAL2 Bit 3: Load comparison value 2 CMP_VAL1 Bit 2: Load comparison value 1 LOAD_PREPARE...
  • Page 155: Table 3-7 Notes On The Feedback Bits

    1Count5V/500kHz 3.6 Count Modes Control bits Notes SET_DO2 Control bit DO2 Switches the DO2 digital output on and off when CTRL_DO2 is set. SW_GATE SW gate control bit The SW gate is opened/closed via the control interface with the SW_GATE bit. Notes on the Feedback Bits Table 3-7 Notes on the Feedback Bits...
  • Page 156: Table 3-8 Access To The Control And Feedback Interface In Step 7 Programming

    1Count5V/500kHz 3.6 Count Modes Feedback bits Notes STS_DO2 DO2 status The STS_DO2 status bit indicates the status of the DO2 digital output. STS_GATE Internal gate status: Counting STS_LOAD Load function running (see figure below) STS_ND Zero-crossing in the count range when counting without a main counting direction. The bit must be reset by the RES_STS control bit.
  • Page 157 1Count5V/500kHz 3.6 Count Modes Resetting of the Status Bits STS_SYN, STS_CMP1, STS_CMP2, STS_OFLW, STS_UFLW, STS_ND Figure 3-18 Resetting of the Status Bits Acceptance of Values with the Load Function Figure 3-19 Acceptance of Values with the Load Function Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 158 1Count5V/500kHz 3.6 Count Modes Note Only one of the following control bits can be set at a particular time: CMP_VAL1 or CMP_VAL2 or LOAD_VAL or LOAD_PREPARE or C_DOPARAM. Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted again.
  • Page 159 1Count5V/500kHz 3.6 Count Modes Error Detection The program errors must be acknowledged. They have been detected by the 1Count5V/500kHz and are indicated at the feedback interface. A channel-specific diagnosis is carried out if you have enabled group diagnostics in your ET 200S Distributed I/O System parameter assignment (see the Manual).
  • Page 160: Parameter Assignment For The Count Modes

    3.6.11 Parameter Assignment for the Count Modes Introduction You can use either of the following to assign parameters for the 1Count5V/500kHz: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.3 SP2 or later Parameter List for Counting Modes Table 3-9...
  • Page 161 1Count5V/500kHz 3.6 Count Modes Parameter Value Range Default Mode Counting mode Continuous counting/ Count continuously One-time counting/ Periodic counting Gate function Cancel counting/ Cancel counting Interrupt counting Input signal HW gate Normal/Inverted Normal Function DI Input/ Input HW gate/ latch and retrigger at positive edge/ synchronization at positive edge/ latch at positive edge/ HW enable for synchronization...
  • Page 162: Measurement Modes

    1Count5V/500kHz 3.7 Measurement Modes Measurement Modes 3.7.1 Overview Introduction Select your mode from the “Measurement Modes” parameter • Frequency Measurement • Period Measurement • Rotational Speed Measurement and choose a measuring method from the “Measuring Methods” parameter: • with integration time •...
  • Page 163: Sequence Of Continuous-Action Measurement

    1Count5V/500kHz 3.7 Measurement Modes 3.7.2 Sequence of continuous-action measurement Measuring Principle The 1Count5/500kHz counts each positive edge of a pulse and assigns it a time value in µs. The update time indicates the time interval at which the measured value is updated by the module in the feedback interface.
  • Page 164 1Count5V/500kHz 3.7 Measurement Modes If the "1 Pulse per dynamic measuring time" estimated measured value is less than the last measured value during the frequency and speed measurement, this estimated measured value is output as the new measured value. With the period measurement, the dynamic measuring time is output as the estimated period if the dynamic measuring time is greater than the last measured period.
  • Page 165 1Count5V/500kHz 3.7 Measurement Modes The following figure illustrates the principle of continuous measurement using frequency measurement as an example. Figure 3-23 Principle of Continuous Measurement (Frequency Measurement Example) Gate Control To control the 1Count5V/500kHz, you have to use the gate functions. Isochrone Mode In isochrone mode, the 1Count5V/500kHz accepts control bits and control values from the control interface in each bus cycle and reports back the response in the same cycle.
  • Page 166 1Count5V/500kHz 3.7 Measurement Modes Integration Time/Update Time in Isochrone Mode If the integration time/update time lasts several T cycles, you can recognize the new measured value in the user program at the bit STS_CMP1 status bit (measurement completed) of the feedback interface. This enables monitoring of the measuring operation or a synchronization with the measuring operation.
  • Page 167: Frequency Measurement

    1Count5V/500kHz 3.7 Measurement Modes 3.7.3 Frequency Measurement Definition In frequency measurement mode, the 1Count5V/500kHz counts the pulses that arrive within a set integration time. Integration time You preset the integration time with the Integration Time parameter (see table). Table 3-10 Calculation of the Integration Time Boundary conditions Integration time...
  • Page 168 1Count5V/500kHz 3.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Low limit f High limit f 0 to 499,999,999 Hz*10 +1 to 500,000,000 Hz*10 Possible Measuring Ranges with Error Indication Integration time ± absolute error ±...
  • Page 169: Continuous Frequency Measurement

    1Count5V/500kHz 3.7 Measurement Modes 3.7.4 Continuous Frequency Measurement Definition In frequency measurement mode, the 1Count5V/500kHz counts the pulses that arrive within a dynamic measuring time. Update time The 1Count5V/500kHz updates the measured values cyclically. You preset the update time with the Update Time parameter (see table). You can change the update time during operation.
  • Page 170 1Count5V/500kHz 3.7 Measurement Modes Possible Measuring Ranges with Error Indication Frequency f Absolute error 0.1 Hz ±0.001 Hz 1 Hz ±0.001 Hz 10 Hz ±0.003 Hz 100 Hz ±0.02 Hz 1 000 Hz ±0.18 Hz 10 000 Hz ±1.8 Hz 100 000 Hz ±18 Hz 500 000 Hz...
  • Page 171 1Count5V/500kHz 3.7 Measurement Modes Changing Values during Operation The following values can be changed during operation: • Low limit (LOAD_PREPARE) • High limit (LOAD_VAL) • Function of the Digital Output DO1 (C_DOPARAM) • Integration time/update time (C_INTTIME) See also Gate Functions in Measurement Modes (Page 182) Behavior of the Outputs in Measurement Modes (Page 183) Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 185) Technological Functions...
  • Page 172: Rotational Speed Measurement

    1Count5V/500kHz 3.7 Measurement Modes 3.7.5 Rotational Speed Measurement Definition In rotational speed measurement mode, the 1Count5V/500kHz counts the pulses that arrive from a tachometer generator within a set integration time and calculates the speed of the connected motor. Integration time You preset the integration time with the Integration Time parameter.
  • Page 173 1Count5V/500kHz 3.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Low limit n High limit n 0 to 24 999 999 x10 /min +1 to 25 000 000 *10 /min Possible Measuring Ranges with Error Indication Table 3-13 Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder Revolution = 60)
  • Page 174: Continuous Rotational Speed Measurement

    1Count5V/500kHz 3.7 Measurement Modes 3.7.6 Continuous Rotational Speed Measurement Definition In rotational speed measurement mode, the 1Count5V/500kHz counts the pulses that are received from a tachometer generator within a dynamic measuring time, and calculates the speed from this value with the number of pulses per encoder revolution. Update Time The 1Count5V/500kHz updates the measured values cyclically.
  • Page 175 1Count5V/500kHz 3.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Low limit n High limit n 0 to 24 999 999 x10 /min +1 to 25 000 000 *10 /min Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder Revolution = 60) Rotational speed n Absolute error 1 /min...
  • Page 176 1Count5V/500kHz 3.7 Measurement Modes Changing Values during Operation The following values can be changed during operation: • Low limit (LOAD_PREPARE) • High limit (LOAD_VAL) • Function of the Digital Output DO1 (C_DOPARAM) • Integration time/update time (C_INTTIME) See also Gate Functions in Measurement Modes (Page 182) Behavior of the Outputs in Measurement Modes (Page 183) Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 185) Technological Functions...
  • Page 177: Period Measurement

    1Count5V/500kHz 3.7 Measurement Modes 3.7.7 Period Measurement Definition In period measurement mode, the 1Count5V/500kHz measures the time between two positive edges of the counting signal by counting the pulses of an internal quartz-accurate reference frequency (16 MHz) within a set integration time. Integration Time You preset the integration time with the Integration Time parameter (see the table below).
  • Page 178 1Count5V/500kHz 3.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: 1 μs resolution Low limit T High limit T 0 to 119 999 999 µs +1 to 120 000 000 µs 1/16 µs resolution Low limit T High limit T 0 to 1 919 999 999 µs +1 to 1 920 000 000 µs...
  • Page 179: Continuous Period Measurement

    1Count5V/500kHz 3.7 Measurement Modes 3.7.8 Continuous Period Measurement Definition In period measurement mode, the 1Count5V/500kHz indicates the dynamic measuring time as a period. If the period is less than the update time, then an average is calculated for the period. Update Time The 1Count5V/500kHz updates the measured values cyclically.
  • Page 180 1Count5V/500kHz 3.7 Measurement Modes Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: 1 μs resolution Low limit T High limit T 0 to 119 999 999 µs +1 to 120 000 000 µs 1/16 µs resolution Low limit T High limit T 0 to 1 919 999 999 µs +1 to 1 920 000 000 µs...
  • Page 181 1Count5V/500kHz 3.7 Measurement Modes Function of the Digital Output DO1 For the "Function DO1" parameter, select one of the following functions for the digital output: • Output (no switching by the limit-value monitoring) • Measured value outside the limits • Measured value under the low limit •...
  • Page 182: Gate Functions In Measurement Modes

    1Count5V/500kHz 3.7 Measurement Modes 3.7.9 Gate Functions in Measurement Modes Software Gate and Hardware Gate The 1Count5V/500kHz has two gates • A software gate (SW gate), which is controlled by the SW_GATE control bit. The software gate can only be opened by a positive edge of the SW_GATE control bit. It is closed when this bit is reset.
  • Page 183: Behavior Of The Outputs In Measurement Modes

    1Count5V/500kHz 3.7 Measurement Modes 3.7.10 Behavior of the Outputs in Measurement Modes Introduction The various ways of setting the behavior of the outputs are described in this section. Behavior of the Outputs in Measurement Modes You can assign parameters to the digital outputs of the 1Count5V/500kHz. You can store a high and a low limit for frequency measurement, rotational speed measurement or period measurement.
  • Page 184 1Count5V/500kHz 3.7 Measurement Modes Limit-Value Monitoring Figure 3-30 Limit-Value Monitoring After the integration time elapses, the measured value obtained (frequency, rotational speed, or period) is compared with the assigned limit values. If the current measured value is under the assigned low limit (measured value < low limit), bit STS_UFLW = 1 is set in the feedback interface.
  • Page 185: Assignment Of The Feedback And Control Interfaces For The Measurement Modes

    1Count5V/500kHz 3.7 Measurement Modes 3.7.11 Assignment of the Feedback and Control Interfaces for the Measurement Modes Note The following data of the control and feedback interfaces are consistent for the 1Count5V/500kHz: Bytes 0 to 3 Bytes 4 to 7 Bytes 8 to 11 (modified user data interface) Use the access or addressing mode for data consistency over the entire control and feedback interface on your master (only for configuration using the GSD file).
  • Page 186: Table 3-16 Control Interface (Outputs)

    1Count5V/500kHz 3.7 Measurement Modes Address Assignment Designation Byte 7 Reserve = 0 Bytes 8 to 11 Count value Modified user data interface Table 3-16 Control Interface (Outputs) Address Assignment Bytes 0 to 3 Low limit or high limit Function of DO1 Byte 0: Bit 1 Bit 0...
  • Page 187: Table 3-17 Notes On The Control Bits

    1Count5V/500kHz 3.7 Measurement Modes Notes on the Control Bits Table 3-17 Notes on the Control Bits Control bits Notes C_DOPARAM Change function of DO1 (see figure below) The value from byte 0 is adopted as the new function of DO1. C_INTTIME Change integration time (see figure below) The value from bytes 0 and 1 is adopted as the new integration time for the next measurement.
  • Page 188: Table 3-18 Notes On The Feedback Bits

    1Count5V/500kHz 3.7 Measurement Modes Notes on the Feedback Bits Table 3-18 Notes on the Feedback Bits Feedback bits Notes ERR_24V Short circuit of the encoder supply The error bit must be acknowledged by the EXTF_ACK control bit (see figure below) Diagnostic message if assigned.
  • Page 189: Table 3-19 Access To The Control And Feedback Interface In Step 7 Programming

    1Count5V/500kHz 3.7 Measurement Modes Access to the Control and Feedback Interface in STEP 7 Programming Table 3-19 Access to the Control and Feedback Interface in STEP 7 Programming Configuring with STEP 7 Configuring with STEP 7 using the GSD file using HW Config (Hardware catalog\PROFIBUS-DP\Additional (Hardware catalog\PROFIBUS-...
  • Page 190 1Count5V/500kHz 3.7 Measurement Modes Acceptance of Values with the Load Function Figure 3-32 Acceptance of Values with the Load Function Note Only one of the following control bits can be set at a particular time: LOAD_VAL or LOAD_PREPARE or C_DOPARAM or C_INTTIME. Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted again.
  • Page 191 1Count5V/500kHz 3.7 Measurement Modes Acknowledgment Principle in Isochrone Mode In isochrone mode, exactly 4 bus cycles are always required to reset the status bits and to accept values during the load function. Figure 3-33 Acknowledgment Principle in Isochrone Mode Error Detection The diagnostic errors must be acknowledged.
  • Page 192: Parameter Assignment For Measurement Modes

    3.7.12 Parameter Assignment for Measurement Modes Introduction You can use either of the following to assign parameters for the 1Count5V/500kHz: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.3 SP2 or later Parameter List for Measuring Modes Table 3-20 Parameter List for Measuring Modes...
  • Page 193 1Count5V/500kHz 3.7 Measurement Modes Parameter Value Range Default High limit Frequency measurement: Low limit+1 to f Rotational speed measurement: Low limit+1 to n Period measurement: Low limit+1 to T Integration time [n*10ms] Frequency measurement: 1...1000 Rotational speed measurement: 1...1000 Period measurement: 1...
  • Page 194: Position Feedback

    1Count5V/500kHz 3.8 Position feedback Position feedback 3.8.1 Overview Description This mode encompasses a subset of the functionality of the continuous counting mode. It is intended for isochrone mode and differs from continuous counting by a smaller T Module and a T equal to zero.
  • Page 195 1Count5V/500kHz 3.8 Position feedback Isochrone mode In isochrone mode, the 1Count5V/500kHz accepts control bits and control values from the control interface in each bus cycle and reports back the response in this mode in the same cycle or in the next cycle. In each cycle, the 1Count5V/500kHz transfers the count or latch value that was valid at time and the status bits valid at time T A count controlled by hardware input signals can only be transferred in the same cycle if the...
  • Page 196: Position Detection

    1Count5V/500kHz 3.8 Position feedback 3.8.2 Position detection Definition In this mode, the 1Count5V/500kHz counts continuously starting from the load value: • If the 1Count5V/500kHz reaches the high counting limit when counting up, and another count pulse then comes, it will jump to the low counting limit and continue counting from there without losing a pulse.
  • Page 197: Gate Functions For Position Detection

    1Count5V/500kHz 3.8 Position feedback 3.8.3 Gate Functions for Position Detection Software Gate and Hardware Gate The 1Count5V/500kHz has two gates • A software gate (SW gate), which is controlled by the SW_GATE control bit. The software gate can only be opened by a positive edge of the SW_GATE control bit. It is closed when this bit is reset.
  • Page 198 1Count5V/500kHz 3.8 Position feedback Canceling- and Interrupting-Type Gate Function When assigning the gate function, you can specify whether the internal gate is to cancel or interrupt counting. When counting is canceled, after the gate is closed and restarted, counting starts again from the beginning. When counting is interrupted, after the gate is closed and restarted, counting continues from the previous value.
  • Page 199 1Count5V/500kHz 3.8 Position feedback Gate control by means of the SW gate and HW gate If the SW gate opens when the HW gate is already open, counting continues starting from the current count. When the HW gate is opened, one of the following occurs, depending on the parameter assignment: •...
  • Page 200: Latch Function

    1Count5V/500kHz 3.8 Position feedback 3.8.4 Latch Function Overview There are two latch functions: • The Latch and Retrigger function • The Latch function The Latch and Retrigger Function In order to use this function, you must first select it with the "Latch and Retrigger on Positive Edge"...
  • Page 201 1Count5V/500kHz 3.8 Position feedback If you close the SW gate, it only interrupts counting; this means that when you open the SW gate again, counting is continued. The digital input DI remains active even when the SW gate is closed. Counting is also latched and triggered in isochrone mode with each edge on the digital input.
  • Page 202 1Count5V/500kHz 3.8 Position feedback Further possible causes of parameter assignment errors with the latch function: • Incorrect parameter assignment of the digital output function (Function DI) Expanded Feedback Interface If the 1Count5V/500kHz is inserted behind an IM 151 that supports the reading and writing of broader user data interfaces, the current count value can be read from bytes 8-11 of the feedback interface.
  • Page 203: Synchronization

    1Count5V/500kHz 3.8 Position feedback 3.8.5 Synchronization Synchronization In order to use this function, you must first select it with the "Synchronize on Positive Edge" Function DI parameter. Figure 3-40 Once-Only and Periodic Synchronization Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 204: Assignment Of The Feedback And Control Interface For Position Feedback

    1Count5V/500kHz 3.8 Position feedback If you have assigned synchronization, the positive edge of a reference signal on the input sets the 1Count5V/500kHz to the load value. You can select between once-only and periodic synchronization ("Synchronization" parameter). The following conditions apply: •...
  • Page 205: Table 3-22 Feedback Interface (Inputs)

    1Count5V/500kHz 3.8 Position feedback Assignment Tables Table 3-22 Feedback Interface (Inputs) Address Assignment Designation Bytes 0 to 3 Count value or stored count value in the case of the latch function on the digital input Byte 4 Bit 7: Short circuit of the encoder supply ERR_24V Bit 6: Reserve = 0...
  • Page 206: Table 3-23 Control Interface (Outputs)

    1Count5V/500kHz 3.8 Position feedback Table 3-23 Control Interface (Outputs) Address Designation Assignment Bytes 0 to 3 Load value direct, preparatory, comparison value 1 or 2 Byte 4 EXTF_ACK Bit 7: Error diagnostics acknowledgment Bit 6: Reserve = 0 Bit 5: Reserve = 0 Bit 4: Reserve = 0...
  • Page 207: Table 3-25 Notes On The Feedback Bits

    1Count5V/500kHz 3.8 Position feedback Notes on the Feedback Bits Table 3-25 Notes on the Feedback Bits Feedback bits Notes ERR_24V Short circuit of the encoder supply The error bit must be acknowledged by the EXTF_ACK control bit (see figure below) Diagnostic message if assigned.
  • Page 208 1Count5V/500kHz 3.8 Position feedback Resetting of the Status Bits STS_SYN, STS_OFLW, STS_UFLW, STS_ND Figure 3-41 Resetting of the Status Bits Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 209 1Count5V/500kHz 3.8 Position feedback Acceptance of Values with the Load Function Figure 3-42 Accepting Values with the Load Function (LOAD_VAL; LOAD_PREPARE; C_DOPARAM; C_INTTIME) Note Only one of the following control bits can be set at a particular time: LOAD_VAL or LOAD_PREPARE. Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted again.
  • Page 210 1Count5V/500kHz 3.8 Position feedback Acknowledgment Principle in Isochrone Mode In isochrone mode, 4 or 6 bus cycles are required to reset the status bits and to accept values during the load function in this mode. Figure 3-43 Acknowledgment Principle in Isochrone Mode Error Detection The program errors must be acknowledged.
  • Page 211: Assigning Parameters For Position Feedback

    3.8.7 Assigning Parameters for Position Feedback Introduction You can use either of the following to assign parameters for the 1Count5V/500kHz: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.3 SP2 or later Parameter list for Position Feedback Table 3-27 Parameter list for Position Feedback...
  • Page 212: Evaluation Of Count And Direction Signal

    1Count5V/500kHz 3.9 Evaluation of count and direction signal Evaluation of count and direction signal Signal Evaluation A, B Signal evaluation by means of A, B allows you to count directionally. Different evaluation modes are possible depending on the parameter assignment: Rotary encoder The 1Count5V/500kHz can count the edges of the signals.
  • Page 213 1Count5V/500kHz 3.9 Evaluation of count and direction signal Double Evaluation Double evaluation means that the positive and negative edge of the A signal are evaluated. Whether up or down count pulses are generated depends on the level of the B signal. The diagram below illustrates the double evaluation of the signals.
  • Page 214: Behavior At Cpu-Master-Stop

    1Count5V/500kHz 3.10 Behavior at CPU-Master-STOP 3.10 Behavior at CPU-Master-STOP Setting the Behavior at CPU/Master-STOP You can program what the 1Count5V/500kHz is to do in the event of the failure of the parent controller. Parameters Status of the 1Count5V/500kHz at What Happens if CPU/Master STOP New Parameters Have Been Assigned? Turn off DO...
  • Page 215 1Count5V/500kHz 3.10 Behavior at CPU-Master-STOP Leaving the Assigned State Under what conditions does the 1Count5V/500kHz leave the assigned state? The CPU or master must be in RUN mode, and you have to make a change at the control interface. Automatic New Parameter Assignment A new parameter assignment of the ET 200S station is made by your CPU/ DP master: •...
  • Page 216: Technical Specifications

    1Count5V/500kHz 3.11 Technical Specifications 3.11 Technical Specifications Technical Specifications General Technical Specifications of the 1Count5V/500kHz Dimensions and Weight Dimensions W x H x D (mm) 30×81×52 Weight Approx. 65 g Data for Specific Modules Number of channels Counter range 32 bits Voltages, Currents, Potentials Rated load voltage L+ 24 VDC...
  • Page 217 1Count5V/500kHz 3.11 Technical Specifications General Technical Specifications of the 1Count5V/500kHz Encoder Signals Level In accordance with RS 422 Terminating resistance 330 Ω Differential input voltage 1 V, minimum Maximum counting frequency 500 kHz Galvanic isolation from ET200S bus Shielded cable length 50 m, maximum Data for the Digital Outputs Output voltage...
  • Page 218 1Count5V/500kHz 3.11 Technical Specifications General Technical Specifications of the 1Count5V/500kHz Measuring Ranges in the Measuring Modes Maximum measuring range Frequency measurement 0.1 Hz to 500 kHz Rotational speed measurement 1/min ... 25000 /min Period measurement 10 µs ... 120 s Response Times Update rate of the counting modes Non-isochrone mode...
  • Page 219: 1Ssi

    1SSI Product Overview Order Number 6ES7 138-4DB03-0AB0 Compatibility The 1SSI with order number 6ES7 138-DB03-0AB0 replaces the 1SSI with the following order numbers: • 6ES7 138-4DB02-0AB0 • 6ES7 138-4DB01-0AB0 • 6ES7 138-4DB00-0AB0 and is fully compatible. Features • The 1SSI is an interface between an absolute encoder (SSI) and the parent controller. You edit the cyclically recorded encoder value in your controller program.
  • Page 220 1SSI 4.1 Product Overview • Fast mode can be selected; with rapid encoder value detection and compressed functionality (cannot be used with the IM 151 with the order number 6ES7 151-1AA00-0AB0). • Maximum encoder sampling rate (e.g., for ultrasonic encoders) is taken into account in isochrone mode •...
  • Page 221 4.1 Product Overview Configuration You can use either of the following to configure the 1SSI: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.4 SP2 and later, or with the HSP hardware support package (available online) STEP 7 V5.3 SP2 and later.
  • Page 222: Clocked Mode

    1SSI 4.2 Clocked Mode Clocked Mode Note The principles of isochrone mode are described in a separate manual. See Isochrone Mode Function Manual (A5E00212909). Hardware Requirements You will require the following for the 1SS in isochrone mode: • A CPU that supports isochrone mode •...
  • Page 223: Example: Starting 1Ssi

    1SSI 4.3 Example: Starting 1SSI Example: Starting 1SSI Introduction These instructions provide an example to guide you to a functioning application that will enable you to become familiar with and check the basic hardware and software functions of the 1SSI. For this example, you will operate the 1SSI in standard mode, rather than isochrone mode.
  • Page 224 1SSI 4.3 Example: Starting 1SSI Configuring with STEP 7 using HW Config You must first adapt the hardware configuration of your existing ET 200S station. 1. Open the relevant project in SIMATIC Manager. 2. Open the HW Config configuration table in your project. 3.
  • Page 225 1SSI 4.3 Example: Starting 1SSI Creating a Block and Integrating It into the Controller Program Create block FC101 and integrate it in your control program (in OB1, for example). This block requires the data block DB1 with a length of 16 bytes. The start address of the module in the following example is 256.
  • Page 226 1SSI 4.3 Example: Starting 1SSI Result You can now see that: • The UP LED or the DN LED on the 1SSI is on, depending on the direction in which you change the position of the SSI encoder. • The encoder value in the block changes. Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 227: Terminal Assignment Diagram

    1SSI 4.4 Terminal Assignment Diagram Terminal Assignment Diagram Wiring Rules The cables (terminals 1 and 5 and terminals 4 and 8) must be shielded, twisted-pair cables. The shield must be supported at both ends. To do this use the shield connection (see the ET 200S Distributed I/O System Manual).
  • Page 228: Configuring Standard Mode And Fast Mode

    1SSI 4.5 Configuring standard mode and fast mode Configuring standard mode and fast mode Introduction In order to take full advantage of the functionality of the 1SSI for the application in question, choose between fast mode and standard mode, depending on your automation task. Areas of Application Mode Closed-loop control applications such as position controls with path position as...
  • Page 229: Functions Of The 1Ssi

    1SSI 4.6 Functions of the 1SSI Functions of the 1SSI 4.6.1 Overview of 1SSI functions Operating Principle The 1SSI records the signals of the connected position encoder cyclically and forwards them, depending on the parameter assignment, to the feedback interface by means of the following functions: •...
  • Page 230: Encoder Value Detection

    1SSI 4.6 Functions of the 1SSI 4.6.2 Encoder Value Detection Description The absolute encoder transfers its encoder values in message frames to the 1SSI. The transmission of message frames is initiated by the 1SSI. The following alternatives are available for encoder value detection: •...
  • Page 231 1SSI 4.6 Functions of the 1SSI Isochronous Encoder Value Detection Isochronous encoder value detection is carried out automatically when the equidistant bus cycle is activated in the DP master system and the DP slave is synchronized to the bus cycle. The 1SSI initiates the transmission of a message frame in every bus cycle at time T , as long as the configured maximum encoder sampling rate does not result in a reduction.
  • Page 232: Gray/Binary Converter

    1SSI 4.6 Functions of the 1SSI 4.6.3 Gray/Binary Converter Description When Gray is set, the encoder value supplied by the absolute encoder in gray code is converted to binary code. When Binary is set, the supplied encoder value is not converted. Notice If you selected the Gray setting, the 1SSI always converts the total encoder value (13, 16, 21, 24, and 25 bits).
  • Page 233 1SSI 4.6 Functions of the 1SSI Normalization Example Presettings: You use a single-turn encoder with 2 (corresponds to 9 bits) = 512 steps/revolution (resolution/360°) with the following parameter assignment: • Encoder type: SSI-13 bit • Number of trailing bits: 4 places •...
  • Page 234: Detection Of Direction And Reversal Of The Direction Of Rotation

    1SSI 4.6 Functions of the 1SSI 4.6.5 Detection of Direction and Reversal of the Direction of Rotation Direction Detection The 1SSI needs the following information to detect the direction of movement of the encoder correctly: • Encoder type • Total steps of the absolute encoder •...
  • Page 235: Comparator (Only In Standard Mode)

    1SSI 4.6 Functions of the 1SSI 4.6.6 Comparator (Only in Standard Mode) Description The encoder position that is detected can be compared with up to two loadable values (without hysteresis). Both comparison results are stored in the feedback interface. The appropriate comparator becomes active only after the comparison value is loaded.
  • Page 236 1SSI 4.6 Functions of the 1SSI Loading the Comparison Value Figure 4-2 Value Transfer Comparator in Isochrone Mode In isochrone mode, the comparison values are loaded at time T and are effective as of time in the same bus cycle. Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 237: Latch Function (Only In Standard Mode)

    1SSI 4.6 Functions of the 1SSI 4.6.7 Latch Function (Only in Standard Mode) Description You use the latch function to freeze the current encoder value of the 1SSI at an edge at the digital input (DI). The encoder value can thus be evaluated on an event-dependent basis. A frozen encoder value is identified by the set bit 31 and is preserved until the termination of the latch function.
  • Page 238 1SSI 4.6 Functions of the 1SSI Terminating the Latch Function The latch function must be acknowledged. When the controller program acknowledges the acceptance of the encoder value, bit 31 is deleted and the encoder value is updated again. Freezing is then possible again. Figure 4-3 Latch Function Technological Functions...
  • Page 239: Error Detection In Standard Mode

    1SSI 4.6 Functions of the 1SSI 4.6.8 Error Detection in Standard Mode Description The absolute value encoder and sensor supply short circuit errors must be acknowledged. They have been detected by the 1SSl and are indicated at the feedback interface. A channel-specific diagnosis is carried out after you have enabled group diagnosis at parameter assignment (see the ET 200S Distributed I/O System manual).
  • Page 240: Error Detection In Fast Mode

    1SSI 4.6 Functions of the 1SSI 4.6.9 Error Detection in Fast Mode Description The absolute value encoder and sensor supply short circuit errors have been detected by the 1SSl and are indicated at the feedback interface. A channel-specific diagnosis is carried out after you have enabled group diagnosis at parameter assignment (see the ET 200S Distributed I/O System manual).
  • Page 241: Behavior At Cpu-Master-Stop

    1SSI 4.7 Behavior at CPU-Master-STOP Behavior at CPU-Master-STOP Description The 1SSI detects the CPU/ bus master STOP. The reaction to this is to stop the active operation. Exiting the CPU/Bus Master STOP Status The feedback interface of the 1SSI remains current. Without reassigning the parameters of the •...
  • Page 242: Setting Parameters For The 1Ssi

    1SSI 4.8 Setting parameters for the 1SSI Setting parameters for the 1SSI Overview You set the parameters for the 1SSI by means of the GSD file for the ET 200S or using the STEP 7 parameter assignment software. It is not possible to reassign the parameters by means of the user program.
  • Page 243 1SSI 4.8 Setting parameters for the 1SSI Parameters Value Range Note Latch: Encoder value Not active / With rising edge DI / With This parameter is available in the parameter falling edge DI / With both edges DI assignment software in standard mode only. Not active: The encoder value cannot be frozen.
  • Page 244: Control And Feedback Interfaces In Standard Mode

    1SSI 4.9 Control and Feedback Interfaces in Standard Mode Control and Feedback Interfaces in Standard Mode Note For the 1SSI, the following data of the control and feedback interface are consistent: Byte 0 to 3 Byte 4 to 7 Use the access or addressing mode for data consistency over the entire control and feedback interface on your master (only for configuration using the GSD file).
  • Page 245: Table 4-4 Assignment Of The Control Interface (Outputs)

    1SSI 4.9 Control and Feedback Interfaces in Standard Mode Table 4-4 Assignment of the Control Interface (Outputs) Address Assignment Bytes 0 to 3 Comparison value 1 or 2 (double word) Byte 4 Bit 7: Error acknowledgment EXTF_ACK Bit 6: Acknowledgment of latch function LATCH_ACK Bit 5: Reserved = 0 Bit 4: Reserved = 0 Bit 3: Reserved = 0...
  • Page 246 1SSI 4.9 Control and Feedback Interfaces in Standard Mode Bits Notes STS_LOAD Feedback bit for CMP_VAL1 and CMP_VAL2. The 1SSI uses this bit to indicate that a comparison value is loaded. STS_UP Status direction down; for encoder value change from larger to smaller encoder positions (including zero crossover) The parameter assignment of the 1SSI is correct, and the module is executing its functions.
  • Page 247: Feedback Interface In Fast Mode

    1SSI 4.10 Feedback Interface in Fast Mode 4.10 Feedback Interface in Fast Mode Description Refer to the table below for the assignment of the feedback interface (inputs): Table 4-5 Assignment of the Feedback Interface (Inputs) Address Assignment Bytes 0 to 3 Bit 31: Reserved = 0 or sign of life LZ Bit 30: Ready for operation (feedback is valid) RDY Bit 29: Parameter assignment error ERR_PARA;...
  • Page 248 1SSI 4.10 Feedback Interface in Fast Mode Access to the Feedback Interface in STEP 7 Programming Configuring with STEP 7 using the GSD Configuring with STEP 7 using HW Config File Feedback interface Read with SFC 14 "DPRD_DAT" Load command (e.g. L PID) Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 249: Technical Specifications

    1SSI 4.11 Technical Specifications 4.11 Technical Specifications Overview General Technical Specifications Dimensions and Weight Dimensions W x H x D (mm) 15 x 81 x 52 Weight Approx. 40 g Voltages, Currents, Potentials Rated load voltage L+ 24 VDC Range •...
  • Page 250 1SSI 4.11 Technical Specifications General Technical Specifications Status, Interrupts, Diagnostics Interrupts Status display for digital input DI LED 7 (green) Status display of first comparator CMP CMP LED (green) Encoder value change Up UP LED (green) Encoder value change Down DN LED (green) Group error SF LED (red)
  • Page 251 1SSI 4.11 Technical Specifications General Technical Specifications Response Times in Non-Isochrone Mode Update rate of the 1SSI In standard mode • 1 ms In fast mode • 700 µs Isochronous Times for the Module In standard mode • 125 µs + Frame runtime (in µs) 125 µs 0 µs 400 µs + Frame runtime if frame runtime >...
  • Page 252 1SSI 4.11 Technical Specifications Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 253: 2Pulse

    2PULSE Product Overview Order Number 6ES7 138-4DD00-0AB0 Features • 2-channel The two channels of the 2PULSE can be used independently of one another; they permit pulse output in four different modes. Minimum pulse duration: 200 µs, Accuracy: ± (pulse duration x 100 ppm) ±100 µs •...
  • Page 254 • Error detection/diagnostics (short circuit of the digital output and encoder supply) Configuration You can use either of the following to configure the 2PULSE: • A GSD file (http://www.ad.siemens.de/csi/gsd) • STEP 7 V5.0 SP3 and later. Restrictions with the 2PULSE electronic module (6ES7 138-4DD00-0AB0)
  • Page 255: Example: Starting 2Pulse

    2PULSE 5.2 Example: Starting 2PULSE Example: Starting 2PULSE Task These instructions guide you to a functioning application that will enable you to become familiar with and check the basic hardware and software functions of your 2PULSE. The "Pulse Output" mode will be used as an example here. Channel 0 of the 2PULSE is used in this example.
  • Page 256 2PULSE 5.2 Example: Starting 2PULSE Configuring with STEP 7 using HW Config You must first adapt the hardware configuration of your existing ET 200S station. 1. Open the relevant project in SIMATIC Manager. 2. Open the HW Config configuration table in your project. 3.
  • Page 257 2PULSE 5.2 Example: Starting 2PULSE Testing Start a pulse output with SW_ENABLE=1 and monitor the STS_ENABLE and STS_DO feedback bits using "Monitor/Modify Variables". 1. Select the "Block" folder in your project. Choose the "Insert > S7 Block > Variable Table" menu command to insert the VAT 1 variable table, and then confirm with 2.
  • Page 258: Modes And Functions

    2PULSE 5.3 Modes and Functions Modes and Functions 5.3.1 Overview Principle The 2PULSE has two channels. You can select a separate mode for each channel. You assign parameters to the mode using HWCONFIG or COM PROFIBUS. The mode that has been assigned parameters can then no longer be changed with your control program.
  • Page 259 2PULSE 5.3 Modes and Functions Interfaces to the Control Program and Process To execute the modes and functions, the 2PULSE has as an interface to the process of a digital input and a digital output for each channel (DI 0, DO 0 for channel 0 and DI 1, DO1 for channel 1).
  • Page 260: Pulse Output Mode

    2PULSE 5.3 Modes and Functions 5.3.2 Pulse Output Mode Definition For the pulse duration you set, the 2PULSE outputs a pulse at the DO digital output (output sequence) on expiration of the set on-delay. Figure 5-3 Basic Circuit Diagram for Pulse Output Mode Starting output sequence You must always issue the enable for the output sequence by means of the software enable (SW_ENABLE 0→1;...
  • Page 261 2PULSE 5.3 Modes and Functions Pulse diagram Figure 5-4 Output Sequence for Pulse Output Interrupting output sequence Deleting the software enable (SW_ENABLE = 0) during the on-delay or the pulse duration terminates the output sequence, and STS_ENABLE and the DO digital output are deleted. You will then have to restart the output sequence.
  • Page 262 2PULSE 5.3 Modes and Functions Setting Times Using a Time Base By means of the time base that can be assigned parameters, you can select the resolution and range of the pulse duration and the on-delay. Time base = 0.1 ms: You can set times from 0.2 ms to 6.5535 s with a resolution of 0.1 ms.
  • Page 263 2PULSE 5.3 Modes and Functions Pulse Output Mode Parameters Parameters Meaning Value Range Default Pulse output Mode Set the pulse output mode. • Pulse output Pulse-width modulation • Pulse train • On/off-delay • 0.1 ms Time base Using the time base, select the •...
  • Page 264 2PULSE 5.3 Modes and Functions Control and Feedback Meaning Value Range Channel 0 Channel 1 Signals Address Address Feedback Signals STS_ENABLE Indicates an output sequence is 0 = pulse output blocked Byte 0: Byte 4: running. 1 = pulse output running Bit 0 Bit 0 STS_DO...
  • Page 265: Pulse-Width Modulation Mode (Pwm)

    2PULSE 5.3 Modes and Functions 5.3.3 Pulse-Width Modulation Mode (PWM) Definition You specify an output value to the 2PULSE. The 2PULSE generates continuous pulses on this basis. The output value determines the pulse/interpulse ratio within a period (pulse-width modulation). The period can be adjusted. The pulse train is output on expiration of the assigned on-delay on the DO digital output of the 2PULSE (output sequence).
  • Page 266 2PULSE 5.3 Modes and Functions Pulse Diagram Figure 5-6 Pulse-Width Modulation Output Sequence Canceling the Output Sequence Deleting the software enable (SW_ENABLE=0) during the on-delay or the pulse output cancels the output sequence, and STS_ENABLE and the DO digital output are canceled. You will then have to restart the output sequence.
  • Page 267 2PULSE 5.3 Modes and Functions Modulation of the Pulse Duration The 2PULSE calculates the pulse duration on the basis of the output value you set (between 0 and 1000‰): Pulse duration = (output value/1000 [‰]) x period. Minimum Pulse Duration and Minimum Interpulse Period The minimum pulse duration and minimum interpulse period are superimposed on the proportional output characteristic.
  • Page 268 2PULSE 5.3 Modes and Functions Setting and Changing the Output Value You use the Output Format PWM parameter to select the value range of the output value. If your output value is between 0 and 1000, select the per mill output format. If your output value is a SIMATIC S7 analog value (between 0 and 27648), select the S7 analog output output format.
  • Page 269 2PULSE 5.3 Modes and Functions Setting the On-Delay You specify the on-delay as a value between 0 and 65535 in the parameters. Assigned on-delay = time base x set numerical value Parameters of Pulse-Width Modulation Mode Parameter Meaning Value Range Default Pulse output Mode...
  • Page 270 2PULSE 5.3 Modes and Functions Control and Feedback Signals of Pulse-Width Modulation Mode Control and Feedback Meaning Value Range Channel 0 Channel 1 Signals address address Control signals Software enable Starting and canceling of the 0 = SW_ENABLE canceled Byte 2: Byte 6: (SW_ENABLE) output sequence.
  • Page 271 2PULSE 5.3 Modes and Functions Input and Output Signals of Pulse-Width Modulation Mode Input and Output Signals Meaning Value Range Channel 0 Channel 1 terminal terminal Input signal HW enable You can select the HW enable 0 = HW enable canceled with the Function DI 1 = HW enable issued parameter.
  • Page 272: Pulse Train Mode

    2PULSE 5.3 Modes and Functions 5.3.4 Pulse Train Mode Definition The 2PULSE outputs the number of pulses you specified as a pulse train at the DO digital output on expiration of the set on-delay (output sequence). The period duration and pulse duration of the pulses can be adjusted.
  • Page 273 2PULSE 5.3 Modes and Functions Pulse Diagram Figure 5-9 Output Sequence of the Pulse Train Interrupting output sequence Deleting the software enable during the on-delay or the pulse train terminates the output sequence, and STS_ENABLE and the DO digital output are deleted. You will then have to restart the output sequence.
  • Page 274 2PULSE 5.3 Modes and Functions Setting Times Using a Time Base Select, by means of the time base that can be assigned parameters, the resolution and range of the period duration, the pulse duration, and the on-delay. Time base = 0.1 ms: You can set times from 0.2 ms to 6.5535 s with a resolution of 0.1 ms.
  • Page 275 2PULSE 5.3 Modes and Functions Parameters of the Pulse Train Mode Parameters Meaning Value Range Default Pulse output Mode Set the pulse train mode. • Pulse output Pulse-width modulation • Pulse train • On/off-delay • 0.1 ms Time base Using the time base, select the •...
  • Page 276 2PULSE 5.3 Modes and Functions Control and Feedback Signals of Pulse Train Mode Control and Feedback Meaning Value Range Channel 0 Channel 1 Signals Address Address Control Signals Byte 2: Byte 6: Software enable Starting and termination of the 0 = SW_ENABLE deleted (SW_ENABLE) output sequence.
  • Page 277 2PULSE 5.3 Modes and Functions Input and Output Signals of Pulse Train Mode Input and Output Signals Meaning Value Range Channel 0 Channel 1 Terminal Terminal Input Signal HW enable You can select the HW enable 0 = HW enable deleted with the DI function parameter.
  • Page 278: On/Off-Delay Mode

    2PULSE 5.3 Modes and Functions 5.3.5 On/Off-Delay Mode Definition The signal pending at the digital input DI is output with an on/off-delay at the digital output DO by the 2PULSE. Figure 5-10 Basic Circuit Diagram for On/Off-Delay Mode Output Sequence Enable You must always issue the enable for the output sequence via a software enable (SW_ENABLE 0→1;...
  • Page 279 2PULSE 5.3 Modes and Functions Pulse Diagram Figure 5-11 On/Off-Delay Output Sequence Canceling the Output Sequence Canceling the software enable (SW_ENABLE 0 = 1) during the output sequence causes the output sequence to be canceled, along with STS_ENABLE and the digital output. Truth Table Software enable Digital input DI...
  • Page 280 2PULSE 5.3 Modes and Functions Minimum Pulse Duration/Minimum Interpulse Period of the Digital Output DO The minimum pulse duration/minimum interpulse period of the digital output DO is 0.2 ms. Make sure you take this into consideration when you set the on/off-delay and the pulse duration/interpulse period of the digital input DI;...
  • Page 281 2PULSE 5.3 Modes and Functions The Interpulse Period of the Digital Input DI Is Too Short The 2PULSE detects an interpulse period that is too short on the positive edge on the digital input DI if: Interpulse period + on-delay ≤ off-delay. Response of the 2PULSE to an interpulse period that is too short: •...
  • Page 282 2PULSE 5.3 Modes and Functions Retriggering the Current Off-Delay The 2PULSE starts a new off-delay on the negative edge on the digital input DI if: Off-delay > pulse duration + interpulse period. This deletes the current on-delay. The digital output DO is only deleted if signal level 0 is present on the digital input DI longer than the off-delay.
  • Page 283 2PULSE 5.3 Modes and Functions Setting and Changing the Off-Delay Set the off-delay directly as a numerical value between 0 and 65535 in your control program. Off-delay = time base x set numerical value If you change the off-delay factor, the new off-delay is activated with the next negative edge on the digital input DI.
  • Page 284 2PULSE 5.3 Modes and Functions Control and Feedback Signals of On/Off-Delay Mode Control and Feedback Meaning Value Range Channel 0 Channel 1 Signals address address Control signals Software enable You must always issue the 0 = SW_ENABLE canceled Byte 2: Byte 6: (SW_ENABLE) software enable in your control...
  • Page 285 2PULSE 5.3 Modes and Functions Input and Output Signals for On/Off-Delay Mode Input and Output Signals Meaning Value Range Channel 0 Channel 1 terminal terminal Input signal Digital input DI The signal of the digital input 0 = no pulse DI is output with an on/off- 1 = pulse delay on digital output DO by...
  • Page 286: Function: Direct Control Of The Do Digital Output

    2PULSE 5.3 Modes and Functions 5.3.6 Function: Direct Control of the DO Digital Output Definition You can directly control the digital output DO of the 2PULSE to test the actuator you have connected. To do this, you have to select the function from your control program with the MANUAL_DO control bit set and with the SW_ENABLE control bit deleted.
  • Page 287: Function: Error Detection/Diagnostics

    2PULSE 5.3 Modes and Functions 5.3.7 Function: Error Detection/Diagnostics Parameter Assignment Error ERR_PARA If the 2PULSE cannot identify the parameters as its own, it generates a parameter assignment error. The two channels are then not assigned parameters. The 2PULSE slot you configure must match the setup. Make sure that you only set the 2PULSE parameters that have been described.
  • Page 288 2PULSE 5.3 Modes and Functions Parameters Parameter Meaning Value Range Default Group diagnostics When group diagnostics has Disable/enable Disable been enabled, the 2PULSE generates a diagnostic message for the CPU/master. Diagnostics DO The 2PULSE detects a short Off/on circuit of the digital output DO when Diagnostics DO=on.
  • Page 289: Behavior At Cpu-Master-Stop

    2PULSE 5.3 Modes and Functions 5.3.8 Behavior at CPU-Master-STOP Definition You can assign parameters to what the 2PULSE is to do in the event of the failure of the parent controller for the two channels together. Behavior at CPU-Master-STOP Channel-Specific Response and the Status of the 2PULSE Turn off DO Delete the DO digital output Delete STS_ENABLE and...
  • Page 290: Application Examples

    2PULSE 5.4 Application Examples Application Examples 5.4.1 Overview Introduction The following application examples give you an overview of possible uses for the 2PULSE in different processes. You use the 2PULSE in various modes according to your process-related requirements. The table below presents the possible modes for selected technological processes: Applications/Technological Processes Mode Filling of liquids...
  • Page 291: Filling Liquids

    2PULSE 5.4 Application Examples 5.4.2 Filling Liquids Task Filling is started as soon as a container is under the valve. The valve is opened for a preset pulse duration by means of the 24 V control signal. The amount of liquid is proportional to the specified pulse duration.
  • Page 292 2PULSE 5.4 Application Examples Pulse Output Mode Use channel 0 of the 2PULSE in pulse output mode for the filling process. In this mode, the 2PULSE generates a pulse at the DO digital output (24 V control signal) for the specifiable pulse duration to control the valve.
  • Page 293: Table 5-1 Parameter List For The Filling Process

    2PULSE 5.4 Application Examples Parameters The following parameters are required for channel 0 of the 2PULSE to fill liquids in pulse output mode. Table 5-1 Parameter List for the Filling Process Parameters Set Value Meaning Group diagnosis Enable The following errors trigger a diagnostic message: Short circuit - DO digital output •...
  • Page 294 2PULSE 5.4 Application Examples Programming/Flow Diagram Below you will find a section from a STEP 7 STL program. The configured start address of the inputs and outputs of the 2PULSE is 256. You use this part of the program to start the filling process. To do this, memory marker M30.0 must be set.
  • Page 295: Example: Heating A Liquid

    2PULSE 5.4 Application Examples 5.4.3 Example: Heating a Liquid Description A liquid is heated with an electrical heating element. The energy needed to do this is supplied to the heating element by a switching element (a contactor, for example). The 2PULSE generates a 24 V control signal on its digital output for the switching element. The temperature of the heating element is determined by the on/off length of the 24 V control signal.
  • Page 296 2PULSE 5.4 Application Examples Sequence 1. Starting heating process: To start the heating process, use the software enable (SW_ENABLE) in your control program. 2. Monitoring heating process: The error detection/diagnostic function allows you to check via the program that the heating element is being controlled correctly. Software enable (SW_ENABLE) 24 V control signal...
  • Page 297: Table 5-2 Parameter List For Heating A Liquid

    2PULSE 5.4 Application Examples Parameters The following parameters are required for channel 0 of the 2PULSE to heat a liquid in pulse- width modulation mode. Table 5-2 Parameter List for Heating a Liquid Parameter Set Value Meaning Group diagnostics Not enabled The following errors trigger a diagnostic message: Short circuit of digital output...
  • Page 298 2PULSE 5.4 Application Examples Programming/Flow Diagram Below you will find a section from a STEP 7 STL program. The configured start address of the inputs and outputs of the 2PULSE is 256. This program section starts the heating process. To do this, memory bit M30.0 must be set. You provide the output value in memory word MW32.
  • Page 299 2PULSE 5.4 Application Examples Additional Applications Limit-value monitoring of the temperature: To monitor the limits of the temperature of the medium, use a temperature sensor evaluated by an analog module. You can monitor the temperature with your control program. Temperature control: To control the temperature of the medium, use a temperature sensor evaluated by an analog module.
  • Page 300: Packing Piece Goods

    2PULSE 5.4 Application Examples 5.4.4 Packing Piece Goods Description Packing is started as soon as a folding box from conveyor 1 is in the correct position. The 24 V control signal controls the pusher and, when the compartmentalized conveyor is in operation, pushes the piece goods into the folding box.
  • Page 301 2PULSE 5.4 Application Examples Pulse Train Mode Use channel 0 of the 2PULSE in pulse train mode to pack piece goods. In this mode, the 2PULSE generates a specifiable number of pulses on the digital output DO to control the pusher.
  • Page 302 2PULSE 5.4 Application Examples Parameters The following parameters are required for channel 0 of the 2PULSE to pack piece goods in pulse train mode. Table 5-3 Parameter List for the Packing of Piece Goods Parameter Set Value Meaning Group diagnostics Enable The following errors trigger a diagnostic message:...
  • Page 303 2PULSE 5.4 Application Examples Programming/Flow Diagram Below you will find a section from a STEP 7 STL program. The configured start address of the inputs and outputs of the 2PULSE is 256. You can use this program section to start the packing process (5 pieces). To do this, memory bit M30.0 must be set.
  • Page 304 2PULSE 5.4 Application Examples Wiring/Terminal Assignment Diagram Figure 5-25 Terminal Assignment of the 2PULSE for the Packing of Piece Goods Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 305: Applying A Protective Layer

    2PULSE 5.4 Application Examples 5.4.5 Applying a Protective Layer Task Metal parts are to be covered with a wax layer. The conveyor belt moves at a constant speed. As soon as a metal part passes the initiator, the valve is opened. The distance the item and the wax have to cover is proportional to the time.
  • Page 306 2PULSE 5.4 Application Examples On/Off-Delay Mode Use channel 0 of the 2PULSE in on/off-delay mode to control the valve. In this mode, the 2PULSE generates a 24 V control signal at its DO digital output to control the valve. This 24 V control signal is switched on and off with the 24 V enable signal.
  • Page 307 2PULSE 5.4 Application Examples Parameters The following parameters are required for channel 0 of the 2PULSE to apply a protective layer in on/off-delay mode. Table 5-4 Parameter List for Applying a Protective Layer Parameters Set Value Meaning Group diagnosis Enable The following errors trigger a diagnostic message: Short circuit - digital output...
  • Page 308 2PULSE 5.4 Application Examples STL program Below you will find a section from a STEP7 STL program. The configured start address of the inputs and outputs of the 2PULSE is 256. You use this part of the program to start the process. To do this, memory marker M30.0 must be set.
  • Page 309 2PULSE 5.4 Application Examples Wiring/Terminal Assignment Diagram Figure 5-28 Terminal Assignment of the 2PULSE for Applying a Protective Layer Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 310: Technical Specifications Of The 2Pulse, Terminal Assignment

    2PULSE 5.5 Technical Specifications of the 2PULSE, Terminal Assignment Technical Specifications of the 2PULSE, Terminal Assignment Overview General Technical Specifications Dimensions and Weight Dimensions W x H x D (mm) 15x81x52 Weight Approx. 40 g Data for Specific Modules Number of Channels Voltage, Currents, Potentials Rated load voltage L+ (from the power module) 24 VDC...
  • Page 311 2PULSE 5.5 Technical Specifications of the 2PULSE, Terminal Assignment General Technical Specifications Data for the Digital Outputs Output voltage With signal "1" • Minimum L+ - 1 V Output current With signal "1" • Rated value – 7 mA...2 A Permitted Range –...
  • Page 312 2PULSE 5.5 Technical Specifications of the 2PULSE, Terminal Assignment The figures below show you the output current in relation to the ambient temperature and the frequency. Figure 5-29 Resistive Load - Both Channels PWM 50/50 Figure 5-30 Resistive Load - Only Channel 1 PWM 50/50 Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 313 2PULSE 5.5 Technical Specifications of the 2PULSE, Terminal Assignment Terminal Assignment The following table shows the terminal assignment for the 2PULSE. View Terminal Assignment Meaning Channel 0: Terminal 1 to 4 Channel 1: Terminal 5 to 8 24 VDC: Sensor supply M: Chassis ground DI: Input Signal DO: Output Signal...
  • Page 314: Technical Specifications For Programming, Reference Lists

    2PULSE 5.6 Technical Specifications for Programming, Reference Lists Technical Specifications for Programming, Reference Lists Assignment of theControl interface Address Assignment Channel 0 Channel 1 Word 0 Word 4 Depending on the mode Pulse output: Pulse duration • Pulse-width modulation: Output value •...
  • Page 315 2PULSE 5.6 Technical Specifications for Programming, Reference Lists Notes on the Control Signals Control Signal Notes Pulse output mode: Pulse duration • The time that is set for the DO digital output on expiration of the on- delay. You can change the on-delay that has been assigned parameters before On-delay factor •...
  • Page 316 2PULSE 5.6 Technical Specifications for Programming, Reference Lists Notes on the Feedback Bits Feedback Bits Notes ACK_SW_ENABLE Indicates the status of the software enable pending at the 2PULSE. ERR_24V Indicates a short circuit of the sensor supply. ERR_DO Indicates a short circuit at the digital output. To do this, you must switch on DO diagnostics. ERR_PARA Indicates a parameter assignment error.
  • Page 317 2PULSE 5.6 Technical Specifications for Programming, Reference Lists Access to the Control and Feedback Interface in STEP 7 Programming Configuration with STEP 7 Using the DDB Configuration with STEP 7 Using File HWCONFIG Feedback interface Load instruction (L PEW, for example) Load instruction (L PEW, for example) Control interface Transfer instruction (T PQW, for example)
  • Page 318 2PULSE 5.6 Technical Specifications for Programming, Reference Lists Technological Functions Operating Instructions, 02/2007, A5E00124867-05...
  • Page 319: Index

    Index 1Count24V/100kHz, 15 1SSI, 223 2PULSE, 255 1Count 5V/500kHz Counting modes, 125 Isochrone mode, 117 Operating modes, 124 Comparison setting, 235 Technical specifications, 216 Control and feedback interface 1Count24V/100kHz Accessing with STEP 7 programming, 50, 81, 100, Counting modes, 21 156, 189, 207, 246 Isochrone mode, 14 Control interface, 46, 77, 97, 205, 244, 314...
  • Page 320 Index for position detection, 89, 197 in counting modes, 30, 135 Once-Only Counting, 129 in measuring modes, 74, 182 Output assignment, 245, 247 Input assignment, 244 Parameters Isochrone mode 1Count24V/100kHz counting modes, 53 1Count 5V/500kHz, 117 1Count24V/100kHz measuring modes, 84 1Count24V/100kHz, 14 1Count24V/100kHz position feedback, 104, 211 1SSI, 222...

Table of Contents