You are on page 1of 254

Contents

SIMATIC Technological Functions ET 200S
Manual

Overview 1Count24V/100 kHz 1Count5V/500kHz 1SSI 2PULSE Index

1 2 3 4 5

This manual is part of the documentation package with the order number: 6ES7151-1AA00-8BA0

Edition 06/2002
A5E00124867-02

Safety Guidelines
This manual contains notices intended to ensure personal safety, as well as to protect the products and connected equipment against damage. These notices are highlighted by the symbols shown below and graded according to severity by the following texts:

! ! !

Danger
indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken.

Warning
indicates that death, severe personal injury or substantial property damage can result if proper precautions are not taken.

Caution
indicates that minor personal injury can result if proper precautions are not taken.

Caution
indicates that property damage can result if proper precautions are not taken.

Notice
draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation.

Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are defined as persons who are authorized to commission, to ground and to tag circuits, equipment, and systems in accordance with established safety practices and standards.

Correct Usage
Note the following:

!

Warning
This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens. This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended.

Trademarks
SIMATIC, SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS AG. Third parties using for their own purposes any other names in this document which refer to trademarks might infringe upon the rights of the trademark owners. Copyright W Siemens AG 2001 - 2002 All rights reserved The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved. Siemens AG Bereich Automation and Drives Geschaeftsgebiet Industrial Automation Systems Postfach 4848, D-90327 Nuernberg Siemens Aktiengesellschaft Disclaim of Liability We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed.  Siemens AG 2002 Technical data subject to change. A5E00124867-02

Contents
1 2 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Count24V/100kHz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 1.2 1.3 1.4 1.5 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.6.10 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.8 1.9 1.10 3 Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clocked Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Brief Instructions on Commissioning the 1Count24V/100kHz . . . . . . . . . . Terminal Assignment Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modes and Areas of Application of the 1Count24V/100kHz . . . . . . . . . . . . Count Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Endless Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Once-Only Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Periodic Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior of the Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gate Functions in Count Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Latch Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior of the Outputs in Count Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . Assignment of the Feedback and Control Interface for the Count Modes Parameter Assignment for the Count Modes . . . . . . . . . . . . . . . . . . . . . . . . Measurement Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Frequency Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Rotational Speed Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Period Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gate Functions in Measurement Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior of the Output in Measurement Modes . . . . . . . . . . . . . . . . . . . . . . Assignment of the Feedback and Control Interfaces for the Measurement Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameter Assignment for Measurement Modes . . . . . . . . . . . . . . . . . . . . . Count and Direction Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior at CPU-Master-STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Technical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 2-1 2-2 2-3 2-4 2-7 2-8 2-9 2-11 2-13 2-16 2-18 2-19 2-21 2-24 2-25 2-35 2-43 2-45 2-47 2-49 2-51 2-53 2-55 2-57 2-66 2-68 2-71 2-73 3-1 3-2 3-3 3-4 3-7 3-8

1Count5V/500kHz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 2.4 2.5 Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clocked Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Brief Instructions on Commissioning the 1Count5V/500kHz . . . . . . . . . . . Terminal Assignment Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modes and Areas of Application of the 1Count5V/500kHz . . . . . . . . . . . . .

Technological Functions ET 200S A5E00124867-02

iii

Contents

2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.6.10 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.8 2.9 2.10 4

Count Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Endless Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Once-Only Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Periodic Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior of the Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gate Functions in Count Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Latch Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior of the Outputs in Count Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . Assignment of the Feedback and Control Interface for the Count Modes Parameter Assignment for the Count Modes . . . . . . . . . . . . . . . . . . . . . . . . Measurement Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Frequency Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Rotational Speed Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Period Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gate Functions in Measurement Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior of the Outputs in Measurement Modes . . . . . . . . . . . . . . . . . . . . . Assignment of the Feedback and Control Interfaces for the Measurement Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameter Assignment for Measurement Modes . . . . . . . . . . . . . . . . . . . . . Count and Direction Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior at CPU-Master-STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Technical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-9 3-11 3-13 3-16 3-18 3-19 3-21 3-24 3-27 3-37 3-45 3-47 3-49 3-51 3-54 3-56 3-58 3-60 3-68 3-70 3-72 3-74 4-1 4-2 4-3 4-4 4-8 4-9 4-10 4-11 4-12 4-13 4-14 4-15 4-17 4-19 4-19 4-20 4-21 4-23 4-26 4-27

1SSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 4.5 4.6 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.7 4.8 4.9 4.10 4.11 Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clocked Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Brief Instructions on Commissioning the 1SSI . . . . . . . . . . . . . . . . . . . . . . . Terminal Assignment Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Areas of Application in Standard Mode and Fast Mode . . . . . . . . . . . . . . . Functions of the 1SSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoder Value Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gray/Binary Converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transmitted Encoder Value and Standardization . . . . . . . . . . . . . . . . . . . . . Detection of Direction and Reversal of the Direction of Rotation . . . . . . . . Comparator (Only in Standard Mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Latch Function (Only in Standard Mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . Error Detection in Standard Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Error Detection in Fast Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior at CPU-Master-STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameter Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Control and Feedback Interfaces in Standard Mode . . . . . . . . . . . . . . . . . . Feedback Interface in Fast Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Technical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

iv

Technological Functions ET 200S A5E00124867-02

Contents

5

2PULSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.2 5.3 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 5.4 5.4.1 5.4.2 5.4.3 5.4.4 5.5 5.6 Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Brief Instructions on Commissioning the 2PULSE . . . . . . . . . . . . . . . . . . . . Modes and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pulse Output Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pulse-Width Modulation Mode (PWM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pulse Train Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . On/Off-Delay Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Function: Direct Control of the DO Digital Output . . . . . . . . . . . . . . . . . . . . Function: Error Detection/Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Behavior at CPU-Master-STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Application Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Filling Liquids . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Heating a Liquid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Packing Piece Goods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Applying a Protective Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Technical Specifications for the Hardware and Terminal Assignment . . . . Technical Specifications for Programming, Reference Lists . . . . . . . . . . . .

5-1 5-2 5-3 5-6 5-8 5-13 5-21 5-27 5-34 5-36 5-38 5-40 5-41 5-45 5-50 5-54 5-58 5-62

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index-1

Technological Functions ET 200S A5E00124867-02

v

Contents vi Technological Functions ET 200S A5E00124867-02 .

It contains descriptions of the ET 200S modules that are particularly suited for use in certain processes. In each chapter you will then find a section with the heading Brief Instructions on Commissioning followed by the name of the relevant module. which lists the features and applications of the module described. These brief instructions tell you in a series of short steps how to install and configure the module. How to Find Your Way Around At the beginning of each chapter you will find a Product Overview. and how to test it in your user program.Overview 1 How the Manual is Structured This manual complements the ET 200S Distributed I/O System manual. how to integrate it in your use program. The Internet address where the current DDB file is stored is also provided. Index The index contains keywords that come up in the manual. Technological Functions ET 200S A5E00124867-02 1-1 . You will also find the order number of the module and the name and release of the software required.

Overview 1-2 Technological Functions ET 200S A5E00124867-02 .

5 2.2 2.1Count24V/100kHz 2 Description Page 2-2 2-3 2-4 2-7 2-8 2-9 2-45 2-68 2-71 2-73 Chapter Overview Section 2.4 2.3 2.8 2.1 2.7 2.9 2.10 Product Overview Clocked Mode Brief Instructions on Commissioning the 1Count24V/100kHz Terminal Assignment Diagram Modes and Areas of Application of the 1Count24V/100kHz Count Modes Measurement Modes Count and Direction Evaluation Behavior at CPU-Master-STOP Technical Specifications Technological Functions ET 200S A5E00124867-02 2-1 .6 2.

1 SP4 for clocked mode.1 SP2 in non-clocked mode.1Count24V/100kHz 2. • Real digital output for direct control or output of the comparison result • Virtual digital output Connectable Count Signals The 1Count24V/100kHz can count the signals of the following: • 24 V pulse generator with direction indicator • 24 V pulse generator without direction indicator • 24 V incremental encoder with two tracks that are 90o out of phase (rotary transducer). 2-2 Technological Functions ET 200S A5E00124867-02 . • Can be operated using terminal modules TM-E15S24-01 and TM-E15S26-A1 • Clocked mode • Modes of the 1Count24V/100kHz: Count modes: – Endless counting – Once-only counting – Periodic counting Measurement modes: – Frequency measurement – Rotational speed measurement – Period measurement • Gate control. Features • Connection of a pulse generator to count 24 V signals up to a frequency of 100 kHz. synchronization or latch function via digital input (P or M switch). You will need STEP 7 as of V5.1 Product Overview Order Numbers 6ES7 138-4DA03-0AB0 Compatibility The 1Count24V/100kHz with the order number 6ES7 138-4DA03-0AB0 replaces the 1Count24V/100kHz with the order number 6ES7 138-4DA02-0AB0 with full compatibility. You can use it with STEP 7 as of V5.

If clocking is lost.2 Clocked Mode Note The principles of clocked mode are described in a separate manual. the feedback interface is not updated. Hardware Requirements You will require the following for the clocked mode of the 1Count24V/100kHz: • A CPU that supports clocking • A DP master that supports the equidistant bus cycle • An IM 151 High Feature Features Depending on the system parameter assignment. the 1Count24V/100kHz works either in non-clocked or clocked mode.siemens. the 1Count24V/100kHz will return to clocked mode at the next cycle without an error response. If an error occurs during parameterization the 1Count24V/100kHz does not go into the clocked mode. • Measurement modes – You can change the function of the DO1 digital output during operation – You can change the integration time during operation Configuration You can use either of the following to configure the 1Count24V/100kHz: – A DDB file (http://www.de/csi/gsd) – STEP 7 as of V5.1 SP4 2. Technological Functions ET 200S A5E00124867-02 2-3 . In clocked mode the 8 bytes of the feedback interface are consistent.ad. the transmission of data between the DP master and 1Count24V/100kHz is clocked to the PROFIBUS DP cycle.1Count24V/100kHz Adjustment During Operation • Count modes – You can change the function and behavior of the digital outputs during operation. If clocking is lost due to faults or failure or a delay in global control (GC). In clocked mode.

At the same time.3 Brief Instructions on Commissioning the 1Count24V/100kHz Introduction These instructions use the example of “endless counting” to teach you to set up a functioning application in which you count the switching operations of a contact. Wiring and Fitting Install and wire the TM-E15S24-01 terminal module (see Figure 2-1). Connect the 1Count24V/100kHz to the terminal module (you will find detailed instructions on how to do this in Chapter 5 of the ET 200S Distributed I/O System manual). you learn about the basic functions of your 1Count24V/100kHz (hardware and software) and how to check them. • You must have the following: – A TM-E15S24-01 terminal module – A 1Count24V/100kHz – A pushbutton and the necessary wiring material Installation.1Count24V/100kHz 2. Requirements The following requirements must be met: • You put an ET 200S station into service at an S7 station with a DP master. 6ES7138 4DA03-0AB0 5 6 Figure 2-1 Terminal Assignment for the Example 2-4 Technological Functions ET 200S A5E00124867-02 .

Integration in the User Program Create block FC101 and integrate it in your control program (in OB1. for example). Double-click this number to open the DP Slave Properties dialog box.DBD0 PQD 256 DB1. The number 6ES7 138-4DA03-0AB0 C appears in the information text. Drag the entry to the slot at which you have installed your 1Count24V/100kHz.DBX4.DBD8 PID 260 DB1.DBD12 //Read 8 bytes from the 1Count24V/100kHz //Configured start address of the inputs Technological Functions ET 200S A5E00124867-02 2-5 . Save and compile your configuration. Leave the default settings unchanged. Open the relevant project in SIMATIC Manager.0 //Delete control bits Description //Open SW gate Network 2: Write to the control interface L T L T DB1. This block requires the data block DB1 with a length of 16 bytes.1Count24V/100kHz Configuration Using STEP7 and HWCONFIG You begin by adapting the hardware configuration of your existing ET 200S station.DBD0 DB1.DBD4 PQD 260 //Write 8 bytes to the 1Count24V/100kHz //Configured start address of the outputs Network 3: Read from the feedback interface L T L T PID 256 DB1. Select the 1CTR 24V/100kHz count mode from the hardware catalog. On the Parameters tab you will find the default settings for the 1Count24V/100kHz. On the Addresses tab. and download the configuration in STOP mode of the CPU by choosing PLC → Download to Module. STL Block: FC101 Network 1: Presettings L T T SET S 0 DB1. Make a note of these addresses for subsequent programming.DBD4 DB1. Call the HWCONFIG configuration table in your project. The start address of the module in the following example is 256. you will find the addresses of the slot to which you have dragged the 1Count24V/100kHz.

2-6 Technological Functions ET 200S A5E00124867-02 . • See that the count value in the block changes. Switch the CPU to RUN mode. Select the “Block” folder in your project. and then confirm with OK.1Count24V/100kHz Test Use “Monitor/Modify Variables” to monitor the count value and the gate. Use your count contact to generate pulses. Open the VAT 1 variable table. Choose the Insert → S7 Block → Variable Table menu command to insert the VAT 1 variable table. You Can Now: • See that the UP LED on the 1Count24V/100kHz is on.DBD8 DB1. and enter the following variables in the “Address” column: DB1. The status of the UP LED changes with each new pulse. The “internal gate status” bit must be set. Choose Variable Monitor to switch to → monitoring.DBx13.0 (current count value) (internal gate status) Choose PLC → File Connect To → Configured CPU to switch to online.

4 Terminal Assignment Diagram Wiring Rules The cables (terminals 1 and 5 and terminals 2 and 8) must be shielded. The shield must be supported at both ends. To do this use the shield contact (see the ET 200S Distributed I/O System manual. Terminal Assignment of the 1Count24V/100kHz In the following tables you will find the terminal assignment for the 1Count24V/100kHz. Appendix A. Table 2-1 Terminal Assignment of the 1Count24V/100kHz View Terminal Assignment Remarks B: Direction input or track B A: Pulse input or track A 24 VDC: Sensor supply M: Chassis ground DI: Digital input TM-E15S24-01 and 1Count24V/100kHz 6ES7138 4DA03-0AB0 DO1: Digital output B 24 VDC M DO1 A 24 VDC M DI 5 1 6 2 3 4 7 8 Pulse Generator Connection Encoder Type Pulse generator without direction indicator Pulse generator with direction indicator Pulse generator with 2 tracks that are 90o out of phase Connection 24 V count pulses at terminal 5 (A) 24 V count pulses at terminal 5 (A) and 24 V direction at terminal 1 (B) Track A terminal 5 (A) and track B terminal 1 (B) Up Up.1Count24V/100kHz 2. down Up. down Count Direction Technological Functions ET 200S A5E00124867-02 2-7 . ET 200S Accessories).

Decide whether you want to work with a DDB file or with STEP7. You will find the parameter lists in the descriptions of the modes.5 Modes and Areas of Application of the 1Count24V/100kHz To begin with. Drag the entry to the slot at which you have installed your 1Count24V/100kHz. Select C 6ES7 138-4DA03-0AB0 1CNT24V for count modes Select M 6ES7 138-4DA03-0AB0 1CNT24V for measurement modes Select the parameters. Drag the entry to the slot at which you have installed your 1Count24V/100kHz. Select the parameters. Select 1CTR24V/100kHz count mode for count modes The number 6ES7 138-4DA03-0AB0 C appears in the information text. 2-8 Technological Functions ET 200S A5E00124867-02 . Integrating the 1Count24V/100kHz with STEP7 (in Clocked and Non-Clocked Mode) Select an entry from the hardware catalog that corresponds to the mode you want. Select 1CTR24V/100kHz measurement mode for measurement modes The number 6ES7 138-4DA03-0AB0 M appears in the information text. You can integrate the 1Count24V/100kHz in your project in two different ways.1Count24V/100kHz 2. Integrating the 1Count24V/100kHz with STEP7 (Only in Non-Clocked Mode) Select an entry in the DDB file that corresponds to the mode you want. decide how you want to use the 1Count24V/100kHz. You can choose between the following modes: Count Modes Endless counting Once-only counting Periodic counting Measurement Modes Frequency measurement Rotational speed measurement Period measurement Parameters are assigned to the various modes.

Maximum Count Range The upper count limit is +2147483647 (231 – 1). for example) To execute one of these modes. Technological Functions ET 200S A5E00124867-02 2-9 .10). for example). – The parameterized upper count limit is reached when the main count direction is up.1Count24V/100kHz 2. The load value is then accepted by the 1Count24V/100kHz as the new count value when the following events occur: In the once-only counting and periodic counting modes – The lower or upper count limit is reached when no main count direction is parameterized. Load Value You can specify a load value for the 1Count24V/100kHz. – Zero is reached when the main count direction is down. the load value is not accepted).6 Count Modes The count modes are used in count applications (for counting items. – Synchronization – Latch and retrigger Gate Control To control the 1Count24V/100kHz. you have to assign parameters to the 1Count24V/100kHz (see Section 2. You can set this load value directly (LOAD_VAL). The lower count limit is –2147483648 (–231). You can choose between the following modes: • Endless counting (for position detection with incremental encoders. You can also load the load value by way of preparation (LOAD_PREPARE). for example) • Periodic counting (in applications with repeated count operations. In all count modes – The count operation is started by the SW gate or HW gate (if the count operation is continued. you have to use the gate functions. It is then accepted by the 1Count24V/100kHz directly as the new count value. for example) • Once-only counting (for counting items up to a maximum limit.6.

In each cycle the 1Count24V/100kHz transfers the counter status and latch value that were valid at the time Ti and the status bits valid at the time Ti. It is thus possible to create incrementing or decrementing count applications. 2-10 Technological Functions ET 200S A5E00124867-02 . RESET Statuses of the Following Values After Parameter Assignment Table 2-2 RESET Statuses Value Load value Main Count Direction None Up Down None Up Down None Up Down None Up Down RESET Status 0 0 Parameterized upper count limit 0 0 Parameterized upper count limit 0 0 Parameterized upper count limit 0 0 Parameterized upper count limit Count value Comparison value 1 and 2 Latch value Clocked Mode In clocked mode the 1Count24V/100kHz accepts the control bits and control values from the control interface in each PROFIBUS DP cycle and reports back the response to them in the same cycle.1Count24V/100kHz Main Count Direction With the main count direction. The parameterized main count direction has no effect on the direction evaluation when the count pulses are detected. A counter status controlled by hardware input signals can only be transferred in the same cycle if the input signal occurred before the time Ti. you assign parameters to indicate which RESET statuses the load value and count value can take on.

• If the 1Count24V/100kHz reaches the lower count limit when counting down.6.6. it will jump to the lower count limit and continue counting from there without losing the pulse. and another count pulse then comes.6. the 1Count24V/100kHz counts endlessly as of the load value: • If the 1Count24V/100kHz reaches the upper count limit when counting up. • The lower count limit is set at –2147483648 (–231).1Count24V/100kHz 2.5) • Latch function (see Section 2. • The upper count limit is set at +2147483647 (231 – 1). Counter status Upper count limit Load value Lower count limit Gate start Gate stop Time Figure 2-2 Endless Counting with Gate Function Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 2.1 Endless Counting Definition In this mode.7) Technological Functions ET 200S A5E00124867-02 2-11 . it will jump to the upper count limit and continue counting from there without losing the pulse.6) • Synchronization (see Section 2.6. and another count pulse then comes.

8. no switching through comparator • Activation at a counter status greater than or equal to the comparison value • Activation at a counter status less than or equal to the comparison value • Pulse on reaching the comparison value • Switching at comparison values (DO1 only) See Section 2. Influencing the Behavior of the Digital Outputs through: • Hysteresis • Pulse duration See Section 2.9) 2-12 Technological Functions ET 200S A5E00124867-02 .6.8 and 2.6.1Count24V/100kHz Function of the Digital Outputs Select one of the following functions for each digital output: • Output.6.8.6. Values That 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 Sections 2.

– The upper limit is parameterizable. – The count limits are fixed at the maximum count range. and the load value is parameterizable (parameter: upper count limit) and can be changed. and the load value has a RESET status of 0 and can be changed. – When the lower count limit is reached. you have to open the gate again.2 Once-Only Counting Definition In this mode. • When the count direction is down: – Counts as of the load value. – In the event of overflow or underflow at the respective count limit. – Counts up or down.1Count24V/100kHz 2. the gate is closed automatically. • When the main count direction is up: – Counts as of the load value. The internal gate is automatically closed in the event of an overflow/underflow at the count limits. the 1Count24V/100kHz jumps to the load value and the gate is closed. To restart counting. depending on the main count direction set. – Counts up or down. • When there is no main count direction: – Counts as of the load value. – When the upper count limit is reached. – Counts up or down.6. the counter jumps to the load value and the gate is closed. Technological Functions ET 200S A5E00124867-02 2-13 . the 1Count24V/100kHz counts once only. – The lower limit is fixed at 0.

Terminating Gate Function With an interrupting gate function.1Count24V/100kHz Counter status Upper count limit STS_OFLW Load value 0 STS_ND Lower count limit Gate start Automatic gate stop Gate start Automatic gate stop STS_UFLW Time Figure 2-3 Once-Only Counting Without Main Count Direction. the 1Count24V/100kHz remains at the underflow when the gate is started. Counter status Upper count limit Load value 0 STS_OFLW Lower count limit Gate start Automatic gate stop Gate start Automatic gate stop Time Figure 2-4 Once-Only Counting with Up as the Main Count Direction 2-14 Technological Functions ET 200S A5E00124867-02 .

Values That 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 Sections 2.6.7) Function of the Digital Outputs Select one of the following functions for each digital output: • Output.1Count24V/100kHz Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 2.5) • Latch function (see Section 2. no switching through comparator • Activation at a counter status greater than or equal to the comparison value • Activation at a counter status less than or equal to the comparison value • Pulse on reaching the comparison value • Switching at comparison values (DO1 only) See Section 2.8 and 2.6) • Synchronization (see Section 2.8.6.8.6.6.6.9) Technological Functions ET 200S A5E00124867-02 2-15 . Influencing the Behavior of the Digital Outputs through: • Hysteresis • Pulse duration See Section 2.6.6.

6. – Counts up or down. 2-16 Technological Functions ET 200S A5E00124867-02 . and the load value is parameterizable (parameter: upper count limit) and can be changed.1Count24V/100kHz 2. and the load value has a RESET status of 0 and can be changed. • When there is no main count direction: – Counts as of the load value.3 Periodic Counting Definition In this mode. – When the upper count limit is reached. – The upper limit is parameterizable. the 1Count24V/100kHz jumps to the load value and continues counting from there. – Counts up or down. – The lower limit is fixed at 0. – The count limits are fixed at the maximum count range. the 1Count24V/100kHz jumps to the load value and continues counting from there. depending on the main count direction set. – Counts up or down. the 1Count24V/100kHz jumps to the load value and continues counting from there. • When the main count direction is up: – Counts as of the load value. – In the event of an overflow or underflow at the respective count limit. – When the lower count limit is reached. • When the count direction is down: – Counts as of the load value. the 1Count24V/100kHz counts periodically.

6) • Synchronization (see Section 2.6.7) Technological Functions ET 200S A5E00124867-02 2-17 .6.5) • Latch function (see Section 2.1Count24V/100kHz Counter status Upper count limit STS_OFLW Load value 0 STS_ND Lower count limit Gate start STS_UFLW Gate stop Time Figure 2-5 Periodic Counting without a Main Count Direction Counter status Upper count limit Load value 0 STS_OFLW Lower count limit Gate start Figure 2-6 Gate stop Time 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 • HW gate (see Section 2.6.

2-18 Technological Functions ET 200S A5E00124867-02 . no switching through comparator • Activation at a counter status greater than or equal to the comparison value • Activation at a counter status less than or equal to the comparison value • Pulse on reaching the comparison value • Switching at comparison values (DO1 only) See Section 2. Note If you have selected the 24V M switch setting for the ”Sensor A.9) 2.8 and 2.6.6.6.6. The STS_DI feedback bit indicates the level of the digital input. you must use M-switching sensors.8.8. you can switch on a filter depending on the minimum pulse duration or the maximum signal frequency (sensor and input filter parameter). The level of the digital input can be inverted by parameter assignment (exception: inversion is not possible in the latch function). To filter the input signal.4 Behavior of the Digital Inputs Digital Input of the 1Count24V/100kHz The DI digital input can be operated with different sensors (P switch and series mode or M switch). Influencing the Behavior of the Digital Outputs through: • Hysteresis • Pulse duration See Section 2. Values That 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 Sections 2. B.1Count24V/100kHz Function of the Digital Outputs Select one of the following functions for each digital output: • Output.6. DI” parameter.

Interrupting Gate Function Technological Functions ET 200S A5E00124867-02 2-19 . It is closed when this bit is reset. You parameterize the hardware gate as a function of the digital input. When it is interrupted.5 Gate Functions in Count Modes Software Gate and Hardware Gate The 1Count24V/100kHz has two gates • A software gate (SW gate). When it is terminated. you can specify whether the internal gate is to terminate or interrupt counting.1Count24V/100kHz 2. Note the transfer times and run times of your control program in this connection. The STS_GATE feedback bit (internal gate status) indicates this. the setting of the SW gate is decisive. after the gate is closed and reopened (gate start). interrupted. counting continues from the previous value The diagrams below indicate how the interrupting and terminating gate function work: Counter status Upper count limit Load value Lower count limit Gate start Gate stop Gate start Time Figure 2-7 Endless Counting. Counting is activated. In the once-only counting mode. Terminating and Interrupting Gate Function When parameterizing the gate function.6. Counting is only active when the HW gate and the SW gate are open. counting starts again from the beginning. If a HW gate has not been parameterized. and terminated by means of the internal gate. which is controlled by means of the digital input on the 1Count24V/100kHz. Internal Gate The internal gate is the logical AND of the HW gate and SW gate. Up. the internal gate is closed automatically when there is an overflow/underflow at the count limits. which is controlled by the SW_GATE control bit. • A hardware gate (HW gate). continued. The software gate can only be opened by a 0-to-1 edge change of the SW_GATE control bit. after the gate is closed and reopened (gate start). It is opened when there is a 0-to-1 edge change at the digital input and closed when there is a 1-to-0 edge change.

In both cases. the 1Count24V/100kHz delivers the current count value in cycle “n+1” as of the time Ti. Down. Terminating Gate Function Gate Control by Means of the SW Gate Only When the gate is opened. one of the following things occurs. one of the following things occurs. “n+1”. When the HW gate is opened. counting continues as of the current count value. In the same cycle. depending on the parameters assigned: – Counting continues from the current count value or – Counting starts at the load value If the SW gate is opened in clocked mode in PROFIBUS DP cycle ”n” by setting the SW_GATE control bit. counting starts at the time To in cycle “n+1” if the HW gate is already open at this time. 2-20 Technological Functions ET 200S A5E00124867-02 . counting only starts once the HW gate is open. Gate Control by Means of the SW Gate and HW Gate If the SW gate opens when the HW gate is already open. depending on the parameters assigned: – Counting continues from the current count value or – Counting starts at the load value If the SW gate is opened in clocked mode in PROFIBUS DP cycle ”n” by setting the SW_GATE control bit.1Count24V/100kHz Counter status Upper count limit Load value Lower count limit Gate start Gate stop Gate start Time Figure 2-8 Endless Counting. the 1Count24V/100kHz delivers the current count value at the time Ti. counting starts at To in cycle “n+1”. If the HW gates opens between the times To and Ti in cycle “n+1”.

The STS_DI bit indicates the level of the latch and retrigger signal.1Count24V/100kHz 2.6 Latch Function There are two latch functions: • Latch and retrigger • Latching The Latch and Retrigger Function In order to be able to use this function. Count pulses SW_GATE DI digital input Counter status Latch value Figure 2-9 Latch and Retrigger with Load Value=0 This function stores the current internal counter status of the 1Count24V/100kHz and retriggers counting when there is an edge at the digital input. It is started at the first rising edge at the digital input. This means that the current internal counter status at the time of the edge is stored. Technological Functions ET 200S A5E00124867-02 2-21 . The count mode must be enabled by the SW gate before the function can be executed.6. The stored counter status rather than the current counter status is indicated at the feedback interface. The counter status can thus be evaluated independently of events. as of which it resumes counting. and the 1Count24V/100kHz is then loaded again with the load value. you must have selected it from the digital input function parameters.

you must select the DI function ”Latch on 0/1 Edge” when parameterizing the digital input. Counting is also latched and triggered in clocked mode at each edge on the digital input. If you close the SW gate. Direct loading of the counter does not cause the indicated stored counter status to be changed. this means that when your open the SW gate again. counting is continued. The counter status that was valid at the time of the last edge before the time Ti is displayed at the feedback interface. The 1Count24V/100kHz begins at the load value. it only interrupts counting. The Latching Function In order to be able to use this function. The latch value is always the exact count at the time of the positive edge at the DI digital input.1Count24V/100kHz The latch value is preset with its RESET status (Table 2-2 on page 2-10). 2-22 Technological Functions ET 200S A5E00124867-02 . The DI digital input remains active even when the SW gate is closed. It is not changed when the SW gate is opened. The count function is started when the SW gate is opened. Count pulses SW_GATE DI digital input Counter status Latch value Figure 2-10 Latch with a Load Value of 0 The counter status and latch value are preset with their RESET states (see Table 2-2 on page 2-10).

the effect is as when parameterized. In clocked mode the counter status that was latched at the time of the last edge before the time Ti is displayed at the feedback interface. The STS_DI bit indicates the level of the latch signal. Further possible causes of parameter assignment errors with the latch function: • DI function incorrect Technological Functions ET 200S A5E00124867-02 2-23 . When you close the SW gate. The DI digital input remains active even when the SW gate is closed. Direct loading of the counter does not cause the indicated stored counter status to be changed.1Count24V/100kHz The stored counter status rather than the current counter status is indicated at the feedback interface. terminating or interrupting.

the first edge loads the 1Count24V/100kHz with the load value after the enable bit is set.6. the first edge and each subsequent edge load the 1Count24V/100kHz with the load value after the enable bit is set. You can select between once-only and periodic synchronization. the rising edge of a reference signal at the input sets the 1Count24V/100kHz to the load value. 2-24 Technological Functions ET 200S A5E00124867-02 . once only Enable CRTL_SYN Count value Load value Synchronization.1Count24V/100kHz 2. Internal count pulses (up or down) Digital input (zero mark) Synchronization. periodic Enable CRTL_SYN Count value Load value Figure 2-11 Once-Only and Periodic Synchronization If you have parameterized synchronization. you must have selected it from the digital input function parameters. • The “enable synchronization CTRL_SYN” control bit must be set.7 Synchronization In order to be able to use this function. • In once-only synchronization. The following conditions apply: • The count mode must have been started by the SW gate. • In periodic synchronization.

6. The outputs can be activated.1Count24V/100kHz • After successful synchronization. It must be reset by the RES_STS control bit. The various ways of setting the behavior of the outputs are described in this section. depending on the counter status and comparison values. In clocked mode. The 1Count24V/100kHz has a real digital output and a virtual digital output that exists only as a status bit at the feedback interface. You can change the function and the behavior of the digital outputs during operation. 2. the set feedback bit STS_SYN indicates that the rising edge on the digital input was between the time Ti in the current cycle and Ti in the previous cycle. • The signal of a bounce-free switch or the zero mark of a rotary transducer can serve as the reference signal. which are assigned to the digital outputs. Both outputs are parameterizable. • The STS_DI feedback bit indicates the level of the reference signal.8 Behavior of the Outputs in Count Modes The 1Count24V/100kHz lets you store two comparison values. The new function takes effect immediately. You can choose from the following functions: • Output • Counter status ≥ comparison value • Counter status ≤ comparison value • Pulse at comparison value • Switching at comparison values (DO1 only) Technological Functions ET 200S A5E00124867-02 2-25 . the STS_SYN feedback bit is set.

The control bits CTRL_DO1 and CTRL_DO2 must be set for this. The comparison result is indicated by the status bits STS_CMP1 and STS_CMP2. Clocked mode: In clocked mode. 2-26 Technological Functions ET 200S A5E00124867-02 . You can query the status of the outputs with the status bits STS_DO1 and STS_DO2 at the feedback interface. The status of the virtual output DO2 is reported at the time Ti. Counter Status . the corresponding bit is set again immediately. the relevant comparator switches the output on. The status of the virtual output DO2 is reported at the time Ti. the output DO1 is switched at the time To. These status bits retain their status until they are acknowledged. The status bits STS_CMP1 and STS_CMP2 indicate that the relevant output is or was switched on. Clocked mode: In clocked mode. If the output is still switched. These status bits are also set when the control bit SET_DO1 or SET_DO2 is operated without DO1 or DO2 being enabled. The control bits CTRL_DO1 and CTRL_DO2 must be set for this. Comparison Value and Counter Status 3 Comparison Value If the comparison conditions are fulfilled. You cannot acknowledge and thus reset these bits until the comparison conditions are no longer fulfilled.1Count24V/100kHz Output You can switch the outputs on and off with the control bits SET_DO1 and SET_DO2. as well. the DO1 output is switched as soon as the comparison condition is fulfilled and is therefore independent of the PROFIBUS DP cycle. The status of the output is indicated by STS_DO1 and STS_DO2.

the comparator switches on the relevant digital output for the parameterized pulse duration. The status of the virtual output DO2 is reported at the time Ti. Pulse Duration When the Comparison Value Is Reached The pulse duration begins when the digital output is set. the comparator switches only when the comparison value in the main count direction is reached. as well. the DO1 output is switched as soon as the comparison condition is fulfilled and is therefore independent of the PROFIBUS DP cycle. the output is set until the comparison condition is no longer fulfilled. The pulse duration can be preselected between 0 ms and 510 ms in steps of 2 ms. Note that the count pulse times must be greater than the minimum switching times of the digital output. Clocked mode: In clocked mode. Pulse Output If the counter status reaches the comparison value. as well. the comparator switches when the comparison value is reached from either direction. The pulse duration specifies how long the output is to be set for. If the pulse duration is 0. the DO1 output is switched as soon as the comparison condition is fulfilled and is therefore independent of the PROFIBUS DP cycle. If a main count direction is not parameterized. Clocked mode: In clocked mode. If a main count direction is parameterized.1Count24V/100kHz Comparison Value Reached. it is reset when the pulse duration has elapsed. The comparison result is indicated by means of the status bit STS_CMP1 or STS_CMP2 and cannot be reset by acknowledgment until the pulse duration has elapsed. Technological Functions ET 200S A5E00124867-02 2-27 . The inaccuracy of the pulse duration is less than 2 ms. The status bits STS_DO1 and STS_DO2 always have the status of the corresponding digital output. If the digital output is set by means of the control bit SET_DO1 or SET_DO2. The control bit CTRL_DO1 or CTRL_DO2 must be set for this. The pulse duration can be set to suit the actuators used. The status of the virtual output DO2 is reported at the time Ti.

the DO1 output is switched as soon as the comparison condition is fulfilled and is therefore independent of the PROFIBUS DP cycle. The status of the virtual output DO2 is reported at the time Ti. and • After the comparison values are loaded. There is no hysteresis in the case of this output behavior. Counter status V1 V2 0 t DO1 t Figure 2-12 V2 < V1 at the Start of the Count 2-28 Technological Functions ET 200S A5E00124867-02 . enable the DO1 output with CRTL_DO1. You can only acknowledge and thus reset this bit when the comparison condition is no longer fulfilled. Clocked mode: In clocked mode.1Count24V/100kHz Switching at comparison values The comparator switches the output when the following conditions are met: • The two comparison values must be loaded by means of the load functions CMP_VAL1 and CMP_VAL2. The following table shows you when the DO1 is switched on or off: DO1 Is Switched On When V2 > V1 (see Figure 2-12) V2 = V1 V2 > V1 (see Figure 2-13) V2 ≤ counter status ≤ V1 DO1 Is Switched Off When V2 > counter status or counter status > V1 V2 ≠ counter status ≠ V1 V1 ≤ counter status ≤ V2 V2 = counter status = V1 V1 > counter status or counter status > V2 The comparison result is indicated by the status bit STS_CMP1. It is not possible to control the DO1 output with the SET_DO1 control bit in the case of this output behavior. as well.

make sure you consider all the parameterized dependencies. for example. Specific Conditions If you parameterize switching at comparison values for DO1. To prevent switching occurring in the case of small fluctuations. Hysteresis also works with overflow and underflow. If there is a comparison value in this fluctuation range. You can parameterize a range between 0 and 255 (0 means hysteresis switched off). This status causes the counter status to fluctuate around a particular value. you must do the following: • Set hysteresis=0 and • Also parameterize “output” for the DO2 output Hysteresis A sensor can remain at a particular position and then fluctuate around this position.1Count24V/100kHz Counter status V2 V1 0 t DO1 t Figure 2-13 V2 > V1 at the Start of the Count Setting or Changing the Function and Behavior of the DO1 Digital Output If you want to set or change the behavior of the DO1. Technological Functions ET 200S A5E00124867-02 2-29 . otherwise a parameter assignment error or loading error may occur. the associated output is switched on and off in accordance with the rhythm of the fluctuations. the 1Count24V/100kHz is equipped with parameterizable hysteresis.

It shows the differences in the behavior of an output when hysteresis of 0 (switched off) is parameterized as opposed to hysteresis of 3. the result of comparison remains unchanged. the 1Count24V/100kHz deletes the output when there is a change in count direction at the comparison value. If the count value goes outside the hysteresis range. The counter is parameterized with settings of “Up” for “Main count direction” and “Switch on at counter status ≥ comparison value”. the comparison value = 5. The comparator switches again according to its comparison conditions. When the comparison condition is met. In the example. hysteresis is no longer active. Comparison Value and Counter Status 3 Comparison Value The diagram below provides an example of how hysteresis works. hysteresis becomes active. 2-30 Technological Functions ET 200S A5E00124867-02 . Count value 8 7 6 5 4 3 2 1 0 Hys0 Hys3 Figure 2-14 Example of How Hysteresis Works Note If the counter status is equal to the comparison value and hysteresis is active. While the hysteresis is active.1Count24V/100kHz How Hysteresis Works with Counter Status .

While the hysteresis is active. The counter is parameterized with the settings “pulse when comparison value is reached”. Count value 8 7 6 5 4 3 2 1 0 Hys0 Hys3 Figure 2-15 Example of How Hysteresis Works Technological Functions ET 200S A5E00124867-02 2-31 . It shows the differences in the behavior of an output when hysteresis of 0 (switched off) is parameterized as opposed to hysteresis of 3. If the count value goes outside the hysteresis range.1Count24V/100kHz How Hysteresis Works When the Comparison Value Is Reached and the Pulse Duration = 0 The diagram below provides an example of how hysteresis works. In the example. the comparison value = 5. hysteresis is no longer active. “no main count direction” and “pulse duration = 0”. the result of comparison remains unchanged. hysteresis becomes active. The comparator deletes the result of the comparison. When the comparison conditions are met.

hysteresis becomes active and a pulse of the duration indicated in the parameters is output. the comparison value = 5. If the count value goes outside the hysteresis range. Output Pulse Duration The diagram below provides an example of how hysteresis works. In the example. It shows the differences in the behavior of an output when hysteresis of 0 (switched off) is parameterized as opposed to hysteresis of 3. When the comparison conditions have been met.1Count24V/100kHz How Hysteresis Works When the Comparison Value Is Reached. When hysteresis becomes active. “no main count direction” and “pulse duration > 0”. a pulse is output. the 1Count24V/100kHz stores the count direction. If the hysteresis range is exited in a different direction to the one stored. hysteresis is no longer active. The counter is parameterized with the settings “pulse when comparison value is reached”. Count value 8 7 6 5 4 3 2 1 0 Hys0 Hys3 Figure 2-16 Example of How Hysteresis Works 2-32 Technological Functions ET 200S A5E00124867-02 .

only one pulse of the specified duration is output. The SET_DO1 control bit is not permitted in the case of switching at comparison values. Loading the Comparison Values Pass the comparison values to the 1Count24V/100kHz. as long as the count value is at the comparison value or hysteresis is active. the output can be set with SET_DO1 or SET_DO2. Note that the comparators continue to be active and can set or reset the output if there is a change in the comparison result.1Count24V/100kHz Control of the Outputs Simultaneously to the Comparators If you selected a comparison function for the outputs. Counting is not affected by this. Valid Range for the Two Comparison Values Main Count Direction: None Lower count limit to upper count limit Main Count Direction: Up –2147483648 to upper count limit –1 Main Count Direction: Down 1 to 2147483647 Technological Functions ET 200S A5E00124867-02 2-33 . you can simulate the effect of the comparison functions by means of your control program: • The output is set by the positive edge of SET_DO1 or SET_DO2. In this manner. you can continue to control the outputs with SET_DO1 or SET_DO2. • A negative edge of SET_DO1 or SET_DO2 resets the output. If you specified that a pulse is to be output when the comparison value is reached. Note An output set by SET_DO1 or SET_DO2 is not reset at the comparison value by the comparator. For pulse duration = 0.

• Pulse duration: The new pulse duration takes effect with the next pulse. When you do this... 2-34 Technological Functions ET 200S A5E00124867-02 . • Hysteresis: An active hysteresis (see How Hysteresis Works .1Count24V/100kHz Changing the Function and Behavior of the Digital Outputs You can change the functions and behavior of the outputs during operation by means of the control interface. The new range of hysteresis is applied the next time the comparison value is reached. the 1Count24V/100kHz does not make any change to the output. the output is not changed until after the next count pulse. the 1Count24V/100kHz deletes the outputs and accepts the values as follows: • Function of the digital outputs DO1 and DO2: If you change the function such that the comparison condition is fulfilled.) remains active after the change. if hysteresis is active. However.

Table 2-3 Address Feedback Interface (Inputs) Assignment Count value or stored count value in the case of the latch function at the digital input Bit 7: Short circuit of the sensor supply Bit 6: Short circuit / wire break / overtemperature Bit 5: Parameter assignment error Bit 4: Reserve = 0 Bit 3: Reserve = 0 Bit 2: Resetting of status bit active Bit 1: Load function error Bit 0: Load function active RES_STS_A ERR_LOAD STS_LOAD STS_C_DN STS_C_UP STS_DO2 STS_DO1 STS_DI STS_GATE STS_ND STS_UFLW STS_OFLW STS_CMP2 STS_CMP1 ERR_24V ERR_DO1 ERR_PARA Designation Bytes 0 to 3 Byte 4 Byte 5 Bit 7: Down direction status Bit 6: Up direction status Bit 5: Reserve = 0 Bit 4: DO2 status Bit 3: DO1 status Bit 2: Reserve = 0 Bit 1: DI status Bit 0: Internal gate status Byte 6 Bit 7: Zero-crossing in the count range in counting without a main counting direction Bit 6: Lower count limit Bit 5: Upper count limit Bit 4: Comparator 2 status Bit 3: Comparator 1 status Bit 2: Reserve = 0 Bit 1: Reserve = 0 Bit 0: Synchronization status STS_SYN Byte 7 Reserve = 0 Technological Functions ET 200S A5E00124867-02 2-35 .9 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 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 DDB file).1Count24V/100kHz 2.6.

Comparison Value 1 or 2 Byte 0 Behavior of DO1. Preparatory. DO2 (range 0 to 255) Pulse duration [2 ms] DO1. DO2 Load comparison value 2 Load comparison value 1 Load counter (preparatory) Load counter (direct) Byte 4 EXTF_ACK CTRL_DO2 SET_DO2 CTRL_DO1 SET_DO1 RES_STS CTRL_SYN SW_GATE Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Bit 7: Bit 6: Bit 5: Byte 5 C_DOPARAM CMP_VAL2 CMP_VAL1 LOAD_PREPARE LOAD_VAL Bytes 6 to 7 Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Reserve = 0 2-36 Technological Functions ET 200S A5E00124867-02 . DO2 (range 0 to 255) Reserve = 0 Diagnostic error acknowledgment Enable DO2 DO2 control bit Enable DO1 DO1 control bit Start resetting of status bit Enable synchronization SW gate control bit Reserve = 0 Reserve = 0 Reserve = 0 Change function and behavior of DO1. DO2 of the 1Count24V/100kHz Bit 2 0 0 0 0 1 1 1 1 Bit 1 0 0 1 1 0 0 1 1 Bit 5 0 0 1 1 Bytes 1 to 3 Byte 1: Byte 2: Byte 3: Bit 0 0 1 0 1 0 1 0 1 Bit 4 0 1 0 1 Function of DO1 Output Activation at a counter status ≥ the comparison value Activation at a counter status ≤ the comparison value Pulse on reaching the comparison value Switching at comparison values Disabled Disabled Disabled Function of DO2 Output Activation at a counter status ≥ the comparison value Activation at a counter status ≤ the comparison value Pulse on reaching the comparison value Bytes 0 to 3 Hysteresis DO1.1Count24V/100kHz Table 2-4 Address Control Interface (Outputs) Assignment Load Value Direct.

This may result in the following error: The conditions for switching at comparison values are not fulfilled. (see Figure 2-20) LOAD_PREPARE Load counter – preparatory (see Figure 2-18) The value from bytes 0 to 3 is adopted as the load value.1Count24V/100kHz Notes on the Control Bits Control Bits C_DOPARAM Notes Change function and behavior of DO1. CMP_VAL1 Load comparison value 1 (see Figure 2-18) The value from bytes 0 to 3 is transferred to comparison value 1 by means of the control bit “Load comparison value 1 – CMP_VAL1”. and pulse duration of DO1. DO2 (see Figure 2-18) The values from bytes 0 to 2 are accepted as new function. CTRL_DO1 Enable DO1 You use this bit to enable the DO1 output. CMP_VAL2 Load comparison value 2 (see Figure 2-18) The value from bytes 0 to 3 is transferred to comparison value 2 by means of the control bit “Load comparison value 2 – CMP_VAL2”. CTRL_DO2 Enable DO2 You use this bit to enable the DO2 output. SET_DO2 DO2 control bit Switches the DO2 digital output on and off when CTRL_DO2 is set. CTRL_SYN EXTF_ACK You use this bit to enable synchronization. (See Figure 2-25) SET_DO1 DO1 control bit Switches the DO1 digital output on and off when CTRL_DO1 is set. DO2. Technological Functions ET 200S A5E00124867-02 2-37 . SW_GATE SW gate control bit The SW gate is opened/closed by means of the control interface with the SW_GATE bit. Error acknowledgment The error bits must be acknowledged by means of the control bit EXTF_ACK after the cause is removed. Start resetting of status bit The status bits are reset by means of the acknowledgment process between the RES_STS bit and the RES_STS_A bit. LOAD_VAL RES_STS The value from bytes 0 to 3 is loaded directly as the new counter value (see Figure 2-18). hysteresis.

It must be acknowledged by means of the RES_STS control bit. CMP_VAL2.1Count24V/100kHz Notes on the Feedback Bits Feedback Bits ERR_24V Short circuit of the sensor supply The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 2-28). and C_DOPARAM cannot be set simultaneously during transfer. ERR_DO1 Short circuit/wire break/overtemperature at output DO1 The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 2-28). Upper count limit violated Lower count limit violated Both bits must be reset. ERR_PARA RES_STS_A STS_C_DN STS_C_UP STS_CMP1 Parameter assignment error – ERR_PARA Resetting of the status bits active (see Figure 2-17) Down direction status Up direction status Comparator 1 status The STS_CMP1 status bit indicates that the output is or was switched on. STS_DO2 DO2 status The STS_DO2 status bit indicates the status of the virtual DO2 digital output. the bit is set again immediately. This results in setting the ERR_LOAD status bit. STS_DI DI status The status of the DI is indicated in all modes by means of the STS_DI bit at the feedback interface. LOAD_PREPARE. if parameterized. the STS_SYN bit is set. similar to loading an incorrect value (which is not accepted). The bit must be reset by means of the RES_STS control bit. It must be acknowledged by means of the RES_STS control bit. CMP_VAL1. This bit is also set if the SET_DO2 control bit is used when DO2 is not enabled. STS_SYN Synchronization status After successful synchronization. STS_CMP2 Comparator 2 status The STS_CMP2 status bit indicates that the output is or was switched on. STS_GATE STS_LOAD STS_ND STS_OFLW STS_UFLW Internal gate status: Counting Load function active (see Figure 2-18) Zero-crossing in the count range in counting without a main counting direction. the bit is set again immediately. If the status bit is acknowledged when the output is still switched on. Diagnostic message. It must be reset by the RES_STS control bit. Notes 2-38 Technological Functions ET 200S A5E00124867-02 . Diagnostic message. STS_DO1 DO1 status The STS_DO1 status bit indicates the status of the DO1 digital output. If the status bit is acknowledged when the output is still switched on. ERR_LOAD Load function error (see Figure 2-18) The bits LOAD_VAL. if parameterized. This bit is also set if the SET_DO1 control bit is used when DO1 is not enabled.

1Count24V/100kHz

Access to the Control and Feedback Interface in STEP 7 Programming
Configuration with STEP 7 Using the DDB File 1) (Hardware Catalog\PROFIBUS DP\ Additional FIELD DEVICES\I/O\ET 200S) Configuration with STEP 7 Using HWCONFIG (Hardware Catalog\PROFIBUS DP\ ET 200S)

Feedback interface Control interface
1

Read with SFC 14 “DPRD_DAT” Write with SFC 15 “DPWR_DAT”

Load instruction (e.g. L PID) Transfer instruction (e.g. T PQD)

Load and transfer commands are also possible with CPU 3xxC, CPU 318-2 (as of V3.0), CPU 4xx (as of V3.0) and WinLC RTX (PC CPU).

Resetting of the Status Bits STS_SYN, STS_CMP1, STS_CMP2, STS_OFLW, STS_UFLW, STS_ND
Event still pending at reset

Feedback signals: One of the status bits Control bit: RES_STS

Feedback bit: RES_STS_A t Reset executed Removal of the request The 1Count24V/100kHz executes resetting Request reset Figure 2-17 Resetting of Status Bits

Technological Functions ET 200S A5E00124867-02

2-39

1Count24V/100kHz

Acceptance of Values with the Load Function

Error bit: ERR_LOAD Control bit: LOAD_VAL LOAD_PREPARE CMP_VAL1 CMP_VAL2 C_DOPARAM Feedback bit: STS_LOAD t Value accepted. End of transfer Remove request and keep value available.

The 1Count24V/100kHz has understood the request Request value transfer and make value available. 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. The ERR_LOAD error bit is only deleted when the following operation is carried out correctly.

2-40

Technological Functions ET 200S A5E00124867-02

1Count24V/100kHz

Acknowledgment in Clocked Mode
In clocked mode exactly 4 PROFIBUS DP cycles are required to reset the status bits and to accept values during the load function.

1st DP cycle 2nd DP cycle 3rd DP cycle Control bit in the user program

4th DP cycle

Status bit of the module Ti TDP Ti TDP Ti TDP Ti TDP Ti TDP

Figure 2-19

Acknowledgment in Clocked Mode

Technological Functions ET 200S A5E00124867-02

2-41

1Count24V/100kHz

Error Detection
The program errors must be acknowledged. They have been detected by the 1Count24V/100kHz and are indicated at the feedback interface. A channel-specific diagnosis is carried out if you have enabled group diagnosis at parameter assignment (see Chapter 6 of the ET 200S Distributed I/O System manual). The parameter assignment error bit is acknowledged by means of correct parameter assignment.
An error has occurred, the 1Count24V/100kHz sets an error bit, a diagnostic message may appear, error detection continues.

Error eliminated; when EXTF_ACK is set by the user program, the 1Count24V/100kHz deletes the error bit; a diagnostic message may appear.

Error bit ERR_ 24V, for example

Error acknowledgment EXTF_ACK

Figure 2-20

Error Acknowledgment

In the case of continuous error acknowledgment (EXTF_ACK=1) or at CPU/Master Stop, the 1Count24V/100kHz reports the errors as soon as they are detected and deletes them as soon as they have been eliminated.

2-42

Technological Functions ET 200S A5E00124867-02

1Count24V/100kHz

2.6.10

Parameter Assignment for the Count Modes
You can parameterize the 1Count24V/100kHz with one of the following: – Using a DDB file (http://www.ad.siemens.de/csi/gsd) – With STEP 7 as of V5.1 SP4

Parameter List for Count Modes
Parameters Enable Group diagnosis Disable/enable Disable Value Range Default

Behavior in the Event of the Parent Controller Failing Reaction to CPU-Master-STOP Turn off DO1/ Continue working mode/ DO1 substitute a value/ DO1 keep last value Turn off DO1

Sensor Parameters Signal evaluation A, B Sensor and input filter Pulse and direction/ Rotary transducer (single/dual/quad) 2.5 ms/25 ms 2.5 ms/25 ms 2.5 ms/25 ms 24V P switch, series-mode/ 24V M switch Normal/Inverted Pulse and direction

• At count input
(track A)

2.5 ms 2.5 ms 2.5 ms 24V P switch, series-mode Normal

• At direction input (track B) • At digital input DI
Sensor A, B, DI Direction input B Output Parameters Function DO1

Output/ Switch on at counter status ≥comparison value/ Switch on at counter status≤ comparison value/ Pulse on reaching the comparison value/ Switch at comparison values Output/ Switch on at counter status ≥ comparison value/ Switch on at counter status ≤ comparison value/ Pulse on reaching the comparison value

Output

Function DO2

Output

Technological Functions ET 200S A5E00124867-02

2-43

DO2 Mode Count mode Endless counting/ Once-only counting/ Periodic counting Terminate counting/ Interrupt counting Normal/Inverted Input/ HW gate/ Latch and retrigger at rising edge/ Synchronization at rising edge Once only/Periodic None/Up/Down 2 to 7FFF FFFF Endless Counting Gate function Input signal HW gate Function DI Terminate counting Normal Input Synchronization2 Main Count Direction Upper count limit 1 Once None 7FFF FFFF DO1 diagnostics (wire break. • Upper count limit incorrect • The value for the behavior of DO2 is not set to output although switching at comparison values has been parameterized for DO1. 2-44 Technological Functions ET 200S A5E00124867-02 . • The value for hysteresis does not equal 0 although switching at comparison values has been parameterized for DO1. short circuit) is possible only with pulse lengths of > 90 ms at digital output DO1. DO2 Pulse duration [2 ms] DO1. Only relevant if the function DI = Synchronization at positive edge 2 Parameter Assignment Error • Incorrect mode • Incorrect main count direction • The HW gate input signal parameter is set to inverted and the DI function parameter is not set to HW gate.1Count24V/100kHz Parameters Substitute value DO1 Diagnostics DO11 0/1 Off/on 0 to 255 0 to 255 Value Range 0 Off 0 0 Default Hysteresis DO1. What to Do in the Event of Errors Check the set value ranges.

Reversal of the Direction of Rotation If the direction of rotation is reversed during an integration time. If there were not at least two rising edges in the parameterized integration time. When the integration time elapses. In each cycle the 1Count24V/100kHz transfers a measured value and the status bits that were valid at the time Ti. This bit is reset by the RES_STS control bit at the control interface. you can respond to any process irregularities. Gate Control To control the 1Count24V/100kHz. you have to use the gate functions. The end of a measurement is indicated by the STS_CMP1 status bit. The measurement starts and ends at the time Ti. the measured value is updated. Technological Functions ET 200S A5E00124867-02 2-45 . (See Section 2.7) Measurement Process The measurement is carried out during the parameterized integration time. Clocked Mode In clocked mode the 1Count24V/100kHz accepts the control bits and control values from the control interface in each PROFIBUS DP cycle and reports back the response to them in the same cycle. 0 is returned as the measured value.7. If you evaluate the STS_C_UP and STS_C_DN feedback bits (direction evaluation). You can change the integration time for the next measurement during operation. you have to parameterize the 1Count24V/100kHz. A value of –1 is returned by the end of the first integration time. the measured value for this measurement period is uncertain.7 Measurement Modes You can choose between the following modes: • Frequency measurement • Period measurement • Rotational speed measurement To execute one of these modes.1Count24V/100kHz 2.

the integration time is increased by one TDP cycle. Because clocking was lost in the last TDP cycle of the integration time. 2-49 and 2-51). Note You must not exceed the range limits for the integration time (see Tables 2-5. and the 1Count24V/100kHz will not go into clocked mode. you must always adjust the integration time parameter if you want to retain the length of the integration time. This does not corrupt the measured value. you can recognize the new measurement value in the user program at the status bit STS_CMP1 (measurement completed) of the feedback interface. you don’t have to continually evaluate the status bit STS_CMP1.1Count24V/100kHz Integration Time in Clocked Mode If the integration time lasts several TDP cycles. This makes it possible to monitor the measurement procedure or for it to be synchronized. A violation of the value range limits will result in a parameter assignment error. It takes 4 TDP cycles. for this message to be acknowledged. Integration times of (1 × TDP) to (3 × TDP) are then possible. however. If the application can tolerate a jitter in the integration time of a TDP and a measured value that remains constant for several cycles. Note When you change the configuration from non-clocked to clocked mode and vice versa. The minimum integration time in this case is (4 × TDP). 2-6 and 2-7 on pages 2-47. 2-46 Technological Functions ET 200S A5E00124867-02 .

If these limits are violated the 1Count24V/100kHz generates a parameterization error and will not go into clocked mode. Table 2-5 Calculating the Integration Time Integration Time n × 10 ms n × TDP n × TDP Range of n nmin 1 ( 10 ms/TDP [ms] ) +1 1 1 Specific Conditions nmax 1000 1000 10000 ms/TDP [ms] 1 Non-clocked mode Clocked mode 1 Any TDP TDP < 10 ms TDP ≥ 10 ms Any digits after the decimal point that come about after dividing by TDP can be omitted. Integration Time Preset the integration time with the integration time parameter (see Table 2-5). Integration time Integration time Count pulses Internal gate Beginning of frequency measurement End of frequency measurement Figure 2-21 Frequency Measurement with Gate Function Technological Functions ET 200S A5E00124867-02 2-47 .7. the 1Count24V/100kHz counts the pulses that arrive within a set integration time. These limits must not be violated.1Count24V/100kHz 2. Frequency Measurement The value of the frequency determined is made available in the unit Hz*10 –3. You can read the measured frequency value at the feedback interface (bytes 0 to 3).1 Frequency Measurement Definition In frequency measurement mode.

1Count24V/100kHz Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Lower Limit fu 0 to 99.013 Hz fmax + absolute error 100000 Hz ± 18 Hz 100000 Hz ± 11 Hz 100000 Hz ± 10 Hz 100000 Hz ± 13 Hz Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 2.5) Values That Can Be Changed during Operation: • Lower limit (LOAD_PREPARE) • Upper limit (LOAD_VAL) • Function of the DO1 (C_DOPARAM) digital output • Integration time (C_INTTIME) (See Section 2.4) Function of the DO1 Digital Output Select one of the following functions for the DO1 digital output: • Output (no switching through limit-value monitoring) • Measured value outside the limits • Measured value under the lower limit • Measured value over the upper limit (See Section 2.001 Hz 1 Hz ± 0.001 Hz 10 Hz ± 0.7.002 Hz 100 Hz ± 0.7.1 Hz ± 0.6) 2-48 Technological Functions ET 200S A5E00124867-02 .7.01 s fmin + absolute error 0.1 s 0.999 Hz*10–3 Upper Limit fo fu+1 to 100.000 Hz*10–3 Possible Measurement Ranges with Error Indication Integration time 10 s 1s 0.7.000.999.5 and 2.

Table 2-6 Calculating the Integration Time Integration Time n × 10 ms n × TDP n × TDP Range of n nmin 1 ( 10 ms/TDP [ms] ) +1 1 1 Specific Conditions nmax 1000 1000 10000 ms/TDP [ms] 1 Non-clocked mode Clocked mode 1 Any TDP TDP < 10 ms TDP ≥ 10 ms Any digits after the decimal point that come about after dividing by TDP can be omitted.7. Integration time Integration time Count pulses Internal gate Beginning of rotational speed measurement Figure 2-22 Rotational Speed Measurement with Gate Function End of rotational speed measurement Technological Functions ET 200S A5E00124867-02 2-49 . you also have to parameterize the pulses per sensor or motor revolution.1Count24V/100kHz 2. Integration Time Preset the integration time with the integration time parameter (see Table 2-6). Rotational Speed Measurement For rotational speed measurement mode.2 Rotational Speed Measurement Definition In rotational speed measurement mode. These limits must not be violated. The rotational speed is returned in the unit 1x10–3rpm. the 1Count24V/100kHz counts the pulses that arrive from a rotational speed sensor within a set integration time and calculates the speed of the connected motor. If these limits are violated the 1Count24V/100kHz generates a parameterization error and will not go into clocked mode.

04 /min nmax + absolute error 25000 /min ± 4.7.7.8 /min 25000 /min ± 2.03 /min 1 /min ± 0.4) Function of the DO1 Digital Output Select one of the following functions for the DO1 digital output: • Output (not switched by limit-value monitoring) • Measured value outside the limits • Measured value under the lower limit • Measured value over the upper limit (See Section 2.7.2 /min Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 2.5 /min 25000 /min ± 2.5 and 2.01 s nmin + absolute error 1 /min ± 0.03 /min 100 /min ± 0.6 /min 25000 /min ± 3.5) Values That Can Be Changed during Operation: • Lower limit (LOAD_PREPARE) • Upper limit (LOAD_VAL) • Function of the DO1 (C_DOPARAM) digital output • Integration time (C_INTTIME) (See Section 2.1Count24V/100kHz Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Lower limit nu 0 to 24999999 x10–3/min Upper limit no nu+1 to 25000000 x10–3/min Possible Measurement Ranges with Error Indication (Number of Pulses per Encoder Revolution = 60) Integration time 10 s 1s 0.6) 2-50 Technological Functions ET 200S A5E00124867-02 .03 /min 10 /min ± 0.7.1 s 0.

Integration time Preset the integration time with the integration time parameter (see Table 2-7).3 Period Measurement Definition In period measurement mode. the 1Count24V/100kHz measures the time between two rising edges of the count signal by counting the pulses of an internal quartz-accurate reference frequency (16 MHz) within a set integration time. Table 2-7 Calculating the Integration Time Integration Time n × 10 ms n × TDP n × TDP Range of n nmin 1 10 ms/TDP [ms] +1 1 1 Specific Conditions nmax 12000 12000 120000 ms/TDP [ms] 1 Non-clocked mode Clocked mode 1 Any TDP TDP < 10 ms TDP ≥ 10 ms Any digits after the decimal point that come about after dividing by TDP can be omitted. These limits must not be violated.1Count24V/100kHz 2. Period Measurement The value of the determined period duration is made available in the unit 1 ms and 1/16 ms. If these limits are violated the 1Count24V/100kHz generates a parameterization error and will not go into clocked mode. Integration time Period Integration time Count pulses Internal gate Start of period measurement End of period measurement Figure 2-23 Period Measurement with Gate Function Technological Functions ET 200S A5E00124867-02 2-51 .7. You can read the measured period at the feedback interface (bytes 0 to 3).

4) 2-52 Technological Functions ET 200S A5E00124867-02 .1Count24V/100kHz Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Resolution 1 ms Lower Limit Tu 0 to 119999999 ms Upper Limit To Tu+1 to 120000000 ms Resolution 1/16 ms Lower Limit Tu 0 to 1919999999 ms Upper Limit To Tu+1 to 1920000000 ms Possible Measurement Ranges with Error Indication Resolution 1ms Integration time 100 s 10 s 1s 0.7.01 s Tmin ± absolute error 1 µs* (10 ± 0) 1 µs* (10 ± 0) 1 µs* (10 ± 0) 1 µs* (10 ± 0) 1 µs* (10 ± 0) T ± absolute error 1 µs* (100000000 ± 10000) 1 µs* (10000000 ± 1000) 1 µs* (1000000 ± 100) 1 µs* (100000 ± 10) 1 µs* (10000 ± 1) Resolution 1/16 ms Integration time 100 s 10 s 1s 0.1 s 0.1 s 0.01 s Tmin ± absolute error 1/16 µs* (160 ± 0) 1/16 µs* (160 ± 0) 1/16 µs* (160 ± 0) 1/16 µs* (160 ± 0) 1/16 µs* (160 ± 0) T ± absolute error 1/16 µs* (1600000000 ± 160000) 1/16 µs* (160000000 ± 16000) 1/16 µs* (16000000 ± 1600) 1/16 µs* (1600000 ± 160) 1/16 µs* (160000 ± 16) Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 2.

5) Values That Can Be Changed during Operation: • Lower limit (LOAD_PREPARE) • Upper limit (LOAD_VAL) • Function of the DO1 (C_DOPARAM) digital output • Integration time (C_INTTIME) (See Section 2.7.7.7.7. It is opened when there is a 0-to-1 edge change at the digital input and closed when there is a 1-to-0 edge change.1Count24V/100kHz Function of the DO1 Digital Output Select one of the following functions for the digital output: • Output (not switched by limit-value monitoring) • Measured value outside the limits • Measured value under the lower limit • Measured value over the upper limit (See Section 2. Technological Functions ET 200S A5E00124867-02 2-53 . which is controlled by the SW_GATE control bit. Note the transfer times and run times of your control program in this connection. • A hardware gate (HW gate) that is controlled by means of the digital input on the 1Count24V/100kHz.5 and 2. It is closed when this bit is reset. The software gate can only be opened by a 0-to-1 edge change of the SW_GATE control bit. You parameterize the hardware gate as a function of the digital input.6) 2.4 Gate Functions in Measurement Modes Software Gate and Hardware Gate The 1Count24V/100kHz has two gates • A software gate (SW gate).

The opening and closing of the HW gate with the SW gate open starts/stops measurement. The HW gate is opened/closed by means of a 24-V signal at the digital input. when the SW gate is open. and ends at the time Ti in the cycle that occurs immediately after the SW gate has closed. immediately after the HW gate has opened. the measurement starts at the time Ti in the cycle. When the HW gate is open. the measurement starts at the time Ti in cycle “n+1”. If the SW gate is opened in clocked mode in PROFIBUS DP cycle ”n” by setting the SW_GATE control bit. 2-54 Technological Functions ET 200S A5E00124867-02 .1Count24V/100kHz Internal Gate The internal gate is the logical AND of the HW gate and SW gate. Gate Control by Means of the SW Gate and HW Gate The opening and closing of the SW gate with the HW gate open starts/stops measurement. The SW gate is opened/closed by means of the control interface with the SW_GATE bit. the setting of the SW gate is decisive. If a HW gate has not been parameterized. Gate Control by Means of the SW Gate Only The opening/closing of the SW gate starts/stops measurement. In clocked mode. The STS_GATE feedback bit (internal gate status) indicates this. immediately after the SW has opened. Counting is only active when the HW gate and the SW gate are open. The measurement ends at the time Ti that occurs immediately after the HW gate has closed. the measurement starts at the time Ti.

These limit values can be parameterized and changed with the load function. the DO1 digital output is activated. You can choose from the following functions: • Output • Measured value outside the limits • Measured value under the lower limit • Measured value over the upper limit (limit-value monitoring) (limit-value monitoring) (limit-value monitoring) Output If you want to switch the output on or off. If the limits are violated. The new function takes effect immediately. rotational speed measurement or period measurement. Technological Functions ET 200S A5E00124867-02 2-55 . In clocked mode it always takes effect at the time Ti.5 Behavior of the Output in Measurement Modes The various ways of setting the behavior of the output are described in this section. You can change the function and the behavior of the digital output during operation. You can store an upper and a lower limit for frequency measurement. You can switch the output on and off with the SET_DO1 control bit. You can assign parameters to the digital output of the 1Count24V/100kHz. the output switches at the time To.7. You can query the status of the output with the STS_DO1 status bit in the feedback interface. you must enable it with the CTRL_DO1 control bit. In clocked mode.1Count24V/100kHz 2.

. Measured value < lower limit OR Measured value > upper limit Measured value < lower limit Measured value > upper limit Measured value under the lower limit Measured value over the upper limit In clocked mode the output is switched at the end of measurement at the time Ti. If the measured value is still outside or again outside the limits after acknowledgment. Depending on the parameterization. If the current measured value is over the parameterized upper limit (measured value > upper limit). rotational speed. If you set the lower limit at 0. or period) is compared with the parameterized limit values.1Count24V/100kHz Limit-Value Monitoring UFLW OFLW 0 Gate start Lower limit Upper limit Measured value Figure 2-24 Limit-Value Monitoring After the integration time elapses. the STS_OFLW = 1 bit is set in the feedback interface. 2-56 Technological Functions ET 200S A5E00124867-02 . you switch off dynamic monitoring of violation of the lower limit value. the corresponding status bit is set again. You must acknowledge these bits by means of the RES_STS control bit. the enabled digital output DO1 can be set by means of limit-value monitoring: “Function DO1” Parameter Measured value outside the limits DO1 is Set . the STS_UFLW = 1 bit is set in the feedback interface.. If the current measured value is under the parameterized lower limit (measured value < lower limit). the measured value obtained (frequency.

6 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 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 DDB file). Technological Functions ET 200S A5E00124867-02 2-57 .1Count24V/100kHz 2.7.

1Count24V/100kHz Table 2-8 Address Feedback Interface (Inputs) Assignment Measured value Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Short circuit of the sensor supply Short circuit / wire break / overtemperature Parameter assignment error Reserve = 0 Reserve = 0 Resetting of status bit active Load function error Load function active Down direction status Up direction status Reserve = 0 Reserve = 0 DO1 status Reserve = 0 DI status Internal gate status Reserve = 0 Measurement range lower limit Measurement range upper limit Reserve = 0 Measurement completed Reserve = 0 Reserve = 0 Reserve = 0 STS_CMP1 STS_UFLW STS_OFLW STS_DI STS_GATE STS_DO1 RES_STS_A ERR_LOAD STS_LOAD STS_C_DN STS_C_UP ERR_24V ERR_DO ERR_PARA Designation Bytes 0 to 3 Byte 4 Byte 5 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Byte 6 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Byte 7 Reserve = 0 2-58 Technological Functions ET 200S A5E00124867-02 .

1000/12000) Byte 2/3: Reserve = 0 Byte 4 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Byte 5 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Bytes 6 to 7 Diagnostic error acknowledgment – EXTF_ACK Reserve = 0 Reserve = 0 Enable DO1 – CTRL_DO1 DO1 control bit – SET_DO1 Start resetting of status bit – RES_STS Reserve = 0 SW gate control bit – SW_GATE Reserve = 0 Reserve = 0 Reserve = 0 Change function of DO1.1Count24V/100kHz Table 2-9 Address Control Interface (Outputs) Assignment Lower limit or upper limit Function of DO1 Byte 0: Bit 1 Bit 0 0 0 1 1 Bytes 1 to 3: 0 1 0 1 Function of DO1 Output Measured value outside the limits Measured value under the lower limit Measured value over the upper limit Bytes 0 to 3 Reserve = 0 Integration time Byte 0.. C_DOPARAM Reserve = 0 Change integration time.. C_INTTIME Load upper limit – LOAD_PREPARE Load lower limit – LOAD_VAL Reserve = 0 Technological Functions ET 200S A5E00124867-02 2-59 . 1: Integration time [n*10ms] (Range 1.

LOAD_VAL Load lower limit (see Figure 2-26) The value from bytes 0 to 3 is adopted as the new lower limit. CTRL_DO1 Enable DO1 You use this bit to enable the DO1 output. SW_GATE SW gate control bit The SW gate is opened/closed by means of the control interface with the SW_GATE bit. Notes 2-60 Technological Functions ET 200S A5E00124867-02 .1Count24V/100kHz Notes on the Control Bits Control Bits C_DOPARAM Change function of DO1 (see Figure 2-26) The value from byte 0 is adopted as the new function of DO1. EXTF_ACK Error acknowledgment The error bits must be acknowledged by means of the control bit EXTF_ACK after the cause is removed. (see Figure 2-28) LOAD_PREPARE Load upper limit (see Figure 2-26) The value from bytes 0 to 3 is adopted as the new upper limit. (See Figure 2-25) SET_DO1 DO1 control bit Switches the DO1 digital output on and off when CTRL_DO1 is set. RES_STS Start resetting of status bit The status bits are reset by means of the acknowledgment process between the RES_STS bit and the RES_STS_A bit. C_INTTIME Change integration time (see Figure 2-26) The value from bytes 0 and 1 is adopted as the new integration time for the next measurement.

Technological Functions ET 200S A5E00124867-02 2-61 . ERR_PARA RES_STS_A STS_C_DN STS_C_UP STS_CMP1 Parameter assignment error – ERR_PARA Resetting of the status bits active (see Figure 2-25) Down direction status Up direction status Measurement completed The measured value is updated after every interval that elapses. and C_INTTIME cannot be set simultaneously during transfer. ERR_LOAD Load function error (see Figure 2-26) The bits LOAD_VAL. CPU 4xx (as of V3.1Count24V/100kHz Notes on the Feedback Bits Feedback Bits ERR_24V Short circuit of the sensor supply The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 2-28). LOAD_PREPARE. L PID) Transfer instruction (e. T PQD) Load and transfer commands are also possible with CPU 3xxC. C_DOPARAM. The end of a measurement (after the interval has elapsed) is indicated by means of the STS_CMP1 status bit.g. Diagnostic message. if assigned as parameter. similar to loading an incorrect value (which is not accepted). STS_DI DI status The status of the DI is indicated in all modes by means of the STS_DI bit at the feedback interface. Notes Access to the Control and Feedback Interface in STEP 7 Programming Configuration with STEP 7 Using the DDB File 1) (Hardware Catalog\PROFIBUS DP\ Additional FIELD DEVICES\I/O\ET 200S) Configuration with STEP 7 Using HWCONFIG (Hardware Catalog\PROFIBUS DP\ ET 200S) Feedback interface Control interface 1 Read with SFC 14 “DPRD_DAT” Write with SFC 15 “DPWR_DAT” Load instruction (e. This bit is reset by the RES_STS control bit at the control interface. This results in setting the ERR_LOAD status bit. CPU 318-2 (as of V3. STS_DO1 STS_GATE STS_LOAD STS_OFLW STS_UFLW DO1 status Internal gate status: Measuring Load function running (see Figure 2-26) Upper measurement limit violated Lower measurement limit violated Both bits must be reset.0) and WinLC RTX (PC CPU).0).g. if assigned as parameter. Diagnostic message. ERR_DO1 Short circuit/wire break/overtemperature at output DO1 The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 2-28).

STS_OFLW. STS_UFLW Event still pending at reset Feedback signals: One of the status bits Control bit: RES_STS Feedback bit: RES_STS_A t Reset executed Removal of the request The 1Count24V/100kHz executes resetting Request reset Figure 2-25 Resetting of Status Bits 2-62 Technological Functions ET 200S A5E00124867-02 .1Count24V/100kHz Resetting of the Status Bits STS_CMP1.

The ERR_LOAD error bit is only deleted when a correct value is transferred as follows. Figure 2-26 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.1Count24V/100kHz Acceptance of Values with the Load Function Error bit: ERR_LOAD Control bit: LOAD_VAL LOAD_PREPARE C_DOPARAM C_INTTIME Feedback bit: STS_LOAD t Value accepted. End of transfer Remove request and keep value available. the ERR_LOAD error is reported until all the specified control bits are deleted again. The 1Count24V/100kHz has understood the request Request value transfer and make value available. Technological Functions ET 200S A5E00124867-02 2-63 .

1st DP cycle 2nd DP cycle 3rd DP cycle Control bit in the user program 4th DP cycle Status bit of the module Ti TDP Ti TDP Ti TDP Ti TDP Ti TDP Figure 2-27 Acknowledgment in Clocked Mode 2-64 Technological Functions ET 200S A5E00124867-02 .1Count24V/100kHz Acknowledgment in Clocked Mode In clocked mode exactly 4 PROFIBUS DP cycles are required to reset the status bits and to accept values with the load function.

the 1Count24V/100kHz reports the errors as soon as they are detected and deletes them as soon as they have been eliminated.1Count24V/100kHz Error Detection The diagnostic errors must be acknowledged. a diagnostic message may appear. the 1Count24V/100kHz deletes the error bit. the 1Count24V/100kHz sets an error bit. They have been detected by the 1Count24V/100kHz and are indicated at the feedback interface. Technological Functions ET 200S A5E00124867-02 2-65 . when EXTF_ACK is set by the user program. Error bit ERR_24V. Error eliminated. a diagnostic message may appear. for example Error acknowledgment EXTF_ACK Figure 2-28 Error Acknowledgment In the case of continuous error acknowledgment (EXTF_ACK=1) or at CPU/Master Stop. error detection continues. The parameter assignment error bit is acknowledged by means of correct parameter assignment. An error has occurred. A channel-specific diagnosis is carried out after you have enabled group diagnosis at parameter assignment (see Chapter 6 of the ET 200S Distributed I/O System manual).

7 Parameter Assignment for Measurement Modes You can parameterize the 1Count24V/100kHz with one of the following: – Using a DDB file (http://www. series-mode/ 24V M switch Normal/Inverted 2. B Sensor and input filter – At count input (track A) – At direction input (track B) – At digital input DI Sensor A.5 ms/25 ms 2. DI Direction input B Output Parameters Diagnostics DO11 Function DO1 Off/on Output/ Outside the limits/ Under the lower limit/ Over the upper limit 0/1 Off Output 2. short circuit) is possible only with pulse lengths of > 90 ms at digital output DO1. B.5 ms 2.ad.1Count24V/100kHz 2.5 ms 24V P switch.5 ms/25 ms 2.7.5 ms/25 ms 24V P switch.5 ms 2. 2-66 Technological Functions ET 200S A5E00124867-02 . series-mode Normal Pulse and direction/ Rotary transducer (single) Pulse and direction Substitute value DO1 1 0 DO1 diagnostics (wire break.1 SP4 Parameter List for Measurement Modes Parameters Enable Group diagnosis Disable/enable Disable Value Range Default Behavior in the Event of the Parent Controller Failing Reaction to CPU-Master-STOP Turn off DO1/ Continue working mode/ DO1 substitute a value/ DO1 keep last value Turn off DO1 Sensor Parameters Signal evaluation A.de/csi/gsd) – With STEP 7 as of V5.siemens.

Technological Functions ET 200S A5E00124867-02 2-67 .1Count24V/100kHz Parameters Mode Measurement mode Value Range Default Frequency measurement/ Frequency measurement Rotational speed measurement/ Period measurement 1 ms 1/16 ms Input/HW gate Normal/Inverted Frequency measurement: 0 to fmax–1 1 ms Input Normal 0 Resolution of period Function DI Input signal HW gate Low limit Rotational speed measurement: 0 to nmax–1 0 Period measurement: 0 to tmax–1 High limit Frequency measurement: Lower limit + 1 to fmax 0 fmax Rotational speed measurement: nmax Lower limit + 1 to nmax Period measurement: Lower limit + 1 to tmax Integration time [n*10ms] Frequency measurement: 1 to 1000 tmax 10 Rotational speed measurement: 1 to 1000 10 Period measurement: 1 to 12000 Sensor pulses per 2 10 1 revolution2 1 to 65535 Only relevant in rotational speed measurement mode Parameter Assignment Error • Incorrect mode • Lower limit incorrect • Upper limit incorrect • Integration time incorrect • Sensor pulses incorrect What to Do in the Event of Errors Check the set value ranges.

1Count24V/100kHz

2.8

Count and Direction Evaluation

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 parameterize: – Pulse and direction – Rotary transducer In the case of 24-V pulse generators with a direction indicator, there must be a time span of at least 5 µs/50 µs between the direction signal (B*) and the count signal (A*), depending on the parameterized input filter.

Signal A

Signal B as direction indicator 5 µs/50 µs, depending on the filter time Figure 2-29 Time Span between the Direction Signal and the Count Signal

Time

If you connect a 24-V rotary transducer with two tracks that are 90 degrees out of phase at the count and direction inputs, you can parameterize single evaluation in all the measurement and count modes. You can also parameterize dual or quad evaluation in all count modes. In all evaluation modes, you can invert direction detection at input B by parameterization. The count and direction inputs can be operated with different sensors (P switch and series mode or M switch).

Note If you have selected the 24V M switch setting with the 1Count24V/100kHz for the “Sensor A, B, DI” parameter, you must use the M-switching sensors.

2-68

Technological Functions ET 200S A5E00124867-02

1Count24V/100kHz

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.

Signal A Signal B as direction indicator Up count pulses Down count pulses Figure 2-30 Signals of a 24-V Pulse Generator with Direction Indicator Down Up

Rotary Transducer
The 1Count24V/100kHz can count the edges of the signals. Normally, only the edge at A is evaluated (single evaluation). To obtain a higher resolution, at parameter assignment you can select whether the signals are to be subjected to single, double, or quadruple evaluation. Multiple evaluation is only possible with asymmetric 24 V incremental encoders with A and B signals that are 90 degrees out of phase.

Single Evaluation Single evaluation means that only one edge of A is evaluated; up count pulses are recorded at a rising edge at A and low level at B, and down count pulses are recorded at a falling edge at A and low level at B. The diagram below illustrates the single evaluation of the signals.

Signal A Signal B Up count pulses Down count pulses Figure 2-31

Up

Down

Single Evaluation

Technological Functions ET 200S A5E00124867-02

2-69

1Count24V/100kHz

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.

Signal A Signal B Up count pulses Down count pulses Figure 2-32

Up

Down

Double Evaluation

Quadruple Evaluation Quadruple evaluation means that the rising and falling edges of the A and B signals are evaluated. Whether up or down count pulses are generated depends on the levels of the A and B signals. The diagram below illustrates the quadruple evaluation of the signals.

Signal A Signal B Up count pulses Down count pulses Figure 2-33 Up Down

Quadruple Evaluation

2-70

Technological Functions ET 200S A5E00124867-02

1Count24V/100kHz

2.9

Behavior at CPU-Master-STOP
You can program what the 1Count24V/100kHz is to do in the event of the failure of the parent controller.

Parameters Turn off DO1

Status of the 1Count24V/100kHz at CPU/Master STOP The current mode is terminated, the gate closed, and the digital output blocked; comparison values 1 and 2 and the load value are reset; the upper and lower limit values, function and behavior of the digital outputs, and the integration time are handled in accordance with the parameter assignments. The current mode continues, and the gate and digital output retain their status.

What Happens if New Parameters Have Been Assigned? The changed parameters are accepted and take effect.

Continue working mode1

The gate is closed, the current mode is terminated, the digital output is blocked, and the changed parameters are accepted and take effect. The changed parameters are accepted and take effect.

DO 1 substitute a value

The current mode is terminated, the gate closed, and the substitute value that was assigned as a parameter of the digital output is switched through; comparison values 1 and 2 and the load value are reset; the upper and lower limit values, function and behavior of the digital outputs, and the integration time are handled in accordance with the parameter assignments. When a pulse is output when the comparison value is reached, the substitute value is 1 only for the duration of the pulse.

DO 1 keep last value

The current mode is terminated, the gate closed, and the status of the digital output is maintained; comparison values 1 and 2 and the load value are reset; the upper and lower limit values, function and behavior of the digital outputs, and the integration time are handled in accordance with the parameter assignments.

The changed parameters are accepted and take effect.

1

If the mode is to continue during a change from CPU-/Master-STOP to RUN (startup), the CPU/Master cannot clear the outputs. Possible solution: In the part of the user program that is processed during startup, set the SW gate control bit and transfer the values to the 1Count24V/100kHz.

Technological Functions ET 200S A5E00124867-02

2-71

1Count24V/100kHz

Under What Conditions Does the 1Count24V/100kHz Leave the Parameterized Status?
The CPU or master must be in RUN mode, and you have to make a change at the control interface.

A New Parameter Assignment of the ET 200S Station by Means of Your CPU/ DP Master Takes Place:
• Upon power on of the CPU/DP master • Upon power on of the IM 151/IM 151 FO • After failure of the DP transmission • After loading an altered parameter assignment or configuration of the ET 200S station into the CPU/DP master. • When the 1Count24V/100kHz is inserted • Upon power on or inserting of the appropriate power module

2-72

Technological Functions ET 200S A5E00124867-02

42 mA Typ. Potentials • Range • Reverse polarity protection Galvanic isolation • Between backplane bus and counter function • Rated value • 0 signal • 1 signal Output current 24 VDC ≤ 3V ≥L+ (–1 V) ≤ 0.5 ms Possible Technological Functions ET 200S A5E00124867-02 2-73 .5 mA • 0 signal (residual current) Yes • 1 signal Permitted Range Rated value 5 mA to 2. L+ –(50 to 60 V) Yes 600 m 1000 m 40 C 50 C 60 C • Between counter function and load voltage Sensor supply No • Output voltage • Output current Current input L+ (–0.1Count24V/100kHz 2. Currents.5 A 100 Hz 2 Hz ≤10 Hz ≤10 W 100 ms Yes 2. Type 2 50 m 100 m Dimensions W×H × D (mm) Weight Number of channels Counter range Rated load voltage L+ Data for Specific Modules • Filter 200 kHz • Filter 20 kHz Output voltage Data on the Digital Output Voltage.8V) Max.4 to 28. short-circuit proof Max. 1 W No. Part 2.10 Technical Specifications Dimensions and Weight Input characteristic Shielded cable length Approximately 40 g 1 32 bits 24 VDC 20.6 A to 4 A Yes. 10 mA Max. from shield only 24 VDC –30 V to 5 V 11 V to 30 V ≤2 mA (bias current) 9 mA (typically) Switching frequency • From the backplane bus • Resistive load • Inductive load • Lamp load Lamp load Output delay (resistive load) Short-circuit protection for output Response threshold Inductive extinction Digital input control Cable lengths • From the load voltage L+ (no load) Power dissipation Isolation Input voltage Data on the Count Signals and the Digital Input • Rated value • 0 signalC–30 • 1 signal Input current • Unshielded • Shielded • 0 signal • 1 signal Minimum pulse width (maximum counting frequency) • Filter on • Filter off Connection of a two-wire BERO type 2 ≥25ms ≥2.0 A 2A 1A 0. 500 mA.8V Yes 15×81×52 To IEC 1131.

1 Hz to 100 kHz 1 /min to 25000 /min 10 ms to 120 s Response Times • Rotational speed measurement • Period measurement Update rate of the count modes • Non-clocked mode • Clocked mode 1 ms TDP 2-74 Technological Functions ET 200S A5E00124867-02 .1Count24V/100kHz Status. Diagnostics Digital input DI status display Digital output DO status display Up count value change Down count value change Malfunction indication Diagnostic information LED 8 (green) LED 4 (green) UP LED (green) DN LED (green) SF LED (red) Yes Measurement Ranges in the Measurement Modes Maximum measurement range • Frequency measurement 0.

10 Product Overview Clocked Mode Brief Instructions on Commissioning the 1Count5V/500kHz Terminal Assignment Diagram Modes and Areas of Application of the 1Count5V/500kHz Count Modes Measurement Modes Count and Direction Evaluation Behavior at CPU-Master-STOP Technical Specifications Technological Functions ET 200S A5E00124867-02 3-1 .1Count5V/500kHz 3 Description Page 3-2 3-3 3-4 3-7 3-8 3-9 3-47 3-70 3-72 3-74 Chapter Overview Section 3.1 3.8 3.6 3.4 3.5 3.2 3.3 3.7 3.9 3.

You will need STEP 7 as of V5. synchronization or latch function via digital inputs • 2 digital outputs for direct control or output of the comparison results.1Count5V/500kHz 3. Connectable Count Signals The 1Count5V/500kHz can count the signals of the encoders: • A 5 V incremental encoder with two tracks 90o out of phase at the count inputs 3-2 Technological Functions ET 200S A5E00124867-02 .1 Product Overview Order Numbers 6ES7 138-4DE01-0AB0 Compatibility The 1Count5V/500kHz with the order number 6ES7 138-4DE01-0AB0 replaces the 1Count5V/500kHz with the order number 6ES7 138-4DE00-0AB0 and is fully compatible. Features • A 5 V incremental encoder can be connected in order to count 5 V RS422 signals up to a frequency of 500 kHz. • Clocked Mode • Modes of the 1Count5V/500kHz: Count modes: – Endless counting – Once-only counting – Periodic counting Measurement modes: – Frequency measurement – Rotational speed measurement – Period measurement • Gate control.1 SP4 for clocked mode. You can use it with STEP 7 as of V5.1 SP2 in non-clocked mode. • The 1Count5V/500kHz is a double-width module and can only be used with a 4-row TM-E30S44-01 terminal module.

If an error occurs during parameterization the 1Count5V/500kHz does not go into the clocked mode. If clocking is lost. • Measurement Modes – You can change the function of the DO1 digital output during operation – You can change the integration time during operation Configuration You can use either of the following to configure 1Count5V/500kHz: – A DDB file (http://www.2 Clocked Mode Note The principles of clocked mode are described in a separate manual. the transmission of data between the DP master and 1Count5V/500kHz is clocked to the PROFIBUS DP cycle. the feedback interface is not updated. If clocking is lost due to faults or failure or a delay in global control (GC).1Count5V/500kHz Adjustment During Operation • Count Modes – You can change the function and behavior of the digital outputs during operation. Hardware You will require the following for the clocked mode of the 1Count5V/500kHz: • A CPU that supports clocking • A DP master that supports the equidistant bus cycle • An IM 151 High Feature Features Depending on the system parameter assignment the 1Count5V/500kHz works in either non-clocked or clocked mode.de/csi/gsd) – STEP 7 as of V5. the 1Count5V/500kHz will return to clocked mode at the next cycle without an error response. Technological Functions ET 200S A5E00124867-02 3-3 .1 SP4 3. In clocked mode. In clocked mode the 8 bytes of the feedback interface are consistent.siemens.ad.

Requirements The following requirements must be met: • You put an ET 200S station into service at an S7 station with a DP master.3 Brief Instructions on Commissioning the 1Count5V/500kHz Introduction These instructions use the example of “endless counting” to teach you to set up a functioning application in which you count the pulses of a sensor. 7=/B 4 = N. Wiring and Fitting Install and wire the TM-E30S44-01 terminal module (see Figure 2-1). 1 Count 5V/500kHz SF UP DN 9 13 16 5 V incremental encoder SYN 6ES7 138-4DE01-0AB0 1 1 = A. you learn about the basic functions of your 1Count5V/500kHz (hardware and software) and how to check them. 8=/N Figure 3-1 1 5 9 1 3 1 4 1 5 1 6 2 6 0 1 3 7 1 1 4 8 2 Terminal Assignment for the Example 3-4 Technological Functions ET 200S A5E00124867-02 . At the same time. 6=M 3 = B. Connect the 1Count5V/500kHz to the terminal module (you will find detailed instructions on how to do this in Chapter 5 of the ET 200S Distributed I/O System manual). • You must have the following: – A TM-E30S44-01 terminal module – A 1Count5V/500kHz – A 5 V sensor with a 24 V sensor supply and the material required for wiring Installation.1Count5V/500kHz 3. 5=/A 2 = 24V.

DBD0 DB1.DBD8 PID 260 DB1.DBX4. Leave the default settings unchanged. The number 6ES7 138-4DE01-0AB0 C appears in the information text. Open the relevant project in SIMATIC Manager. Integration in the User Program Create block FC101 and integrate it in your control program (in OB1. Double-click this number to open the DP Slave Properties dialog box. Make a note of these addresses for subsequent programming. and download the configuration in STOP mode of the CPU by choosing PLC → Download to Module. The start address of the module in the following example is 256.DBD0 PQD 256 DB1. On the Parameters tab you will find the default settings for the 1Count5V/500kHz. On the Addresses tab. Drag the entry to the slot at which you have installed your 1Count5V/500kHz.DBD4 PQD 260 //Write 8 bytes to the 1Count5V/500kHz //Configured start address of the outputs Network 3: Read from the feedback interface L T L T PID 256 DB1.1Count5V/500kHz Configuration Using STEP7 and HWCONFIG You begin by adapting the hardware configuration of your existing ET 200S station.0 Description //Delete control bits //Open SW gate Network 2: Write to the control interface L T L T DB1. for example). Save and compile your configuration. STL Block: FC101 Network 1: Presettings L T T SET S 0 DB1. This block requires the data block DB1 with a length of 16 bytes.DBD4 DB1. Call the HWCONFIG configuration table in your project. Select the 1CTR 5V/500kHz count mode from the hardware catalog. you will find the addresses of the slot to which you have dragged the 1Count5V/500kHz.DBD12 //Read 8 bytes from the 1Count5V/500kHz //Configured start address of the inputs Technological Functions ET 200S A5E00124867-02 3-5 .

Choose Variable → Monitor to switch to monitoring. The status of the UP LED changes with each new pulse.0 (current count value) (internal gate status) Choose PLC → File Connect To → Configured CPU to switch to online. Switch the CPU to RUN mode. Use your sensor to generate pulses.1Count5V/500kHz Test Use “Monitor/Modify Variables” to monitor the count value and the gate.DBD8 DB1. and then confirm with OK. Choose the Insert → S7 Block → Variable Table menu command to insert the VAT 1 variable table. and enter the following variables in the “Address” column: DB1.DBx13. • See that the count value in the block changes. Select the “Block” folder in your project. The “internal gate status” bit must be set. You Can Now: • See that the UP LED on the 1Count5V/500kHz is on. Open the VAT 1 variable table. 3-6 Technological Functions ET 200S A5E00124867-02 .

/B: Track B N.4 Terminal Assignment Diagram Wiring Rules The cables (terminals 1 and 8 and terminals 15 and 16) must be shielded. 5=/A 2 = 24V. 13=DO2 10 = M. Appendix A. ET 200S Accessories).1Count5V/500kHz 3. /A: Track A 1 Count 5V/500kHz SF TM-E30S44-01 and 1Count5V/500kHz B. To do this use the shield contact (see the ET 200S Distributed I/O System manual. The shield must be supported at both ends. 14=M 11 =24VDC. /N: Track N 24 VDC: Sensor supply M: Chassis ground DI: Digital input DO1: Digital output DO2: Digital output 5 V incremental encoder 1 = A. 8=/N UP SYN DN 9 13 16 6ES7 138-4DE01-0AB0 1 1 5 9 1 2 6 0 1 3 7 1 1 4 8 2 3 1 4 1 5 1 6 9 = DO1. Table 3-1 Terminal Assignment of the 1Count5V/500kHz View Terminal Assignment Remarks A. 15=24VDC 16 = DI Technological Functions ET 200S A5E00124867-02 3-7 . 7=/B 4 = N. 6=M 3 = B.

Select 1CTR5V/500kHz count mode for Select 1CTR5V/500kHz measurement count modes mode for measurement modes The number 6ES7 138-4DE01-0AB0 C appears in the information text. decide how you want to use the 1Count5V/500kHz. Drag the entry to the slot at which you have installed your 1Count5V/500kHz. Select the parameters. Select C 6ES7 138-4DE01-0AB0 1CNT5V for count modes Select M 6ES7 138-4DE01-0AB0 1CNT5V for measurement modes Select the parameters. You will find the parameter lists in the descriptions of the modes. Integrating 1Count5V/500kHz with STEP7 (Only in Non-Clocked Mode) Select an entry in the DDB file that corresponds to the mode you want. You can choose between the following modes: Count Modes Endless counting Once-only counting Periodic counting Measurement Modes Frequency measurement Rotational speed measurement Period measurement Parameters are assigned to the various modes. Decide whether you want to work with a DDB file or with STEP7. Integrating 1Count5V/500kHz with STEP7 (in Clocked and Non-Clocked Mode) Select an entry from the hardware catalog that corresponds to the mode you want. You can integrate the 1Count5V/500kHz in your project in two different ways. The number 6ES7 138-4DE01-0AB0 M appears in the information text. Drag the entry to the slot at which you have installed your 1Count5V/500kHz. 3-8 Technological Functions ET 200S A5E00124867-02 .1Count5V/500kHz 3.5 Modes and Areas of Application of the 1Count5V/500kHz To begin with.

You can choose between the following modes: • Endless counting (for position detection with incremental encoders.6. for example) • Periodic counting (in applications with repeated count operations. for example). Technological Functions ET 200S A5E00124867-02 3-9 . – The parameterized upper count limit is reached when the main count direction is up. The lower count limit is –2147483648 (–231). In all count modes – The count operation is started by a SW gate or HW gate (if the count operation is continued. for example) To execute one of these modes. Maximum Count Range The upper count limit is +2147483647 (231 – 1). Load Value You can specify a load value for the 1Count5V/500kHz. The load value is then accepted by the 1Count5V/500kHz as the new count value when the following events occur: In the once-only counting and periodic counting modes – The lower or upper count limit is reached when no main count direction is parameterized. You can set this load value directly (LOAD_VAL). for example) • Once-only counting (for counting items up to a maximum limit.10).1Count5V/500kHz 3. you have to use the gate functions. the load value is not accepted). – Zero is reached when the main count direction is down. you have to assign parameters to the 1Count5V/500kHz (see Section 2.6 Count Modes The count modes are used in count applications (for counting items. – Synchronization – Latch and Retrigger Gate Control To control the 1Count5V/500kHz. You can also load the load value by way of preparation (LOAD_PREPARE). It is then accepted by the 1Count5V/500kHz directly as the new count value.

The parameterized main count direction has no effect on the direction evaluation when the count pulses are detected. you assign parameters to indicate which RESET statuses the load value and count value can take on. 3-10 Technological Functions ET 200S A5E00124867-02 . It is thus possible to create incrementing or decrementing count applications. RESET Statuses of the Following Values After Parameter Assignment Table 3-2 RESET Statuses Value Load value Main Count Direction None Up Down None Up Down None Up Down None Up Down RESET Status 0 0 Parameterized upper count limit 0 0 Parameterized upper count limit 0 0 Parameterized upper count limit 0 0 Parameterized upper count limit Count value Comparison value 1 and 2 Latch value Clocked Mode In clocked mode the 1Count5V/500kHz accepts the control bits and control values from the control interface in each PROFIBUS DP cycle and reports back the response to them in the same cycle.1Count5V/500kHz Main Count Direction With the main count direction. In each cycle the 1Count5V/500kHz transfers the counter status and latch value that were valid at the time Ti and the status bits valid at the time Ti. A counter status controlled by hardware input signals can only be transferred in the same cycle if the input signal occurred before the time Ti.

the 1Count5V/500kHz counts endlessly as of the load value: • If the 1Count5V/500kHz reaches the upper count limit when counting up.6) • Synchronization (see Section 3.6. it will jump to the lower count limit and continue counting from there without losing the pulse. Counter status Upper count limit Load value Lower count limit Gate start Gate stop Time Figure 3-2 Endless Counting with Gate Function Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 3.1 Endless Counting Definition In this mode.6.5) • Latch function (see Section 3.6. it will jump to the upper count limit and continue counting from there without losing the pulse. • The lower count limit is set at –2147483648 (–231).7) Technological Functions ET 200S A5E00124867-02 3-11 . • If the 1Count5V/500kHz reaches the lower count limit when counting down. • The upper count limit is set at +2147483647 (231 – 1).1Count5V/500kHz 3. and another count pulse then comes. and another count pulse then comes.6.

6.6.8) Influencing the Behavior of the Digital Outputs through: • Hysteresis • Pulse duration (See Section 3.6.1Count5V/500kHz Function of the Digital Outputs Select one of the following functions for each digital output: • Output.9) 3-12 Technological Functions ET 200S A5E00124867-02 .6. no switching through comparator • Activation at a counter status greater than or equal to the comparison value • Activation at a counter status less than or equal to the comparison value • Pulse on reaching the comparison value • Switching at comparison values (DO1 only) (See Section 3.8 and 3.8) Values That 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 Section 3.

• When the main count direction is up: – Counts as of the load value. – The upper limit is parameterizable. the 1Count5V/500kHz jumps to the load value and the gate is closed. the counter jumps to the load value and the gate is closed.2 Once-Only Counting Definition In this mode. you have to open the gate again. depending on the main count direction set.6. – Counts up or down. Technological Functions ET 200S A5E00124867-02 3-13 . the 1Count5V/500kHz counts once only. – When the lower count limit is reached. • When the count direction is down: – Counts as of the load value. and the load value is parameterizable (parameter: upper count limit) and can be changed. – The lower limit is fixed at 0. – Counts up or down. – Counts up or down. • When there is no main count direction: – Counts as of the load value. the gate is closed automatically. – In the event of overflow or underflow at the respective count limit. The internal gate is automatically closed in the event of an overflow/underflow at the count limits. and the load value has a RESET status of 0 and can be changed.1Count5V/500kHz 3. – The count limits are fixed at the maximum count range. – When the upper count limit is reached. To restart counting.

Terminating Gate Function With an interrupting gate function. Counter status Upper count limit Load value 0 STS_OFLW Lower count limit Gate start Automatic gate stop Gate start Automatic gate stop Time Figure 3-4 Once-Only Counting with Up as the Main Count Direction 3-14 Technological Functions ET 200S A5E00124867-02 .1Count5V/500kHz Counter status Upper count limit STS_OFLW Load value 0 STS_ND Lower count limit Gate start Automatic gate stop Gate start Automatic gate stop STS_UFLW Time Figure 3-3 Once-Only Counting Without Main Count Direction. the count remains at the underflow when the gate is started.

7) Function of the Digital Outputs Select one of the following functions for each digital output: • Output.8 and 3.8) Influencing the Behavior of the Digital Outputs through: • Hysteresis • Pulse duration (See Section 3.9) Technological Functions ET 200S A5E00124867-02 3-15 .6.6.6. no switching through comparator • Activation at a counter status greater than or equal to the comparison value • Activation at a counter status less than or equal to the comparison value • Pulse on reaching the comparison value • Switching at comparison values (DO1 only) (See Section 3.5) • Latch function (see Section 3.1Count5V/500kHz Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 3.8) Values That 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 Section 3.6.6.6) • Synchronization (see Section 3.6.6.

and the load value has a RESET status of 0 and can be changed. the 1Count5V/500kHz jumps to the load value and continues counting from there. – Counts up or down. • When there is no main count direction: – Counts as of the load value.3 Periodic Counting Definition In this mode. • When the count direction is down: – Counts as of the load value. the 1Count5V/500kHz jumps to the load value and continues counting from there. – Counts up or down. – The count limits are fixed at the maximum count range. – In the event of an overflow or underflow at the respective count limit. • When the main count direction is up: – Counts as of the load value. – The upper limit is parameterizable. and the load value is parameterizable (parameter: upper count limit) and can be changed.6. – Counts up or down. the 1Count5V/500kHz counts periodically. 3-16 Technological Functions ET 200S A5E00124867-02 . the 1Count5V/500kHz jumps to the load value and continues counting from there. depending on the main count direction set. – When the lower count limit is reached.1Count5V/500kHz 3. – The lower limit is fixed at 0. – When the upper count limit is reached.

6) • Synchronization (see Section 3.6.6.6.7) Technological Functions ET 200S A5E00124867-02 3-17 .5) • Latch function (see Section 3.1Count5V/500kHz Counter status Upper count limit STS_OFLW Load value 0 STS_ND Lower count limit Gate start STS_UFLW Gate stop Time Figure 3-5 Periodic Counting without a Main Count Direction Counter status Upper count limit Load value 0 STS_OFLW Lower count limit Gate start Figure 3-6 Gate stop Time 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 • HW gate (see Section 3.

the level of the digital input can be inverted by means of parameter assignment. In the case of the input and HW gate functions.8 and 3.4 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).6.6.8) Influencing the Behavior of the Digital Outputs through: • Hysteresis • Pulse duration (See Section 3.6.6.6.9) 3. 3-18 Technological Functions ET 200S A5E00124867-02 . no switching through comparator • Activation at a counter status greater than or equal to the comparison value • Activation at a counter status less than or equal to the comparison value • Pulse on reaching the comparison value • Switching at comparison values (DO1 only) (See Section 3. The STS_DI feedback bit indicates the level of the digital input.8) Values That 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 Section 3.1Count5V/500kHz Function of the Digital Outputs Select one of the following functions for each digital output: • Output.

counting continues from the previous value The diagrams below indicate how the interrupting and terminating gate function work: Counter status Upper count limit Load value Lower count limit Gate start Gate stop Gate start Time Figure 3-7 Endless Counting. and terminated by means of the internal gate. Counting is only active when the HW gate and the SW gate are open. after the gate is closed and reopened (gate start). You parameterize the hardware gate as a function of the digital input. It is opened when there is a 0-to-1 edge change at the digital input and closed when there is a 1-to-0 edge change. interrupted. the internal gate is closed automatically when there is an overflow/underflow at the count limits. If a HW gate has not been parameterized. Up. It is closed when this bit is reset.5 Gate Functions in Count Modes Software Gate and Hardware Gate The 1Count5V/500kHz has two gates • A software gate (SW gate). The software gate can only be opened by a 0-to-1 edge change of the SW_GATE control bit. When it is interrupted.1Count5V/500kHz 3. • A hardware gate (HW gate). In the once-only counting mode. Interrupting Gate Function Technological Functions ET 200S A5E00124867-02 3-19 . Terminating and Interrupting Gate Function When parameterizing the gate function. Internal Gate The internal gate is the logical AND of the HW gate and SW gate. Counting is activated. Note the transfer times and run times of your control program in this connection. after the gate is closed and reopened (gate start). The STS_GATE feedback bit (internal gate status) indicates this. which is controlled by the SW_GATE control bit. which is controlled by means of the digital input on the 1Count5V/500kHz. you can specify whether the internal gate is to terminate or interrupt counting.6. When it is terminated. the setting of the SW gate is decisive. counting starts again from the beginning. continued.

depending on the parameterization: – Counting continues from the current count value or – Counting starts at the load value If the SW gate is opened in clocked mode in PROFIBUS DP cycle ”n” by setting the SW_GATE control bit. the 1Count24V/100kHz delivers the current count value from the Ti. counting only starts once the HW gate is open. one of the following things occurs. In the same cycle. counting starts at the time To in cycle “n+1” if the HW gate is already open at this time. Terminating Gate Function Gate Control by Means of the SW Gate Only When the gate is opened. depending on the parameterization: – Counting continues from the current count value or – Counting starts at the load value If the SW gate is opened in clocked mode in PROFIBUS DP cycle ”n” by setting the SW_GATE control bit. If the HW gates opens between To and Ti in cycle “n+1”. counting continues as of the current count value. 3-20 Technological Functions ET 200S A5E00124867-02 . Down.1Count5V/500kHz Counter status Upper count limit Load value Lower count limit Gate start Gate stop Gate start Time Figure 3-8 Endless Counting. one of the following things occurs. the 1Count24V/100kHz delivers the current count value in cycle “n+1” as of Ti. When the HW gate is opened. Gate Control by Means of the SW Gate and HW Gate If the SW gate opens when the HW gate is already open. In both cases. counting starts at the time To in cycle “n+1”. “n+1”.

It is started at the first rising edge at the digital input. Technological Functions ET 200S A5E00124867-02 3-21 .6. The count mode must be enabled by the SW gate before the function can be executed.6 Latch Function There are two latch functions: • Latch and retrigger • Latching The Latch and Retrigger Function In order to be able to use this function. you must have selected it from the digital input function parameters. The stored counter status rather than the current counter status is indicated at the feedback interface. The counter status can thus be evaluated independently of events. and the 1Count5V/500kHz is then loaded again with the load value. The STS_DI bit indicates the level of the latch and retrigger signal. This means that the current internal counter status at the time of the edge is stored. Count pulses SW_GATE DI digital input Counter status Latch value Figure 3-9 Latch and Retrigger with Load Value=0 This function stores the current internal counter status of the 1Count5V/500kHz and retriggers counting when there is an edge at the digital input. as of which it resumes counting.1Count5V/500kHz 3.

The DI digital input remains active even when the SW gate is closed.1Count5V/500kHz The latch value is preset with its RESET status (Table 3-2 on page 3-10). Counting is also latched and triggered in clocked mode with each edge at the digital input. you must have selected it from the digital input function parameters. The latch value is always the exact count at the time of the positive edge at the DI digital input. The 1Count5V/500kHz begins at the load value. If you close the SW gate. this means that when you open the SW gate again. Count pulses SW_GATE DI digital input Counter status Latch value Figure 3-10 Latch with a Load Value of 0 The counter status and latch value are preset with their RESET states (Table 3-2 on page 3-10). The count function is started when the SW gate is opened. counting is continued. it only interrupts counting. The counter status that was valid at the time of the last edge before Ti is displayed in the feedback interface. It is not changed when the SW gate is opened. Direct loading of the counter does not cause the indicated stored counter status to be changed. Latching In order to be able to use this function. 3-22 Technological Functions ET 200S A5E00124867-02 .

In clocked mode the counter status that was latched at the time of the last edge before Ti is displayed in the feedback interface of the counter status. the effect is as when parameterized. Direct loading of the counter does not cause the indicated stored counter status to be changed. Further possible causes of parameter assignment errors with the latch function: • DI function incorrect Technological Functions ET 200S A5E00124867-02 3-23 . The DI digital input remains active even when the SW gate is closed.1Count5V/500kHz The stored counter status rather than the current counter status is indicated at the feedback interface. When you close the SW gate. terminating or interrupting. The STS_DI bit indicates the level of the latch signal.

1Count5V/500kHz 3. you must have selected it from the digital input function parameters. The following conditions apply: • The count mode must have been started by the SW gate. the rising edge of a reference signal at the input sets the 1Count5V/500kHz to the load value. once only Enable CRTL_SYN Count value Load value Synchronization. 3-24 Technological Functions ET 200S A5E00124867-02 . You can select between once-only and periodic synchronization.6. • In once-only synchronization. Internal count pulses (up or down) Digital input (zero mark) Synchronization.7 Synchronization Synchronization with DI In order to be able to use this function. periodic Enable CRTL_SYN Count value Load value Figure 3-11 Once-Only and Periodic Synchronization If you have parameterized synchronization. the first edge loads the1Count5V/500kHz with the load value after the enable bit is set. • The “enable synchronization CTRL_SYN” control bit must be set.

• The signal of a bounce-free switch can serve as the reference signal. • The STS_DI feedback bit indicates the level of the reference signal. the STS_SYN feedback bit is set and the SYN LED comes on. In clocked mode. the first edge and each subsequent edge load the 1Count5V/500kHz with the load value after the enable bit is set. the set feedback bit STS_SYN indicates that the rising edge on the digital input was between the time Ti in the current cycle and Ti in the previous cycle. • After successful synchronization. Technological Functions ET 200S A5E00124867-02 3-25 .1Count5V/500kHz • In periodic synchronization. The RES_STS control bit resets the feedback bit and switches the LED off.

you must have selected it from the digital input function parameters. periodic Enable CRTL_SYN Count value Load value Figure 3-12 Once-Only and Periodic Synchronization If you have parameterized synchronization with DI and zero mark. the DI serves as the HW enable. When HW enable is active. Internal count pulses (up or down) DI digital input Zero mark Synchronization. the 1Count5V/500kHz is loaded with 3-26 Technological Functions ET 200S A5E00124867-02 .1Count5V/500kHz Synchronization with DI and Zero Mark In order to be able to use this function. once only Enable CRTL_SYN Count value Load value Synchronization.

the first and each subsequent zero mark load the 1Count5V/500kHz with the load value after the enable bit and the HW enable are set. The following conditions apply: • The count mode must have been started by the SW gate. • In periodic synchronization. the first zero mark loads the 1Count5V/500kHz with the load value after the enable bit and the HW enable are set. The RES_STS control bit resets the feedback bit and switches the LED off. The outputs can be activated.8 Behavior of the Outputs in Count Modes The 1Count5V/500kHz lets you store two comparison values. • After successful synchronization. In clocked mode. You can select between once-only and periodic synchronization.6. • The signal of a bounce-free switch can serve as the reference signal. the set feedback bit STS_SYN indicates that the rising edge at the digital input was between the time Ti in the current cycle and Ti in the previous cycle. depending on the counter status and comparison values. • In once-only synchronization. which are assigned to the digital outputs. You can choose from the following functions: • Output • Counter status ≥ comparison value • Counter status ≤ comparison value • Pulse at comparison value • Switching at comparison values (DO1 only) Technological Functions ET 200S A5E00124867-02 3-27 . The various ways of setting the behavior of the outputs are described in this section. • The STS_DI feedback bit indicates the level of the reference signal. • The “enable synchronization CTRL_SYN” control bit must be set. You can change the function and the behavior of the digital outputs during operation. the STS_SYN feedback bit is set and the SYN LED comes on. The 1Count5V/500kHz has two digital outputs.1Count5V/500kHz the load value by the sensor’s zero mark. 3. Both outputs are parameterizable.

the corresponding bit is set again immediately. You can query the status of the outputs with the status bits STS_DO1 and STS_DO2 at the feedback interface. 3-28 Technological Functions ET 200S A5E00124867-02 .1Count5V/500kHz Output You can switch the outputs on and off with the control bits SET_DO1 and SET_DO2. The status of the output is indicated by STS_DO1 and STS_DO2. The comparison result is indicated by the status bits STS_CMP1 and STS_CMP2. The control bits CTRL_DO1 and CTRL_DO2 must be set for this. the DO1 and DO2 outputs are switched at the time To. Counter Status . These status bits retain their status until they are acknowledged. the DO1 and DO2 outputs are switched as soon as the comparison condition is fulfilled and they are therefore independent of the PROFIBUS DP cycle. You cannot acknowledge and thus reset these bits until the comparison conditions are no longer fulfilled. The status bits STS_CMP1 and STS_CMP2 indicate that the relevant output is or was switched on. Clocked mode: In clocked mode. Comparison Value and Counter Status 3 Comparison Value If the comparison conditions are fulfilled. These status bits are also set when the control bit SET_DO1 or SET_DO2 is operated without DO1 or DO2 being enabled. If the output is still switched. Clocked mode: In clocked mode as well. the relevant comparator switches the output on. The control bits CTRL_DO1 and CTRL_DO2 must be set for this.

The pulse duration can be set to suit the actuators used. the DO1 and DO2 outputs are switched as soon as the comparison condition is fulfilled and they are therefore independent of the PROFIBUS DP cycle. The control bit CTRL_DO1 or CTRL_DO2 must be set for this. Clocked mode: In clocked mode as well. If the digital output is set by means of the control bit SET_DO1 or SET_DO2. The pulse duration specifies how long the output is to be set for. If the pulse duration is 0. the DO1 and DO2 outputs are switched as soon as the comparison condition is fulfilled and they are therefore independent of the PROFIBUS DP cycle.1Count5V/500kHz Comparison Value Reached. The comparison result is indicated by means of the status bit STS_CMP1 or STS_CMP2 and cannot be reset by acknowledgment until the pulse duration has elapsed. it is reset when the pulse duration has elapsed. The status bits STS_DO1 and STS_DO2 always have the status of the corresponding digital output. Pulse Duration When the Comparison Value Is Reached The pulse duration begins when the digital output is set. the comparator switches only when the comparison value in the main count direction is reached. the comparator switches when the comparison value is reached from either direction. If a main count direction is not parameterized. If a main count direction is parameterized. Note that the count pulse times must be greater than the minimum switching times of the digital output. Clocked mode: In clocked mode as well. The inaccuracy of the pulse duration is less than 2 ms. Pulse Output If the counter status reaches the comparison value. Technological Functions ET 200S A5E00124867-02 3-29 . the output is set until the comparison condition is no longer fulfilled. the comparator switches on the relevant digital output for the parameterized pulse duration. The pulse duration can be preselected between 0 ms and 510 ms in steps of 2 ms.

1Count5V/500kHz

Switching at comparison values
The comparator switches the output when the following conditions are met: • The two comparison values must be loaded by means of the load functions CMP_VAL1 and CMP_VAL2. and • After the comparison values are loaded, enable the DO1 output with CRTL_DO1. The following table shows you when the DO1 is switched on or off:
DO1 Is Switched On When V2 < V1 (see Figure 3-13) V2 = V1 V2 < V1 (see Figure 3-14) V2 ≤ counter status ≤ V1 DO1 Is Switched Off When V2 > counter status or counter status > V1 V2 ≠ counter status ≠ V1 V1 ≤ counter status ≤ V2

V2 = counter status = V1 V1 > counter status or counter status > V2

The comparison result is indicated by the status bit STS_CMP1. You can only acknowledge and thus reset this bit when the comparison condition is no longer fulfilled. There is no hysteresis in the case of this output behavior. It is not possible to control the DO1 output with the SET_DO1 control bit in the case of this output behavior. Clocked mode: In clocked mode as well, the DO1 output is switched as soon as the comparison condition is fulfilled and is therefore independent of the PROFIBUS DP cycle.

Counter status

V1 V2 0

t

DO1
t

Figure 3-13

V2 < V1 at the Start of the Count

3-30

Technological Functions ET 200S A5E00124867-02

1Count5V/500kHz

Counter status

V2 V1 0

t

DO1
t Figure 3-14 V2 > V1 at the Start of the Count

Setting or Changing the Function and Behavior of the DO1 Digital Output
If you want to set or change the behavior of the DO1, make sure you consider all the parameterized dependencies, otherwise a parameter assignment error or loading error may occur.

Specific Conditions If you parameterize switching at comparison values for DO1, you must do the following: • Set hysteresis=0 and • Also parameterize “output” for the DO2 output

Hysteresis
A sensor can remain at a particular position and then fluctuate around this position. This status causes the counter status 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. To prevent switching occurring in the case of small fluctuations, the 1Count5V/500kHz is equipped with parameterizable hysteresis. You can parameterize a range between 0 and 255 (0 means hysteresis switched off). Hysteresis also works with overflow and underflow.

Technological Functions ET 200S A5E00124867-02

3-31

1Count5V/500kHz

How Hysteresis Works with Counter Status . Comparison Value and Counter Status 3 Comparison Value
The diagram below provides an example of how hysteresis works. It shows the differences in the behavior of an output when hysteresis of 0 (switched off) is parameterized as opposed to hysteresis of 3. In the example, the comparison value = 5. The counter is parameterized with the settings ”Up” for “Main count direction” and “Switch on at counter status ≥ comparison value”. When the comparison condition is met, hysteresis becomes active. While the hysteresis is active, the result of comparison remains unchanged. If the count value goes outside the hysteresis range, hysteresis is no longer active. The comparator switches again according to its comparison conditions.

Count value

8 7 6 5 4 3 2 1 0

Hys0

Hys3 Figure 3-15 Example of How Hysteresis Works

Note If the counter status is equal to the comparison value and hysteresis is active, the 1Count5V/500kHz deletes the output when there is a change in count direction at the comparison value.

3-32

Technological Functions ET 200S A5E00124867-02

1Count5V/500kHz

How Hysteresis Works When the Comparison Value Is Reached and the Pulse Duration = 0
The diagram below provides an example of how hysteresis works. It shows the differences in the behavior of an output when hysteresis of 0 (switched off) is parameterized as opposed to hysteresis of 3. In the example, the comparison value = 5. The counter is parameterized with the settings “pulse when comparison value is reached”, “no main count direction” and “pulse duration = 0”. When the comparison conditions are met, hysteresis becomes active. While the hysteresis is active, the result of comparison remains unchanged. If the count value goes outside the hysteresis range, hysteresis is no longer active. The comparator deletes the result of the comparison.

Count value

8 7 6 5 4 3 2 1 0

Hys0

Hys3 Figure 3-16 Example of How Hysteresis Works

Technological Functions ET 200S A5E00124867-02

3-33

1Count5V/500kHz

How Hysteresis Works When the Comparison Value Is Reached, Output Pulse Duration
The diagram below provides an example of how hysteresis works. It shows the differences in the behavior of an output when hysteresis of 0 (switched off) is parameterized as opposed to hysteresis of 3. In the example, the comparison value = 5. The counter is parameterized with the settings “pulse when comparison value is reached”, “no main count direction” and “pulse duration > 0”. When the comparison conditions have been met, hysteresis becomes active and a pulse of the duration indicated in the parameters is output. If the count value goes outside the hysteresis range, hysteresis is no longer active. 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.

Count value

8 7 6 5 4 3 2 1 0

Hys0

Hys3 Figure 3-17 Example of How Hysteresis Works

3-34

Technological Functions ET 200S A5E00124867-02

as long as the count value is at the comparison value or hysteresis is active. Note that the comparators continue to be active and can set or reset the output if there is a change in the comparison result. • A negative edge of SET_DO1 or SET_DO2 resets the output. you can simulate the effect of the comparison functions by means of your control program: • The output is set by the positive edge of SET_DO1 or SET_DO2. If you specified that a pulse is to be output when the comparison value is reached. In this manner. For pulse duration = 0. Valid Range for the Two Comparison Values Main Count Direction: None Lower count limit to upper count limit Main Count Direction: Up –2147483648 to upper count limit –1 Main Count Direction: Down 1 to 2147483647 Technological Functions ET 200S A5E00124867-02 3-35 . Loading the Comparison Values Pass the comparison values to the 1Count5V/500kHz.1Count5V/500kHz Control of the Outputs Simultaneously to the Comparators If you selected a comparison function for the outputs. Counting is not affected by this. The SET_DO1 control bit is not permitted in the case of switching at comparison values. the output can be set with SET_DO1 or SET_DO2. only one pulse of the specified duration is output. you can continue to control the outputs with SET_DO1 or SET_DO2. Note An output set by SET_DO1 or SET_DO2 is not reset at the comparison value by the comparator.

. However. the 1Count5V/500kHz does not make any change to the output. 3-36 Technological Functions ET 200S A5E00124867-02 .. • Hysteresis: An active hysteresis (see How Hysteresis Works .) remains active after the change. • Pulse duration: The new pulse duration takes effect with the next pulse. the output is not changed until after the next count pulse. if hysteresis is active. the 1Count5V/500kHz deletes the outputs and accepts the values as follows: • Function of the digital outputs DO1 and DO2: If you change the function such that the comparison condition is fulfilled. When you do this. The new range of hysteresis is applied the next time the comparison value is reached.1Count5V/500kHz Changing the Function and Behavior of the Digital Outputs You can change the functions and behavior of the outputs during operation by means of the control interface.

6. Table 3-3 Address Feedback Interface (Inputs) Assignment Count value or stored count value in the case of the latch function at the digital input Bit 7: Short circuit of the sensor supply Bit 6: Short circuit / wire break / overtemperature Bit 5: Parameter assignment error Bit 4: Short circuit / wire break / overtemperature Bit 3: Short circuit / wire break / sensor signal Bit 2: Resetting of status bit active Bit 1: Load function error Bit 0: Load function active ERR_24V ERR_DO1 ERR_PARA ERR_DO2 ERR_ENCODER RES_STS_A ERR_LOAD STS_LOAD STS_C_DN STS_C_UP STS_DO2 STS_DO1 STS_DI STS_GATE STS_ND STS_UFLW STS_OFLW STS_CMP2 STS_CMP1 Designation Bytes 0 to 3 Byte 4 Byte 5 Bit 7: Down direction status Bit 6: Up direction status Bit 5: Reserve = 0 Bit 4: DO2 status Bit 3: DO1 status Bit 2: Reserve = 0 Bit 1: DI status Bit 0: Internal gate status Byte 6 Bit 7: Zero-crossing in the count range in counting without a main counting direction Bit 6: Lower count limit Bit 5: Upper count limit Bit 4: Comparator 2 status Bit 3: Comparator 1 status Bit 2: Reserve = 0 Bit 1: Reserve = 0 Bit 0: Synchronization status STS_SYN Byte 7 Reserve = 0 Technological Functions ET 200S A5E00124867-02 3-37 .9 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 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 DDB file).1Count5V/500kHz 3.

1Count5V/500kHz Table 3-4 Address Control Interface (Outputs) Assignment Load Value Direct. DO2 (range 0 to 255) Pulse duration [2 ms] DO1. Preparatory. DO2 Load comparison value 2 Load comparison value 1 Load counter (preparatory) Load counter (direct) Byte 4 EXTF_ACK CTRL_DO2 SET_DO2 CTRL_DO1 SET_DO1 RES_STS CTRL_SYN SW_GATE Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Bit 7: Bit 6: Bit 5: Byte 5 C_DOPARAM CMP_VAL2 CMP_VAL1 LOAD_PREPARE LOAD_VAL Bytes 6 to 7 Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Reserve = 0 3-38 Technological Functions ET 200S A5E00124867-02 . DO2 of the 1Count5V/500kHz Bit 2 0 0 0 0 1 1 1 1 Bit 1 0 0 1 1 0 0 1 1 Bit 5 0 0 1 1 Bytes 1 to 3 Byte 1: Byte 2: Byte 3: Bit 0 0 1 0 1 0 1 0 1 Bit 4 0 1 0 1 Function of DO1 Output Activation at a counter status ≥ the comparison value Activation at a counter status ≤ the comparison value Pulse on reaching the comparison value Switching at comparison values Disabled Disabled Disabled Function of DO2 Output Activation at a counter status ≥ the comparison value Activation at a counter status ≤ the comparison value Pulse on reaching the comparison value Bytes 0 to 3 Hysteresis DO1. DO2 (range 0 to 255) Reserve = 0 Diagnostic error acknowledgment Enable DO2 DO2 control bit Enable DO1 DO1 control bit Start resetting of status bit Enable synchronization SW gate control bit Reserve = 0 Reserve = 0 Reserve = 0 Change function and behavior of DO1. Comparison Value 1 or 2 Byte 0 Behavior of DO1.

DO2. hysteresis. Start resetting of status bit The status bits are reset by means of the acknowledgment process between the RES_STS bit and the RES_STS_A bit. and pulse duration of DO1. CMP_VAL2 Load comparison value 2 (see Figure 3-19) The value from bytes 0 to 3 is transferred to comparison value 2 by means of the control bit “Load comparison value 2 – CMP_VAL2”. LOAD_VAL RES_STS The value from bytes 0 to 3 is loaded directly as the new counter value (see Figure 3-19). CTRL_DO2 Enable DO2 You use this bit to enable the DO2 output. SET_DO2 DO2 control bit Switches the DO2 digital output on and off when CTRL_DO2 is set. CTRL_SYN EXTF_ACK You use this bit to enable synchronization. (see Figure 3-21) LOAD_PREPARE Load counter – preparatory (see Figure 3-19) The value from bytes 0 to 3 is adopted as the load value. CTRL_DO1 Enable DO1 You use this bit to enable the DO1 output. SW_GATE SW gate control bit The SW gate is opened/closed by means of the control interface with the SW_GATE bit. CMP_VAL1 Load comparison value 1 (see Figure 3-19) The value from bytes 0 to 3 is transferred to comparison value 1 by means of the control bit “Load comparison value 1 – CMP_VAL1”. DO2 (see Figure 3-19) The values from bytes 0 to 2 are accepted as new function.1Count5V/500kHz Notes on the Control Bits Control Bits C_DOPARAM Notes Change function and behavior of DO1. Technological Functions ET 200S A5E00124867-02 3-39 . Error acknowledgment The error bits must be acknowledged by means of the control bit EXTF_ACK after the cause is removed. (see Figure 3-26) SET_DO1 DO1 control bit Switches the DO1 digital output on and off when CTRL_DO1 is set. This may result in the following error: The conditions for switching at comparison values are not fulfilled.

the bit is set again immediately. similar to loading an incorrect value (which is not accepted). ERR_ENCODER Short circuit / wire break of 5 V sensor signal The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 3-29). ERR_DO1 Short circuit/wire break/overtemperature at output DO1 The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 3-29). STS_DI DI status The status of the DI is indicated in all modes by means of the STS_DI bit at the feedback interface. If the status bit is acknowledged when the output is still switched on. STS_DO2 DO2 status The STS_DO2 status bit indicates the status of the DO2 digital output. STS_CMP2 Comparator 2 status The STS_CMP2 status bit indicates that the output is or was switched on. ERR_PARA RES_STS_A STS_C_DN STS_C_UP STS_CMP1 Parameter assignment error – ERR_PARA Resetting of the status bits active (see Figure 3-18) Down direction status Up direction status Comparator 1 status The STS_CMP1 status bit indicates that the output is or was switched on. CMP_VAL2. The bit must be reset by means of the RES_STS control bit. If the status bit is acknowledged when the output is still switched on. if parameterized. and C_DOPARAM cannot be set simultaneously during transfer. This bit is also set if the SET_DO2 control bit is used when DO2 is not enabled. Notes 3-40 Technological Functions ET 200S A5E00124867-02 .1Count5V/500kHz Notes on the Feedback Bits Feedback Bits ERR_24V Short circuit of the sensor supply The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 3-29). Diagnostic message. This bit is also set if the SET_DO1 control bit is used when DO1 is not enabled. if parameterized. the bit is set again immediately. LOAD_PREPARE. STS_DO1 DO1 status The STS_DO1 status bit indicates the status of the DO1 digital output. It must be acknowledged by means of the RES_STS control bit. Diagnostic message. Diagnostic message. ERR_LOAD Load function error (see Figure 3-19) The bits LOAD_VAL. CMP_VAL1. if parameterized. It must be acknowledged by means of the RES_STS control bit. if parameterized. STS_GATE STS_LOAD STS_ND Internal gate status: Counting Load function running (see Figure 3-19) Zero-crossing in the count range in counting without a main counting direction. This results in setting the ERR_LOAD status bit. ERR_DO2 Short circuit/wire break/overtemperature at output DO2 The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 3-29). Diagnostic message.

Resetting of the Status Bits STS_SYN. STS_CMP1. L PID) Transfer instruction (e. STS_ND Event still pending at reset Feedback signals: One of the status bits t Control bit: RES_STS t Feedback bit: RES_STS_A t Reset executed Removal of the request The 1Count5V/500kHz executes resetting Request reset Figure 3-18 Resetting of Status Bits Technological Functions ET 200S A5E00124867-02 3-41 .0). STS_SYN Synchronization status Notes After successful synchronization. STS_CMP2. STS_OFLW.0).g. STS_UFLW.1Count5V/500kHz Feedback Bits STS_OFLW STS_UFLW Upper count limit violated Lower count limit violated Both bits must be reset. It must be reset by the RES_STS control bit. the STS_SYN bit is set.g. CPU 4xx (as of V3. CPU 318-2 (as of V3. Access to the Control and Feedback Interface in STEP 7 Programming Configuration with STEP 7 Using the DDB File 1) (Hardware Catalog\PROFIBUS DP\ Additional FIELD DEVICES\I/O\ET 200S) Configuration with STEP 7 Using HWCONFIG (Hardware Catalog\PROFIBUS DP\ ET 200S) Feedback interface Control interface 1)Load Read with SFC 14 “DPRD_DAT” Write with SFC 15 “DPWR_DAT” Load instruction (e. T PQD) and transfer commands are also possible with CPU 3xxC.

1Count5V/500kHz Acceptance of Values with the Load Function Error bit: ERR_LOAD t Control bit: LOAD_VAL LOAD_PREPARE CMP_VAL1 CMP_VAL2 C_DOPARAM Feedback bit: STS_LOAD t t Value accepted. End of transfer Remove request and keep value available. the ERR_LOAD error is reported until all the specified control bits are deleted again. 3-42 Technological Functions ET 200S A5E00124867-02 . The 1Count5V/500kHz has understood the request Request value transfer and make value available. Figure 3-19 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. The ERR_LOAD error bit is only deleted when the following is carried out correctly. Otherwise.

1Count5V/500kHz Acknowledgment in Clocked Mode In clocked mode exactly 4 PROFIBUS DP cycles are required to reset the status bits and to accept values with the load function. 1st DP cycle 2nd DP cycle 3rd DP cycle Control bit in the user program 4th DP cycle Status bit of the module Ti TDP Ti TDP Ti TDP Ti TDP Ti TDP Figure 3-20 Acknowledgment in Clocked Mode Technological Functions ET 200S A5E00124867-02 3-43 .

3-44 Technological Functions ET 200S A5E00124867-02 . the 1Count5V/500kHz reports the errors as soon as they are detected and deletes them as soon as they have been eliminated. a diagnostic message may appear. They have been detected by the 1Count5V/500kHz and are indicated at the feedback interface. the 1Count5V/500kHz sets an error bit. The parameter assignment error bit is acknowledged by means of correct parameter assignment. when EXTF_ACK is set by the user program. Error bit ERR_24V. Error eliminated. the 1Count5V/500kHz deletes the error bit. An error has occurred. A channel-specific diagnosis is carried out after you have enabled group diagnosis at parameter assignment (see Chapter 6 of the ET 200S Distributed I/O System manual).1Count5V/500kHz Error Detection The program errors must be acknowledged. for example Error acknowledgment EXTF_ACK Figure 3-21 Error Acknowledgment In the case of continuous error acknowledgment (EXTF_ACK=1) or at CPU/Master Stop. a diagnostic message may appear. error detection continues.

ad. DO2 1 DO1/DO2 diagnostics (wire break) is possible only with pulse lengths of > 90 ms at digital output DO1/DO2.10 Parameter Assignment for the Count Modes You can parameterize the 1Count5V/500kHz with one of the following: – Using a DDB file (http://www. DO2 Pulse duration [2 ms] DO1. B Diagnosis A and B Diagnosis N Direction input B Output Parameters Function of DO1 Output/ Switch on at counter status ≥comparison value/ Switch on at counter status≤ comparison value/ Pulse on reaching the comparison value/ Switch at comparison values Output/ Switch on at counter status ≥ comparison value/ Switch on at counter status ≤ comparison value/ Pulse on reaching the comparison value 0/1 0/1 Off/on Off/on 0 to 255 0 to 255 Output Rotary transducer (single/dual/quad) Off/on Off/on Normal/Inverted Rotary transducer (single) Off Off Normal Function of DO2 Output Substitute value DO1 Substitute value DO2 Diagnostics DO11 0 0 Off Off 0 0 Diagnostics DO21 Hysteresis DO1.siemens.1Count5V/500kHz 3.1 SP4 Parameter List for Count Modes Parameters Enable Group diagnosis Disable/enable Disable Value Range Default Behavior in the Event of the Parent Controller Failing Reaction to CPU-Master-STOP Turn off DO/ Continue working mode/ DO substitute a value/ DO keep last value Turn off DO Sensor Parameters Signal evaluation A. Technological Functions ET 200S A5E00124867-02 3-45 .6.de/csi/gsd) – With STEP 7 as of V5.

• Upper count limit incorrect • The value for the behavior of DO2 is not set to output although switching at comparison values has been parameterized for DO1. • The value for hysteresis does not equal 0 although switching at comparison values has been parameterized for DO1. 3-46 Technological Functions ET 200S A5E00124867-02 . What to Do in the Event of Errors Check the set value ranges.1Count5V/500kHz Parameters Mode Count mode Value Range Default Endless counting/ Once-only counting/ Periodic counting Terminate counting/ Interrupt counting Normal/Inverted Input/ HW gate/ latch and retrigger at positive edge/ synchronization at positive edge/ latch at positive edge/ HW enable for synchronization Once only/Periodic None/Up/Down 2 to 7FFF FFFF Endless counting Gate function Input signal HW gate Function DI Terminate counting Normal Input Synchronization2 Main count direction Upper count limit 2 Once None 7FFF FFFF Only relevant if DI function = synchronization at positive edge or HW enable for synchronization Parameter assignment error • Incorrect mode • Incorrect main count direction • The HW gate input signal parameter is set to inverted and the DI function parameter is not set on HW gate. • DI function incorrect • “On” is set for diagnosis N although “Off” was set for diagnosis A and B.

In each cycle the 1Count5V/500kHz transfers a measured value and the status bits that were valid at the time Ti. you can respond to any process irregularities. you have to use the gate functions. If you evaluate the STS_C_UP and STS_C_DN feedback bits (direction evaluation). Gate Control To control the 1Count5V/500kHz. the measured value is updated. 0 is returned as the measured value. The measurement starts and ends at the time Ti. A value of –1 is returned by the end of the first integration time. Clocked Mode In clocked mode the 1Count5V/500kHz accepts the control bits and control values from the control interface in each PROFIBUS DP cycle and reports back the response to them in the same cycle. the measured value for this measurement period is uncertain. You can change the integration time for the next measurement during operation.7) Measurement Process The measurement is carried out during the parameterized integration time.7 Measurement Modes You can choose between the following modes: • Frequency measurement • Period measurement • Rotational speed measurement To execute one of these modes. The end of a measurement is indicated by the STS_CMP1 status bit. When the integration time elapses. (See Section 3. Reversal of the direction of rotation If the direction of rotation is reversed during an integration time. This bit is reset by the RES_STS control bit at the control interface.7. If there were not at least two rising edges in the parameterized integration time.1Count5V/500kHz 3. Technological Functions ET 200S A5E00124867-02 3-47 . you have to parameterize the 1Count5V/500kHz.

you don’t have to continually evaluate status bit STS_CMP1. The minimum integration time in this case is (4 × TDP). Note You must not violate the range limits for the integration time (see Tables 3-5.1Count5V/500kHz Integration Time in Clocked Mode If the integration time lasts several TDP cycles. and the 1Count5V/500kHz does not go into clocked mode. you can recognize the new measurement value in the user program on status bit STS_CMP1 (measurement completed) of the feedback interface. however. for this message to be acknowledged. 3-51 and 3-54). If the range limits are violated. 3-6 and 3-7 on pages 3-49. Note When you change the configuration from non-clocked to clocked mode and vice versa. This does not corrupt the measured value. If the application can tolerate a jitter in the integration time of a TDP and a measured value that remains constant for several cycles. Because clocking was lost in the last TDP cycle of the integration time. the integration time is increased by one TDP cycle. you must always adjust the integration time parameter if you want to keep the length of the integration time. This makes it possible to monitor the measurement procedure or for it to be synchronized. this results in a parameter assignment error. It takes 4 TDP cycles. 3-48 Technological Functions ET 200S A5E00124867-02 . Integration times of (1 × TDP) to (3 × TDP) are then possible.

You can read the measured frequency value at the feedback interface (bytes 0 to 3). Frequency Measurement The value of the frequency determined is made available in the unit Hz*10 –3. Table 3-5 Calculating the Integration Time Integration Time n × 10 ms n × TDP n × TDP Range of n nmin 1 ( 10 ms/TDP [ms] ) +1 1 1 Specific Conditions nmax 1000 1000 10000 ms/TDP [ms] 1 Non-clocked mode Clocked mode 1 Any TDP TDP < 10 ms TDP ≥ 10 ms Any digits after the decimal point that come about after dividing by TDP can be omitted. the 1Count5V/500kHz counts the pulses that arrive within a set integration time.1Count5V/500kHz 3. If these limits are violated the 1Count5V/500kHz generates a parameterization error and will not go into clocked mode.7.1 Frequency Measurement Definition In frequency measurement mode. These limits must not be violated. Integration Time Preset the integration time with the integration time parameter (see Table 3-5). Integration time Integration time Count pulses Internal gate Beginning of frequency measurement End of frequency measurement Figure 3-22 Frequency Measurement with Gate Function Technological Functions ET 200S A5E00124867-02 3-49 .

1Count5V/500kHz Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Lower Limit fu 0 to 499.5) Function of the DO2 Digital Output • Output Values That Can Be Changed during Operation: • Lower limit (LOAD_PREPARE) • Upper limit (LOAD_VAL) • Function of the DO1 (C_DOPARAM) digital output • Integration time (C_INTTIME) (See Section 3.1 Hz ± 0.999.7.7.000.002 Hz 100 Hz ± 0.7.001 Hz 10 Hz ± 0.999 Hz*10–3 Upper Limit fo fu+1 to 500.1 s 0.4) Function of the DO1 Digital Output Select one of the following functions for the DO1 digital output: • Output (no switching by means of limit monitoring) • Measured value outside the limits • Measured value under the lower limit • Measured value over the upper limit (See Section 3.013 Hz fmax + absolute error 500000 Hz ± 90 Hz 500000 Hz ± 55 Hz 500000 Hz ± 52 Hz 500000 Hz ± 63 Hz Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 3.000 Hz*10–3 Possible Measurement Ranges with Error Indication Integration Time 10 s 1s 0.001 Hz 1 Hz ± 0.6) 3-50 Technological Functions ET 200S A5E00124867-02 .7.5 and 3.01 s fmin + absolute error 0.

These limits must not be violated. If these limits are violated the 1Count5V/500kHz generates a parameterization error and will not go into clocked mode.7. Table 3-6 Calculating the Integration Time Integration Time n × 10 ms n × TDP n × TDP Range of n nmin 1 ( 10 ms/TDP [ms] ) +1 1 1 Specific Conditions nmax 1000 1000 10000 ms/TDP [ms] 1 Non-clocked mode Clocked mode 1 Any TDP TDP < 10 ms TDP ≥ 10 ms Any digits after the decimal point that come about after dividing by TDP can be omitted. Rotational Speed Measurement For rotational speed measurement mode.2 Rotational Speed Measurement Definition In rotational speed measurement mode. Integration time Integration time Count pulses Internal gate Beginning of rotational speed measurement End of rotational speed measurement Figure 3-23 Rotational Speed Measurement with Gate Function Technological Functions ET 200S A5E00124867-02 3-51 . The rotational speed is returned in the unit 1x10–3 /min. the 1Count5V/500kHz counts the pulses that arrive from a rotational speed sensor within a set integration time and calculates the speed of the connected motor. Integration Time Preset the integration time with the integration time parameter (see Table 3-6).1Count5V/500kHz 3. you also have to parameterize the pulses per sensor or motor revolution.

03 /min 100 /min ± 0.7.5) Function of the DO2 Digital Output • Output 3-52 Technological Functions ET 200S A5E00124867-02 .4) Function of the DO1 Digital Output Select one of the following functions for the DO1 digital output: • Output (no switching by means of limit-value monitoring) • Measured value outside the limits • Measured value under the lower limit • Measured value over the upper limit (See Section 3.1Count5V/500kHz Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Lower limit nu 0 to 24.03 /min 1 /min ± 0.999.6 /min 25000 /min ± 3.03 /min 10 /min ± 0.5 /min 25000 /min ± 2.000 *10–3 /min Possible Measurement Ranges with Error Indication (Number of Pulses per Encoder Revolution = 60) Integration time 10 s 1s 0.01 s nmin + absolute error 1 /min ± 0.04 /min nmax + absolute error 25000 /min ± 4.000.999 x10–3 /min Upper limit no nu+1 to 25.7.8 /min 25000 /min ± 2.1 s 0.2 /min Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 3.

5 and 3.6) Technological Functions ET 200S A5E00124867-02 3-53 .7.1Count5V/500kHz Values That Can Be Changed during Operation: • Lower limit (LOAD_PREPARE) • Upper limit (LOAD_VAL) • Function of the DO1 (C_DOPARAM) digital output • Integration time (C_INTTIME) (See Section 3.7.

3 Period Measurement Definition In period measurement mode. Period Measurement The value of the determined period duration is made available in the unit 1 ms and 1/16 ms. Integration time Period Integration time Count pulses Internal gate Start of period measurement End of period measurement Figure 3-24 Period Measurement with Gate Function 3-54 Technological Functions ET 200S A5E00124867-02 .7. If these limits are violated the 1Count5V/500kHz generates a parameterization error and will not go into clocked mode. Integration Time Preset the integration time with the integration time parameter (see Table 3-7). the 1Count5V/500kHz measures the time between two rising edges of the count signal by counting the pulses of an internal quartz-accurate reference frequency (16 MHz) within a set integration time. You can read the measured period at the feedback interface (bytes 0 to 3). Table 3-7 Calculating the Integration Time Integration Time n × 10 ms n × TDP n × TDP Range of n nmin 1 10 ms/TDP [ms] +1 1 1 Specific Conditions nmax 12000 12000 120000 ms/TDP [ms] 1 Non-clocked mode Clocked mode 1 Any TDP TDP < 10 ms TDP ≥ 10 ms Any digits after the decimal point that come about after dividing by TDP can be omitted. These limits must not be violated.1Count5V/500kHz 3.

1Count5V/500kHz Limit-Value Monitoring The following value ranges are permitted for limit-value monitoring: Resolution 1 ms Lower Limit Tu 0 to 119999999 ms Upper Limit To Tu+1 to 120000000 ms Resolution 1/16 ms Lower Limit Tu 0 to 1919999999 ms Upper Limit To Tu+1 to 1920000000 ms Possible Measurement Ranges with Error Indication Resolution 1ms Integration time 100 s 10 s 1s 0.7.1 s 0.4) Technological Functions ET 200S A5E00124867-02 3-55 .01 s Tmin ± absolute error 1 µs* (10 ± 0) 1 µs* (10 ± 0) 1 µs* (10 ± 0) 1 µs* (10 ± 0) 1 µs* (10 ± 0) T ± absolute error 1 µs* (100000000 ± 10000) 1 µs* (10000000 ± 1000) 1 µs* (1000000 ± 100) 1 µs* (100000 ± 10) 1 µs* (10000 ± 1) Resolution 1/16 ms Integration time 100 s 10 s 1s 0.01 s Tmin ± absolute error 1/16 µs* (160 ± 0) 1/16 µs* (160 ± 0) 1/16 µs* (160 ± 0) 1/16 µs* (160 ± 0) 1/16 µs* (160 ± 0) T ± absolute error 1/16 µs* (1600000000 ± 160000) 1/16 µs* (160000000 ± 16000) 1/16 µs* (16000000 ± 1600) 1/16 µs* (1600000 ± 160) 1/16 µs* (160000 ± 16) Function of the Digital Input Select one of the following functions for the digital input: • Input • HW gate (see Section 3.1 s 0.

3-56 Technological Functions ET 200S A5E00124867-02 . Note the transfer times and run times of your control program in this connection.5 and 3.7.7. which is controlled by means of the digital input on the 1Count5V/500kHz.7. • A hardware gate (HW gate). which is controlled by the SW_GATE control bit. The software gate can only be opened by a 0-to-1 edge change of the SW_GATE control bit. It is opened when there is a 0-to-1 edge change at the digital input and closed when there is a 1-to-0 edge change.6) 3.1Count5V/500kHz Function of the DO1 Digital Output Select one of the following functions for the digital output: • Output (no switching by means of limit-value monitoring) • Measured value outside the limits • Measured value under the lower limit • Measured value over the upper limit (See Section 3.5) Function of the DO2 Digital Output • Output Values That Can Be Changed during Operation: • Lower limit (LOAD_PREPARE) • Upper limit (LOAD_VAL) • Function of the DO1 (C_DOPARAM) digital output • Integration time (C_INTTIME) (See Section 3. You parameterize the hardware gate as a function of the digital input. It is closed when this bit is reset.7.4 Gate Functions in Measurement Modes Software Gate and Hardware Gate The 1Count5V/500kHz has two gates • A software gate (SW gate).

1Count5V/500kHz Internal Gate The internal gate is the logical AND of the HW gate and SW gate. The STS_GATE feedback bit (internal gate status) indicates this. Counting is only active when the HW gate and the SW gate are open. immediately after the SW has opened. Gate Control by Means of the SW Gate and HW Gate The opening and closing of the SW gate with the HW gate open starts/stops measurement. the setting of the SW gate is decisive. If the SW gate is opened in clocked mode in PROFIBUS DP cycle ”n” by setting the SW_GATE control bit. which occurs immediately after the HW gate has closed. In clocked mode. and ends at the time Ti in the cycle. The SW gate is opened/closed by means of the control interface with the SW_GATE bit. which occurs immediately after the SW gate has closed. The HW gate is opened/closed by means of a 24-V signal at the digital input. the measurement starts at the time Ti in the cycle. When the HW gate is open. the measurement starts at the time Ti in cycle “n+1”. If a HW gate has not been parameterized. The opening and closing of the HW gate with the SW gate open starts/stops measurement. Technological Functions ET 200S A5E00124867-02 3-57 . immediately after the HW gate has opened. The measurement ends at the time Ti. Gate Control by Means of the SW Gate Only The opening/closing of the SW gate starts/stops measurement. the measurement starts at the time Ti. when the SW gate is open.

In clocked mode it always takes effect at the time Ti. you must enable them with the CTRL_DO1 and CTRL_DO2 control bits.7. You can assign parameters to the digital outputs of the 1Count5V/500kHz. digital output DO1 is activated. The new function takes effect immediately. You can store an upper and a lower limit for frequency measurement. These limit values can be parameterized and changed with the load function. You can switch the outputs on and off with the control bits SET_DO1 and SET_DO2. 3-58 Technological Functions ET 200S A5E00124867-02 . You can query the status of the outputs with the status bits STS_DO1 and STS_DO2 at the feedback interface. You can choose from the following functions: • Output • Measured value outside the limits • Measured value under the lower limit • Measured value over the upper limit (limit-value monitoring) (limit-value monitoring) (limit-value monitoring) Output If you want to switch the outputs on or off. In clocked mode.5 Behavior of the Outputs in Measurement Modes The various ways of setting the behavior of the outputs are described in this section. outputs DO1 and DO2 are switched at the time To. If the limits are violated.1Count5V/500kHz 3. You can change the function and the behavior of the digital outputs during operation. rotational speed measurement or period measurement.

Depending on the parameterization. or period) is compared with the parameterized limit values. the STS_UFLW = 1 bit is set in the feedback interface. If the current measured value is under the parameterized lower limit (measured value < lower limit). the output switches at the time To. rotational speed. the corresponding status bit is set again. If the measured value is still outside or again outside the limits after acknowledgment. Measured value < lower limit OR Measured value > upper limit Measured value < lower limit Measured value > upper limit Measured value under the lower limit Measured value over the upper limit In clocked mode. You must acknowledge these bits by means of the RES_STS control bit. the measured value obtained (frequency. you switch off dynamic monitoring of violation of the lower limit value. the STS_OFLW = 1 bit is set in feedback interface. the enabled digital output DO1 can be set by means of limit-value monitoring: “Function DO1” Parameter Measured value outside the limits DO1 is Set ... Technological Functions ET 200S A5E00124867-02 3-59 .1Count5V/500kHz Limit-Value Monitoring UFLW OFLW 0 Measured value Gate start Lower limit Upper limit Figure 3-25 Limit-Value Monitoring After the integration time elapses. If you set the lower limit at 0. If the current measured value is over the parameterized high limit (measured value > upper limit).

1Count5V/500kHz 3.7.6 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 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 DDB file). Table 3-8 Address Feedback Interface (Inputs) Assignment Measured value Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Short circuit of the sensor supply Short circuit / wire break / overtemperature Parameter assignment error Short circuit / wire break / overtemperature Short circuit / wire break / sensor signal Resetting of status bit active Load function error Load function active Down direction status Up direction status Reserve = 0 DO2 status DO1 status Reserve = 0 DI status Internal gate status Reserve = 0 Measurement range lower limit Measurement range upper limit Reserve = 0 Measurement completed Reserve = 0 Reserve = 0 Reserve = 0 STS_CMP1 STS_UFLW STS_OFLW STS_DI STS_GATE STS_DO2 STS_DO1 ERR_24V ERR_DO ERR_PARA ERR_DO2 ERR_ENCODER RES_STS_A ERR_LOAD STS_LOAD STS_C_DN STS_C_UP Designation Bytes 0 to 3 Byte 4 Byte 5 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Byte 6 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Byte 7 Reserve = 0 3-60 Technological Functions ET 200S A5E00124867-02 .

1000/12000) Byte 2/3: Reserve = 0 Byte 4 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Byte 5 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Bytes 6 to 7 Diagnostic error acknowledgment – EXTF_ACK Enable DO2 – CTRL_DO2 DO2 control bit – SET_DO2 Enable DO1 – CTRL_DO1 DO1 control bit – SET_DO1 Start resetting of status bit – RES_STS Reserve = 0 SW gate control bit – SW_GATE Reserve = 0 Reserve = 0 Reserve = 0 Change function of DO1.1Count5V/500kHz Table 3-9 Address Control Interface (Outputs) Assignment Lower limit or upper limit Function of DO1 Byte 0: Bit 1 Bit 0 0 0 1 1 Bytes 1 to 3: 0 1 0 1 Function of DO1 Output Measured value outside the limits Measured value under the lower limit Measured value over the upper limit Bytes 0 to 3 Reserve = 0 Integration time Byte 0.. 1: Integration time [n*10ms] (Range 1. C_DOPARAM Reserve = 0 Change integration time. C_INTTIME Load upper limit – LOAD_PREPARE Load lower limit – LOAD_VAL Reserve = 0 Technological Functions ET 200S A5E00124867-02 3-61 ..

Diagnostic message. (see Figure 3-26) SET_DO1 DO1 control bit Switches the DO1 digital output on and off when CTRL_DO1 is set.1Count5V/500kHz Notes on the Control Bits Control Bits C_DOPARAM Change function of DO1 (see Figure 3-27) The value from byte 0 is adopted as the new function of DO1. ERR_ENCODER Short circuit / wire break of sensor signal The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 3-29). CTRL_DO2 Enable DO2 You use this bit to enable the DO2 output. Diagnostic message. LOAD_VAL Load lower limit (see Figure 3-27) The value from bytes 0 to 3 is adopted as the new lower limit. SET_DO2 DO2 control bit Switches the DO2 digital output on and off when CTRL_DO2 is set. Diagnostic message. ERR_DO2 Short circuit/wire break/overtemperature at output DO2 The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 3-29). (see Figure 3-29) LOAD_PREPARE Load upper limit (see Figure 3-27) The value from bytes 0 to 3 is adopted as the new upper limit. EXTF_ACK Error acknowledgment The error bits must be acknowledged by means of the control bit EXTF_ACK after the cause is removed. ERR_DO1 Short circuit/wire break/overtemperature at output DO1 The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 3-29). if assigned as parameter. if parameterized. Notes Notes on the Feedback Bits Feedback Bits ERR_24V Short circuit of the sensor supply The error bit must be acknowledged by means of the EXTF_ACK control bit (see Figure 3-29). if assigned as parameter. SW_GATE SW gate control bit The SW gate is opened/closed by means of the control interface with the SW_GATE bit. C_INTTIME Change integration time (see Figure 3-27) The value from bytes 0 and 1 is adopted as the new integration time for the next measurement. Diagnostic message. if assigned as parameter. RES_STS Start resetting of status bit The status bits are reset by means of the acknowledgment process between the RES_STS bit and the RES_STS_A bit. Notes 3-62 Technological Functions ET 200S A5E00124867-02 . CTRL_DO1 Enable DO1 You use this bit to enable the DO1 output.

C_DOPARAM. ERR_PARA RES_STS_A STS_C_DN STS_C_UP STS_CMP1 Parameter assignment error – ERR_PARA Resetting of the status bits active (see Figure 3-26) Down direction status Up direction status Measurement completed The measured value is updated after every interval that elapses. This bit is reset by the RES_STS control bit at the control interface. similar to loading an incorrect value (which is not accepted).0).0). and C_INTTIME cannot be set simultaneously during transfer. CPU 4xx (as of V3.1Count5V/500kHz Feedback Bits ERR_LOAD Load function error (see Figure 3-27) Notes The bits LOAD_VAL. L PID) Transfer instruction (e.g. The end of a measurement (after the interval has elapsed) is indicated by means of the STS_CMP1 status bit.g. Technological Functions ET 200S A5E00124867-02 3-63 . T PQD) and transfer commands are also possible with CPU 3xxC. LOAD_PREPARE. STS_DI DI status The status of the DI is indicated in all modes by means of the STS_DI bit at the feedback interface. This results in setting the ERR_LOAD status bit. Access to the Control and Feedback Interface in STEP 7 Programming Configuration with STEP 7 Using the DDB File 1) (Hardware Catalog\PROFIBUS DP\ Additional FIELD DEVICES\I/O\ET 200S) Configuration with STEP 7 Using HWCONFIG (Hardware Catalog\PROFIBUS DP\ ET 200S) Feedback interface Control interface 1)Load Read with SFC 14 “DPRD_DAT” Write with SFC 15 “DPWR_DAT” Load instruction (e. CPU 318-2 (as of V3. STS_DO1 STS_DO2 STS_GATE STS_LOAD STS_OFLW STS_UFLW DO1 status DO2 status Internal gate status: Measuring Load function running (see Figure 3-27) Upper measurement limit violated Lower measurement limit violated Both bits must be reset.

STS_UFLW Event still pending at reset Feedback signals: One of the status bits Control bit: RES_STS t t Feedback bit: RES_STS_A t Reset executed Removal of the request The 1Count5V/500kHz executes resetting Request reset Figure 3-26 Resetting of Status Bits 3-64 Technological Functions ET 200S A5E00124867-02 . STS_OFLW.1Count5V/500kHz Resetting of the Status Bits STS_CMP1.

Technological Functions ET 200S A5E00124867-02 3-65 . End of transfer t Remove request and keep value available. The ERR_LOAD error bit is only deleted when a correct value is transferred as follows. The 1Count5V/500kHz has understood the request Request value transfer and make value available.1Count5V/500kHz Acceptance of Values with the Load Function Error bit: ERR_LOAD t Control bit: LOAD_VAL LOAD_PREPARE C_DOPARAM C_INTTIME t Feedback bit: STS_LOAD Value accepted. Figure 3-27 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.

1st DP cycle 2nd DP cycle 3rd DP cycle Control bit in the user program 4th DP cycle Status bit of the module Ti TDP Ti TDP Ti TDP Ti TDP Ti TDP Figure 3-28 Acknowledgment in Clocked Mode 3-66 Technological Functions ET 200S A5E00124867-02 .1Count5V/500kHz Acknowledgment in Clocked Mode In clocked mode exactly 4 PROFIBUS DP cycles are required to reset the status bits and to accept values during the load function.

a diagnostic message may appear. for example Error acknowledgment EXTF_ACK Figure 3-29 Error Acknowledgment In the case of continuous error acknowledgment (EXTF_ACK=1) or at CPU/Master Stop.1Count5V/500kHz Error Detection The diagnostic errors must be acknowledged. error detection continues. a diagnostic message may appear. They have been detected by the 1Count5V/500kHz and are indicated at the feedback interface. The parameter assignment error bit is acknowledged by means of correct parameter assignment. Error bit ERR_24V. the 1Count5V/500kHz sets an error bit. the 1Count5V/500kHz deletes the error bit. the 1Count5V/500kHz reports the errors as soon as they are detected and deletes them as soon as they have been eliminated. A channel-specific diagnosis is carried out after you have enabled group diagnosis at parameter assignment (see Chapter 6 of the ET 200S Distributed I/O System manual). Technological Functions ET 200S A5E00124867-02 3-67 . when EXTF_ACK is set by the user program. Error eliminated. An error has occurred.

ad.siemens.7.1 SP4 Parameter List for Measurement Modes Parameters Enable Group diagnosis Disable/enable Disable Value Range Default Behavior in the Event of the Parent Controller Failing Reaction to CPU-Master-STOP Turn off DO/ Continue working mode/ DO substitute a value/ DO keep last value Off/on Normal/Inverted Turn off DO Diagnosis A and B Direction input B Output Parameters Diagnostics DO11 Diagnostics DO21 Off Normal Off/on Off/on Output/ Outside the limits/ Under the lower limit/ Over the upper limit 0/1 0/1 Off Off Output Function DO1 Substitute value DO1 Substitute value DO2 1 0 0 DO1/DO2 diagnostics (wire break.de/csi/gsd) – With STEP 7 as of V5. short circuit) is possible only with pulse lengths of > 90 ms at digital output DO1/DO2. 3-68 Technological Functions ET 200S A5E00124867-02 .1Count5V/500kHz 3.7 Parameter Assignment for Measurement Modes You can parameterize the 1Count5V/500kHz with one of the following: – Using a DDB file (http://www.

Technological Functions ET 200S A5E00124867-02 3-69 .1Count5V/500kHz Parameters Mode Measurement mode Value Range Default Frequency measurement/ Frequency measurement Rotational speed measurement/ Period measurement 1 ms 1/16 ms Input/HW gate Normal/Inverted Frequency measurement: 0 to fmax–1 1 ms Input Normal 0 Resolution of period Function DI Input signal HW gate Low limit Rotational speed measurement: 0 to nmax–1 0 Period measurement: 0 to tmax–1 High limit Frequency measurement: Lower limit + 1 to fmax 0 fmax Rotational speed measurement: nmax Lower limit + 1 to nmax Period measurement: Lower limit + 1 to tmax Integration time [n*10ms] Frequency measurement: 1 to 1000 tmax 10 Rotational speed measurement: 1 to 1000 10 Period measurement: 1 to 12000 Sensor pulses per 2 10 1 revolution2 1 to 65535 Only relevant in rotational speed measurement mode Parameter Assignment Error • Incorrect mode • Lower limit incorrect • Upper limit incorrect • Integration time incorrect • Sensor pulses incorrect What to Do in the Event of Errors Check the set value ranges.

Multiple evaluation is only possible with asymmetric 24 V incremental encoders with A and B signals that are 90 degrees out of phase. up count pulses are recorded at a rising edge at A and low level at B. Single Evaluation Single evaluation means that only one edge of A is evaluated. Signal A Signal B Up count pulses Down count pulses Figure 3-30 Up Down Single Evaluation 3-70 Technological Functions ET 200S A5E00124867-02 . Different evaluation modes are possible depending on what you parameterize: Rotary Transducer The 1Count5V/500kHz can count the edges of the signals. only the edge at A is evaluated (single evaluation).8 Count and Direction Evaluation Signal Evaluation A. double. The diagram below illustrates the single evaluation of the signals. at parameter assignment you can select whether the signals are to be subjected to single.1Count5V/500kHz 3. To obtain a higher resolution. B Signal evaluation by means of A. and down count pulses are recorded at a falling edge at A and low level at B. or quadruple evaluation. B allows you to count directionally. Normally.

The diagram below illustrates the double evaluation of the signals. Whether up or down count pulses are generated depends on the levels of the A and B signals. The diagram below illustrates the quadruple evaluation of the signals. Signal A Signal B Up count pulses Down count pulses Figure 3-31 Up Down Double Evaluation Quadruple Evaluation Quadruple evaluation means that the rising and falling edges of the A and B signals are evaluated. Signal A Signal B Up count pulses Down count pulses Figure 3-32 Up Down Quadruple Evaluation Technological Functions ET 200S A5E00124867-02 3-71 . Whether up or down count pulses are generated depends on the level of the B signal.1Count5V/500kHz Double Evaluation Double evaluation means that the rising and falling edge of the A signal are evaluated.

3-72 Technological Functions ET 200S A5E00124867-02 . The changed parameters are accepted and take effect. the gate closed.1Count5V/500kHz 3. and the changed parameters are accepted and take effect. Possible solution: In the part of the user program that is processed during startup. DO keep last value The current mode is terminated. and the digital output blocked. set the SW gate control bit and transfer the values to the 1Count5V/500kHz. and the integration time are handled in accordance with the parameter assignments. DO substitute a value The current mode is terminated. the gate closed. 1 If the mode is to continue during a change from CPU-/Master-STOP to RUN (startup). Parameters Turn off DO Status of the 1Count5V/500kHz at CPU/Master STOP The current mode is terminated.9 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. the upper and lower limit values. and the gate and digital output retain their status. the gate closed. the substitute value is 1 only for the duration of the pulse. comparison values 1 and 2 and the load value are reset. function and behavior of the digital outputs. Continue working mode1 The gate is closed. and the integration time are handled in accordance with the parameter assignments. the CPU/Master cannot clear the outputs. comparison values 1 and 2 and the load value are reset. The current mode continues. What Happens if New Parameters Have Been Assigned? The changed parameters are accepted and take effect. the digital output is blocked. comparison values 1 and 2 and the load value are reset. The changed parameters are accepted and take effect. and the status of the digital output is maintained. and the substitute value that was assigned as a parameter of the digital output is switched through. When a pulse is output when the comparison value is reached. the upper and lower limit values. function and behavior of the digital outputs. the upper and lower limit values. the current mode is terminated. and the integration time are handled in accordance with the parameter assignments. function and behavior of the digital outputs.

• When the 1Count5V/500kHz is inserted • Upon power on or inserting of the appropriate power module Technological Functions ET 200S A5E00124867-02 3-73 . and you have to make a change at the control interface. A New Parameter Assignment of the ET 200S Station by Means of Your CPU/ DP Master Takes Place: • Upon power on of the CPU/DP master • Upon power on of the IM 151/IM 151 FO • After failure of the DP transmission • After loading an altered parameter assignment or configuration of the ET 200S station into the CPU/DP master.1Count5V/500kHz Under What Conditions Does the 1Count5V/500kHz Leave the Parameterized Status? The CPU or master must be in RUN mode.

45 mA Typ.1Count5V/500kHz 3. 1 V 500 kHz Yes Max.8V Yes • Level • Terminating resistance To RS 422 330 Ω Min.10 Technical Specifications Dimensions and Weight of the 1Count5V/500kHz Encoder signals Dimensions W× H ×D (mm) Weight Number of Channels Counter range Rated load voltage L+ 30×81×52 Approx..8V) Max. counting frequency Voltage. Potentials • Galvanic isolation from ET200S bus • Range • Reverse polarity protection Galvanic isolation • Between backplane bus and counter function • Shielded cable length Data for the Digital Outputs Output voltage Yes • Between counter function and load voltage Sensor supply • Rated value • 0 signal • 1 signal Output current 24 VDC ≤3V ≥L+ (–1 V) ≤0. 50 m Data for Specific Modules • Differential input voltage • Max. 10 mA Typ. short-circuit proof Max.4 to 28. 2. only from shield and backplane bus 24 VDC –30 V to 5 V 11 V to 30 V ≤2 mA (bias current) 9 mA (typically) 2. 50 m • Output voltage • Output current Current input • 1 signal Permitted Range Rated value Switching frequency 5 mA .4 A 2A 100 Hz 2 Hz ≤10 Hz ≤10 W 100 ms Yes 2. 500 mA.5 mA No • 0 signal (residual current) L+ (–0. 2 W No. 65 g 1 32 bits 24 VDC 20.5 ms Possible To IEC 1131.. Part 2. Type 2 Max. Currents. L+ –(50 to 60 V) Yes 600 m 1000 m • From the backplane bus • From the load voltage L+ (no load) Power dissipation Isolation Input voltage • Resistive load • Inductive load • Lamp load Lamp load Output delay (resistive load) Short-circuit protection for output Response threshold Inductive extinction Digital input control Cable lengths Data on the Digital Input • Rated value • 0 signal • 1 signal Input current • 0 signal • 1 signal Minimum pulse width Connection of a two-wire BERO type 2 Input characteristic Shielded cable length • Unshielded • Shielded 3-74 Technological Functions ET 200S A5E00124867-02 .6 A to 4 A Yes.

1 Hz to 500 kHz • Rotational speed measurement 1 /min to 25000 /min 10 ms to 120 s • Period measurement Response Times Update rate of the count modes • Non-clocked mode • Clocked mode 1 ms TDP Technological Functions ET 200S A5E00124867-02 3-75 .1Count5V/500kHz Status. Diagnostics Digital input DI status display Digital output DO1 status display Digital output DO2 status display Up count value change Down count value change Synchronization Malfunction indication Diagnostic information LED 16 (green) LED 9 (green) LED 13 (green) UP LED (green) DN LED (green) SYN LED (green) SF LED (red) Yes Measurement Ranges in the Measurement Modes Maximum measurement range • Frequency measurement 0.

1Count5V/500kHz 3-76 Technological Functions ET 200S A5E00124867-02 .

2 4.11 Product Overview Clocked Mode Brief Instructions on Commissioning the 1SSI Terminal Assignment Diagram Areas of Application in Standard Mode and Fast Mode Functions of the 1SSI Behavior at CPU-Master-STOP Parameter Assignment Control and Feedback Interface in Standard Mode Feedback Interface in Fast Mode Technical Specifications Description Page 4-2 4-3 4-4 4-8 4-9 4-10 4-20 4-21 4-23 4-26 4-27 Chapter Overview Technological Functions ET 200S A5E00124867-02 4-1 .7 4.1SSI 4 Section 4.8 4.9 4.1 4.6 4.10 4.4 4.5 4.3 4.

• Latch function for freezing the current encoder value (only possible in standard mode). with rapid encoder value detection and compressed functionality (cannot be used with the IM 151 with the order number 6ES7 151-1AA00-0AB0). discounting of adjusted.1 Product Overview Order Number 6ES7 138-4DB01-0AB0 Compatibility The 1SSI with the order number 6ES7 138-4DB01-0AB0 replaces the 1SSI with the order number 6ES7 138-4DB00-0AB0 and is fully compatible.1): – Free-running – Synchronous to the update rate – Clocked • Fast mode can be selected. Supported Encoder Types The following encoder types are supported: • Absolute encoder (SSI) with 13 bits • Absolute encoder (SSI) with 21 bits • Absolute encoder (SSI) with 25 bits 4-2 Technological Functions ET 200S A5E00124867-02 . Features • The 1SSI is an interface between an absolute encoder (SSI) and the parent controller.6. • Reversal of the direction of rotation to adjust the direction of movement of the absolute encoder to the axis. • Comparison function between the current encoder value and loadable comparison values (only possible in standard mode).0 SP3 in non-clocked mode. • You can select the following types of encoder value detection (4. You edit the cyclically recorded encoder value in your controller program.1 SP4 for clocked mode. • Can be operated using terminal modules TM-E15S24-01 and TM-E15S26-A1 • Clocked mode • Standardization of the encoder value (that is.1SSI 4. irrelevant bits in the encoder value). You can use it with STEP 7 as of V5. You will need STEP 7 as of V5.

Technological Functions ET 200S A5E00124867-02 4-3 . Hardware You will require the following for clocked mode of the 1SSI: • A CPU that supports clocking • A DP master that supports the equidistant bus cycle • An IM 151 High Feature Features Depending on the system parameter assignment. the 1SSI works in either non-clocked or clocked mode. In clocked mode.2 Clocked Mode Note The principles of clocked mode are described in a separate manual.1SSI Configuration You can use either of the following to configure the 1SSI: – A DDB file (http://www.ad.de/csi/gsd) – STEP 7 as of V5. the feedback interface is not updated.1 SP4 4. the 1SSI will return to clocked mode at the next cycle without an error response. If clocking is lost due to faults or failure or a delay in global control (GC). If clocking is lost.siemens. the transmission of data between the DP master and 1SSI is clocked to the PROFIBUS DP cycle. In clocked mode the 8 bytes of the feedback interface are consistent.

1SSI 4. Wiring and Fitting Install and wire the TM-E15S24-01 terminal module (see Figure 4-1). TM-E15S24-01 and 1SSI 1SSI SF UP DN CMP 7 6ES7 1384DB01-0AB0 D 24 VDC M C 1 5 D 24 VDC D 24 VDC D Twisted-pair cables 2 6 M 3 7 SSI DI C C 4 8 C Twisted-pair cables Figure 4-1 Terminal Assignment for the Example 4-4 Technological Functions ET 200S A5E00124867-02 . Connect the 1SSI to the terminal module (you will find detailed instructions on how to do this in Chapter 5 of the ET 200S Distributed I/O System manual). the 1SSI is operated in standard mode and not in clocked mode. In this example.3 Brief Instructions on Commissioning the 1SSI Introduction These instructions use the example of “position detection” to teach you to set up a functioning application in which you learn about the basic functions of your 1SSI (hardware and software) and how to check them. Requirements The following requirements must be met: • You put an ET 200S station into service at an S7 station with a DP master. • You must have the following: – A TM-E15S24-01 terminal module – An 1SSI – An SSI encoder and the necessary wiring material Installation.

Save and compile your configuration. Call the HWCONFIG configuration table in your project. From the hardware catalog. Make a note of these addresses for subsequent programming. you will find the default settings for the 1SSI. Open the relevant project in SIMATIC Manager. Drag the entry to the slot at which you have installed your 1SSI.1SSI Configuration with STEP 7 Using HWCONFIG You begin by adapting the hardware configuration of your existing ET 200S station. select the 1SSI entry with the number 6ES7 138-4DB01-0AB0 in the information text. On the Addresses tab. and download the configuration in STOP mode of the CPU by choosing PLC → Download to Module. you will find the addresses of the slot to which you have dragged the 1SSI. On the Assigning Parameters tab. Double-click this number to open the DP Slave Properties dialog box. Select the encoder type in accordance with the connected SSI encoder and enter all the required data. You will find the encoder data on the type label and in the technical specifications of the encoder. Technological Functions ET 200S A5E00124867-02 4-5 .

for example).DBD12 //Read 8 bytes from the 1SSI //Configured start address of the inputs 4-6 Technological Functions ET 200S A5E00124867-02 .DBD4 PQD 260 //Write 8 bytes to the 1SSI //Configured start address of the outputs Network 3: Read from the feedback interface L T L T PID 256 DB1.DBD0 DB1.DBD4 Description //Delete control bits Network 2: Write to the control interface L T L T DB1.DBD8 PID 260 DB1.1SSI Integration in the User Program Create block FC101 and integrate it in your control program (in OB1. This block requires the data block DB1 with a length of 16 bytes. STL Block: FC101 Network L T T 1: Presettings 0 DB1.DBD0 PQD 256 DB1. The start address of the module in the following example is 256.

1SSI Test Use “Monitor/Modify Variables” to monitor the encoder value and the direction indicator. Open the VAT 1 variable table. Switch the CPU to RUN mode. and then confirm with OK. Change the position of the SSI encoder.DBX12. Choose Variable Monitor to switch to → monitoring.0 (UP status) DB1. Choose the Insert → S7 Block → Variable Table menu command to insert the VAT 1 variable table. • See that the encoder value in the block changes. Select the “Block” folder in your project.DBX12. Technological Functions ET 200S A5E00124867-02 4-7 . and enter the following variables in the “Address” column: DB1.1 (DN status) Choose PLC → File Connect To → Configured CPU to switch to online. You Can Now: • See that the UP LED or the DN LED on the 1SSI is on.DBD8 (encoder value) DB1. depending on the direction in which you change the position of the SSI encoder.

ET 200S Accessories). Signals according to RS422 Short circuit-proof.5 A. Appendix A. maximum 0. an absolute encoder error is reported. Table 4-1 Terminal Assignment of the 1SSI View Terminal Assignment Remarks UP DN TM-E15S24-01 and EM 1SSI CMP 7 6ES7 1384DB01-0AB0 D 24 VDC M C 1 5 D 24 VDC DI C D 24 VDC D Twisted-pair cables 2 6 Terminals 1 to 8 M SSI 3 7 1/5: Data from SSI encoder 1 C C Twisted-pair cables 2/6: Power supply for absolute encoder and switch 2 3: Chassis ground Digital input Latch function 4 8 UP DN TM-E15S26-A1 and EM 1SSI Twisted-pair cables 7: CMP 7 6ES7 1384DB01-0AB0 4/8: SSI clock (clock line) 1 D 24 VDC M C AUX1 AUX1 1 2 1 5 D 24 VDC DI C AUX1 AUX1 D 24 VDC M D 2 6 SSI 3 7 4 A 4 A 3 8 A 8 A 7 C C Twisted-pair cables It is essential that you maintain the correct polarity. 4-8 Technological Functions ET 200S A5E00124867-02 . To do this use the shield contact (see the ET 200S Distributed I/O System manual.4 Terminal Assignment Diagram Wiring Rules The cables (terminals 1 and 5 and terminals 4 and 8) must be shielded.1SSI 4. If you do not. Terminal Assignment You will find the terminal assignment for the 1SSI in the table below. twisted-pair cables. The shield must be supported at both ends.

For fast mode. select the 1SSI entry with the number 6ES7 138-4DB01-0AB0 in the information text. Select the parameters.1SSI 4. depending on your automation task. You will find the parameter lists in the descriptions of the modes. Configuring 1SSI with STEP 7 Using HWCONFIG (in Clocked and Non-Clocked Mode) Select an entry from the hardware catalog that corresponds to the functionality you want. You can integrate the 1SSI in your project in two different ways. edge detection. Select 6ES7 138-4DB01-0AB0 1SSI for standard mode. select the 1SSI fast mode entry with the number 6ES7 138-4DB01-0AB0 Fast in the information text. Drag the entry to the slot at which you have installed your 1SSI. Select the parameters. Technological Functions ET 200S A5E00124867-02 4-9 . Select 6ES7 138-4DB01-0AB0 1SSI Fast for fast mode. Configuring 1SSI with the DDB file (Only in Non-Clocked Mode) Select an entry in the DDB file that corresponds to the functionality you want. Decide whether you want to work with the DDB file or with STEP 7 using HWCONFIG . synchronization with workpieces Standard Configuring Standard Mode And Fast Mode Standard Mode Fast Mode Parameters are assigned to the various modes. choose between fast mode and standard mode. Areas of Application Mode Fast • Closed-loop control applications such as closed-loop position control with position as actual value • Fast encoder value detection • Cyclic processing of encoder values • Monitoring or detecting of position points • Measuring lengths. For standard mode.5 Areas of Application in Standard Mode and Fast Mode In order to take full advantage of the functionality of the 1SSI for the application in question.

6.7 4. depending on the parameterization.3 4.1SSI 4.5 4.6 Functions of the 1SSI Section 4.8 Encoder Value Detection Gray/Binary Converter Transmitted Encoder Value and Standardization Detection of Direction and Reversal of the Direction of Rotation Comparator (Only in Standard Mode) Latch Function (Only in Standard Mode) Error Detection in Standard Mode Error Detection in Fast Mode Description Page 4-11 4-12 4-13 4-14 4-15 4-17 4-19 4-19 Mode of Operation The 1SSI records the signals of the connected position encoder cyclically and forwards them.2 4.1 4. 4-10 Technological Functions ET 200S A5E00124867-02 .6.4 4.6.6.6 4.6.6. to the feedback interface by means of the following functions: • Encoder value detection • Gray/binary converter • Transmitted encoder value and standardization • Reversal of the direction of rotation • Comparator (only in standard mode) • Latch function (only in standard mode) • Error detection The 1SSI indicates by means of the “ready for operation” feedback bit that the functions are executable and the displayed encoder value is valid.6.6.

In this case.1 Encoder Value Detection The absolute encoder transfers its encoder values in message frames to the 1SSI. The detection of the encoder value will be clocked when the 1SSI is in clocked mode. The transmission of message frames is initiated by the 1SSI. This parameter only works in non-clocked mode.6. Table 4-2 illustrates these relationships: Table 4-2 Encoder Value Detection Mode ”Detection” Parameter Free-running Non-clocked mode Clocked mode Synchronous – (irrelevant) Encoder Value Detection Free-running encoder value detection Synchronous encoder value detection Clocked encoder value detection Technological Functions ET 200S A5E00124867-02 4-11 . the “Detection” parameter is not evaluated. The following alternatives are available for encoder value detection: • Free-running encoder value detection • Synchronous encoder value detection • Clocked encoder value detection You can set free-running or clocked encoder value detection in HWCONFIG with the “Detection” parameter.1SSI 4.

Because of this. The 1SSI processes the transmitted encoder value synchronously to its update rate. some old encoder values result with the free-running detection of encoder values. The 1SSI initiates the transmission of a message frame in the cycle of the update rate (see technical specifications). The 1SSI processes the detected encoder value asynchronously to these free-running message frames in the cycle of the update rate (see the technical specifications). Note If you selected the setting Gray. Synchronous Encoder Value Detection Synchronous encoder value detection offers an extremely high degree of accuracy. The 1SSI initiates the transmission of a message frame each time the parameterized monoflop time elapses. The 1SSI processes the transmitted encoder value at a clocked rate to the PROFIBUS DP cycle.1SSI Free-Running Encoder Value Detection You can obtain a high level of accuracy in free-running detection of the encoder value with the latch function. 4. Clocked Encoder Value Detection Clocked 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 DP cycle. The difference between the maximum and minimum age is the jitter (see the Technical Specifications). 4-12 Technological Functions ET 200S A5E00124867-02 . Preceding special bits thus influence the encoder value and trailing bits can under some circumstances be corrupted. the 1SSI always converts the total encoder value (13. 25 bits). The 1SSI initiates the transmission of a message frame in each PROFIBUS DP cycle at the time Ti.6.2 Gray/Binary Converter When gray is set. the encoder value that is delivered is not converted. 21. the encoder value supplied by the absolute encoder in gray code is converted to binary code. When binary is set.

bits 4 to 12 are required for evaluation. you specify that trailing bits are retained and are available for evaluation. After standardization: Encoder position 100 0 31 Data double word 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 Relevant bits Bits 0 to 3 (identified above by “x”) are displaced. specify the following: • Encoder type • Number of trailing bits • Total steps of the absolute encoder With standardization. • With standardization on.3 Transmitted Encoder Value and Standardization The transmitted encoder value contains the encoder position of the absolute value encoder. • With standardization off. Depending on the encoder that is used. other bits that are located before and after the encoder position are transmitted in addition to the encoder position. irrelevant bits in the encoder value are to be discounted (see the following example). Technological Functions ET 200S A5E00124867-02 4-13 . Standardization Example Presettings: You use a single-turn encoder with 29 (¢ 9 bits) = 512 steps/revolution (resolution/360°) with the following parameter assignment: • Encoder type: • Number of trailing bits: • Total steps of the absolute encoder: SSI-13 bit 4 places 512 Without standardization: Cyclically recorded encoder position 100 Data double word 31 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 4 0 0 1 0 0 X X X X Relevant bits Bits transferred Of the 13 bits transferred.6. So that the 1SSI can determine the encoder position. you specify the representation of the encoder value in the feedback interface. you specify that trailing.1SSI 4.

This reversal applies to the total steps of the absolute encoder. Two settings are possible: Off: On: The direction of the transmitted encoder position is maintained.1SSI 4. Example of Direction of Rotation Reversal Presettings: You use a single-turn encoder with 210 (¢ 10 bits) = 1024 steps/revolution (resolution/360°) with the following parameter assignment: • Encoder type: • Number of trailing bits: • Reversal of the direction of rotation: • Total steps of the absolute encoder: SSI-13 bit 3 places On 1024 Encoder value before reversal of the direction of rotation: cyclically recorded encoder position 1023 Encoder value after reversal of the direction of rotation: displayed encoder position 0 Technological Functions ET 200S A5E00124867-02 4-14 . as indicated in the parameter assignment. UP LED: DN LED: Change in encoder position from the smaller to the larger value Change in encoder position from the larger to the smaller value Reversal of the Direction of Rotation Reversal of the direction of rotation adjusts the direction of movement of the encoder to that of the axis. The direction of the transmitted encoder position is reversed. even though the encoder is delivering ascending values. descending values are displayed. That is. The direction of movement that is determined is displayed at the feedback interface and at the LEDs.4 Detection of Direction and Reversal of the Direction of Rotation Detection of Direction The 1SSI needs the following information to detect the direction of movement of the encoder correctly: • Encoder type • Indication of the total steps of the absolute encoder • Number of trailing bits The information is used as explained in the standardization example.6.

5 Comparator (Only in Standard Mode) The encoder position that is detected can be compared with up to two loadable values (without hysteresis). In both directions The encoder value is compared in both directions. the feedback bit CMPx = 1. the feedback bit CMPx = 1. In the down direction The encoder value is compared in the down direction (DN). the feedback bit CMPx = 0. Technological Functions ET 200S A5E00124867-02 4-15 . • If the encoder value ≤ the comparison value. • If the direction is up.6. • If the encoder value < the comparison value. the feedback bit CMPx remains unchanged. the feedback bit CMPx = 1. the feedback bit CMPx = 0. the feedback bit CMPx = 1. • If the encoder value > the comparison value. • If no change is detected in the encoder value. If the direction is down. • If the direction is down.1SSI 4. • If the encoder value ≥ the comparison value. Setting Not active In the up direction Effect on the Result of Comparison (CMPx) The encoder value is not compared. the feedback bit CMPx remains unchanged. The encoder value is compared in the up direction (UP). • If the encoder value < the comparison value. If the direction is up. the following conditions apply: • If the encoder value ≥ the comparison value. the feedback bit CMPx remains unchanged. the feedback bit CMPx = 0. the feedback bit CMPx = 0. If no change is detected in the encoder value. the feedback bit CMPx remains unchanged. You set the two comparators in the parameters Comparator 1 and Comparator 2. Both comparison results are stored in the feedback interface. • If no change is detected in the encoder value. • If the encoder value > the comparison value. the following conditions apply: • If the encoder value ≤ the comparison value. The appropriate comparator becomes active only after the comparison value is loaded. The feedback bit CMPx=0. the feedback bit CMPx remains unchanged.

1SSI: Request understood User: Request value transfer and make value available. the ERR_LOAD error is reported until both control bits are deleted. end of transfer (possibly with an error) User: Remove request and keep value available. the comparison result is deleted and is then entered in accordance with the directional setting.1SSI As soon as you load a comparison value. Figure 4-2 Value Transfer Comparator in Clocked Mode In clocked mode the comparison values are loaded at the time To and are effective as of the time Ti in the same PROFIBUS DP cycle. Note Only one control bit can be set at a particular time: CMP_VAL1 or CMP_VAL2. Otherwise. 4-16 Technological Functions ET 200S A5E00124867-02 . Loading the Comparison Value Control bit: CMP_VAL1 or CMP_VAL2 Feedback bit: STS_LOAD 1SSI: Value accepted.

The encoder value can thus be evaluated on an event-dependent basis. Technological Functions ET 200S A5E00124867-02 4-17 . The frozen encoder value is entered at the feedback interface at the position of the cyclically recorded value and assigned the identifier “Bit 31 set. • You specify that the latch function that is coupled to the digital input is switched on.6 Latch Function (Only in Standard Mode) You use the latch function to freeze the current encoder value of the 1SSI at an edge at the digital input (DI). A frozen encoder value is identified by the set bit 31 and is preserved until the termination of the latch function. and error monitoring also take place when the encoder value is frozen. comparison. Prerequisites for Using the Latch Function At parameter assignment: • You must have specified which edge (rising and/or falling) at the digital input freezes the encoder value.” Note Direction determination.6.1SSI 4.

encoder value is current User: LATCH_ACK must be cleared. bit 31 is deleted and the encoder value is updated again. 1SSI: Latch function is terminated. User: LATCH must be acknowledged with LATCH_ACK = 1. Bit 31 is set in encoder value LATCH_ACK DI Figure 4-3 Latch Function 4-18 Technological Functions ET 200S A5E00124867-02 . freezing is possible again. When the controller program acknowledges the acceptance of the encoder value. encoder value frozen (bit 31 = 1). As soon as 1SSI detects LATCH_ACK = 0. 1SSI: Latch function active. wait for LATCH_ACK. Freezing is then possible again.1SSI Terminating the Latch Function The latch function must be acknowledged.

4. if EXTF_ACK is set by the user program. An error occurs. and in certain cases the channel-specific diagnosis reports an error-free condition. For example. error detection continues to be active. As soon as the absolute value encoder and sensor supply short circuit errors are no longer detected by the 1SSl. a diagnostic message may appear.8 Error Detection in Fast Mode The absolute value encoder and sensor supply short circuit errors have been detected by the 1SSl and are indicated at the feedback interface.6. error bit ERR_SSI Error acknowledgment EXTF_ACK Figure 4-4 Error Acknowledgment In the case of constant error acknowledgement (EXTF_ACK = 1) or in CPU/master STOP mode. They have been detected by the 1SSl and are indicated at the feedback interface. the 1SSI sets an error bit. The parameter assignment error bit is acknowledged by means of correct parameter assignment. Channel-specific diagnostics are executed if you enabled group diagnosis when you assigned parameters (see Chapter 6 of the ET 200S Distributed I/O System manual).1SSI 4. Channel-specific diagnostics are executed if you enabled group diagnosis when you assigned parameters (see Chapter 6 of the ET 200S Distributed I/O System manual). Error eliminated.6. The parameter assignment error bit is acknowledged by means of correct parameter assignment. the 1SSI clears the error bit. a diagnostic message may appear. Technological Functions ET 200S A5E00124867-02 4-19 . the 1SSI reports the errors as soon as they are detected and clears the errors as soon as they are eliminated.7 Error Detection in Standard Mode The absolute value encoder and sensor supply short circuit errors must be acknowledged. the error display at the feedback interface is cleared.

The 1SSI reacts to this by stopping the current procedure. 4-20 Technological Functions ET 200S A5E00124867-02 .1SSI 4.7 Behavior at CPU-Master-STOP The 1SSI detects the CPU/master STOP mode. • You must reload the comparison values. A New Parameter Assignment of the ET 200S Station by Means of Your CPU/ DP Master Takes Place: • Upon power on of the CPU/DP master • Upon power on of the IM 151/IM 151 FO • After failure of the DP transmission • After loading an altered parameter assignment or configuration of the ET 200S station into the CPU/DP master. Exiting the CPU-Master-STOP Status Without reassigning the parameters of the ET 200 station With reassignment of the parameters of the ET 200 station • The feedback interface of the 1SSI remains current. • The latch function has to be triggered with a new edge at the digital input DI.

No encoder: The encoder input is switched off. • 13-bit encoder type: 16 to 8192 • 21 -bit encoder type: 16 to 2097152 • 25-bit encoder type: 16 to 33554432 Latch: Encoder value Not active / With rising edge DI / With falling edge DI / With both edges DI Technological Functions ET 200S A5E00124867-02 4-21 . See the vendor’s technical specifications. The specification of the monoflop time is relevant for free-running encoder value detection. Code supplied by the encoder Note that the transmission rate affects the accuracy and currency of the encoder values. the following definition applies: Total steps = total steps lowword + total steps highword x 216 This parameter is available in the parameter assignment software in standard mode only. Depending on the mode that you selected. – If you find the texts “Total steps – highword” and “Total steps – lowword” in your parameter assignment software instead of the text “Total steps”.1SSI 4. either of the following parameter sets from your parameter assignment appear in the parameter assignment software: • All parameters (standard mode) or only • A portion of the parameters (fast mode) You can enter the following parameters (the default appears in bold): Parameters Group diagnosis Detection Encoder type 1 Gray/binary converter 1 Baud rate 1 3 Value Range Disable/enable Free-running/synchronous No encoder / SSI-13 bit / SSI-21 bit / SSI-25 bit Gray/binary 125 kHz / 250 kHz / 500 kHz / 1 MHz / 2 MHz Note Enabling parameter This parameter is irrelevant in clocked mode and is not evaluated. Not active: The encoder value cannot be frozen.8 Parameter Assignment You set the parameters for the 1SSI by means of the device database file for the ET 200S using the STEP 7 or COM PROFIBUS parameter assignment software. It is not possible to reassign the parameters by means of the user program. Monoflop time 1 2 3 16 ms / 32 ms / 48 ms / 64 ms Transmitted encoder value and standardization Number of trailing bits 1 Reversal of the direction of rotation Total steps of the absolute encoder 1 Off/on 0 to 15 Off/on – The number of trailing bits must be specified.

Not active: The comparator is switched off. The parameterized monoflop time must be greater than the monoflop time of the absolute encoder (refer to the technical specifications of the manufacturer). At a transmission rate of 125 kHz and a parameterized monoflop time of 16 ms. The following limitation applies to the monoflop time of the absolute encoder: (1/transmission rate) < monoflop time of the absolute encoder < 64 ms + 2 × (1/transmission rate) 3 4-22 Technological Functions ET 200S A5E00124867-02 .1SSI Parameters Comparator 1 Value Range Not active / In the up direction / In the down direction / In both directions Note This parameter is available in the parameter assignment software in standard mode only. Comparator 2 Not active / In the up direction / In the down direction / In both directions This parameter is available in the parameter assignment software in standard mode only. The time 2 × (1/transmission rate) is added to the value parameterized in HWCONFIG. a monoflop time of 32 ms is in fact effective. Not active: The comparator is switched off. 1 2 See the technical specifications of the absolute encoder. The monoflop time is the time between 2 SSI frames.

The tables below indicate the assignment of the control interface (outputs) and the feedback interface (inputs): Table 4-3 Assignment of the Feedback Interface (Inputs) Address Bytes 0 to 3 Byte 4 Assignment Encoder value double word (bit 31 set. CMP2 Comparison value 1 reached. the following data of the control and feedback interface are consistent: • Bytes 0 to 3 • Bytes 4 to 7 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 DDB file).9 Control and Feedback Interfaces in Standard Mode Note For the 1SSI.1SSI 4. CMP Load function error – ERR_LOAD Load function active – STS_LOAD Byte 5 Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Bytes 6 to 7 Reserved = 0 Technological Functions ET 200S A5E00124867-02 4-23 . encoder value frozen) Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Reserved = 0 Ready for operation RDY Parameter assignment error – ERR_PARA Absolute encoder error ERR_SSI Sensor Supply Short Circuit – ERR_24V DI status – STS_DI DN status STS_DN UP status STS_UP Reserved = 0 Reserved = 0 Reserved = 0 Reserved = 0 Comparison value 2 reached.

The parameter bit is cleared when a correct parameter assignment is transmitted. ERR_SSI The 1SSI detects an absolute value encoder error if the message frames at the SSI interface are faulty. Cause: The total steps of the absolute encoder are not in the range of values for the type of encoder. Status direction down. for encoder value change from larger to smaller encoder positions (including zero-crossing) Notes 4-24 Technological Functions ET 200S A5E00124867-02 . ERR_24V is reset when the short circuit is eliminated and acknowledged by means of the EXTF_ACK control bit.1SSI Table 4-4 Assignment of the Control Interface (Outputs) Address Assignment Comparison value 1 or 2 (double word) Bit 7: Bit 6: Bit 5: Bit 4: Bit 3: Bit 2: Bit 1: Bit 0: Error acknowledgment EXTF_ACK Latch function acknowledgement LATCH_ACK Reserved = 0 Reserved = 0 Reserved = 0 Reserved = 0 Load comparison value 2 – CMP_VAL2 Load comparison value 1 – CMP_VAL1 Bytes 0 to 3 Byte 4 Byte 5 Bytes 6 to 7 Reserved = 0 Reserved = 0 Explanation of the Control and Feedback Bits Bits CMP CMP2 CMP_VAL1 CMP_VAL2 ERR_24V ERR_LOAD ERR_PARA Comparison result of comparator 1 Comparison result of comparator 2 Load comparison value 1 Load comparison value 2 The encoder supply is short-circuited. Error while loading the comparison values because both control bits CMP_VAL1 and CMP_VAL2 are set. programmable encoders do not correspond to the settings on the 1SSI. ERR_SSI is reset when the cause of the error is eliminated and acknowledged by the EXTF_ACK control bit. Incorrect parameter assignment for the ET 200S station. encoder is defective or faults exist. Causes: no encoder connected. transmission rate. wire break in the encoder cable. EXTF_ACK LATCH_ACK STS_DI STS_DN Error acknowledgement for the absolute value encoder ERR_SSI and sensor supply short circuit ERR_24V errors Acknowledgement for latch function The bit displays the status of the digital input DI. monoflop time do not correspond to the connected encoder. type of encoder.

and the module is executing its functions. Technological Functions ET 200S A5E00124867-02 4-25 . The displayed feedback is valid.0).g. ERR_SSI is also set. Status direction up. Access to the Control and Feedback Interface in STEP 7 Programming Configuration with STEP 7 Using the DDB File 1) (Hardware Catalog\PROFIBUS DP\ Additional FIELD DEVICES\ET 200S) Configuration with STEP 7 Using HWCONFIG (Hardware Catalog\PROFIBUS DP\ ET 200S) Feedback interface Control interface 1) Read with SFC 14 “DPRD_DAT” Write with SFC 15 “DPWR_DAT” Load instruction (e.0) and WinLC RTX (PC CPU). CPU 4xx (as of V3. CPU 318-2 (as of V3. L PID) Transfer instruction (e. Using this bit the 1SSI indicates that a comparison value is loaded. for encoder value change from smaller to larger encoder positions (including zero-crossing) The parameter assignment of the 1SSI is correct. T PQD) Load and transfer instructions are also possible with CPU 3xxC. For the absolute value encoder error.g.1SSI Bits STS_LOAD STS_UP RDY Notes Feedback bit for CMP_VAL1 and CMP_VAL2.

Accessing the Feedback Interfaces in STEP 7 Programming Configuration with STEP 7 Using the DDB File Feedback interface Read with SFC 14 “DPRD_DAT” Configuration with STEP 7 Using HWCONFIG Load instruction (e. The displayed feedback is valid. Status direction down. programmable encoders do not correspond to the settings on the 1SSI. monoflop time do not correspond to the connected encoder. The parameter bit is cleared when a correct parameter assignment is transmitted. wire break in the encoder cable. for encoder value change from larger to smaller encoder positions (including zero-crossing) Status direction up. and the module is executing its functions. EXTF is reset when the causes of the errors are eliminated. For the absolute value encoder error. STS_DI STS_DN STS_UP RDY The bit displays the status of the digital input DI. EXTF Group error: absolute value encoder or supply sensor short circuit Causes: The encoder supply is short-circuited Or no encoder connected. ERR_SSI is also set. Cause: Total steps of the absolute encoder are not in the range of values for the type of encoder. L PID) 4-26 Technological Functions ET 200S A5E00124867-02 .10 Feedback Interface in Fast Mode The following table indicates the assignment of the feedback interface (inputs). transmission rate. type of encoder. Table 4-5 Assignment of the Feedback Interface (Inputs) Assignment Bit 31: Bit 30: Bit 29: Bit 28: Bit 27: Bit 26: Bit 25: Bits 0 to 24: Reserved = 0 Ready for operation (feedback is valid) RDY Parameter assignment error – ERR_PARA Group error of absolute encoder or short circuit of sensor supply EXTF DI status – STS_DI DN status STS_DN UP status STS_UP Encoder value Address Bytes 0 to 3 Notes on the Feedback Bits Bits ERR_PARA Notes Incorrect parameter assignment for the ET 200S station. for encoder value change from smaller to larger encoder positions (including zero-crossing) The parameter assignment of the 1SSI is correct.g. encoder is defective or faults exist.1SSI 4.

8 m Technological Functions ET 200S A5E00124867-02 4-27 . 160 m 500 kHz max. 10 mA Maximum 34 mA Typ. Potentials Rated load voltage L+ 24 VDC 20.8V) Max. 60 m 1 MHz max. 320 m 250 kHz max.8 W Status display of first comparator CMP Encoder value change Up Encoder value change Down Group error LED 7 (green) CMP LED (green) UP LED (green) DN LED (green) SF LED (red) • Between SSI function and load voltage L+ Sensor supply • Output voltage • Output current Current input • From the backplane bus • From load voltage L+ (no load) Power dissipation of the module SSI Module Encoder Input Position detection Differential signals for SSI data and SSI clock Data transmission rate and line length with absolute encoders (twisted pair and shielded) Absolute According to RS422 • • • • • 125 kHz max.4 to 28. Interrupts. Currents. short-circuit proof Max.8V Yes Input Delay Input voltage Input current Digital Input 0 signal: –30 to 5 V 1 signal: 11 to 30 V 0 signal: ≤2 mA (closed-circuit current) 1 signal: 9 mA (typically) 0 > 1: Maximum 300 ms 1 > 0: Maximum 300 ms Connection of a two-wire BERO type 2 Possible 50 m • Range • Reverse polarity protection Isolation • Between backplane bus and SSI function Yes Shielded cable length Status.1SSI 4. 500 mA.11 Technical Specifications Dimensions and Weight Dimensions W× H × D (mm) Weight 15×81×52 Approximately 40 g Voltage. 20 m 2 MHz max. 0. Diagnostics No Interrupts Status display for digital input DI L+ (–0.

1SSI Unsharpness of the Encoder Value Free-running encoder value detection Unsharpness of the Latch Value Free-running encoder value detection • Maximum age – – Standard Mode Fast Mode (2 × frame runtime) + monoflop time + 1 ms (2 × frame runtime) + monoflop time + 700 ms Frame runtime + monoflop time Frame runtime + monoflop time • Jitter in standard Frame runtime mode and fast mode + monoflop time Synchronous encoder value detection • Jitter – – Standard Mode Fast Mode • Jitter – – Standard mode Fast mode 1 ms 700 ms Clocked encoder value detection • Jitter in standard Synchronous encoder value detection Frame runtime mode and fast mode + monoflop time Frame runtime of the encoders 13 bits 21 bits 25 bits 176 ms 208 ms 88 ms 44 ms 22 ms 11 ms 104 ms 52 ms 26 ms 13 ms • Age – – Standard Mode Fast Mode Frame runtime + 1 ms Frame runtime + 700 ms Clocked encoder value detection • Age in standard Encoder value at time Ti mode and fast mode in the current PROFIBUS DP cycle • • • • • 125 kHz 250 kHz 500 kHz 1 MHz 2 MHz 1 112 ms 56 ms 28 ms 14 ms 7 ms Response Times Monoflop time 16 ms/32 ms/48 ms/64 ms Update rate of the 1SSI • In standard mode • In fast mode 1 ms 700 ms 1 The following limitation applies to the monoflop time of the absolute encoder: (1/transmission rate) < monoflop time of the absolute encoder < 64 ms + 2 × (1/transmission rate) 4-28 Technological Functions ET 200S A5E00124867-02 .

5 5.6 Chapter Overview Section Technological Functions ET 200S A5E00124867-02 5-1 . Reference Lists Page 5-2 5-3 5-6 5-40 5-58 5-62 5. Terminal Assignment Technical Specifications for Programming.4 5.1 5.2PULSE 5 Description Product Overview Brief Instructions on Commissioning the 2PULSE Modes and Functions Application Examples Technical Specifications for the Hardware.3 5.2 5.

de/csi/gsd) or – STEP7 as of V5. • Digital input DI 0 for channel 0 and digital input DI 1 for channel 1 for enabling. the output value corresponds to the ratio of the pulse duration to the period duration.siemens. Minimum pulse duration: 200 µs.1 Product Overview Order Number 6ES7 138-4DD00-0AB0 Features • 2 channels The two channels of the 2PULSE can be used independently of one another. Functions • Direct control of the DO digital output by means of the control program • Parameterizable behavior for CPU/master STOP • Error detection/diagnostics (short circuit of the digital output and sensor supply) Configuration You can use either of the following to configure the 2PULSE: – A DDB file (http://www.0 SP3 5-2 Technological Functions ET 200S A5E00124867-02 . they permit pulse output in four different modes. • Digital output DO 0 for channel 0 and digital output DO 1 for channel 1 to output the pulses.2PULSE 5. • On/off-delay mode The signal pending on the DI digital input is output by the 2PULSE with an on/off-delay on the DO digital output. • Pulse train mode Output of n pulses on the digital output of the 2PULSE with a specifiable period duration and pulse duration. the 2PULSE also has two other functions.ad. Accuracy: ±(pulse duration × 100 ppm) ±100 µs • Apart from the set mode. Modes • Pulse output mode Output of a pulse on the digital output of the 2PULSE with a specifiable pulse duration • Pulse-width modulation (PWM) mode Output of a pulse train on the digital output of the 2PULSE.

TM-E15S24-01 and 2PULSE Channel 0 Channel 1 DI 0 24 VDC M DO 0 Figure 5-1 DI 1 24 VDC M DO 1 Terminal Assignment of the 2PULSE for the Example Technological Functions ET 200S A5E00124867-02 5-3 . Connect the 2PULSE to the terminal module (you will find detailed instructions on how to do this in Chapter 5 of the ET 200S Distributed I/O System manual).2PULSE 5. Requirements The following requirements must be met: • You put an ET 200S station into service at an S7 station with a DP master.2 Brief Instructions on Commissioning the 2PULSE Introduction These brief instructions use the example of pulse output mode to teach you to set up a functioning application in which you learn about the basic functions of your 2PULSE (hardware and software) and how to check them. It is not necessary to wire the 2PULSE for this example. • You must have the following: – A TM-E15S24-01 terminal module – A 2PULSE Installation and Fitting Install the TM-E15S24-01 terminal module (see Figure 5-1). Channel 0 of the 2PULSE is used in the example.

On the Parameters tab.0 MB10 PQB258 //Read feedback messages from channel 0 of the 2PULSE Description //Write pulse duration of 5000 ms to channel 0 of the //2PULSE //Generate SW_ENABLE control signal //Query start of pulse output //Set SW_ENABLE=1 //Write control signals to channel 0 of the 2PULSE 5-4 Technological Functions ET 200S A5E00124867-02 . the start address of the inputs and outputs of the 2PULSE is 256. take the address from the hardware configuration.2PULSE Configuration with STEP 7 Using HWCONFIG You begin by adapting the hardware configuration of your existing ET 200S station. On the Addresses tab you will find the addresses of the slot to which you have dragged the 2PULSE.0 M10. Save and compile your configuration and download the configuration in STOP mode of the CPU by choosing PLC → Download to Module.0 memory markers. Make a note of these addresses for subsequent programming. Drag the entry to the slot at which you have installed your 2SSI. Open the relevant project in SIMATIC Manager. Double-click this number to open the DP Slave Properties dialog box. Leave the default settings unchanged. MB20 and M30. you will find the default settings for the 2PULSE. Integration in the Control Program Create block FC101 and integrate it in your control program (in OB1. Select the 2PULSE from the hardware catalog. The number 6ES7 138-4DD00-0AB0 appears in the info text. Call the HWCONFIG configuration table in your project. This block works in this example with the MB10. In block FC101. for example). STL Block: FC101 L T L T L T A = L T PIB256 MB20 5000 PQW256 0 MB10 M30. If necessary. This block sets a pulse duration of 5000 ms and starts pulse output as soon as you have issued the enable using your control program (SW_ENABLE=1).

• STS_ENABLE =1 • STS_DO =1 • LED 4 for DO 0 lights up • STS_ENABLE=0 • STS_DO =0 • LED 4 for DO 0 is deleted After the 5 s pulse duration has expired To start further pulse output. Choose Variable " Monitor to switch to monitoring. and then confirm with OK.0 (STS_ENABLE) (STS_DO) (SW_ENABLE) Choose PLC " Set Up Connection to " Configured CPU to switch to online. and enter the following variables in the “Address” column: M20. Choose the Insert " S7 Block " Variable Table menu command to insert the VAT 1 variable table. The following table shows you which activity triggers which result.1 M30. Activity When you switch the CPU to RUN. Open the VAT 1 variable table...0 = 0) and reset it (memory marker M30.0 (Variable → Modify → ) Directly after the start.0 = 1).2PULSE Test Start a pulse output with SW_ENABLE=1 and monitor the STS_ENABLE and STS_DO feedback bits using “Monitor/Modify Variables”. Select the “Block” folder in your project. Technological Functions ET 200S A5E00124867-02 5-5 . You can change the pulse duration in the control program.0 M20. you must delete SW_ENABLE (memory marker M30. the following results are obtained: Result • All the LEDs are deleted • STS_ENABLE=0 • STS_DO =0 Start the pulse output by setting memory marker 30. Switch the CPU to RUN mode.

3 Modes and Functions Section 5. 5-6 Technological Functions ET 200S A5E00124867-02 .4 Pulse Output Mode Description Page 5-8 5-13 5-21 5-27 Pulse-Width Modulation (PWM) Mode Pulse Train Mode On/Off-Delay Mode The 2PULSE has two channels. You assign parameters to the mode using HWCONFIG or COM PROFIBUS. You can select a separate mode for each channel. controllable separately for each channel. the 2PULSE also knows the following functions: • Direct control of the DO digital output by means of your control program. the 2PULSE recognizes the CPU/master STOP for both two channels and responds in accordance with your parameter assignment. the 2PULSE recognizes the errors for each channel separately.1 5.3. You cannot then change the parameterized mode with your control program.3. • Behavior at CPU/master STOP.3.3. You can select from four different modes for each channel: • Pulse output • Pulse-width modulation • Pulse train • On/off-delay In addition to the set mode.3 5.2PULSE 5.2 5. • Error detection/diagnostics.

6. the 2PULSE has as an interface to the process a digital input and a digital output for each channel (DI 0. Technological Functions ET 200S A5E00124867-02 5-7 . You will find a complete parameter list for all the modes in Section 5. DO 0 for channel 0 and DI 1. You will find the following in the sections on modes and functions: • The relevant parameters • The control and feedback signals The description of the modes and functions applies to both channels and the channels are therefore not referred to separately in the description. Parameters are assigned to the various modes.2PULSE Channel 0 Parameters Control signals Feedback signals Control Program Modes and functions DO 0 DI 0 Process DO 1 Modes and functions DI 1 Channel 1 Parameters Control signals Feedback signals Figure 5-2 How the 2PULSE Works Interfaces to the Control Program and Process To execute the modes and functions. DO1 for channel 1). You can modify and monitor the modes and functions with your control program using control signals and feedback signals.

the output sequence starts at the first positive edge of the hardware enable. the pulse is output with the set pulse duration. 5-8 Technological Functions ET 200S A5E00124867-02 . The output sequence finishes with the end of the pulse. the 2PULSE deletes the ERR_PULS feedback bit. when a software enable has been issued. the 2PULSE outputs a pulse at the DO digital output (output sequence) on expiration of the set on-delay. The ACK_SW_ENABLE feedback bit displays the software enable pending at the 2PULSE.1 Pulse Output Mode Definition For the pulse duration you set. You can also set the DI digital input of the 2PULSE as hardware enable (HW enable) with the DI function parameter. The next time the output sequence is started. a positive edge of the hardware enable is enough to start the next output sequence. HW enable (optional) Software enable (SW_ENABLE) & S Q S Q ≥1 STS_ENABLE R On-delay DO R Pulse duration Figure 5-3 Basic Circuit Diagram for Pulse Output Mode Starting the Output Sequence You must always issue the enable for the output sequence in your control program by means of the software enable (SW_ENABLE 0→1. On expiration of the on-delay. STS_ENABLE is deleted. You will then have to restart the output sequence. the on-delay is started and STS_ENABLE set. the ERR_PULS signal indicates a pulse output error. If you want to work with software enable and hardware enable at the same time. Further positive edges of the hardware enable during the current output sequence are ignored by the 2PULSE. If you make an impermissible change to the pulse duration during operation.2PULSE 5. When the enable is issued (positive edge). MANUAL_DO=0).3. When a software enable has been issued.

if on-delay >0 1. You will then have to restart the output sequence. if on-delay =0 0 Previous status remains Previous status remains Previous status remains 0 0→1 0→1 0 Technological Functions ET 200S A5E00124867-02 5-9 . and STS_ENABLE and the DO digital output are deleted. if on-delay >0 1. if on-delay =0 0.2PULSE Pulse Diagram Software enable (SW_ENABLE) ACK_SW_ENABLE HW enable (DI digital input) DO digital output STS_ENABLE ERR_PULS On-delay Pulse duration Start of the output sequence End of the output sequence Figure 5-4 Output Sequence for Pulse Output Terminating the Output Sequence Deleting the software enable (SW_ENABLE = 0) during the on-delay or the pulse duration terminates the output sequence. Truth Table Software Enable SW_ENABLE 1 0→1 0 1 1 1 0→1 0→1: positive edge HW Enable (DI Digital Input) 0→1 Not used Any status 0 1 Not used 0 DO Digital Output STS_ENABLE Output Sequence Start Start Terminate 0 - 0.

1 × parameterized on-delay If you change the on-delay factor during the output sequence. Time base = 0. Setting and Changing the On-Delay You set the on-delay as a value between 0 and 65535 in the parameters. the new on-delay is activated at the next output sequence. and the ERR_PULS status bit is set.2 ms to 6. Reducing the Pulse Duration If you have reduced the pulse duration to a time that is shorter than the time already output.1.2PULSE Setting Times Using a Time Base By means of the parameterizable time base you can select the resolution and range of the pulse duration and the on-delay.1 ms: Time base = 1 ms: You can set times from 0. Parameterized on-delay = time base × set numerical value Using the factor for the on-delay. you can adjust the parameterized time in your control program.535 s with a resolution of 1 ms. At the next output sequence.5535 s with a resolution of 0. You can set times from 1 ms to 65. 5-10 Technological Functions ET 200S A5E00124867-02 . On-delay = factor × 0. Setting and Changing the Pulse Duration Set the pulse duration directly in your control program as a numerical value between 0 and 65535. Pulse duration = time base × set numerical value If you change the pulse duration when an output sequence is running. the ERR_PULS status bit is deleted. the output sequence is terminated. STS_ENABLE and the DO digital output are deleted.1 ms. with a weighting of 0. Set the factor to be between 0 and 255. the time already output will be subtracted from the new pulse duration and the pulse will continue to be output.

select the resolution and range of the pulse duration and the on-delay.1 ms: 2 to 65535 With a time base of 1 ms 1 to 65535 If you violate the lower limit of the range. may be dependent on the hardware enable With a time base of 0. The time from the start of the output sequence to the output of the pulse.1 ms DI function Input On-delay With a time base of 0.2PULSE Pulse Output Mode Parameters Parameter Mode Meaning Set the pulse output mode. Value Range Default Pulse output • • • • Pulse output Pulse-width modulation Pulse train On/off-delay Time base Using the time base. Word 0 Word 4 Technological Functions ET 200S A5E00124867-02 5-11 . Byte 2: Bit 0 Byte 6: Bit 0 Meaning Value Range Channel 0 Channel 1 Address Address Pulse duration The time that is set for the DO digital output on after expiration of the on-delay. You can change the on-delay using your control program.1 ms: 0 0 to 65535 With a time base of 1 ms: 0 to 65535 Control and Feedback Signals of Pulse Output Mode Control and Feedback Signals Control Signals Software enable (SW_ENABLE) Starting and termination of the output sequence.1 ms • 1 ms • Input • HW enable 0. • 0. 0 = SW_ENABLE deleted 1 = SW_ENABLE set 0³1 = start of the output sequence. You can use the DI digital input as an input or as a hardware enable. the 2PULSE will not output a pulse.

dependent on the software enable (SW_ENABLE) 1 5 Meaning Value Range Channel 0 Terminal Channel 1 Terminal Output Signal Pulse at the DO digital output A pulse is output at the DO digital output for the set pulse duration. 0 = HW enable deleted 1 = HW enable issued 0→1 = start of the output sequence. Indicates the signal level at the DO digital output. If there is an on-delay > 65. Channel 0 Channel 1 Address Address Byte 3 Byte 7 Feedback Signals STS_ENABLE STS_DO Displays a current output sequence. 0 = no pulse 1 = pulse 4 8 5-12 Technological Functions ET 200S A5E00124867-02 .2 ms or if factor = 0. Note the update rate.2PULSE Control and Feedback Signals On-delay factor Meaning You can change the parameterized on-delay before the start of the output sequence: On-delay= factor × 0. Indicates a pulse output error. the effective on-delay is = 0. Indicates the signal level at the DI digital input. 0 = SW_ENABLE deleted 1 = SW_ENABLE set 0 = no pulse output error 1 = pulse output error Byte 0: Bit 3 Byte 0: Bit 4 Byte 4: Bit 3 Byte 4: Bit 4 Byte 0: Bit 2 Byte 4: Bit 2 Byte 0: Bit 0 Byte 0: Bit 1 Byte 4: Bit 0 Byte 4: Bit 1 STS_DI Input and Output Signals of Pulse Output Mode Input and Output Signals Input Signal HW enable You can select the HW enable by means of the DI function parameter. 0 = pulse output blocked 1 = pulse output running 0 = signal at the DO digital output 1 = signal 1 at the DO digital output 0 = signal 0 at the DI digital input 1 = signal 1 at the DI digital input ACK_SW_ ENABLE ERR_PULS Indicates the status of SW_ENABLE. the on-delay is limited to 65.535 s. The signal of the DI digital input is then interpreted by the 2PULSE at the start of the output sequence.535 s.1× parameterized on-delay Value Range 0 to 255 If the on-delay < 0.

Technological Functions ET 200S A5E00124867-02 5-13 . The pulse train is output on expiration of the parameterized on-delay at the DO digital output of the 2PULSE (output sequence). The pulse train is output on expiration of the on-delay. if the software enable has been issued. The ACK_SW_ENABLE feedback bit indicates the software enable pending at the 2PULSE. You can also set the DI digital input of the 2PULSE as HW enable by means of the DI function parameter.2PULSE 5. The period duration can be adjusted. The 2PULSE generates continuous pulses on this basis. Further positive edges of the hardware enable during the current output sequence are ignored by the 2PULSE.2 Pulse-Width Modulation Mode (PWM) Definition You specify an output value to the 2PULSE. HW enable (optional) Software enable (SW_ENABLE) & S Q S Q PWM R On-delay R Output value ≥1 STS_ENABLE DO PWM in operation Figure 5-5 Basic Circuit Diagram for Pulse-Width Modulation Mode Starting the Output Sequence You must always issue the enable for the output sequence by means of a software enable (SW_ENABLE 0→1. The output value determines the pulse/interpulse period ratio within a period (pulse-width modulation). The output sequence runs continuously as long as SW_ENABLE is set. MANUAL_DO=0) in your control program. the on-delay is started and the STS_ENABLE set. If you want to work with the software enable and hardware enable at the same time.3. the output sequence starts at the first positive edge of the hardware enable. When the enable is issued (positive edge).

if on-delay =0 0. if on-delay =0 0 Previous status remains Previous status remains Previous status remains 0 0→1 0→1 0 5-14 Technological Functions ET 200S A5E00124867-02 . and STS_ENABLE and the DO digital output are deleted. if on-delay >0 1. You will then have to restart the output sequence. if on-delay >0 1. Truth Table Software Enable SW_ENABLE 1 0→1 0 1 1 1 0→1 0→1: Positive edge Hardware Enable (DI Digital Input) 0→1 Not used Any status 0 1 Not used 0 DO Digital Output STS_ENABLE Output Sequence Start Start Terminate 0 - 0.2PULSE Pulse Diagram Software enable (SW_ENABLE) ACK_SW_ENABLE HW enable (DI digital input) Period duration Period duration DO digital output On-delay Pulse Interpulse duration period Output value 500‰ STS_ENABLE Output value 250‰ Start of the output sequence Figure 5-6 Pulse-Width Modulation Output Sequence Terminating the Output Sequence Deleting the software enable (SW_ENABLE=0) during the on-delay or the pulse output terminates the output sequence.

A pulse duration calculated by the 2PULSE that is shorter than the minimum pulse duration is suppressed. You parameterize the minimum pulse duration and minimum interpulse period using the minimum/pulse duration parameter.2PULSE 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[‰]) × period duration. Pulse duration Period duration Period duration/ minimum interpulse period Minimum pulse duration 0 0 Figure 5-7 Modulation of the Pulse Duration 1000 Output value in ‰ You specify the period duration in accordance with the required accuracy of the process variables generated by the actuator. A pulse duration calculated by the 2PULSE that is longer than the period duration . they always have the same value. Technological Functions ET 200S A5E00124867-02 5-15 . Minimum Pulse Duration and Minimum Interpulse Period The minimum pulse duration and minimum interpulse period are at a higher level than the proportional output characteristic.minimum interpulse period is set at 1000‰.

since the new interpulse period is longer. • If you make changes during the pulse duration and if the new output value is lower than the previous one.5535 s with a resolution of 0. • If you make changes during the interpulse period and if the new output value is greater than the previous one. • If you make changes during the pulse duration and if the new output value is greater than the previous one. since the interpulse period is longer. the 2PULSE calculates the new pulse duration and interpulse period: • If you make changes during the interpulse period and if the new output value is smaller than the previous one.1 ms.535 s with a resolution of 1 ms. If you change the output value. the minimum pulse duration and the on-delay. select the output format of the S7 analog output module.2 ms to 6.1 ms: Time base = 1 ms: You can set times from 0. the period duration is extended once only. You set set the output value directly using your control program. If your output value is a SIMATIC S7 analog value (between 0 and 27648). If your output value is between 0 and 1000. Time base = 0. since the new interpulse period is shorter. 5-16 Technological Functions ET 200S A5E00124867-02 . select the per mill output format.2PULSE Setting Times Using a Time Base Select by means of the parameterizable time base the resolution and range of the period duration. the period duration is shortened once only. You can set times from 1 ms to 65. the period duration can be extended once only. the period duration remains constant. Setting and Changing the Output Value Select the range for the output value by means of the PWM output format parameter.

• If you make changes during the interpulse period and if the new factor is greater than the previous one.1. Parameterized period duration = time base × set numerical value Using the factor for the period duration. a period duration that is shorter than the previous one but longer than the new one is set once only. Parameterized minimum pulse duration/minimum interpulse period = time base × set numerical value Setting the On-Delay Set the on-delay as a value between 0 and 65535 in the parameters.1 × parameterized period duration If you change the factor. with a weighting of 0. a period duration that is longer than the previous one but shorter than the new one is set once only. Setting the Minimum Pulse Duration and Minimum Interpulse Period Set the minimum pulse duration and the minimum interpulse period as a numerical value between 0 and 65535 using the minimum/pulse duration parameter. a period duration that is shorter than the previous one but longer than the new one can be set once only.2PULSE Setting and Changing the Period Duration Set the period duration as a numerical value between 2 and 65535 in the parameters. • If you make changes during the pulse duration and if the new factor is lower than the previous one. Set the factor between 0 and 255. • If you make changes during the pulse duration and if the new factor is greater than the previous one. Parameterized on-delay = time base × set numerical value Technological Functions ET 200S A5E00124867-02 5-17 . Period duration = factor × 0. you can adjust the parameterized time in your control program. the 2PULSE immediately calculates the new period duration and with it the new pulse duration and interpulse period: • If you make changes during the interpulse period and if the new factor is lower than the previous one. a period duration that is longer than the previous one but shorter than the new one can be set once only.

Value Range Default Pulse output • • • • Pulse output Pulse-width modulation Pulse train On/off-delay PWM output format Select either the per mill or SIMATIC S7 analog value output formats depending on the output value resolution required. With a time base of 0.1 ms: 10000 → 1 s 2 to 65535 With a time base of 1 ms: 1 to 65535 If you violate the lower limit of the range.2PULSE Parameters of Pulse-Width Modulation Mode Parameters Mode Meaning Set pulse-width modulation mode.2 ms or 1 ms. You can change the period duration using your control program. The time from the start of the output sequence to the output of the pulse train. With a time base of 0. You can use the DI digital input as an input or as a HW enable.1 ms: 0 0 to 65535 With a time base of 1 ms: 0 to 65535 Minimum/pulse duration Minimum pulse duration and minimum interpulse period Enter the response time of the actuator connected to your DO digital output. the 2PULSE sets the minimum/pulse duration to 0.1 ms • 1 ms 0. 5-18 Technological Functions ET 200S A5E00124867-02 . and the on-delay.1 ms DI function • Input • HW enable Input On-delay With a time base of 0. the minimum/pulse duration. Select by means of the time base the resolution and range of the period duration. • Per mill • SIMATIC S7 analog value Per mill Time base • 0.1 ms: 20000 → 2 s 2 to 65535 With a time base of 1 ms: 1 to 65535 Period duration The period duration should always be a multiple of the response time of the actuator connected to the DO digital output.

In this case..635 s.535 s. may be dependent on the hardware enable Depending on the PWM output format: Byte 2: Bit 0 Byte 6: Bit 0 Meaning Value Range Channel 0 Channel 1 Address Address Output value The value that is output in pulse-width modulated format at the DO digital output. Word 0 Word 4 • Per mill 0.. Byte 3 Byte 7 Technological Functions ET 200S A5E00124867-02 5-19 . Period duration factor Change the parameterized period duration: Period duration = factor × 0.. If there is a period duration > 65. 0 = SW_ENABLE deleted 1 = SW_ENABLE set 0³1 = start of the output sequence. If a period duration of < 2×minimum/pulse duration occurs or < 400 µs or if factor = 0.2PULSE Control and Feedback Signals of Pulse-Width Modulation Mode Control and Feedback Signals Control Signals Software enable (SW_ENABLE) Starting and termination of the output sequence. 13824.1 × parameterized period duration Factor: 0 to 255 Period duration: 2×minimum/pulse duration up to 65.1000 • S7 analog output 0.535 s.27648 If you enter an output value > 1000 or 27648. the effective period duration = 2×minimum/puls e duration. it is limited to 65.. the 2PULSE limits this to 1000 or 27648. the signal 0 is issued if the output value at the DO digital output < 500‰ or 13824 and the signal = 1 is output if the output value > 500‰ or.

0 = SW_ENABLE deleted 1 = SW_ENABLE set Byte 0: Bit 3 STS_DI Byte 4: Bit 2 ACK_SW_ ENABLE Byte 4: Bit 3 Input and Output Signals of Pulse-Width Modulation Mode Input and Output Signals Input signal HW enable You can select the HW enable with the DI function parameter. The signal of the DI digital input is then interpreted by the 2PULSE at the start of the output sequence.2PULSE Control and Feedback Signals Feedback signals STS_ENABLE STS_DO Meaning Value Range Channel 0 Channel 1 Address Address Indicates an output sequence is running. input Bit 2 1 = signal 1 at the DI digital input Indicates the status of SW_ENABLE. output Bit 1 Note the update rate. dependent on the software enable 5 Meaning Value Range Channel 0 Channel 1 Terminal Terminal Output Signal Pulse train at the DO digital output The pulse train is output at the DO digital output. 1 = signal 1 at the DO digital output Indicates the signal level at 0 = signal 0 at the DI digital Byte 0: the DI digital input. 0 = HW enable deleted 1 1 = HW enable issued 0³1= start of the output sequence. 0 = pulse output blocked 1 = pulse output running Byte 0: Bit 0 Byte 4: Bit 0 Byte 4: Bit 1 Indicates the signal level at 0 = signal 0 at the DO digital Byte 0: the DO digital output. 0 = no pulse 1 = pulse 4 8 5-20 Technological Functions ET 200S A5E00124867-02 .

When the enable is issued (positive edge). The ACK_SW_ENABLE feedback bit indicates the software enable pending at the 2PULSE. At the next output sequence. the ERR_PULS signal indicates a pulse output error. If you want to work with the software enable and hardware enable at the same time. Further positive edges of the hardware enable during the current output sequence are ignored by the 2PULSE. the 2PULSE deletes the ERR_PULS feedback bit. If you make an impermissible change to the number of pulses during operation. The output sequence finishes as soon as the last pulse has been output.3. when the software enable has been issued. the output sequence starts at the first positive edge of the hardware enable. You can also set the DI digital input of the 2PULSE as HW enable with the DI function parameter. The period duration and pulse duration of the pulses can be adjusted.3 Definition Pulse Train Mode 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 on-delay is started and the STS_ENABLE set. HW enable (optional) Software enable (SW_ENABLE) & S Q S Q ≥1 STS_ENABLE DO R On-delay R Number of pulses The pulse train is in operation Figure 5-8 Basic Circuit Diagram for Pulse Train Mode Starting the Output Sequence You must always issue the enable for the output sequence by means of the software enable (SW_ENABLE 0→1. a positive edge of the hardware enable is enough to start the next output sequence. STS_ENABLE is deleted. When the software enable has been issued.2PULSE 5. MANUAL_DO=0) in your control program. the pulse train is output with the set number of pulses. On expiration of the on-delay. Technological Functions ET 200S A5E00124867-02 5-21 .

if on-delay >0 1.2PULSE Pulse Diagram SW enable ACK_SW_ENABLE HW enable (DI digital input) DO digital output On-delay Start of the output sequence Number of pulses = 4 STS_ENABLE ERR_PULS Puls e duration Interpulse period Period duration End of the output sequence Figure 5-9 Output Sequence of the Pulse Train Terminating the Output Sequence Deleting the software enable during the on-delay or the pulse train terminates the output sequence. if on-delay >0 1. You will then have to restart the output sequence. if on-delay =0 0. Truth Table Software Enable SW_ENABLE 1 0→1 0 1 1 1 0→1 0→1: positive edge DI Digital Input DO Digital Output STS_ENABLE Output Sequence Start Start Terminate 0 - 0→1 Not used Any status 0 1 Not used 0 0. and STS_ENABLE and the DO digital output are deleted. if on-delay =0 0 Previous status remains Previous status remains Previous status remains 0 0→1 0→1 0 5-22 Technological Functions ET 200S A5E00124867-02 .

If you change the number of pulses on expiration of the on-delay.1 × parameterized period duration If you change the factor during the output sequence. with a weighting of 0. At the next output sequence.1 ms. the new. higher number of pulses is output. Parameterized period duration = time base × set numerical value Using the factor for the period duration. and ERR_PULS is set. Setting and Changing the Number of Pulses Set the number of pulses directly as a numerical value between 0 and 65535 with your control program. and the on-delay. ERR_PULS is deleted. Technological Functions ET 200S A5E00124867-02 5-23 . you can adjust the parameterized time in your control program. Time base = 0.1. the pulse duration. the new period duration will take effect at the start of the next output sequence.5535 s with a resolution of 0. the output sequence is terminated.535 s with a resolution of 1 ms. the new value takes effect immediately: • If you have increased the number of pulses. You can set times from 1 ms to 65. and if the lower number of pulses has already been output. Set the factor between 0 and 255. Setting and Changing the Period Duration Set the period duration as a value between 2 and 65535 in the parameters.2 ms to 6. Period duration = factor × 0.1 ms: Time base = 1 ms: You can set times from 0. • If you have reduced the number of pulses.2PULSE Setting Times Using a Time Base Select by means of the parameterizable time base the resolution and range of the period duration. STS_ENABLE and the DO digital output are deleted.

1 ms: 10000 → 1 s 2 to 65535 With a time base of 1 ms: 1 to 65535 If you violate the lower limit of the range. With a time base of 0. pulse duration. and on-delay. 5-24 Technological Functions ET 200S A5E00124867-02 . the period duration. The time from the start of the output sequence to the output of the pulse train. Parameterized on-delay = time base × set numerical value Parameters of the Pulse Train Mode Parameters Mode Meaning Value Range Pulse output Pulse-width modulation Pulse train On/off-delay 0. select • the resolution and range of • Set the pulse change mode.1 ms 1 ms 0. Parameterized pulse duration = time base × preset numerical value Setting the On-Delay Set the on-delay as a value between 0 and 65535 in the parameters.1 ms: 0 0 to 65535 With a time base of 1 ms: 0 to 65535 Minimum/pulse duration Pulse duration: Enter the response time of the actuator connected on your DO digital output. the 2PULSE sets the pulse duration to 0.2 ms or 1 ms.1 ms Default Pulse output Time base • • • • Using the time base.2PULSE Setting the Pulse Duration Set the pulse duration as a numerical value between 1 and 65535 with the minimum/pulse duration parameter. You can use the DI digital input as an input or as a HW enable. DI function • Input • HW enable Input On-delay With a time base of 0.

Value Range Default With a time base of 0. the 2PULSE does not output any pulses. Byte 3 Byte 7 Word 0 Word 4 Byte 2: Bit 0 Byte 6: Bit 0 Meaning Value Range Channel 0 Channel 1 Address Address Period duration factor You can change the parameterized period duration before the start of the output sequence: Period duration = factor × 0.2PULSE Parameters Period duration Meaning The period duration should always be a multiple of the response time of the actuator connected to the DO digital output.1 × parameterized period duration Feedback Signals Technological Functions ET 200S A5E00124867-02 5-25 .1 ms: 20000 → 2 s 2 to 65535 With a time base of 1 ms: 1 to 65535 Control and Feedback Signals of Pulse Train Mode Control and Feedback Signals Control signals Software enable (SW_ENABLE) Starting and termination of the output sequence.535 s If there is a period duration > 65. it is set to 65. You can change the period duration with your control program. 0 = SW_ENABLE deleted 1 = SW_ENABLE set 0³1 = Start of the output sequence.535 s. may be dependent on the HW enable Number of pulses Number of pulses that are output at the DO digital output on expiration of the on-delay. Factor: 0 to 255 Period duration: > Pulse duration up to 65. it is set to a pulse duration of + 0. If the period duration is ≤ the pulse duration. 0 to 65535 If the number of pulses is 0.2 ms.535 s. The output sequence is terminated with ERR_PULS = 1. Define the period duration according to the required repetition rate of the pulses.

The signal of the DI digital input is then interpreted by the 2PULSE at startup. Indicates the signal level at the DO digital output. dependent on the software enable (SW_Enable) 1 5 Meaning Value Range Channel 0 Channel 1 Terminal Terminal Output Signal Pulse train at the DO digital output The preset number of pulses is output at the DO digital output. Note the update rate. 0 = HW enable deleted 1 = HW enable issued 0³1= Start of the output sequence. 0 = no pulse 1 = pulse 4 8 5-26 Technological Functions ET 200S A5E00124867-02 . Value Range 0 = pulse output blocked 1 = pulse output running 0 = signal 0 at the DO digital output 1 = signal 1 at the DO digital output 0 = signal 0 at the DI digital input 1 = signal 1 at the DI digital input Channel 0 Channel 1 Address Address Byte 0: Bit 0 Byte 0: Bit 1 Byte 4: Bit 0 Byte 4: Bit 1 STS_DO STS_ DI Indicates the signal level at the DI digital input. 0 = SW_ENABLE deleted 1 = SW_ENABLE set 0 = no pulse output error 1 = pulse output error Byte 0: Bit 3 Byte 0: Bit 4 Byte 4: Bit 3 Byte 4: Bit 4 Input and Output Signals of Pulse Train Mode Input and Output Signals Input signal HW enable You can select the HW enable with the DI function parameter. Byte 0: Bit 2 Byte 4: Bit 2 ACK_SW_ ENABLE ERR_PULS Indicates the status of SW_ENABLE.2PULSE Control and Feedback Signals STS_ENABLE Meaning Indicates an output sequence is running. Indicates a pulse output error.

If the 2PULSE recognizes a pulse duration or interpulse period that is too short. At the next edge at the DI digital input. this is displayed by the ERR_PULS pulse output error.4 On/Off-Delay Mode Definition The signal pending at the DI digital input is output with an on/off-delay at the DO digital output by the 2PULSE. this sets STS_ENABLE. and on expiration of the off-delay the DO digital output DO is deleted. The positive edge at the DI digital input (0→1) starts the on-delay. Technological Functions ET 200S A5E00124867-02 5-27 . the 2PULSE deletes the ERR_PULS feedback bit. STS_ENABLE Software enable (SW_ENABLE) DI & S Q & DO R On-delay S Q R Off-delay Figure 5-10 Basic Circuit Diagram for On/Off-Delay Mode Enabling the Output Sequence You must always issue the enable for the output sequence with the software enable (SW_ENABLE 0→1.3.2PULSE 5. and on expiration of the on-delay the DO digital output is set. The negative edge at the DI digital input (1→0) starts the off-delay. The ACK_SW_ENABLE feedback bit indicates the software enable pending at the 2PULSE. MANUAL_DO=0) in your control program.

2PULSE Pulse Diagram Software enable (SW_ENABLE) ACK_SW_ENABLE HW enable (DI digital input) DO digital output STS_ENABLE ERR_PULS On-delay Off-delay Figure 5-11 On/Off-Delay Output Sequence Terminating the Output Sequence Deleting the software enable (SW_ENABLE 0=1) during the output sequence terminates it. and STS_ENABLE and the digital output are deleted. if on-delay =0 1. Truth Table Software Enable SW_ENABLE 1 1 0 1 1 0→1 0→1: Positive edge 1→ 0: Negative edge DI Digital Input DO Digital Output STS_ENABLE Output Sequence Start Start Terminate - 0→1 1→0 Any status 0 1 0 0. if the off-delay =0 0 Previous status remains Previous status remains 0 1 1 0 1 1 1 5-28 Technological Functions ET 200S A5E00124867-02 . if the off-delay >0 0. if on-delay >0 1.

2PULSE Minimum Pulse Duration/Minimum Interpulse Period of the DO Digital Output The minimum pulse duration/minimum interpulse period of the DO digital output is 0. Response of the 2PULSE to a pulse duration that is too short: – – – – ERR_PULS is set. The Pulse Duration of the DI Digital Input Is Too Short The 2PULSE detects a pulse that is too short at the negative edge at the DI digital input if: Pulse duration + off-delay ≤ on-delay. The current on-delay is deleted.2 ms. Make sure you take this into consideration when you set the on/off-delay and the pulse duration/interpulse period of the DI digital input. The signal level at the DO digital output remains at 0. ERR_PULS is deleted at the next positive edge at the DI digital input. otherwise. the response at the DO digital output is not defined. Pulse duration DI digital input Off-delay On-delay DO digital output 1 0 Figure 5-12 The Pulse Duration Is Too Short Technological Functions ET 200S A5E00124867-02 5-29 . The off-delay is not started.

The DO digital output is only set if signal level 1 is present at the DI digital input longer than the on-delay. – The on-delay is not started. ERR_PULS is deleted at the next negative edge at the DI digital input. – The current off-delay is deleted. This enables you to filter rapid pulse trains.2PULSE The Interpulse Period of the DI Digital Input Is Too Short The 2PULSE detects an interpulse period that is too short at the positive edge at the DI digital input if: Interpulse period + on-delay ≤ off-delay. DI digital input Interpulse period On-delay Off-delay DO digital output 1 0 Figure 5-13 The Interpulse Period Is Too Short Retriggering the Current On-Delay The 2PULSE starts a new on-delay at the positive edge at the DI digital input if: On-delay > pulse duration + interpulse period This deletes the current off-delay. – The signal level at the DO digital output remains at 1. 5-30 Technological Functions ET 200S A5E00124867-02 . Response of the 2PULSE to an interpulse period that is too short: – ERR_PULS is set.

1 ms.2PULSE Pulse duration DI digital input Interpulse period Off-delay On-delay Retrigger DO digital output Figure 5-14 Retriggering the Current On-Delay Retriggering the Current Off-Delay The 2PULSE starts a new off-delay at the negative edge at the DI digital input if: Off-delay > pulse duration + interpulse period This deletes the current on-delay.2 ms to 6.1 ms: Time base = 1 ms: You can set times from 0.5535 s with a resolution of 0. The DO digital output is only deleted if signal level 0 is present at the DI digital input longer than the off-delay. You can set times from 1 ms to 65. Time base = 0.535 s with a resolution of 1 ms. Technological Functions ET 200S A5E00124867-02 5-31 . Pulse duration DI digital input Off-delay Retrigger On-delay On-delay Interpulse period DO digital output Figure 5-15 Retriggering the Current Off-Delay Setting Times Using a Time Base Select by means of the parameterizable time base the resolution and range of the on-delay and the off-delay.

Value Range Default Pulse output • • • • Pulse output Pulse-width modulation Pulse train On/off-delay Time base Using the time base. you can adjust the parameterized time in your control program. Off-delay = time base × preset numerical value If you change the off-delay factor. You can change the on-delay with your control program. The time between a positive edge at the DI digital input and its output at the DO digital output. Setting and Changing the Off-Delay Set the off-delay directly as a numerical value between 0 and 65535 in your control program.1 ms: 0 0 to 65535 With a time base of 1 ms: 0 to 65535 5-32 Technological Functions ET 200S A5E00124867-02 . the new off-delay is activated with the next negative edge at the DI digital input. Parameters for the On/Off-Delay Mode Parameters Mode Meaning Set the on/off-delay mode.1 × parameterized on-delay If you change the on-delay factor.1. Parameterized on-delay = time base × set numerical value Using the factor for the on-delay. On-delay = factor × 0. the new on-delay is activated with the next positive edge at the DI digital input.1 ms On-delay With a time base of 0.1 ms • 1 ms 0.2PULSE Setting and Changing the On-Delay Set the on-delay as a value between 0 and 65535 in the parameters. with a weighting of 0. • 0. Set the factor between 0 and 255. select the resolution and range of the on-delay and the off-delay.

2 ms or with factor = 0. 0 = SW_ENABLE deleted 1 = SW_ENABLE set Byte 2: Bit 0 Byte 6: Bit 0 Meaning Value Range Channel 0 Channel 1 Address Address Off-delay The time between a With a time base of 0. Indicates the signal level at the DO digital output. 0 = SW_ENABLE deleted 1 = SW_ENABLE set 0 = no pulse output error 1 = pulse output error Byte 0: Bit 3 Byte 0: Bit 4 Byte 4: Bit 3 Byte 4: Bit 4 Byte 0: Bit 2 Byte 4: Bit 2 Byte 0: Bit 1 Byte 4: Bit 1 Byte 0: Bit 0 Byte 4: Bit 0 STS_DO Technological Functions ET 200S A5E00124867-02 5-33 .535 s If the only delay is < 0. Note the update rate. the current output sequence will be terminated.1 ms: negative edge at the DI 2 to 65535 digital input and its output at the DO digital output.2PULSE Control and Feedback Signals of On/Off-Delay Mode Control and Feedback Signals Control Signals Software enable (SW_ENABLE) You must always issue the software enable in your control program. the off-delay will not function. Word 0 Word 4 On-delay factor Change the parameterized on-delay: On-delay = factor × 0. STS_DI Indicates the signal level at the DI digital input. If you delete the software enable. Byte 3 Byte 7 Feedback Signals STS_ENABLE Indicates the status of the software enable (SW_ENABLE). the effective on-delay = 0.2 ms to 65. the on-delay is limited to 65.535 s.1 × parameterized on-delay Factor: 0 to 255 On-delay 0. Indicates a pulse output error if the pulse duration or interpulse period is too short.535 s. 0 = software enable blocked 1 = software enable issued 0 = signal 0 at the DO digital output 1 = signal 1 at the DO digital output 0 = signal 0 at the DI digital input 1 = signal 1 at the DI digital input ACK_SW_ ENABLE ERR_PULS Indicates the status of SW_ENABLE. If the on-delay is > 65. With a time base of 1 ms: 1 to 65535 If you violate the lower limit of the range.

To do this. you deselect the function for the direct control of the digital output (DO). Control and Feedback Signals/Output Signal Signals Control Signals SW_ENABLE To select the function. When you delete the MANUAL_DO control bit. Preset the status of the DO digital output with the SET_DO control bit. 4 8 5. the feedback bits STS_ENABLE and ERR_PULS are deleted by the 2PULSE. This deletes the DO digital output. You will then have to restart the output sequence.5 Function: Direct Control of the DO Digital Output Definition You can directly control the DO digital output of the 2PULSE to test the actuator you have connected.3. 1 5 Meaning Value Range Channel 0 Channel 1 Terminal Terminal Output Signal Pulse at the DO digital output The signal at the DI 0 = no signal digital input is output with 1 = signal an on/off-delay at the DO digital output by the 2PULSE. and an output sequence in operation is terminated. After you have selected the function. 0 = SW_ENABLE deleted 1 = SW_ENABLE set Byte 2: Bit 0 Byte 6: Bit 0 Meaning Value Range Channel 0 Channel 1 Address Address 5-34 Technological Functions ET 200S A5E00124867-02 .2PULSE On/Off-Delay Signals for On/Off-Delay Mode Input and Output Signals Input Signal DI digital input The signal at the DI 0 = no pulse digital input is output with 1 = pulse an on/off-delay at the DO digital output by the 2PULSE. the control bit must be deleted. you have to select the function by means of your control program with the MANUAL_DO control bit set and with the SW_ENABLE control bit deleted.

Value Range 0 = direct control of the DO not selected. Indicates the signal level at the DO digital output. 0 = signal 0 at the DO digital output 1 = signal 1 at the DO digital output Channel 0 Channel 1 Address Address Byte 2: Bit 1 Byte 6: Bit 1 SET_DO Byte 2: Bit 2 Byte 6: Bit 2 Feedback Signals STS_ENABLE STS_DO Deleted after the function has been selected. Preset the status of the DO digital output with the control bit. 0 = pulse output blocked 1 = pulse output running 0 = signal 0 at the DO digital output 1 = signal 1 at the DO digital output 0 = signal 0 at the DI digital input 1 = signal 1 at the DI digital input DO Digital Output The status preset with the SET_DO control bit is output at the DO digital output. 0 = no signal 1 = signal 4 8 Byte 0: Bit 2 Byte 4: Bit 2 Byte 0: Bit 0 Byte 0: Bit 1 Byte 4: Bit 0 Byte 4: Bit 1 Technological Functions ET 200S A5E00124867-02 5-35 . Note the update rate. STS_ DI Indicates the signal level at the DI digital input. 1 = direct control of the DO selected.2PULSE Signals MANUAL_DO Meaning You can select and deselect the function with the control bit.

it generates a parameter assignment error. The short circuit detected is displayed for the channel it affects with the ERR_DO feedback bit.6 Function: Error Detection/Diagnostics Parameter assignment error . Sensor Supply Short Circuit . on/off-delay.ERR_DO The 2PULSE detects a short circuit at the digital output of the channel. You can find the causes and responses for these in the relevant mode description and in Section 5.ERR_PARA If the 2PULSE cannot identify the parameters as its own. Short Circuit of the Digital Output . The short circuit error detected is displayed for the two channels with the ERR_24V feedback bit. The two channels are then not parameterized.3. you must switch on DO diagnostics in the parameters.6. Make sure that you only set the 2PULSE parameters that have been described. and pulse train modes. ERR_PULS Pulse Output Error The 2PULSE detects a channel-specific pulse output error in the pulse output. To do this.2PULSE 5. 5-36 Technological Functions ET 200S A5E00124867-02 . The pulse output error detected is displayed for the channel it affects with the ERR_PULS feedback bit.ERR_24V The 2PULSE detects a short circuit in the sensor supply that it makes available at terminals 2 and 6. The 2PULSE slot you configure must match the setup.

Parameters Parameters Group diagnosis Meaning When group diagnosis has been enabled. the 2PULSE generates a diagnostic message for the CPU/master. 0 = no digital output short circuit 1 = digital output short circuit Byte 0: Bit 6 Byte 4: Bit 6 Byte 0: Bit 4 Byte 0: Bit 7 Byte 4: Bit 4 Byte 4: Bit 7 Channel 0 Channel 1 Address Address Byte 0: Bit 5 Byte 4: Bit 5 Technological Functions ET 200S A5E00124867-02 5-37 . Value Range Disable/enable Disable Default Diagnostics DO Off/on Off Feedback Signals Feedback Signals ERR_PARA Meaning Indicates a parameterization error. Value Range 0 = no parameterization error 1 = parameterization error ERR_PULS ERR_24V 0 = no pulse output error 1 = pulse output error 0 = no sensor supply short circuit 1 = sensor supply short circuit ERR_DO Indicates a short circuit of the DO digital output. you must switch on DO diagnostics. Indicates a pulse output error. 2PULSE generates a diagnostic message for the connected CPU/master.2PULSE Diagnostic Message In the event of parameter assignment errors or a short circuit in the sensor supply or in the digital output. you must enable the group diagnosis parameter. The 2PULSE detects a short circuit of the digital output DO when Diagnostics DO= on. Indicates a short circuit of the sensor supply. To do this. To do this.

and write the values to the 2PULSE. If the mode is to continue during a change from CPU-/Master-STOP to RUN (startup). parameterized substitute value of the DO digital output Delete STS_ENABLE Terminate the current output sequence DO keep last value The DO digital output remains unchanged Delete STS_ENABLE Terminate the current output sequence Startup To start a new output sequence after CPU/master STOP and after ACK_SW_ENABLE has been set.3. and repeat this deletion until ACK_SW_ENABLE has also been deleted.2PULSE 5.7 Behavior at CPU-Master-STOP Definition You can parameterize what the 2PULSE is to do in the event of the failure of the parent controller for the two channels together. set the software enable control bit (SW_ENABLE=1). first delete SW_ENABLE. the CPU/Master cannot clear the outputs. 5-38 Technological Functions ET 200S A5E00124867-02 . Behavior at CPU-Master STOP Turn off DO Channel-Specific Response and the Status of the 2PULSE Delete the DO digital output Delete STS_ENABLE Terminate the current output sequence Continue working mode The DO digital output remains unchanged STS_ENABLE remains unchanged The current output sequence is continued DO substitute a value Output of the channel-specific. Possible solution: In the part of the user program that is processed during startup.

the 2PULSE does the following: • Deletes the DO digital output. • Deletes STS_ENABLE. at power up of the CPU/master or the IM 151 or at the resumption of DP transfer. and after a modified parameter assignment or configuration of the ET 200S station has been downloaded to the CPU/master. This occurs. however. the 2PULSE terminates the process.2PULSE Modified Parameter Assignment The status assumed by the 2PULSE at CPU/master STOP remains even in the case of parameter assignment or configuration of the ET 200S station. As a result. Technological Functions ET 200S A5E00124867-02 5-39 . for example. In “Continue working mode”. • Terminates the current output sequence.

2 5. Additional Applications Other possible uses are described in this section.4.4 Filling Liquids Heating a Liquid Packing Piece Goods Applying a Protective Layer Description Page 5-41 5-45 5-50 5-54 The following application examples give you an overview of the possible uses for the 2PULSE in different processes.2PULSE 5. each application example only represents part of a process. Assumed prerequisites allow you to evaluate how you can use the 2PULSE optimally in your process. The table below shows you the modes some of the processes can be used with: Applications/Processes Filling liquids Heating a liquid Packing piece goods Applying a protective layer Mode Pulse output Pulse-width modulation Pulse train On/off-delay Due to the highly complex nature of the processes.1 5.4.3 5. You can use the 2PULSE in different modes according to your general process-related requirements.4 Application Examples Section 5. This section illustrates the principal method of operation of the 2PULSE for the task chosen.4. 5-40 Technological Functions ET 200S A5E00124867-02 .4.

1 Filling Liquids Description Filling is started as soon as a container is under the valve. the container is moved along. Pump Valve 24 V control signal from 2PULSE Initiator 24 V enable signal to 2PULSE Figure 5-16 Filling Liquids Technological Functions ET 200S A5E00124867-02 5-41 . The amount of liquid is proportional to the specified pulse duration. The valve is opened for a preset pulse duration by means of the 24 V control signal. The 2PULSE generates the 24 V control signal at its digital output for the pulse duration you have specified. After it has been filled.2PULSE 5.4.

2PULSE Requirements • The volume of liquid to be filled is proportional to the time the valve is open. The 2PULSE uses the 24 V enable signal (DI digital input) to check whether the container is correctly positioned. Then open the valve using the control program (SW_ENABLE 0→1) and start the filling process. Sequence Start of the filling process: To start the process. Monitoring the filling process: The error detection/diagnostic function allows you to check in the program that the process is running correctly. • The minimum pulse duration must be longer than the on/off times specified by the manufacturer. use the software enable (SW_ENABLE) on your control program. the 2PULSE generates a pulse at the DO digital output (24 V control signal) for the specifiable pulse duration to control the valve. • The valve only has the two positions OPEN or CLOSED. Pulse Output Mode Use channel 0 of the 2PULSE in pulse output mode for the filling process. 24 V enable signal (DI digital input) Software enable (SW_ENABLE) 24 V control signal (DO digital output) STS_ENABLE Pulse duration = 5000 ms Container is positioned Filling starts Filling ends Container is moved away Figure 5-17 Flow Diagram for the Filling Process 5-42 Technological Functions ET 200S A5E00124867-02 . In this mode. End of the filling process: You can find out when the process has finished in the program by evaluating STS_ENABLE. • The cross-section of the feeder pipe cannot be changed.

The parameters for channel 1 are not relevant in this application example. Technological Functions ET 200S A5E00124867-02 5-43 . The digital input is used to establish whether the container is correctly positioned. Behavior at CPU-Master-STOP Mode Time base Turn off DO 0 Pulse output 1 ms All the preset times are specified at a resolution of 1 ms.2PULSE Parameters The following parameters are required for channel 0 of the 2PULSE to fill liquids in pulse output mode. The valve is opened immediately with SW_ENABLE = 1 DI function 0 Input On-delay 0 The additional parameters of channel 0 of the 2PULSE have no effect on the pulse output mode.DO digital output • Short circuit of the sensor supply • Parameter assignment error Diagnostics DO 0 On The 2PULSE detects the short circuit of the DO 0 digital output error. Table 5-1 Parameter List for the Filling Process Set Value Enable Meaning The following errors trigger a diagnostic message: Parameters Group diagnosis • Short circuit .

0 M10. The pulse duration in this example is 5000 ms. To do this. You use this part of the program to start the filling process. memory marker M30.2PULSE Programming/Flow Diagram Below you will find a section from a STEP 7 STL program.0 MB10 PQB258 Read the feedback messages from channel 0 of the 2PULSE Write a pulse duration of 5000 ms to channel 0 of the 2PULSE Description Generate SW_ENABLE Container is positioned Start of the filling process: Set SW_ENABLE=1 Write control signals to channel 0 of the 2PULSE Wiring/Terminal Assignment Diagram TM-E15S24-01 and 2PULSE Channel 0 24 V enable signal Initiator 24 V control signal M Valve DO 0 Figure 5-18 DO 1 M Channel 1 DI 0 24 VDC DI 1 24 VDC Terminal Assignment of the 2PULSE for Filling Liquids 5-44 Technological Functions ET 200S A5E00124867-02 .2 M30.0 must be set. STL Block: L T L T L T A A = L T PIB256 MB20 5000 PQW256 0 MB10 M20. The configured start address of the inputs and outputs of the 2PULSE is 256.

The longer the 24 V control signal is switched on. Electrical heating element 24 V control signal from the 2PULSE Figure 5-19 Heating a Liquid Technological Functions ET 200S A5E00124867-02 5-45 . The energy needed to do this is supplied to the heating element by a switching element (a contactor. the longer the heating process and therefore the greater the rise in temperature of the fluid.4. The temperature of the heating element is determined by the on/off length of the 24 V control signal. The 2PULSE generates a 24 V control signal for the switching element.2PULSE 5. for example).2 Heating a Liquid Description A liquid is heated with an electrical heating element.

Monitoring the heating process: The error detection/diagnostic function allows you to check by means in the program that the heating element is being controlled correctly. the 2PULSE generates a pulse train at the DO digital output (24 V control signal) for the specifiable ratio of the pulse duration/period duration to control the switching element.Heating a Liquid 5-46 Technological Functions ET 200S A5E00124867-02 . use the software enable (SW_ENABLE) in your control program.2PULSE Requirements • The heating element only has two switching states: ON or OFF. • The minimum pulse or minimum interpulse period must be greater than the response times of the switching element and heating element. Sequence Starting the heating process: To start the heating process. Software enable (SW_ENABLE) 24 V control signal (DO digital output) STS_ENABLE Heating process starts Figure 5-20 Flow Diagram . Pulse-Width Modulation (PWM) Mode Use channel 0 of the 2PULSE in pulse-width modulation mode to control the heating element. • The flow of heat corresponds to the ration of the on/off duration of the 24 V control signal. In this mode.

1000) All the preset times are specified at a resolution of 1 ms.digital output • Short circuit of the sensor supply • Parameter assignment error Diagnostics DO 0 On The 2PULSE detects the short circuit error at the DO 0 digital output. this also applies to the minimum interpulse period DI function 0 On-delay Input 0 Minimum/pulse duration 500 Period duration 30000 This is 30 s in the selected time base The additional parameters of channel 0 of the 2PULSE have no effect on pulse-width modulation mode.. Technological Functions ET 200S A5E00124867-02 5-47 .2PULSE Parameters The following parameters are required for channel 0 of the 2PULSE to heat a liquid in pulse-width modulation mode. The digital input is not required for this application The 24 V control signal is immediately output with SW_ENABLE=1 Minimum pulse duration: This is 500 ms in the selected time base. Behavior at CPU-Master-STOP Mode PWM output format Time base Turn off DO 0 Pulse-width modulation Per mill 1 ms The output value is preset in [‰] (0.. The parameters for channel 1 are not relevant in this application example. Table 5-2 Parameter List for Heating a Liquid Set Value Enable Meaning The following errors trigger a diagnostic message: Parameters Group diagnosis • Short circuit .

0 M10. To do this.2PULSE Programming/Flow Diagram Below you will find a section from a STEP 7 STL program. memory marker M30. This part of the program starts the heating process. STL Block: L T L T L T L T A = L T PIB256 MB20 MW32 PQW256 10 PQB259 0 MB10 M30. Set up the output value in memory word MW32. The configured start address of the inputs and outputs of the 2PULSE is 256.0 must be set.0 MB10 PQB258 Description Read feedback messages from channel 0 of the 2PULSE Write output value to channel 0 of the 2PULSE Write period duration factor 10 y 0.1 to channel 0 of the 2PULSE Generate SW_ENABLE control signal Heating process starts Set SW_ENABLE=1 Write control signals to channel 0 of the 2PULSE Wiring/Terminal Assignment Diagram TM-E15S24-01 and 2PULSE Channel 0 Channel 1 DI 0 24 VDC 24 V control signal M Contactor DO 0 Figure 5-21 DI 1 24 VDC M DO 1 Terminal Assignment of the 2PULSE for the Heating of a Liquid 5-48 Technological Functions ET 200S A5E00124867-02 .

Pass on the manipulated variable calculated by the software closed-loop controller directly to the 2PULSE using your control program. Heat exchanger Solenoid valve 24 V control signal from the 2PULSE Figure 5-22 Using a Solenoid Valve to Control the Flow Technological Functions ET 200S A5E00124867-02 5-49 . If you detect a negative manipulated variable in your control program. You can monitor the temperature with your control program. Temperature control: To control the temperature of the medium. for example. Heating up a liquid with a heat exchanger: Basic actuators that only have two end settings (OPEN/CLOSED) create an almost continuous manipulated variable through the control of the 24 V control signal. use a temperature sensor evaluated by an analog module. You can use one of the software controllers of SIMATIC S7 to do this. the flow through a heat exchanger using a solenoid valve. pass on the value to the second channel of the 2PULSE. If you require separate actuators for heating and cooling. use a temperature sensor evaluated by an analog module. This will enable you to control.2PULSE Additional Applications Limit-value monitoring of the temperature: To monitor the limits of the temperature of the medium. use the second channel of the 2PULSE.

Locking mechanism 24 V control signal from the 2PULSE Compartmentalized conveyor Folding box Conveyor 1 Initiator 24 V enable signal to the 2PULSE Figure 5-23 Packing Piece Goods 5-50 ÇÇÇÇ ÇÇÇÇ ÇÇÇÇ ÇÇÇÇ ÇÇÇÇ ÇÇÇÇ ÇÇÇÇ Folding box Folding box Technological Functions ET 200S A5E00124867-02 . Counting begins from the start again when a new folding box passes the initiator. the folding box is moved on. The 2PULSE generates the 24 V control signal at its DO digital output with the number of pulses you have specified.3 Packing Piece Goods Description Packing is started as soon as a folding box from conveyor 1 is in the correct position. Each pulse corresponds to a complete movement of the pusher.4. The next movement of the pusher begins at the next pulse from the pulse train. when the compartmentalized conveyor is in operation. The 24 V control signal controls the pusher and.2PULSE 5. pushes the piece goods into the folding box. The number of items that have to be packed corresponds to the number of output pulses. After the piece goods have been packed.

Sequence Start of the packing process: To enable the start.2PULSE Requirements • Identical piece goods • Repetition rate depends on the conveyor • Constant speed of the compartmentalized conveyor during pulse output • The pulse duration and interpulse period must be longer than the response time of the pusher. The 2PULSE uses the 24 V enable signal (HW enable. 24 V enable signal (HW enable. DI digital input) to tell whether the folding box is correctly positioned and then starts the pusher. DI digital input) Software enable (SW_ENABLE) 24 V control signal (DO digital output) STS_ENABLE The folding box is in position. the pusher starts Preset number of goods packed Folding box is moved away Figure 5-24 Flow Diagram for the Packing of Piece Goods Technological Functions ET 200S A5E00124867-02 5-51 . The pulse duration and period duration of the output signal can be adjusted. the 2PULSE generates a specifiable number of pulses at the DO digital output to control the pusher. you can find out when the preset number of goods has been packed. Monitoring the packing process: The error detection/diagnostic function allows you to check in the program that the packing process is running correctly. In this mode. End of the packing process: By evaluating STS_ENABLE. Pulse Train Mode Use channel 0 of the 2PULSE in pulse train mode to pack piece goods. use the software enable (SW_ENABLE 0→1) in your control program.

The parameters for channel 1 are not relevant in this application example. DI function 0 On-delay HW enable 0 The pusher is controlled immediately with the software enable.digital output • Short circuit of the sensor supply • Parameter assignment error Diagnostics DO 0 On The 2PULSE detects the short circuit error at the DO 0 digital output. Behavior at CPU-Master-STOP Mode Time base Turn off DO 0 Pulse train 1 ms All the preset times are specified at a resolution of 1 ms. This results in an interpulse period of 500 ms.2PULSE 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 Set Value Enable Meaning The following errors trigger a diagnostic message: Parameters Group diagnosis • Short circuit . Minimum pulse duration Period duration 500 1000 The additional parameters of channel 0 of the 2PULSE have no effect on pulse train mode. This is 500 s in the selected time base This is 1 s in the selected time base. 5-52 Technological Functions ET 200S A5E00124867-02 .

1 to channel 0 of the 2PULSE Generate SW_ENABLE control signal Enable the packing process Set SW_ENABLE=1 Write control signals to channel 0 of the 2PULSE Wiring/Terminal Assignment Diagram TM-E15S24-01 and 2PULSE Channel 0 Channel 1 24 V enable signal DI 0 Initiator 24 V control signal M Locking mechanism DO 0 Figure 5-25 DO 1 M 24 VDC DI 1 24 VDC Terminal Assignment of the 2PULSE for the Packing of Piece Goods Technological Functions ET 200S A5E00124867-02 5-53 . STL Block: L T L T L T L T A = L T PIB256 MB20 5 PQW256 10 PQB259 0 MB10 M30.0 M10. memory marker M30. The configured start address of the inputs and outputs of the 2PULSE is 256. The HW enable then starts the pulse train.0 MB10 PQB258 Description Read the feedback messages from channel 0 of the 2PULSE Write the number of pieces (5) to channel 0 of the 2PULSE Write period duration factor 10 y 0. To do this.2PULSE Programming/Flow Diagram Below you will find a section from a STEP7 STL program. You use this part of the program to start the packing process (5 pieces).0 must be set.

The conveyor belt moves at a constant speed.4 Applying a Protective Layer Description Metal parts are to be covered with a wax layer. The 2PULSE receives a 24 V enable signal from the initiator. the valve is opened.4. To ensure that the wax hits the metal at the optimum time. The distance the item and the wax have to cover is proportional to the time.2PULSE 5. The valve remains open while the Initiator sends the 24 V enable signal to the 2PULSE. As soon as a metal part passes the initiator. a corresponding on/off-delay is required. Pump 24 V control signal from the 2PULSE Valve Initiator Figure 5-26 Applying a Protective Layer 5-54 ÏÏÏÏ ÏÏÏÏ ÏÏÏÏ 24 V enable signal to the 2PULSE Technological Functions ET 200S A5E00124867-02 ÏÏÏÏ ÏÏÏÏ ÏÏÏÏ . The 2PULSE then generates a 24 V control signal at its digital output that opens the valve.

• The minimum pulse duration must be longer than the on/off times specified by the manufacturer. (The distance is proportional to the time. The 2PULSE uses the 24 V enable signal (DI digital input) to check whether a metal object is positioned at the initiator.2PULSE Requirements • The item is moved at a constant and quantifiable speed.) • The valve only has the two positions OPEN and CLOSED. This 24 V control signal is switched on and off with the 24 V enable signal. End of the process: You can tell on the program by evaluating the STS_DO (status of the 24 V control signal) when the process has ended. use the software enable (SW_ENABLE) on your control program. The valve is opened on expiration of the on-delay. Monitoring the process: The error detection/diagnostic function allows you to check by means of a program that the valve is being controlled correctly. the valve is closed after the off-delay has expired. If the metal object goes past the initiator. Sequence Start of the process: To start the process. the 2PULSE generates a 24 V control signal at its DO digital output to control the valve. On/Off-Delay Mode Use channel 0 of the 2PULSE in on/off-delay mode to control the valve. Software enable (SW_ENABLE) 24 V enable signal (DI digital input) 24 V control signal (DO digital output) STS_ENABLE Metal object at the initiator Valve open Metal object past the initiator Close valve Figure 5-27 Flow Diagram for Applying a Protective Layer Technological Functions ET 200S A5E00124867-02 5-55 . In this mode.

digital output • Short circuit of the sensor supply • Parameter assignment error Diagnostics DO 0 On The 2PULSE detects the short circuit error at the DO 0 digital output. 5-56 Technological Functions ET 200S A5E00124867-02 .2PULSE Parameters The following parameters are required for channel 0 of the 2PULSE to apply a protective layer in on/off-delay mode. The parameters for channel 1 are not relevant in this application example. Table 5-4 Parameter List for Applying a Protective Layer Set Value Enable Meaning The following errors trigger a diagnostic message: Parameters Group diagnosis • Short circuit . On-delay 500 The additional parameters of channel 0 of the 2PULSE have no effect on on/off-delay mode. Behavior at CPU-Master-STOP Mode Time base Turn off DO On/off-delay 1 ms All the preset times are specified at a resolution of 1 ms. The valve is switched on after an on-delay of 500 ms.

0 MB10 PQB258 Description Read the feedback messages from channel 0 of the 2PULSE Write off-delay to channel 0 of the 2PULSE Write on-delay factor 10 y 0. The configured start address of the inputs and outputs of the 2PULSE is 256. To do this. You use this part of the program to start the process.1 to channel 0 of the 2PULSE Generate SW_ENABLE control signal Heating process starts Set SW_ENABLE=1 Write control signals to channel 0 of the 2PULSE Wiring/Terminal Assignment Diagram TM-E15S24-01 and 2PULSE Channel 0 24 V enable signal DI 0 Initiator 24 VDC 24 V control signal M Valve DO 0 Figure 5-28 DO 1 M 24 VDC DI 1 Channel 1 Terminal Assignment of the 2PULSE for Applying a Protective Layer Technological Functions ET 200S A5E00124867-02 5-57 . memory marker M30.0 M10.2PULSE Programming/Flow Diagram Below you will find a section from a STEP7 STL program. Set up the off-delay in memory word MW32.0 must be set. STL Block: L T L T L T L T A = L T PIB256 MB20 MW32 PQW256 10 PQB259 0 MB10 M30.

60 VAC 500 VDC L+ -0. 100 m Dimensions W x H x D (mm) Weight Number of Channels Rated load voltage L+ (from the power module) • Permitted residual current Shielded cable length Output voltage Data for the Digital Outputs Voltage. 30V –30V .5 mA 200 ms ± (Pulse duration × 100 ppm) ±100 ms 3) • Between the channels • Between the channels and backplane bus Permissible potential difference No Yes • With signal “0” (leakage current) Minimum pulse duration Accuracy • Between different circuits Insulation tested with Sensor supply 75 VDC. Potentials • With signal “1” Output current Minimum L+ – 1 V • Reverse polarity protection Galvanic isolation • With signal “1” Rated value Permitted Range 2 A 2) 7 mA.2PULSE 5..8V Maximum 500 mA. Currents..5 Technical Specifications for the Hardware and Terminal Assignment Dimensions and Weight 15 81 52 Approximately 40 g Data for Specific Modules 2 24 VDC Yes 1) Connection of 2-wire BEROs Possible ≤ 2 mA Max.. Part 2. Type 2 • Response threshold Cable lengths • With signal “1” Minimum pulse duration/interpulse period Maximum response time Input characteristic • Unshielded • Shielded 5-58 Technological Functions ET 200S A5E00124867-02 .. 5V 9 mA (typically) 25 ms 100 ms To IEC 1131... short-circuit proof Output delay (with resistive load) • Output voltage • Output current Current input • At “0” to “1” • At “1” to “0” Lamp load Control of a digital input Switching frequency Maximum 100 ms Maximum 200 ms Maximum 10 W Yes 2.2 A Maximum 0.5 kHz p2 Hz p10 Hz L+ –(50 V .. 65 V) • From the backplane bus Maximum 10 mA • From load voltage L+ Maximum 40 mA (no load) Power dissipation of the 2PULSE Input voltage Typically 1.8 W • With resistive load • With inductive load • With lamp load Limitation (internal) of the inductive circuit interruption voltage Short-circuit protection for output Data for the Digital Inputs • Rated value • With signal “1” • With signal “0” Input current Yes Typically 10 A 600 m 1000 m 24 VDC 11V ..

DO 0. Diagnostics Status indicators Diagnostic functions Green LED for DI 0.67 ms Current [A] 1.2PULSE Status. DO 1 Red “SF” LED Yes 1.5 1 kHz / 1ms 1 0. 2. Interrupts. 2) See the figures below 3) With a load of ≤ 50 Ω The figures below show you the output current in relation to the ambient temperature and the frequency.Both Channels PWM 50/50 Technological Functions ET 200S A5E00124867-02 5-59 .6 kHz/1.5 2 0.2 ms • Group error • Diagnostic information readable Update rate for feedback messages 1) Polarity reversal can lead to the digital outputs being switched through. DI 1.5 kHz/400µs 0 40 50 Ambient temperature [°C] 60 Figure 5-29 Resistive Load .5 2.

5 1 2.5 0 40 50 Ambient temperature [°C] 60 Figure 5-30 Resistive Load .5 2 1.5 kHz/666µs Current [A] 1.2PULSE 2.Only Channel 0 PWM 50/50 5-60 Technological Functions ET 200S A5E00124867-02 .5 kHz/400µs 0.

To do this use the shield contact (see the ET 200S Distributed I/O System manual..4 Channel 1: Terminal 5. The shield must be supported at both ends..8 24 VDC: Sensor supply M: TM-E15S24-01 and 2PULSE Channel 0 Channel 1 DI: Chassis ground Input signal (Maximum 2 A per channel) DO: Output signal DI 0 24 VDC M DO 0 DI 1 24 VDC M DO 1 Wiring Rules The cables (terminals 1 and 2 and terminals 5 and 6) must be shielded.2PULSE Terminal Assignment The following table shows the terminal assignment for the 2PULSE. ET 200S Accessories). Technological Functions ET 200S A5E00124867-02 5-61 ... View Terminal Assignment Meaning Channel 0: Terminal 1. Appendix A.

2PULSE 5.6 Technical Specifications for Programming. Reference Lists Assignment of the Control Interface Address Channel 0 Word 0 Channel 1 Word 4 Depending on the mode Assignment • • • • Byte 2 Byte 6 Pulse output: Pulse duration Pulse-width modulation: Output value Pulse train: Number of pulses On/off-delay: Off-delay Bit 7: Reserve = 0 Bit 6: Reserve = 0 Bit 5: Reserve = 0 Bit 4: Reserve = 0 Bit 3: Reserve = 0 Bit 2: SET_DO Bit 1: MANUAL_DO Bit 0: SW_ENABLE Byte 3 Byte 7 Depending on the mode • • • • Pulse output: On-delay factor Pulse-width modulation: Period duration factor Pulse train: Period duration factor On/off-delay: On-delay factor Assignment of the Feedback Interface Address Channel 0 Byte 0 Channel 1 Byte 4 Bit 7: ERR_24V Bit 6: ERR_DO Bit 5: ERR_PARA Bit 4: ERR_PULS Bit 3: ACK_SW_ENABLE Bit 2: STS_DI Bit 1: STS_DO Bit 0: STS_ENABLE Assignment 5-62 Technological Functions ET 200S A5E00124867-02 .

You can change the parameterized on-delay before the start of the output sequence: On-delay = factor × 0.2PULSE Notes on the Control Signals Control Signal Pulse output mode: Notes The time that is set for the DO digital output on expiration of the on-delay.1 × parameterized period duration On/off-delay mode • Off-delay • On-delay factor The time between a negative edge at the DI digital input and its output at the DO digital output. the output sequence will be started by the positive edge of the software enable.1 × parameterized on-delay Pulse-width modulation mode • Pulse duration • On-delay factor • Output value • Period duration factor Pulse train mode Value that is output with pulse-width modulation at the DO digital output on expiration of the on-delay.1 × parameterized period duration • Number of pulses • Period duration factor Number of pulses that are output at the DO digital output on expiration of the on-delay. Technological Functions ET 200S A5E00124867-02 5-63 . the current output sequence will be terminated. You use the control bit to set the status of the DO digital output. Change the parameterized period duration: Period duration = factor × 0. If you don’t use a HW enable. You can change the parameterized on-delay before the start of the output sequence: On-delay = factor × 0. If you delete the software enable.1 × parameterized on-delay Direct control of the digital output • MANUAL_DO • SET_DO Software enable (SW_ENABLE) You use the control bit to select and deselect the function for directly controlling the digital output. You can change the parameterized period duration before the start of the output sequence: Period duration = factor × 0. You must always issue the software enable in your control program.

Indicates a parameterization error. Pulse output mode: Is set at the start of the output sequence until the pulse duration expires. STS_ENABLE is deleted. If you delete the software enable (SW_ENABLE) or the 2PULSE detects a pulse output error (ERR_PULS). The 2PULSE deletes the ERR_PULS feedback bit at the next positive edge of the software enable or at the next edge at the DI digital input. Indicates a short circuit of the sensor supply. STS_ENABLE is deleted. on expiration of the on-delay. The next time the output sequence starts. Pulse output mode: Indicates a pulse output error. Pulse train mode: Indicates a pulse output error. Indicates the signal level at the DO digital output. On/off-delay mode: Indicates the status of the software enable (SW_ENABLE) detected by the 2PULSE. Pulse train mode: Is set at the start of the output sequence until the output of the last pulse. the 2PULSE deletes the ERR_PULS feedback bit. this is detected by the 2PULSE. If you delete the software enable (SW_ENABLE). STS_ DI STS_DO STS_ENABLE Indicates the signal level at the DI digital input. If. this is detected by the 2PULSE. you reduce the pulse duration so much that the time is shorter than the time already output. you reduce the number of pulses and this lower number of pulses has already been output. Pulse-width modulation (PWM) mode Is set at the start of the output sequence. 5-64 Technological Functions ET 200S A5E00124867-02 . STS_ENABLE is deleted. you must switch on DO diagnostics. the 2PULSE deletes the ERR_PULS feedback bit. Indicates a short circuit at the digital output.2PULSE Notes on the Feedback Bits Feedback Bits ACK_SW_ENABLE ERR_24V ERR_DO ERR_PARA ERR_PULS Notes Indicates the status of the software enable pending at the 2PULSE. On/off-delay mode: Indicates a pulse output error if the pulse duration or interpulse period is too short. If. To do this. The next time the output sequence starts. If you delete the software enable (SW_ENABLE) or the 2PULSE detects a pulse output error (ERR_PULS). on expiration of the on-delay.

for example) Configuration with STEP 7 Using HWCONFIG Load instruction (L PEW.65535 1 .1 ms Input 0 0 20000 Technological Functions ET 200S A5E00124867-02 5-65 .65535 0 .1 ms/1 ms Input/HW enable 0 .1 ms/1 ms Input/HW enable 0 . for example) Transfer instruction (T PQW.65535 1 .65535 Off 0 Pulse output PWM output format Time base DI function On-delay Minimum/pulse duration Period duration Per mill 0. for example) Parameter List Parameters Group diagnosis Behavior at CPU-master STOP Value Range Disable/enable Turn off DO/ Continue working mode/ DO substitute a value/ DO keep last value Disable Turn off DO Default Channel 0 Diagnostics DO Substitute value DO Mode Off/on 0/1 Pulse output/ Pulse-width modulation (PWM)/ Pulse train/ On/off-delay Per mill/S7 analog output module 0. for example) Transfer instruction (T PQW.1 ms Input 0 0 20000 Off/on 0/1 Pulse output/ Pulse-width modulation (PWM)/ Pulse train/ On/off-delay Per mill/S7 analog output module 0.65535 Off 0 Pulse output PWM output format Time base DI function On-delay Minimum/pulse duration Period duration Channel 1 Diagnostics DO Substitute value DO Mode Per mill 0.65535 0 .2PULSE Access to the Control and Feedback Interfaces in STEP 7 Programming Configuration with STEP 7 Using the DDB File Feedback interface Control interface Load instruction (L PEW.

2PULSE 5-66 Technological Functions ET 200S A5E00124867-02 .

3-37 feedback interface. 5-21 PWM. 4-12 synchronous. 4-13 technical specifications. 4-11 encoder types. 2-47. 3-74 terminal assignment diagram. 2-7 1Count5V/500kHz clocked mode. 4-9 in standard mode. 2-35. 3-3 1SSI. 2-19. 5-3 G Gate functions in count modes. 2-57. 2-45 modes. 3-41. 4-8 2PULSE application examples. 4-3 Comparison setting. 4-23. 2-35. 3-8 technical specifications. 3-49 B Brief instructions on commissioning 1Count24V/100kHz. 2-39. 4-26 Feedback interfaces. 3-63. 4-4 2PULSE. standard mode. 5-40 on/off-delay. 2-61. 5-44. 4-15 Control and feedback interface. 4-23 Frequency measurement.Index Numbers 1Count24V/100kHz clocked mode. 2-35. 2-53. 5-62 Count and direction evaluation. 5-61 C Clocked mode 1Count24V/100kHz. 4-2 in fast mode. 3-3 count modes. 3-11 F Feedback interface. 4-9 parameters. 5-27 pulse output. 4-27 terminal assignment diagram. 3-19 in measurement modes. 2-73 terminal assignment diagram. 2-57. 2-3 count modes. 3-37 D Direction detection. accessing with STEP7 programming. 2-9 measurement modes. 2-11. 4-12 Endless counting. 4-12 free-running. 5-8 pulse train. 4-14 E Encoder value detection clocked. 4-21 standardization. 2-3 1Count5V/500kHz. 3-70 Count modes control interface. 2-35. 3-9 measurement modes. 5-13 technical specifications. 4-25 Control interface. 2-8 technical specifications. 2-4 1Count5V/500kHz. 3-56 Technological Functions ET 200S A5E00124867-02 Index-1 . 3-47 modes. 2-68. 4-3 detection of encoder value. 3-4 1SSI. 3-7 1SSI clocked mode. 5-62 fast mode. 5-58 terminal assignment.

3-13 Output assignment. 2-66 for count modes. 3-68 Index-2 Technological Functions ET 200S A5E00124867-02 .Index I Input assignment. 2-57. 3-60 feedback interface. 5-58 O Once-only counting. 3-74 1SSI. 2-13. 2-51. 3-45 for measurement modes. 2-73 1Count5V/500kHz. 2-16. 4-26 P Parameters 1Count24V/100kHz count modes. 2-57. 3-51 M Measurement modes control interface. 3-60 T Technical specifications 1Count24V/100kHz. 4-27 2PULSE. 3-16 L Latch function. 4-17 R Reversal of the direction of rotation. 2-43 1Count24V/100kHz measurement modes. 4-14 Rotational speed measurement. 3-54 Periodic counting. 4-24. 2-49. 4-23 Period measurement.