Et200s Technological Functions Operating Instructions en en-US
Et200s Technological Functions Operating Instructions en en-US
2
______________
1Count24V/100kHz
3
SIMATIC ______________
1Count5V/500kHz
4
ET 200S ______________
1SSI
Technological Functions 5
______________
2PULSE
Operating Instructions
04/2008
A5E00124867-06
Safety Guidelines
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
WARNING
This device 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. Correct, reliable operation of the product requires proper transport, storage,
positioning and assembly as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 3
Table of contents
Technological Functions
4 Operating Instructions, 04/2008, A5E00124867-06
Table of contents
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 5
Table of contents
5 2PULSE................................................................................................................................................. 275
5.1 Product Overview...................................................................................................................... 275
5.2 Example: Starting 2PULSE ....................................................................................................... 277
5.3 Modes and Functions................................................................................................................ 280
5.3.1 Overview ................................................................................................................................... 280
5.3.2 Pulse Output Mode ................................................................................................................... 282
5.3.3 Pulse-Width Modulation Mode (PWM)...................................................................................... 287
5.3.4 Pulse Train Mode ...................................................................................................................... 294
5.3.5 On/Off-Delay Mode ................................................................................................................... 300
5.3.6 Function: Direct Control of the DO Digital Output..................................................................... 307
5.3.7 Function: Error Detection/Diagnostics ...................................................................................... 308
5.3.8 Behavior at CPU-Master-STOP ................................................................................................ 310
5.4 Application Examples................................................................................................................ 311
5.4.1 Overview ................................................................................................................................... 311
5.4.2 Example: Filling Liquids ............................................................................................................ 312
5.4.3 Example: Heating a Liquid ........................................................................................................ 316
5.4.4 Example: Packing Piece Goods................................................................................................ 321
5.4.5 Example: Applying a Protective Layer ...................................................................................... 326
5.5 Technical Specifications of the 2PULSE, Terminal Assignment............................................... 330
5.6 Technical Specifications for Programming, Reference Lists .................................................... 334
Index...................................................................................................................................................... 339
Technological Functions
6 Operating Instructions, 04/2008, A5E00124867-06
Table of contents
Tables
Table 2-1 Terminal Assignment of the 1Count24V/100kHz.........................................................................23
Table 2-2 RESET States ..............................................................................................................................27
Table 2-3 Feedback Interface (Inputs) .........................................................................................................55
Table 2-4 Control Interface (Outputs) ..........................................................................................................56
Table 2-5 Notes on the Control Bits .............................................................................................................57
Table 2-6 Notes on the Feedback Bits.........................................................................................................58
Table 2-7 Access to the Control and Feedback Interface in STEP 7 Programming....................................59
Table 2-8 Parameter List for Counting Modes .............................................................................................62
Table 2-9 Calculating the Integration Time ..................................................................................................69
Table 2-10 Calculation of the Update Time....................................................................................................71
Table 2-11 Calculation of the Integration Time ..............................................................................................73
Table 2-12 Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder
Revolution = 60)...........................................................................................................................74
Table 2-13 Calculation of the Update Time....................................................................................................75
Table 2-14 Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder
Revolution = 60)...........................................................................................................................76
Table 2-15 Calculation of the Integration Time ..............................................................................................78
Table 2-16 Calculation of the Update Time....................................................................................................80
Table 2-17 Feedback Interface (Inputs) .........................................................................................................86
Table 2-18 Control Interface (Outputs) ..........................................................................................................87
Table 2-19 Notes on the Control Bits .............................................................................................................88
Table 2-20 Notes on the Feedback Bits.........................................................................................................89
Table 2-21 Access to the Control and Feedback Interface in STEP 7 Programming....................................90
Table 2-22 Parameter List for Measuring Modes...........................................................................................93
Table 2-23 RESET States ............................................................................................................................101
Table 2-24 Feedback Interface (Inputs) .......................................................................................................112
Table 2-25 Control Interface (Outputs) ........................................................................................................113
Table 2-26 Notes on the Control Bits ...........................................................................................................114
Table 2-27 Notes on the Feedback Bits.......................................................................................................114
Table 2-28 Access to the Control and Feedback Interface in STEP 7 Programming..................................115
Table 2-29 Parameter List for Position Feedback........................................................................................118
Table 3-1 Terminal Assignment of the 1Count5V/500kHz.........................................................................137
Table 3-2 RESET States ............................................................................................................................141
Table 3-3 Valid Range for the Two Comparison Values............................................................................167
Table 3-4 Feedback Interface (Inputs) .......................................................................................................168
Table 3-5 Control Interface (Outputs) ........................................................................................................169
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 7
Table of contents
Technological Functions
8 Operating Instructions, 04/2008, A5E00124867-06
Table of contents
Figures
Figure 2-1 Terminal Assignment for the Example.........................................................................................19
Figure 2-2 Count Continuously with Gate Function ......................................................................................28
Figure 2-3 Count Once Without Main Count Direction; Canceling Gate Function ........................................31
Figure 2-4 Count Once with Up as the Main Count Direction .......................................................................31
Figure 2-5 Periodic Counting without a Main Count Direction ......................................................................34
Figure 2-6 Periodic Counting with Up as the Main Count Direction..............................................................34
Figure 2-7 Count Continuously, Up, Interrupting Gate Function ...................................................................38
Figure 2-8 Count Continuously, Down, Canceling Gate Function ................................................................38
Figure 2-9 Latch and Retrigger with Load Value = 0.....................................................................................40
Figure 2-10 Latch with a Load Value of 0........................................................................................................42
Figure 2-11 Once-Only and Periodic Synchronization ....................................................................................44
Figure 2-12 V2 < V1 at the Start of Counting ..................................................................................................49
Figure 2-13 V2 > V1 at the Start of Counting ..................................................................................................49
Figure 2-14 Example of How Hysteresis Works..............................................................................................50
Figure 2-15 Example of How Hysteresis Works..............................................................................................51
Figure 2-16 Example of How Hysteresis Works..............................................................................................52
Figure 2-17 Resetting of the Status Bits..........................................................................................................59
Figure 2-18 Acceptance of Values with the Load Function.............................................................................60
Figure 2-19 Acknowledgment Principle in Isochrone Mode ............................................................................61
Figure 2-20 Error Acknowledgment.................................................................................................................61
Figure 2-21 Measuring Principle .....................................................................................................................66
Figure 2-22 Principle of Continuous Measurement (Frequency Measurement Example) ..............................67
Figure 2-23 Frequency Measurement with Gate Function..............................................................................69
Figure 2-24 Frequency Measurement with Gate Function..............................................................................71
Figure 2-25 Rotational Speed Measurement with Gate Function ...................................................................73
Figure 2-26 Rotational Speed Measurement with Gate Function ...................................................................75
Figure 2-27 Period Measurement with Gate Function ....................................................................................78
Figure 2-28 Period Measurement with Gate Function ....................................................................................80
Figure 2-29 Limit-Value Monitoring .................................................................................................................85
Figure 2-30 Resetting of the Status Bits..........................................................................................................90
Figure 2-31 Acceptance of Values with the Load Function.............................................................................91
Figure 2-32 Acknowledgment Principle in Isochrone Mode ............................................................................92
Figure 2-33 Error Acknowledgment.................................................................................................................92
Figure 2-34 Count Continuously with Gate Function ....................................................................................103
Figure 2-35 Position Detection, Up, Interrupting Gate Function ...................................................................105
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 9
Table of contents
Technological Functions
10 Operating Instructions, 04/2008, A5E00124867-06
Table of contents
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 11
Table of contents
Technological Functions
12 Operating Instructions, 04/2008, A5E00124867-06
Preface 1
How this Manual Is Structured...
This manual is a supplement to the ET 200S Distributed I/O System manual. This manual is
part of the documentation package 6ES7 151-1AA10-8AA0.
It contains descriptions of the ET-200S modules that are particularly suited for use in certain
processes.
Index
The index contains keywords that come up in the manual.
Additional Support
Please talk to your Siemens contact at one of our agencies or local offices if you have any
questions about the products described here and do not find the answers in this manual.
You will find information on who to contact at:
http://www.siemens.com/automation/partner
A guide to the technical documentation for the various SIMATIC products and systems is
available at:
http://www.siemens.de/simatic-tech-doku-portal
The online catalog and ordering system are available at:
http://mall.ad.siemens.com
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 13
Preface
Training Center
We offer various courses for newcomers to the SIMATIC S7 automation system. Please
contact your regional training center or the central training center in
D90327 Nuremberg.
Phone: +49 (911) 895-3200
Internet: http://www.sitrain.com
Technical Support
You will find technical support for all A&D products
● By filling out a Support Request at:
http://www.siemens.de/automation/support-request
● Phone: + 49 180 5050 222
● Fax:+ 49 180 5050 223
For additional information about our technical support, refer to the Internet at
http://www.siemens.com/automation/service.
Technological Functions
14 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz 2
2.1 Product Overview
Order Number
6ES7 138-4DA04-0AB0
Compatibility
The 1Count24V/100kHz with the order number 6ES7 138-4DA04-0AB0 replaces the
1Count24V/100kHz with the order number 6ES7 138-4DA03-0AB0 with full compatibility. In
STEP 7 version V5.3 SP2 and later, you can use it in non-isochronous and isochronous
modes.
Features
● Connection of a pulse generator to count 24 V signals up to a frequency of 100 kHz.
● Can be operated using terminal modules TM-E15S24-01 and TM-E15S26-A1
● Isochronous mode
● Modified user data interface 1
1 Insteadof 8 bytes of input data and 8 bytes of output data, 12 bytes of input data and
6 bytes of output data are used, provided the IM 151 supports this.
The following IM 151 modules support this function:
– IM151-1/Standard order no. 6ES7 151-1AA04-0AB0 and higher
– IM151-1/HF order no. 6ES7 151-1BA01-0AB0 and higher
● Modes of the 1Count24V/100kHz:
Counting modes:
– Count continuously
– Count once
– Count periodically
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 15
1Count24V/100kHz
2.1 Product Overview
Measuring modes:
– Frequency measurement
– Rotational speed measurement
– Period measurement
Position feedback:
– Position detection
– Fast mode
● Gate control, synchronization or latch function via digital input (P or M switch)
● One real digital output for direct control or output of the comparison result
● One virtual digital output
● Firmware update1
● Identification data 1
1 The following IM 151 modules support this function: IM 151-1 Standard:
6ES7151-1AA04-0AB0 and later and IM 151-1 High Feature: 6ES7151-1BA01-0AB0 and
later
Configuration
You can use either of the following to configure the 1Count24V/100kHz:
● STEP 7 V5.3 SP2 or higher
● HSP hardware support package (available online) as of STEP 7 V5.2 SP1
Technological Functions
16 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.1 Product Overview
Firmware Update
To add functions and for troubleshooting, it is possible to load firmware updates to the
operating system memory of the 1Count24V/100kHz using STEP 7 HW Config.
Note
When you launch the firmware update, the old firmware is deleted. If the firmware update is
interrupted or canceled for any reason, the 1Count24V/100kHz will no longer function
correctly as a result. Re-launch the firmware update and wait until this has completed
successfully.
Identification Data 1
● Hardware release status
● Firmware release status
● Serial number
1 See also ET 200S Distributed I/O System Manual, section: Identification Data
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 17
1Count24V/100kHz
2.2 Clocked Mode
Note
The principles of isochrone mode are described in a separate manual.
See Isochrone Mode Function Manual (A5E00223279).
Hardware Requirements
You will require the following for the 1Count24V/100kHz in isochrone mode:
● A CPU that supports isochrone mode
● A master or PROFINET master that supports the equidistant bus cycle
● An IM 151 that supports isochrone mode
Features
Depending on the system parameter assignment, the 1Count24V/100kHz works either in
non-isochrone or isochrone mode.
In isochrone mode, data exchange between the bus master and 1Count24V/100kHz is
isochronous to the cycle.
In isochrone mode, all 8 bytes/12 bytes of the user data interface are consistent.
If an error occurs during parameter assignment, the 1Count24V/100kHz does not go into
isochrone mode.
If isochrone mode fails due to faults or failure/delay of global control (GC), the
1Count24V/100kHz will return to isochrone mode during the next cycle without an error
response.
If isochrone mode fails, the user data interface is not updated.
The Ti/To overlap is supported by the module in firmware version V1.0.1 and later.
Technological Functions
18 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.3 Example: Start 1Count24V/100kHz
Introduction
These instructions guide you to a functioning application that will enable you to count the
switching operations of a contact and become familiar with and check the basic hardware
and software functions of the 1Count24/100kHz. The counting mode used in this example is
"Count continuously".
Requirements
The following requirements must be satisfied:
● You have commissioned an ET 200S station on an S7 station with a master.
● You must have the following:
– A TM-E15S24-01 terminal module
– A 1Count24V/100kHz
– A momentary contact switch and the necessary wiring material
&RXQW
9N+]
6)
83 '1
(6
'$$%
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 19
1Count24V/100kHz
2.3 Example: Start 1Count24V/100kHz
Technological Functions
20 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.3 Example: Start 1Count24V/100kHz
STL Description
Block: FC101
Network 1: Presettings
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 21
1Count24V/100kHz
2.3 Example: Start 1Count24V/100kHz
Testing
Use "Monitor/Modify Variables" to monitor the count value and the gate.
1. Select the "Block" folder in your project. Choose the "Insert > S7 Block > Variable Table"
menu command to insert the VAT 1 variable table, and then confirm with "OK".
2. Open the VAT 1 variable table, and enter the following variables in the "Address" column:
DB1.DBD8 (current count value)
DB1.DBx13.0 (internal gate status)
3. Choose "PLC > Connect To > Configured CPU" to switch to online.
4. Choose "Variable > Monitor" to switch to monitoring.
5. Switch the CPU to RUN mode.
The "internal gate status" bit must be set.
6. Use your counting contact to generate pulses.
Result
You can now see that:
● The UP LED on the 1Count24V/100kHz is on. The status of the UP LED changes with
each new pulse.
● The count value in the block changes.
Technological Functions
22 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.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).
70(6DQG
DO1: Digital output
&RXQW9N+]
83 '1
(6
'$$%
% $
9'& 9'&
0 0
'2 ',
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 23
1Count24V/100kHz
2.5 Settings modes of the 1Count24V/100kHz
Introduction
To begin with, decide how you want to use the 1Count24V/100kHz. You can choose
between the following modes:
Technological Functions
24 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.5 Settings modes of the 1Count24V/100kHz
Note
Fast mode is designed for use in especially short isochronous cycles. You need STEP 7 to
configure isochronous operation.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 25
1Count24V/100kHz
2.6 Count Modes
2.6.1 Overview
Principle
The counting modes are used in counting applications (for counting of items, for example).
For the "Counting modes" parameter, you can select from the following modes:
● Count continuously (for position detection with incremental encoders, for example)
● Count once (for counting items up to a maximum limit, for example)
● Count periodically (in applications with recurring counting operations, for example)
To execute one of these modes, you have to assign parameters to the 1Count24V/100kHz.
Load Value
You can specify a load value for the 1Count24V/100kHz.
This load value is either applied directly as the new count value (LOAD_VAL) or it is applied
as the new count value when the following events occur (LOAD_PREPARE):
Gate Control
To control the 1Count24V/100kHz, you have to use the gate functions.
Technological Functions
26 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Isochrone Mode
In isochrone mode, the 1Count24V/100kHz accepts control bits and control values from the
control interface in each bus cycle and reports back the response in the same cycle.
In each cycle the 1Count24V/100kHz transfers the count and latch value that were valid at
time Ti and the status bits valid at time Ti.
A count controlled by hardware input signals can only be transferred in the same cycle if the
input signal occurred before time Ti.
(see Isochrone Mode Manual)
See also
Parameter Assignment for the Count Modes (Page 62)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 27
1Count24V/100kHz
2.6 Count Modes
Definition
In this mode, the 1Count24V/100kHz counts continuously starting from the load value:
● If the 1Count24V/100kHz reaches the high counting limit when counting up, and another
count pulse then comes, it will jump to the low counting limit and continue counting from
there without losing a pulse.
● If the 1Count24V/100kHz reaches the low counting limit when counting down, and
another count pulse then comes, it will jump to the high counting limit and continue
counting from there without losing a pulse.
● The high counting limit is set to +2147483647 (231 - 1).
● The low counting limit is set to -2147483648 (-231).
&RXQWHUVWDWXV
+LJKFRXQWLQJOLPLW
/RDGYDOXH
/RZFRXQWLQJOLPLW
Technological Functions
28 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
See also
Latch Function (Page 40)
Synchronization (Page 44)
Behavior Types of the Outputs in Count Modes (Page 46)
Assignment of the Feedback and Control Interface for the Count Modes (Page 54)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 29
1Count24V/100kHz
2.6 Count Modes
Definition
In this mode, the 1Count24V/100kHz counts once only, depending on the assigned main
count direction ("Main Count Direction" parameter).
● When there is no main count direction:
– Counts starting from the load value.
– Counts up or down.
– The counting limits are fixed at the maximum count range.
– If the high or low counting limit is violated, the gate is closed automatically, and the
counter jumps to the respective counting limit.
● When the main count direction is up:
– Counts starting from the load value.
– Counts up or down.
– When the high counting limit is reached, the counter jumps to the load value and the
gate is closed.
– The high counting limit can be assigned, and the load value has RESET state = 0 and
can be changed.
● When the count direction is down:
– Counts starting from the load value.
– Counts up or down.
– When the low counting limit is reached, the 1Count24V/100kHz jumps to the load
value and the gate is closed.
– The low counting limit is fixed at 0, and the load value can be assigned (parameter:
high counting limit) and can be changed.
Technological Functions
30 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
&RXQWHUVWDWXV
8SSHU 676B2)/:
FRXQWOLPLW
/RDGYDOXH
676B1'
/RZHU 676B8)/:
FRXQWOLPLW
Figure 2-3 Count Once Without Main Count Direction; Canceling Gate Function
With an interrupting gate function, the 1Count24V/100kHz remains at the underflow when
the gate is started.
&RXQWHUVWDWXV
8SSHU 676B2)/:
FRXQWOLPLW
/RDGYDOXH
/RZHU
FRXQWOLPLW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 31
1Count24V/100kHz
2.6 Count Modes
See also
Latch Function (Page 40)
Synchronization (Page 44)
Behavior Types of the Outputs in Count Modes (Page 46)
Assignment of the Feedback and Control Interface for the Count Modes (Page 54)
Gate Functions in Count Modes (Page 37)
Technological Functions
32 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Definition
In this mode, the 1Count24V/100kHz counts periodically, depending on the main count
direction set.
● When there is no main count direction:
– Counts as of the load value.
– Counts up or down.
– The count limits are fixed at the maximum count range.
– In the event of an overflow or underflow at the respective count limit, 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.
– Counts up or down.
– The upper limit can be assigned parameters, and the load value has a RESET status
of 0 and can be changed.
– When the upper count limit is reached, the 1Count24V/100kHz jumps to the load value
and continues counting from there.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 33
1Count24V/100kHz
2.6 Count Modes
&RXQW
+LJKFRXQWLQJ 676B2)/:
OLPLW
/RDGYDOXH
676B1'
/RZFRXQWLQJ
676B8)/:
OLPLW
*DWHVWDUW *DWHVWRS 7LPH
&RXQW
+LJK
676B2)/:
FRXQWLQJOLPLW
/RDGYDOXH
/RZ
FRXQWLQJOLPLW
Technological Functions
34 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
See also
Latch Function (Page 40)
Synchronization (Page 44)
Behavior Types of the Outputs in Count Modes (Page 46)
Assignment of the Feedback and Control Interface for the Count Modes (Page 54)
Gate Functions in Count Modes (Page 37)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 35
1Count24V/100kHz
2.6 Count Modes
Note
If you have selected the 24V M switch setting for the "Sensor A, B, DI" parameter, you must
use M-switching sensors.
The level of the digital input can be inverted by assigning parameters (exception: inverting is
not possible in the latch function).
To filter the input signal, you can switch on a filter depending on the minimum pulse duration
or the maximum signal frequency (parameter: sensor and input filter).
The STS_DI feedback bit indicates the level of the digital input.
Technological Functions
36 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Internal gate
The internal gate is the logical AND operation of the HW gate and SW gate. Counting is only
active when the HW gate and the SW gate are open. The STS_GATE feedback bit (internal
gate status) indicates this. If a HW gate has not been assigned, the setting of the SW gate is
decisive. Counting is activated, interrupted, continued, and canceled by means of the
internal gate. In the Count once counting mode, the internal gate is closed automatically
when there is an overflow/underflow at the counting limits.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 37
1Count24V/100kHz
2.6 Count Modes
&RXQW
+LJKFRXQWLQJOLPLW
/RDGYDOXH
/RZFRXQWLQJOLPLW
&RXQWHUVWDWXV
8SSHUFRXQWOLPLW
/RDGYDOXH
/RZHUFRXQWOLPLW
Technological Functions
38 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 39
1Count24V/100kHz
2.6 Count Modes
Introduction
There are two latch functions:
● The Latch and Retrigger function
● The Latch function
Requirement
In order to use this function, you must first select it with the "Latch and Retrigger on Positive
Edge" parameter from the possible functions of the digital input.
Description
&RXQWSXOVHV
6:B*$7(
',GLJLWDOLQSXW
&RXQWHUVWDWXV
/DWFKYDOXH
This function stores the current internal count of the 1Count24V/100kHz and retriggers
counting when there is a positive edge on the digital input. This means that the current
internal count at the time of the positive edge is stored (latch value), and the
1Count24V/100kHz is then loaded again with the load value, from which counting resumes.
The counting mode must be enabled with the SW gate before the function can be executed.
It is started with the first positive edge on the digital input.
The stored count rather than the current count is indicated in the feedback interface. The
STS_DI bit indicates the status of the latch and retrigger signal.
Technological Functions
40 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
The latch value is preassigned with its RESET state. It is not changed when the SW gate is
opened.
Direct loading of the counter does not cause the indicated stored count to be changed.
If you close the SW gate, counting is only interrupted; this means that when you open the
SW gate again, counting is continued. The digital input DI remains active even when the SW
gate is closed.
Counting is also latched and triggered in isochrone mode with each edge on the digital input.
The count that was valid at the time of the last edge before Ti is displayed in the feedback
interface.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 41
1Count24V/100kHz
2.6 Count Modes
Requirement
In order to use this function, the Function DI parameter must be set to "Latch on Positive
Edge".
Description
&RXQWSXOVHV
6:B*$7(
',GLJLWDOLQSXW
&RXQWHUVWDWXV
/DWFKYDOXH
Count and latch value are preassigned with their RESET states.
The counting function is started when the SW gate is opened. The 1Count24V/100kHz
begins at the load value.
The latch value is always the exact count at the time of the positive edge on the digital input
DI.
The stored count rather than the current count is indicated in the feedback interface. The
STS_DI bit indicates the level of the latch signal.
Direct loading of the counter does not cause the indicated stored count to be changed.
In isochrone mode, the count that was latched at the time of the last positive edge before Ti
is displayed in the feedback interface.
When you close the SW gate, the effect is either canceling or interrupting, depending on the
parameter assignment. The digital input DI remains active even when the SW gate is closed.
Further possible causes of parameter assignment errors with the latch function:
● Incorrect parameter assignment of the digital output function (Function DI)
Technological Functions
42 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
See also
Overview (Page 26)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 43
1Count24V/100kHz
2.6 Count Modes
2.6.8 Synchronization
Requirement
In order to use this function, you must first select it with the "Synchronize on Positive Edge"
Function DI parameter.
Description
,QWHUQDOFRXQWSXOVHV
XSRUGRZQ
'LJLWDOLQSXW
]HURPDUN
6\QFKURQL]DWLRQ
RQFHRQO\
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
6\QFKURQL]DWLRQ
SHULRGLF
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
If you have assigned synchronization, the rising edge of a reference signal on the input sets
the 1Count24V/100kHz to the load value.
You can select between once-only and periodic synchronization ("Synchronization"
parameter).
Technological Functions
44 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 45
1Count24V/100kHz
2.6 Count Modes
Introduction
The 1Count24V/100kHz lets you store two comparison values, which are assigned to the
digital outputs. The outputs can be activated, depending on the count and the comparison
values. The various ways of setting the behavior of the outputs are described in this section.
Description
The 1Count24V/100kHz has a real digital output and a virtual digital output that exists only
as a status bit in the feedback interface.
Parameters can be assigned for both outputs ("Function DO1" and "Function DO2"
parameters).
You can change the function and the behavior of the digital outputs during operation. The
new function takes effect immediately.
You can choose from the following functions:
● Output
● Count ≥ comparison value
● Count ≤ comparison value
● Pulse on reaching the comparison value
● Switch at comparison values (DO1 only)
Output
You can switch the outputs on and off with the control bits SET_DO1 and SET_DO2.
The control bits CTRL_DO1 or CTRL_DO2 must be set for this.
You can query the status of the outputs with the status bits STS_DO1 and STS_DO2 in the
feedback interface.
The status bits STS_CMP1 and STS_CMP2 indicate that the relevant output is or was
switched on. These status bits retain their status until they are acknowledged. If the output is
still switched, the corresponding bit is set again immediately. These status bits are also set
when the control bit SET_DO1 or SET_DO2 is operated without DO1 or DO2 being enabled.
Isochrone mode: In isochrone mode, the output DO1 is switched at time To. The status of the
virtual output DO2 is signaled at time Ti.
Technological Functions
46 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 47
1Count24V/100kHz
2.6 Count Modes
Technological Functions
48 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Isochrone mode: In isochrone mode, as well, the DO1 output is switched as soon as the
comparison condition is fulfilled and is therefore independent of the bus cycle. The status of
the virtual output DO2 is signaled at time Ti.
&RXQW
9
9
W
'2
W
&RXQW
9
9
W
'2
W
Setting or Modifying the Function and Behavior of the Digital Output DO1
When setting or modifying the behavior of DO1, you must take all assignable
interdependencies into account. Failure to do so will generate a parameter assignment error
or a loading error.
Boundary conditions:
If you assign "Switch at Comparison Values" for DO1, you must:
● Set hysteresis = 0, and
● Assign "Output" for the DO2 output
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 49
1Count24V/100kHz
2.6 Count Modes
Hysteresis
An encoder can remain at a particular position and then fluctuate around this position. This
state causes the count to fluctuate around a particular value. If there is a comparison value
in this fluctuation range, for example, the associated output is switched on and off in
accordance with the rhythm of the fluctuations. To prevent switching occurring in the case of
small fluctuations, the 1Count24V/100kHz is equipped with an assignable hysteresis. You
can assign a range between 0 and 255 (0 means: hysteresis switched off).
Hysteresis also works with overflow and underflow.
Method of Operation with Count ≤ Comparison Value and Count ≥ Comparison Value
The diagram below provides an example of how hysteresis works. The figure shows the
differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as
opposed to hysteresis of 3. In the example, the comparison value is 5.
The following settings are assigned for the counter: "Main count direction" = "Up" and
"Switch on at count ≥ comparison value".
When the comparison condition is met, hysteresis becomes active. While the hysteresis is
active, the comparison result 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.
&RXQW
+\V
+\V
Figure 2-14 Example of How Hysteresis Works
Note
If the count direction changes on the comparison value when hysteresis is active, the output
is reset.
Technological Functions
50 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Method of Operation when the Comparison Value Is Reached and the Pulse Duration = 0
The diagram below provides an example of how hysteresis works. The figure shows the
differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as
opposed to hysteresis of 3. In the example, the comparison value is 5.
The following settings are assigned for the counter: "Pulse on reaching the comparison
value", "No main count direction" and "Pulse duration = 0".
When the comparison conditions are met, hysteresis becomes active. While the hysteresis is
active, the comparison result remains unchanged. If the count value goes outside the
hysteresis range, hysteresis is no longer active. The comparator deletes the result of the
comparison.
&RXQW
+\V
+\V
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 51
1Count24V/100kHz
2.6 Count Modes
Method of Operation when the Comparison Value Is Reached, Output Pulse Duration
The diagram below provides an example of how hysteresis works. The figure shows the
differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as
opposed to hysteresis of 3. In the example, the comparison value is 5.
The following settings are assigned for the counter: "Pulse on reaching the comparison
value", "No main count direction" and "pulse duration > 0".
When the comparison conditions have been met, hysteresis becomes active and a pulse of
the assigned duration is output.
If the count value goes outside the hysteresis range, hysteresis is no longer active.
When hysteresis becomes active, the 1Count24V/100kHz stores the count direction.
If the hysteresis range is exited in a different direction to the one stored, a pulse is output.
&RXQW
+\V
+\V
Figure 2-16 Example of How Hysteresis Works
Technological Functions
52 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Note
An output set by SET_DO1 or SET_DO2 is not reset by the comparator.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 53
1Count24V/100kHz
2.6 Count Modes
2.6.10 Assignment of the Feedback and Control Interface for the Count Modes
Note
The following data of the control and feedback interfaces are consistent for the
1Count24V/100kHz:
Bytes 0 to 3
Bytes 4 to 7
Bytes 8 to 11 (modified user data interface)
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your master (only for configuration using the GSD file).
Technological Functions
54 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Assignment Tables
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 55
1Count24V/100kHz
2.6 Count Modes
Address Assignment
Bytes 0 to 3 Load value direct, preparatory, comparison value 1 or 2
Byte 0 Behavior of DO1, DO2 of the 1Count24V/100kHz
Bit 2 Bit 1 Bit 0 Function DO1
0 0 0 Output
0 0 1 Switch on at count ≥ comparison value
0 1 0 Switch on at count ≤ comparison value
0 1 1 Pulse on reaching the comparison value
1 0 0 Switch at comparison values
1 0 1 blocked
1 1 0 blocked
1 1 1 blocked
Bit 5 Bit 4 Function DO2
0 0 Output
0 1 Switch on at count ≥ comparison value
1 0 Switch on at count ≤ comparison value
1 1 Pulse on reaching the comparison value
Bits 3, 6, and 7: Reserve = 0
Bytes 1 to 3 Byte 1: Hysteresis DO1, DO2 (range 0 to 255)
Byte 2: Pulse duration [2ms] DO1, DO2 (range 0 to 255)
Byte 3: Reserve = 0
Byte 4 EXTF_ACK Bit 7: Error diagnostics acknowledgment
CTRL_DO2 Bit 6: Enable DO2
SET_DO2 Bit 5: Control bit DO2
CTRL_DO1 Bit 4: Enable DO1
SET_DO1 Bit 3: Control bit DO1
RES_STS Bit 2: Start resetting of status bit
CTRL_SYN Bit 1: Enable synchronization
SW_GATE Bit 0: SW gate control bit
Byte 5 Bit 7: Reserve = 0
Bit 6: Reserve = 0
Bit 5: Reserve = 0
C_DOPARAM Bit 4: Change function and behavior of DO1, DO2
CMP_VAL2 Bit 3: Load comparison value 2
CMP_VAL1 Bit 2: Load comparison value 1
LOAD_PREPARE Bit 1: Load counter preparatory
LOAD_VAL Bit 0: Load counter direct
Bytes 6 to 7 Reserve = 0 1
1 Not used for modified user interface
Technological Functions
56 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 57
1Count24V/100kHz
2.6 Count Modes
Technological Functions
58 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Table 2-7 Access to the Control and Feedback Interface in STEP 7 Programming
(YHQWVWLOOSHQGLQJRQUHVHW
)HHGEDFNVLJQDOV
RQHRIWKHVWDWXVELWV
&RQWUROELW
5(6B676
)HHGEDFNELW
5(6B676B$
W
5HVHWH[HFXWHG
5HTXHVWFDQFHOHG
&RXQW9N+]H[HFXWHVWKHUHVHW
5HTXHVWUHVHW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 59
1Count24V/100kHz
2.6 Count Modes
(UURUELW
(55B/2$'
&RQWUROELW
/2$'B9$/
/2$'B35(3$5(
&03B9$/
&03B9$/
&B'23$5$0
)HHGEDFNELW
676B/2$'
W
9DOXHLVDSSOLHG(QGRIWUDQVIHU
&DQFHOUHTXHVWDQGDQGNHHSYDOXH
DYDLODEOH
&RXQW9N+]KDVXQGHUVWRRGWKHUHTXHVW
5HTXHVWYDOXHWUDQVIHUDQGPDNHYDOXHDYDLODEOH
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 is carried out correctly.
Technological Functions
60 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
&RQWUROELW
LQXVHU
SURJUDP
6WDWXVELW
RIPRGXOH
Error Detection
The program errors must be acknowledged. They have been detected by the
1Count24V/100kHz and are indicated in the feedback interface. A channel-specific diagnosis
is carried out if you have enabled group diagnostics in your parameter assignment (see the
ET 200S Distributed I/O System Manual).
The parameter assignment error bit is acknowledged by means of correct parameter
assignment.
$QHUURUKDVRFFXUUHGWKH&RXQW9N+]VHWVDQHUURU
ELWDGLDJQRVWLFPHVVDJHPD\DSSHDUHUURUGHWHFWLRQ
FRQWLQXHV
(UURUHOLPLQDWHGZKHQ(;7)B$&.LVVHWE\WKHXVHU
SURJUDPWKH&RXQW9N+]GHOHWHVWKHHUURUELWD
GLDJQRVWLFPHVVDJHPD\DSSHDU
HJHUURUELW
(55B9
(UURUDFNQRZOHGJPHQW
(;7)B$&.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 61
1Count24V/100kHz
2.6 Count Modes
Introduction
You can use either of the following to assign parameters for the 1Count24V/100kHz:
● A GSD file (http://www.ad.siemens.de/csi/gsd)
● STEP 7 V5.3 SP2 or later
Technological Functions
62 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 63
1Count24V/100kHz
2.7 Measurement Modes
2.7.1 Overview
Introduction
For the "Measuring Mode" parameter, you can select from the following modes:
● Frequency measurement
● Period measurement
● Rotational speed measurement
For the "Measuring Method" parameter, you can select from the measurement methods:
● With integration time
● Continuous-action
To execute one of these modes, you have to assign parameters to the 1Count24V/100kHz.
Direction Reversal
If the direction of rotation is reversed during an integration time, the measured value for this
measurement period is uncertain. If you evaluate the STS_C_UP and STS_C_DN feedback
bits (direction evaluation), you can respond to any process irregularities.
Technological Functions
64 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Measuring Principle
The 1Count24/100kHz counts each positive edge of a pulse and assigns it a time value in
µs.
The update time indicates the time interval at which the measured value is updated by the
module in the feedback interface.
The following applies for a pulse train with one or more pulse trains per update time:
Dynamic measuring time = Time of last pulse in the current update time interval
minus
Time of last pulse in the previous update time interval
When the update time has elapsed, a new measured value is calculated and output with the
dynamic measuring time.
If the current update time does not contain a pulse, the following dynamic measuring time
results:
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 65
1Count24V/100kHz
2.7 Measurement Modes
If the "1 Pulse per dynamic measuring time" estimated measured value is less than the last
measured value during the frequency and speed measurement, this estimated measured
value is output as the new measured value. With the period measurement, the dynamic
measuring time is output as the estimated period if the dynamic measuring time is greater
than the last measured period.
'\QDPLF
PHDVXULQJWLPH
'\QDPLF
PHDVXULQJWLPH
'\QDPLF
PHDVXULQJWLPH
Technological Functions
66 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
The following figure illustrates the principle of continuous measurement using frequency
measurement as an example.
*DWH
3XOVHWUDLQ
0HDVXUHG
YDOXH
8SGDWHWLPH
Gate Control
To control the 1Count24V/100kHz, you have to use the gate functions.
Isochrone Mode
In isochrone mode, the 1Count24V/100kHz accepts control bits and control values from the
control interface in each bus cycle and reports back the response in the same cycle.
In each cycle, the 1Count24V/100kHz transfers a measured value and the status bits that
were valid at time Ti.
The measurement starts and ends at time Ti.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 67
1Count24V/100kHz
2.7 Measurement Modes
Note
The value range limits for the integration time/update time must not be exceeded (see tables
for the individual measuring modes).
A violation of the value range limits will result in a parameter assignment error, and the
1Count24V/100kHz will not go into isochrone mode.
Note
When you change the configuration from non-isochrone to isochrone mode and vice versa,
you must always adjust the integration time/update time parameter if you want to keep the
length of the integration time/update time.
Technological Functions
68 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Definition
In frequency measurement mode, the 1Count24V/100kHz counts the pulses that arrive
within a set integration time.
Integration time
Preset the integration time with the integration time parameter (see the table).
Frequency Measurement
The value of the calculated frequency is made available in the unit Hz*10-3. The measured
frequency value can be read at the feedback interface (byte 0 to 3).
,QWHJUDWLRQWLPH
Q PV Q PV
&RXQWSXOVHV
,QWHUQDOJDWH
%HJLQQLQJRIIUHTXHQF\ (QGRIIUHTXHQF\
PHDVXUHPHQW PHDVXUHPHQW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 69
1Count24V/100kHz
2.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Technological Functions
70 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Definition
In frequency measurement mode, the 1Count24V/100kHz counts the pulses that arrive
within a dynamic measuring time.
Update Time
The 1Count24V/100kHz updates the measured values cyclically. You preset the update time
with the Update Time parameter (see table). You can change the update time during
operation.
Frequency Measurement
The value of the calculated frequency is made available in the unit Hz*10-3. The measured
frequency value can be read in the feedback interface (byte 0 to 3).
8SGDWHWLPH 8SGDWHWLPH
&RXQWSXOVHV
,QWHUQDOJDWH
6WDUWRIIUHTXHQF\ (QGRI
PHDVXUHPHQW IUHTXHQF\PHDVXUHPHQW
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 71
1Count24V/100kHz
2.7 Measurement Modes
See also
Gate Functions in Measurement Modes (Page 83)
Behavior of the Output in Measurement Modes (Page 84)
Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 86)
Technological Functions
72 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Definition
In rotational speed measurement mode, the 1Count24V/100kHz counts the pulses that arrive
from a rotary encoder within a set integration time and calculates the speed of the connected
motor.
Integration Time
You preset the integration time with the Integration Time parameter (see table).
,QWHJUDWLRQWLPH ,QWHJUDWLRQWLPH
&RXQWSXOVHV
,QWHUQDO*DWH
%HJLQQLQJRIURWDWLRQDO (QGRIURWDWLRQDO
VSHHGPHDVXUHPHQW VSHHGPHDVXUHPHQW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 73
1Count24V/100kHz
2.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Table 2-12 Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder
Revolution = 60)
Technological Functions
74 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Definition
In rotational speed measurement mode, the 1Count24V/100kHz counts the pulses that are
received from a tachometer generator within a dynamic measuring time and calculates the
speed from this value with the number of pulses per encoder revolution.
Update Time
The 1Count24V/100kHz updates the measured values cyclically. You preset the update time
with the Update Time parameter (see table). You can change the update time during
operation.
8SGDWHWLPH 8SGDWHWLPH
&RXQWSXOVHV
,QWHUQDOJDWH
6WDUWRIURWDWLRQDOVSHHG (QGRI
PHDVXUHPHQW URWDWLRQDOVSHHGPHDVXUHPHQW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 75
1Count24V/100kHz
2.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Table 2-14 Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder
Revolution = 60)
Technological Functions
76 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
See also
Gate Functions in Measurement Modes (Page 83)
Behavior of the Output in Measurement Modes (Page 84)
Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 86)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 77
1Count24V/100kHz
2.7 Measurement Modes
Definition
In period measurement mode, the 1Count24V/100kHz measures the time between two
positive edges of the counting signal by counting the pulses of an internal quartz-accurate
reference frequency (16 MHz) within a preset integration time.
Integration Time
You preset the integration time with the Integration Time parameter (see table).
Period Measurement
The value of the calculated period is given in the unit 1 µs and 1/16 µs. The measured period
can be read in the feedback interface (byte 0 to 3).
,QWHJUDWLRQWLPH ,QWHJUDWLRQWLPH
3HULRG
&RXQWSXOVHV
,QWHUQDOJDWH
6WDUWRISHULRG (QGRISHULRG
PHDVXUHPHQW PHDVXUHPHQW
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Technological Functions
78 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
1 µs resolution
1/16 µs resolution
1 µs resolution
1/16 µs resolution
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 79
1Count24V/100kHz
2.7 Measurement Modes
Definition
In period measurement mode, the 1Count24V/100kHz indicates the dynamic measuring time
as a period. If the period is less than the update time, then an average is calculated for the
period.
Update Time
The 1Count24V/100kHz updates the measured values cyclically. You preset the update time
with the Update Time parameter (see table). You can change the update time during
operation.
Period Measurement
The value of the calculated period is given in the unit 1 µs and 1/16 µs. The measured period
can be read in the feedback interface (byte 0 to 3).
8SGDWHWLPH 8SGDWHWLPH
3HULRG
&RXQWSXOVHV
,QWHUQDOJDWH
6WDUWRISHULRGPHDVXUH (QGRISHULRGPHDVXUH
PHQW PHQW
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Technological Functions
80 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
1 µs resolution
1/16 µs resolution
1 µs resolution
1/16 µs resolution
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 81
1Count24V/100kHz
2.7 Measurement Modes
See also
Gate Functions in Measurement Modes (Page 83)
Behavior of the Output in Measurement Modes (Page 84)
Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 86)
Technological Functions
82 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Internal gate
The internal gate is the logical AND operation of the HW gate and SW gate. Counting is only
active when the HW gate and the SW gate are open. The STS_GATE feedback bit (internal
gate status) indicates this. If a HW gate has not been assigned, the setting of the SW gate is
decisive.
Gate Control
Gate control by means of the SW gate only
The opening/closing of the SW gate starts/stops measurement.
If the SW gate is opened in isochrone mode in bus cycle "n" by setting the SW_GATE control
bit, measurement starts at time Ti in cycle "n+1".
Gate control by SW gate and HW hate
The opening and closing of the SW gate with the HW gate open starts/stops measurement.
The opening and closing of the HW gate with the SW gate open starts/stops measurement.
The SW gate is opened/closed by means of the control interface with the SW_GATE bit.
The HW gate is opened/closed by means of a 24-V signal on the digital input.
In isochrone mode, when the SW gate is open, measurement starts at time Ti, immediately
after the HW gate has opened. The measurement ends at time Ti, which occurs immediately
after the HW gate has closed.
When the HW gate is open, the measurement starts at time Ti in the cycle, immediately after
the SW has opened, and ends at time Ti in the cycle, which occurs immediately after the SW
gate has closed.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 83
1Count24V/100kHz
2.7 Measurement Modes
Introduction
The various ways of setting the behavior of the output are described in this section.
Output
If you want to switch the output on or off, you must enable it with the CTRL_DO1 control bit.
You can switch the output on and off with the SET_DO1 control bit.
You can query the status of the output with the STS_DO1 status bit in the feedback
interface.
In isochrone mode, the output is switched at time To.
Technological Functions
84 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Limit-Value Monitoring
8)/: 2)/:
*DWHVWDUW
0HDVXUHGYDOXH
/RZ +LJK
OLPLW OLPLW
After the integration time elapses, the measured value obtained (frequency, rotational speed,
or period) is compared with the assigned limit values.
If the current measured value is under the assigned low limit (measured value <low limit), the
STS_UFLW = 1 bit is set in the feedback interface.
If the current measured value is over the assigned high limit (measured value > high limit),
the STS_OFLW = 1 bit is set in the feedback interface.
You must acknowledge these bits with the RES_STS control bit.
If the measured value is still outside or again outside the limits after acknowledgment, the
corresponding status bit is set again.
If you set the low limit at 0, you switch off dynamic monitoring of violation of the low limit
value.
Depending on the parameter assignment, the enabled digital output DO1 can be set by the
limit-value monitoring:
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 85
1Count24V/100kHz
2.7 Measurement Modes
2.7.11 Assignment of the Feedback and Control Interfaces for the Measurement Modes
Note
The following data of the control and feedback interfaces are consistent for the
1Count24V/100kHz:
Bytes 0 to 3
Bytes 4 to 7
Bytes 8 to 11 (modified user data interface)
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your master (only for configuration using the GSD file).
Assignment Tables
Technological Functions
86 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Address Assignment
Bytes 0 to 3 Low limit or high limit
Function of DO1
Byte 0: Bit 1 Bit 0 Function DO1
0 0 Output
0 1 Measured value outside the limits
1 0 Measured value under the low limit
1 1 Measured value over the high limit
Bytes 1 to 3: Reserve = 0
Integration time
Byte 0, 1: Integration time [n*10ms]
(Range 1 to 1000/12000)
Byte 2, 3: Reserve = 0
Byte 4 Bit 7: Error diagnostics acknowledgement EXTF_ACK
Bit 6: Reserve = 0
Bit 5: Reserve = 0
Bit 4: Enable DO1 CTRL_DO1
Bit 3: Control bit DO1 SET_DO1
Bit 2: Start resetting of status bit RES_STS
Bit 1: Reserve = 0
Bit 0: SW gate control bit SW_GATE
Byte 5 Bit 7: Reserve = 0
Bit 6: Reserve = 0
Bit 5: Reserve = 0
Bit 4: Change function of DO1, C_DOPARAM
Bit 3: Reserve = 0
Bit 2: Change integration time, C_INTTIME
Bit 1: Load high limit LOAD_PREPARE
Bit 0: Load low limit LOAD_VAL
Bytes 6 to 7 Reserve = 0 1
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 87
1Count24V/100kHz
2.7 Measurement Modes
Technological Functions
88 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 89
1Count24V/100kHz
2.7 Measurement Modes
Table 2-21 Access to the Control and Feedback Interface in STEP 7 Programming
(YHQWVWLOOSHQGLQJRQUHVHW
)HHGEDFNVLJQDOV
RQHRIWKHVWDWXVELWV
&RQWUROELW
5(6B676
)HHGEDFNELW
5(6B676B$
W
5HVHWH[HFXWHG
5HTXHVWFDQFHOHG
&RXQW9N+]H[HFXWHVWKHUHVHW
5HTXHVWUHVHW
Technological Functions
90 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
(UURUELW
(55B/2$'
&RQWUROELW
/2$'B9$/
/2$'B35(3$5(
&B'23$5$0
&B,177,0(
)HHGEDFNELW
676B/2$'
W
9DOXHLVDSSOLHG(QGRIWUDQVIHU
&DQFHOUHTXHVWDQGDQGNHHSYDOXH
DYDLODEOH
&RXQW9N+]KDVXQGHUVWRRGWKHUHTXHVW
5HTXHVWYDOXHWUDQVIHUDQGPDNHYDOXHDYDLODEOH
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.
The ERR_LOAD error bit is only deleted when a correct value is transferred as follows.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 91
1Count24V/100kHz
2.7 Measurement Modes
&RQWUROELW
LQXVHU
SURJUDP
6WDWXVELW
RIPRGXOH
Error Detection
The diagnostic errors must be acknowledged. They have been detected by the
1Count24V/100kHz and are indicated in the feedback interface. A channel-specific diagnosis
is carried out if you have enabled group diagnostics in your parameter assignment (see the
ET 200S Distributed I/O System Manual).
The parameter assignment error bit is acknowledged by means of correct parameter
assignment.
$QHUURUKDVRFFXUUHGWKH&RXQW9N+]VHWVDQHUURU
ELWDGLDJQRVWLFPHVVDJHPD\DSSHDUHUURUGHWHFWLRQ
FRQWLQXHV
(UURUHOLPLQDWHGZKHQ(;7)B$&.LVVHWE\WKHXVHU
SURJUDPWKH&RXQW9N+]GHOHWHVWKHHUURUELWD
GLDJQRVWLFPHVVDJHPD\DSSHDU
HJHUURUELW
(55B9
(UURUDFNQRZOHGJPHQW
(;7)B$&.
Technological Functions
92 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.7 Measurement Modes
Introduction
You can use either of the following to assign parameters for the 1Count24V/100kHz:
● A GSD file (http://www.ad.siemens.de/csi/gsd)
● STEP 7 V5.3 SP2 or later
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 93
1Count24V/100kHz
2.7 Measurement Modes
Technological Functions
94 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.8 Fast mode
2.8.1 Overview
Introduction
This mode is suitable for position detection is especially short isochronous cycles.
This mode represents a subset of the functionality of the continuous counting mode.
It is intended for isochronous mode and differs from continuous counting by having a lower
TDP Modulemin and a TWA equal to zero. The module is operated in this mode as a pure
input module, i.e., there is no control interface in this operating mode.
This mode is available starting with FW Version V2.0 of the module. The module must be
configured as "1Count24V Fast Mode V2.0" in HW Config.
Load Value
You can specify a load value for the 1Count24V.
This load value is applied directly as the start value.
Gate Control
To control the 1Count24V, you can use the HW gate.
Isochronous Mode
In each cycle, the 1Count24V transfers the count and the status bits that were valid at time
T i.
See also
Assigning parameters for fast mode (Page 100)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 95
1Count24V/100kHz
2.8 Fast mode
Definition
In this mode, the 1Count24V counts continuously starting from the start value:
When counting up, if the 1Count24V reaches the maximum value that can be represented
with 25 bits (all bits of the counter are set) and another count pulse arrives, the count value
jumps to "0" and resumes counting from there without losing a pulse.
When counting down, if the 1Count24V reaches the value "0" and another count pulse
arrives, the count value jumps to the maximum value that can be represented with 25 bits (all
bits of the counter are set) and resumes counting without losing a pulse.
See also
Assigning parameters for fast mode (Page 100)
Synchronization (Page 97)
Gate function in the case of fast mode (Page 96)
Hardware Gate
The 1Count24V has a HW gate, which can be controlled via the digital input on the
1Count24V.
You assign the hardware gate as the function of the digital input (Function DI "HW Gate"). It
is opened on a positive edge at the digital input and closed on a negative edge.
If no HW gate is assigned, counting becomes active immediately.
The STS_GATE checkback signal indicates whether counting is active.
When the HW gate is opened, this causes counting to continue starting from the current
count.
Technological Functions
96 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.8 Fast mode
2.8.4 Synchronization
Introduction
In order to use this function, you must first select it with the "Synchronize on Positive Edge"
Function DI parameter.
,QWHUQDOFRXQWSXOVHV
XSRUGRZQ
'LJLWDO,QSXW
]HURPDUN
&RXQWYDOXH
6WDUWYDOXH
If you have assigned synchronization, the positive edge of a reference signal on the input
sets the 1Count24V to the start value.
The following conditions apply:
● Fast mode must be active (HW gate).
– When synchronization is activated, the first edge and each additional edge loads the
1Count24V with the start value.
● The signal of a bounce-free switch or the zero mark of a rotary encoder can serve as the
reference signal.
● The STS_DI feedback bit indicates the level of the reference signal.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 97
1Count24V/100kHz
2.8 Fast mode
Note
For the 1Count24V, the following data of the feedback interface are consistent:
• Bytes 0 to 3
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your master (only for configuration using the GSD file).
Assignment Tables
Technological Functions
98 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.8 Fast mode
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 99
1Count24V/100kHz
2.8 Fast mode
Introduction
You use the following to assign parameters for the 1Count24V:
● STEP 7 Version 5.4 or higher; if necessary, the HSP (hardware support package) must
be downloaded from the Internet
Technological Functions
100 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
2.9.1 Overview
Description
This mode encompasses a subset of the functionality of the continuous counting mode. It is
intended for isochrone mode and differs from continuous counting by a smaller TDP
Modulemin and a TWA equal to zero. This TWA equal to zero makes it possible to operate the
module as an input module only. In this case, however, the possible controls are no longer
synchronized with To but rather are executed in the TDP cycle before or after Ti.
To execute this mode, you must assign parameters to the 1Count24V/100kHz.
Load value
You can specify a load value for the 1Count24V/100kHz.
This load value is either applied directly as the new count value (LOAD_VAL) or it is applied
as the new count value when the following events occur (LOAD_PREPARE):
● The counting operation is started by a SW gate or HW gate (if the counting operation is
continued, the load value is not applied).
● Synchronization
● Latch and retrigger
Gate Control
To control the 1Count24V/100kHz, you have to use the gate functions.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 101
1Count24V/100kHz
2.9 Position Detection
Isochrone mode
In isochrone mode the 1Count24V/100kHz accepts control bits and control values from the
control interface in each bus cycle and reports back the response in this mode in the same
cycle or in the next cycle.
In each cycle the 1Count24V/100kHz transfers the count and latch value that were valid at
time Ti and the status bits valid at time Ti.
A count controlled by hardware input signals can only be transferred in the same cycle if the
input signal occurred before time Ti.
Technological Functions
102 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
Definition
In this mode, the 1Count24V/100kHz counts continuously starting from the load value:
● If the 1Count24V/100kHz reaches the high counting limit when counting up, and another
count pulse then comes, it will jump to the low counting limit and continue counting from
there without losing a pulse.
● If the 1Count24V/100kHz reaches the low counting limit when counting down, and
another count pulse then comes, it will jump to the high counting limit and continue
counting from there without losing a pulse.
● The high counting limit is set at +2147483647 (231 – 1).
● The low counting limit is set to –2147483648 (–231).
&RXQWHUVWDWXV
+LJKFRXQWLQJOLPLW
/RDGYDOXH
/RZFRXQWLQJOLPLW
See also
Assigning Parameters for Position Feedback (Page 118)
Gate Functions for Position Detection (Page 104)
Latch Function (Page 107)
Synchronization (Page 110)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 103
1Count24V/100kHz
2.9 Position Detection
Internal Gate
The internal gate is the logical AND operation of the HW gate and SW gate. Counting is only
active when the HW gate and the SW gate are open. The STS_GATE feedback bit (internal
gate status) indicates this. If a HW gate has not been assigned, the setting of the SW gate is
decisive. Counting is activated, interrupted, continued, and canceled by means of the
internal gate.
Technological Functions
104 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
&RXQW
+LJKFRXQWLQJOLPLW
/RDGYDOXH
/RZFRXQWLQJOLPLW
&RXQWHUVWDWXV
8SSHUFRXQWOLPLW
/RDGYDOXH
/RZHUFRXQWOLPLW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 105
1Count24V/100kHz
2.9 Position Detection
Gate Control
Technological Functions
106 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
Overview
There are two latch functions:
● The Latch and Retrigger function
● The Latch function
&RXQWSXOVHV
6:B*$7(
',GLJLWDOLQSXW
&RXQWHUVWDWXV
/DWFKYDOXH
This function stores the current internal count of the 1Count24V/100kHz and retriggers
counting when there is a positive edge on the digital input. This means that the current
internal count at the time of the positive edge is stored (latch value), and the
1Count24V/100kHz is then loaded again with the load value, from which counting resumes.
The counting mode must be enabled with the SW gate before the function can be executed.
It is started with the first positive edge on the digital input.
The stored count rather than the current count is indicated in the feedback interface. The
STS_DI bit indicates the status of the latch and retrigger signal.
The latch value is preassigned with its RESET state (see corresponding table). It is not
changed when the SW gate is opened.
Direct loading of the counter does not cause the indicated stored count to be changed.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 107
1Count24V/100kHz
2.9 Position Detection
If you close the SW gate, it only interrupts counting; this means that when you open the SW
gate again, counting is continued. The digital input DI remains active even when the SW
gate is closed.
Counting is also latched and triggered in isochrone mode with each edge on the digital input.
The count that was valid at the time of the last edge before Ti is displayed in the feedback
interface.
&RXQWSXOVHV
6:B*$7(
',GLJLWDOLQSXW
&RXQWHUVWDWXV
/DWFKYDOXH
Count and latch value are preset with their RESET states (see corresponding table).
The counting function is started when the SW gate is opened. The 1Count24V/100kHz
begins at the load value.
The latch value is always the exact count at the time of the positive edge on the digital input
DI.
The stored count rather than the current count is indicated in the feedback interface. The
STS_DI bit indicates the level of the latch signal.
Direct loading of the counter does not cause the indicated stored count to be changed.
In isochrone mode, the count that was latched at the time of the last positive edge before Ti
is displayed in the feedback interface.
When you close the SW gate, the effect is either canceling or interrupting, depending on the
parameter assignment. The digital input DI remains active even when the SW gate is closed.
Further possible causes of parameter assignment errors with the latch function:
● Incorrect parameter assignment of the digital output function (Function DI)
Technological Functions
108 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 109
1Count24V/100kHz
2.9 Position Detection
2.9.5 Synchronization
Synchronization
In order to use this function, you must first select it with the "Synchronize on Positive Edge"
Function DI parameter.
,QWHUQDOFRXQWSXOVHV
XSRUGRZQ
'LJLWDOLQSXW
]HURPDUN
6\QFKURQL]DWLRQ
RQFHRQO\
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
6\QFKURQL]DWLRQ
SHULRGLF
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
Technological Functions
110 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
If you have assigned synchronization, the positive edge of a reference signal on the input
sets the 1Count24V/100kHz to the load value.
You can select between once-only and periodic synchronization ("Synchronization"
parameter).
The following conditions apply:
● The counting mode must have been started with the SW gate.
● The "Enable synchronization CTRL_SYN" control bit must be set.
● In once-only synchronization, the first edge loads the 1Count24V/100kHz with the load
value after the enable bit is set.
● In periodic synchronization, the first edge and each subsequent edge load the
1Count24V/100kHz with the load value after the enable bit is set.
● After successful synchronization, the STS_SYN feedback bit is set. It must be reset by
the RES_STS control bit.
● The signal of a bounce-free switch or the zero mark of a rotary encoder can serve as the
reference signal.
● The STS_DI feedback bit indicates the level of the reference signal.
In isochrone mode, the set feedback bit STS_SYN indicates that the positive edge on the
digital input was between time Ti in the current cycle and Ti in the previous cycle.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 111
1Count24V/100kHz
2.9 Position Detection
2.9.6 Assignment of the Feedback and Control Interface for Position Feedback
Note
The following data of the control and feedback interfaces are consistent for the
1Count24V/100kHz:
Bytes 0 to 3
Bytes 4 to 7
Bytes 8 to 11 (modified user data interface)
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your master (only for configuration using the GSD file).
Assignment Tables
Technological Functions
112 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
Address Assignment
Bytes 0 to 3 Load value direct, preparatory, comparison value 1 or 2
Byte 0 Behavior of DO1, DO2 of the 1Count24V/100kHz
Bit 2 Bit 1 Bit 0 Function DO1
0 0 0 Output
0 0 1 Switch on at count ≥ comparison value
0 1 0 Switch on at count ≤ comparison value
0 1 1 Pulse on reaching the comparison value
1 0 0 Switch at comparison values
1 0 1 blocked
1 1 0 blocked
1 1 1 blocked
Bit 5 Bit 4 Function DO2
0 0 Output
0 1 Switch on at count ≥ comparison value
1 0 Switch on at count ≤ comparison value
1 1 Pulse on reaching the comparison value
Bits 3, 6, and 7: Reserve = 0
Bytes 1 to 3 Byte 1: Hysteresis DO1, DO2 (range 0 to 255)
Byte 2: Pulse duration [2ms] DO1, DO2 (range 0 to 255)
Byte 3: Reserve = 0
Byte 4 EXTF_ACK Bit 7: Error diagnostics acknowledgment
Bit 6: Reserve = 0
Bit 5: Reserve = 0
Bit 4: Reserve = 0
Bit 3: Reserve = 0
RES_STS Bit 2: Start resetting of status bit
CTRL_SYN Bit 1: Enable synchronization
SW_GATE Bit 0: SW gate control bit
Byte 5 Bit 7: Reserve = 0
Bit 6: Reserve = 0
Bit 5: Reserve = 0
Bit 4: Reserve = 0
Bit 3: Reserve = 0
Bit 2: Reserve = 0
LOAD_PREPARE Bit 1: Load counter preparatory
LOAD_VAL Bit 0: Load counter direct
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 113
1Count24V/100kHz
2.9 Position Detection
Address Assignment
Bytes 6 to 7 Reserve = 0 1
1 Not used for modified user interface
Technological Functions
114 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
Table 2-28 Access to the Control and Feedback Interface in STEP 7 Programming
(YHQWVWLOOSHQGLQJRQUHVHW
)HHGEDFNVLJQDOV
RQHRIWKHVWDWXVELWV
&RQWUROELW
5(6B676
)HHGEDFNELW
5(6B676B$
W
5HVHWH[HFXWHG
5HTXHVWFDQFHOHG
&RXQW9N+]H[HFXWHVWKHUHVHW
5HTXHVWUHVHW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 115
1Count24V/100kHz
2.9 Position Detection
(UURUELW
(55B/2$'
&RQWUROELW
/2$'B9$/
/2$'B35(3$5(
)HHGEDFNELW
676B/2$'
W
9DOXHLVDSSOLHG(QGRIWUDQVIHU
&DQFHOUHTXHVWDQGDQGNHHSYDOXH
DYDLODEOH
&RXQW9N+]KDVXQGHUVWRRGWKHUHTXHVW
5HTXHVWYDOXHWUDQVIHUDQGPDNHYDOXHDYDLODEOH
Note
Only one of the following control bits can be set at a particular time:
LOAD_VAL or LOAD_PREPARE.
Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted
again.
The ERR_LOAD error bit is only deleted when a correct value is transferred as follows.
Technological Functions
116 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
&RQWUROELW
LQXVHU
SURJUDP
6WDWXVELW
RIPRGXOH
Error Detection
The program errors must be acknowledged. They have been detected by the
1Count24V/100kHz and are indicated in the feedback interface. A channel-specific diagnosis
is carried out if you have enabled group diagnostics in your parameter assignment (see the
ET 200S Distributed I/O System Manual).
The parameter assignment error bit is acknowledged by means of correct parameter
assignment.
$QHUURUKDVRFFXUUHGWKH&RXQW9N+]VHWVDQHUURU
ELWDGLDJQRVWLFPHVVDJHPD\DSSHDUHUURUGHWHFWLRQ
FRQWLQXHV
(UURUHOLPLQDWHGZKHQ(;7)B$&.LVVHWE\WKHXVHU
SURJUDPWKH&RXQW9N+]GHOHWHVWKHHUURUELWD
GLDJQRVWLFPHVVDJHPD\DSSHDU
HJHUURUELW
(55B9
(UURUDFNQRZOHGJPHQW
(;7)B$&.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 117
1Count24V/100kHz
2.9 Position Detection
Introduction
You can use either of the following to assign parameters for the 1Count24V/100kHz:
● A GSD file (http://www.ad.siemens.de/csi/gsd)
● STEP 7 V5.3 SP2 or later
Technological Functions
118 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.9 Position Detection
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 119
1Count24V/100kHz
2.10 Evaluation of count and direction signal
Signal Evaluation A, B
Signal evaluation by means of A, B allows you to count directionally. Different evaluation
modes are possible depending on the parameter assignment:
● Pulse and direction
● Rotary encoder
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 input filter that has been assigned parameters.
6LJQDO$
6LJQDO%DV
GLUHFWLRQLQGLFDWRU
7LPH
wVwVGHSHQGLQJ
RQWKHILOWHUWLPH
Figure 2-44 Time Span between the Direction Signal and the Count Signal
If you connect a 24-V rotary encoder with two tracks that are 90 degrees out of phase at the
count and direction inputs, you can assign parameters to a single evaluation in all the
measurement and count modes.
You can also assign parameters to dual or quad evaluation in all count modes.
In all evaluation modes, you can invert direction detection at input B by parameter
assignment.
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.
Technological Functions
120 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.10 Evaluation of count and direction signal
6LJQDO$
GRZQ
6LJQDO%DV XS
GLUHFWLRQLQGLFDWRU
8SFRXQWSXOVHV
'RZQFRXQWSXOVHV
Rotary Encoder
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, when assigning parameters
("Signal Evaluation" parameter), you can select whether the signals are to be subjected to
single, double, or quadruple evaluation.
Multiple evaluation is only possible with asymmetric 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 positive edge at A and low level at B, and down count pulses are recorded at a negative
edge at A and low level at B.
The diagram below illustrates the single evaluation of the signals.
6LJQDO$
6LJQDO%
8SFRXQWSXOVHV
'RZQFRXQWSXOVHV
XS GRZQ
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 121
1Count24V/100kHz
2.10 Evaluation of count and direction signal
Double Evaluation
Double evaluation means that the positive and negative edge of the A signal are evaluated.
Whether up or down count pulses are generated depends on the level of the B signal.
The diagram below illustrates the double evaluation of the signals.
6LJQDO$
6LJQDO%
8SFRXQWSXOVHV
'RZQFRXQWSXOVHV
XS GRZQ
Quadruple Evaluation
Quadruple evaluation means that the positive and negative 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.
6LJQDO$
6LJQDO%
8SFRXQWSXOVHV
'RZQFRXQWSXOVHV
XS GRZQ
Note
A counting frequency of 100 kHz refers to the maximum frequency of the A and B signals.
With double evaluation, a maximum frequency of 200 kHz is produced for the counting
pulses; with quadruple evaluation, the maximum frequency is 400 kHz.
Technological Functions
122 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.11 Behavior at CPU-Master-STOP
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
Operating Instructions, 04/2008, A5E00124867-06 123
1Count24V/100kHz
2.11 Behavior at CPU-Master-STOP
Technological Functions
124 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.12 Technical Specifications
Technical Specifications
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 125
1Count24V/100kHz
2.12 Technical Specifications
Technological Functions
126 Operating Instructions, 04/2008, A5E00124867-06
1Count24V/100kHz
2.12 Technical Specifications
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 127
1Count24V/100kHz
2.12 Technical Specifications
Technological Functions
128 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz 3
3.1 Product Overview
Order Number:
6ES7 138-4DE02-0AB0
Compatibility
The 1Count5V/500kHz with the order number 6ES7 138-4DE02-0AB0 replaces the
1Count5V/500kHz with the order number 6ES7 138-4DE01-0AB0 and is fully compatible. In
STEP 7 version V5.3 SP2 and later, you can use it in non-isochronous and isochronous
modes.
Features
● A 5 V incremental encoder can be connected in order to count 5 V RS422 signals up to a
frequency of 500 kHz.
● The 1Count5V/500kHz is a double-width module and can only be used with a 4-row
TM-E30S44-01 terminal module.
● Isochronous mode
● Modified user data interface 1
1 Insteadof 8 bytes of input data and 8 bytes of output data, 12 bytes of input data and
6 bytes of output data are used, provided the IM 151 supports this.
The following IM 151 modules support this function:
– IM151-1/Standard order no. 6ES7151-1AA04-0AB0 and higher
– IM151-1/HF order no. 6ES7151-1BA01-0AB0 and higher
● Modes of the 1Count5V/500kHz:
Counting modes:
– Count continuously
– Count once
– Count periodically
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 129
1Count5V/500kHz
3.1 Product Overview
Measuring modes:
– Frequency measurement
– Rotational speed measurement
– Period measurement
Position feedback:
– Position detection
– Fast mode
● Gate control, synchronization or latch function via digital inputs
● 2 digital outputs for direct control or output of the comparison results.
● Firmware update 1
● Identification data 1
1 The following IM 151 modules support this function: IM 151-1 Standard:
6ES7151-1AA04-0AB0 and later and IM 151-1 High Feature: 6ES7151-1BA01-0AB0 and
later.
Configuration
You can use either of the following to configure 1Count5V/500kHz:
● STEP 7 V5.3 SP2 or higher
● HSP hardware support package (available online) as of STEP 7 V5.2 SP1
Technological Functions
130 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.1 Product Overview
Firmware Update
To add functions and for troubleshooting, it is possible to load firmware updates to the
operating system memory of the 1Count5V/500kHz using STEP 7 HW Config.
Note
When you launch the firmware update, the old firmware is deleted. If the firmware update is
interrupted or canceled for any reason, the 1Count5V/500kHz will no longer function
correctly as a result. Re-launch the firmware update and wait until this has completed
successfully.
Identification Data 1
● Hardware release status
● Firmware release status
● Serial number
1 See also ET 200S Distributed I/O System Manual, section: Identification Data
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 131
1Count5V/500kHz
3.2 Clocked Mode
Note
The principles of isochronous mode are described in a separate manual.
See Isochrone Mode function manual (A5E00223279).
Hardware Requirements
You will require the following for the 1Count5V/500kHz in isochronous mode:
● A CPU that supports isochronous mode
● A master that supports the equidistant bus cycle
● An IM 151 that supports isochronous mode
Features
Depending on the system parameter assignment, the 1Count5V/500kHz works in either non-
isochronous or isochronous mode.
In isochronous mode, data exchange between the master and 1Count5V/500kHz is
isochronous to the bus cycle (PROFIBUS DP/PROFINET).
In isochronous mode, all 8 bytes/12 bytes of the feedback interface are consistent.
If an error occurs during parameter assignment, the 1Count5V/500kHz does not go into
isochronous mode.
If isochronous mode fails due to faults or failure/delay of global control (GC), the
1Count5V/500kHz will return to isochronous mode during the next cycle without an error
response.
If isochronous mode fails, the feedback interface is not updated.
The Ti/To overlap is supported by the module in firmware version V1.0.1 and later.
See also
Synchronization (Page 156)
Technological Functions
132 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.3 Example: Start 1Count5V/500kHz
Task
These instructions guide you to a functioning application that will enable you to count the
pulses of an encoder and become familiar with and check the basic hardware and software
functions of your 1Count5V/500kHz. The counting mode used in this example is
"Count continuously".
Requirements
The following requirements must be satisfied:
● You have commissioned an ET 200S station on an S7 station with a master.
● You must have the following:
– A TM-E30S44-01 terminal module
– A 1Count5V/500kHz
– A 5 V encoder with a 24 V encoder supply and the material required for wiring
&RXQW
9N+] 70(6DQG
6) &RXQW9N+]
$ $ '2 '2
9 0 0 0
% % 9'& 9'&
1 1 ',
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 133
1Count5V/500kHz
3.3 Example: Start 1Count5V/500kHz
Technological Functions
134 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.3 Example: Start 1Count5V/500kHz
Integration into the User Program (Not for Modified User Data Interface)
Create block FC101 and integrate it in your control program (in OB1, for example). This
block requires the data block DB1 with a length of 16 bytes. The start address of the module
in the following example is 256.
STL Description
Block: FC101
Network 1: Presettings
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 135
1Count5V/500kHz
3.3 Example: Start 1Count5V/500kHz
Testing
Use "Monitor/Modify Variables" to monitor the count value and the gate.
1. Select the "Block" folder in your project. Choose the "Insert > S7 Block > Variable Table"
menu command to insert the VAT 1 variable table, and then confirm with OK.
2. Open the VAT 1 variable table, and enter the following variables in the "Address" column:
DB1.DBD8 (current count value)
DB1.DBx13.0 (internal gate status)
3. Choose "PLC > Connect To > Configured CPU" to switch to online.
4. Choose "Variable > Monitor" to switch to monitoring.
5. Switch the CPU to RUN mode.
The "internal gate status" bit must be set.
6. Use your encoder to generate pulses.
Result
You can now see that:
● The UP LED on the 1Count5V/500kHz is on. The status of the UP LED changes with
each new pulse.
● The count value in the block changes.
Technological Functions
136 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.4 Terminal Assignment Diagram
Wiring Rules
The cables (terminals 1 and 8 and terminals 15 and 16) 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 in the Appendix).
&RXQW
A, /A: Track A
9N+] 70(6DQG B, /B: Track B
6) &RXQW9N+]
N, /N: Track N
24 VDC: Sensor supply
M: Chassis ground
DI: Digital input
DO1: Digital output
DO2: Digital output
9LQFUHPHQWDO 83 '1
HQFRGHU 6<1
(6'($%
$ $ '2 '2
9 0 0 0
% % 9'& 9'&
1 1 ',
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 137
1Count5V/500kHz
3.5 Operating mode of the 1Count5V/500kHz
Introduction
To begin with, decide how you want to use the 1Count5V/500kHz. You can choose from the
following operating modes:
Technological Functions
138 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.5 Operating mode of the 1Count5V/500kHz
Note
Fast mode is designed for use in especially short isochronous cycles. You need STEP 7 to
configure isochronous operation.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 139
1Count5V/500kHz
3.6 Count Modes
3.6.1 Overview
Introduction
The counting modes are used in counting applications (for counting of items, for example).
For the "Counting Mode" parameter, you can select from the following modes:
● Count continuously (for position detection with incremental encoders, for example)
● Count once (for counting items up to a maximum limit, for example)
● Count periodically (in applications with recurring counting operations, for example)
To execute one of these modes, you have to assign parameters to the 1Count5V/500kHz.
Load Value
You can specify a count value through a load value for the 1Count5V/500kHz.
This load value is either applied directly as the new count value (LOAD_VAL) or it is applied
as the count value when one of the following events occurs (LOAD_PREPARE):
● In the Count once and Count periodically counting modes
– The low or high counting limit is reached when a main count direction is not assigned.
– The assigned high counting limit is reached when the main count direction is up.
– Zero is reached when the main count direction is down.
● In all counting modes
– The counting operation is started by a SW gate or HW gate (if the counting operation
is continued, the load value is not applied).
– Synchronization
– Latch and retrigger
Technological Functions
140 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Gate Control
To control the 1Count5V/500kHz, you have to use the gate functions.
Isochrone Mode
In isochrone mode, the 1Count5V/500kHz accepts control bits and control values from the
control interface in each bus cycle and reports back the response in the same cycle.
In each cycle, the 1Count5V/500kHz transfers the count or latch value that was valid at time
Ti and the status bits valid at time Ti.
A count controlled by hardware input signals can only be transferred in the same cycle if the
input signal occurred before time Ti.
(see Isochrone Mode Manual)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 141
1Count5V/500kHz
3.6 Count Modes
Definition
In this mode, the 1Count5V/500kHz counts endlessly as of the load value:
● If the 1Count5V/500kHz reaches the upper count limit when counting up, and another
count pulse then comes, it will jump to the lower count limit and continue counting from
there without losing the pulse.
● If the 1Count5V/500kHz reaches the lower count limit when counting down, and another
count pulse then comes, it will jump to the upper count limit and continue counting from
there without losing the pulse.
● The upper count limit is set at +2147483647 (= 231 - 1).
● The lower count limit is set at -2147483648 (= -231).
&RXQWHUVWDWXV
+LJKFRXQWLQJOLPLW
/RDGYDOXH
/RZFRXQWLQJOLPLW
Technological Functions
142 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
See also
Gate Functions in Count Modes (Page 150)
Latch Function (Page 153)
Synchronization (Page 156)
Behavior of the Outputs in Count Modes (Page 160)
Assignment of the Feedback and Control Interface for the Count Modes (Page 168)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 143
1Count5V/500kHz
3.6 Count Modes
Definition
In this mode, the 1Count5V/500kHz counts once only, depending on the main count direction
set.
● When there is no main count direction:
– Counts as of the load value.
– Counts up or down.
– The count limits are fixed at the maximum count range.
– In the event of overflow or underflow at the respective count limit, the gate is closed
automatically.
● When the main count direction is up:
– Counts as of the load value.
– Counts up or down.
– When the upper count limit is reached, the counter jumps to the load value and the
gate is closed.
– The upper limit can be assigned parameters, and the load value has a RESET status
of 0 and can be changed.
● When the count direction is down:
– Counts as of the load value.
– Counts up or down.
– When the lower count limit is reached, the 1Count5V/500kHz jumps to the load value
and the gate is closed.
– The lower limit is fixed at 0, and the load value can be assigned parameters
(parameter: upper count limit) and can be changed.
Technological Functions
144 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
The internal gate is automatically closed in the event of an overflow/underflow at the count
limits. To restart counting, you have to open the gate again.
&RXQWHUVWDWXV
8SSHU 676B2)/:
FRXQWOLPLW
/RDGYDOXH
676B1'
/RZHU 676B8)/:
FRXQWOLPLW
Figure 3-3 Once-Only Counting Without Main Count Direction; Terminating Gate Function
With an interrupting gate function, the count remains at the underflow when the gate is
started.
&RXQWHUVWDWXV
8SSHU 676B2)/:
FRXQWOLPLW
/RDGYDOXH
/RZHU
FRXQWOLPLW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 145
1Count5V/500kHz
3.6 Count Modes
See also
Gate Functions in Count Modes (Page 150)
Latch Function (Page 153)
Synchronization (Page 156)
Behavior of the Outputs in Count Modes (Page 160)
Assignment of the Feedback and Control Interface for the Count Modes (Page 168)
Technological Functions
146 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Definition
In this mode, the 1Count5V/500kHz counts periodically, depending on the main count
direction set.
● When there is no main count direction:
– Counts as of the load value.
– Counts up or down.
– The count limits are fixed at the maximum count range.
– In the event of an overflow or underflow at the respective count limit, the
1Count5V/500kHz jumps to the load value and continues counting from there.
● When the main count direction is up:
– Counts as of the load value.
– Counts up or down.
– The upper limit can be assigned parameters, and the load value has a RESET status
of 0 and can be changed.
– When the upper count limit is reached, the 1Count5V/500kHz jumps to the load value
and continues counting from there.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 147
1Count5V/500kHz
3.6 Count Modes
&RXQW
+LJKFRXQWLQJ 676B2)/:
OLPLW
/RDGYDOXH
676B1'
/RZFRXQWLQJ
676B8)/:
OLPLW
*DWHVWDUW *DWHVWRS 7LPH
&RXQW
+LJK
676B2)/:
FRXQWLQJOLPLW
/RDGYDOXH
/RZ
FRXQWLQJOLPLW
Technological Functions
148 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
See also
Gate Functions in Count Modes (Page 150)
Latch Function (Page 153)
Synchronization (Page 156)
Behavior of the Outputs in Count Modes (Page 160)
Assignment of the Feedback and Control Interface for the Count Modes (Page 168)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 149
1Count5V/500kHz
3.6 Count Modes
Internal gate
The internal gate is the logical AND operation of the HW gate and SW gate. Counting is only
active when the HW gate and the SW gate are open. The STS_GATE feedback bit (internal
gate status) indicates this. If a HW gate has not been assigned, the setting of the SW gate is
decisive. Counting is activated, interrupted, continued, and canceled by means of the
internal gate. In the Count once counting mode, the internal gate is closed automatically
when there is an overflow/underflow at the counting limits.
Technological Functions
150 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
&RXQW
+LJKFRXQWLQJOLPLW
/RDGYDOXH
/RZFRXQWLQJOLPLW
&RXQWHUVWDWXV
8SSHUFRXQWOLPLW
/RDGYDOXH
/RZHUFRXQWOLPLW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 151
1Count5V/500kHz
3.6 Count Modes
Technological Functions
152 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Introduction
There are two latch functions:
● The Latch and Retrigger function
● The Latch function
&RXQWSXOVHV
6:B*$7(
',GLJLWDOLQSXW
&RXQWHUVWDWXV
/DWFKYDOXH
This function stores the current internal count of the 1Count5V/500kHz and retriggers
counting when there is a positive edge on the digital input.
This means that the current internal counter status at the time of the positive edge is stored
(latch value), and the 1Count5V/500kHz is then loaded again with the load value, from which
counting resumes.
The counting mode must be enabled with the SW gate before the function can be executed.
It is started with the (first) positive edge on the digital input.
The stored count rather than the current count is indicated in the feedback interface. The
STS_DI bit indicates the level of the latch and retrigger signal.
The latch value is preassigned with its RESET state (see RESET states table). It is not
changed when the SW gate is opened.
Direct loading of the counter does not cause the indicated stored count to be changed.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 153
1Count5V/500kHz
3.6 Count Modes
If you close the SW gate, counting is only interrupted; this means that when you open the
SW gate again, counting is continued. The DI digital input remains active even when the
SW gate is closed.
Counting is also latched and triggered in isochrone mode with each edge on the digital input.
The count that was valid at the time of the last edge before Ti is displayed in the feedback
interface.
&RXQWSXOVHV
6:B*$7(
',GLJLWDOLQSXW
&RXQWHUVWDWXV
/DWFKYDOXH
Count and latch value are preset with their RESET states (see RESET states table).
The counting function is started when the SW gate is opened. The 1Count5V/500kHz begins
at the load value.
The latch value is always the exact count at the time of the positive edge on the digital input
DI.
The stored count rather than the current count is indicated in the feedback interface. The
STS_DI bit indicates the level of the latch signal.
Direct loading of the counter does not cause the indicated stored count to be changed.
In isochrone mode, the count that was latched at the time of the last positive edge before Ti
is displayed in the feedback interface.
When you close the SW gate, the effect is either canceling or interrupting, depending on the
parameter assignment. The digital input DI remains active even when the SW gate is closed.
Further possible causes of parameter assignment errors with the latch function:
● Incorrect parameter assignment of the digital output function (Function DI)
Technological Functions
154 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 155
1Count5V/500kHz
3.6 Count Modes
3.6.8 Synchronization
Introduction
There are two methods of synchronizing the 1Count5V/500kHz:
● Synchronization with DI
● Synchronization with DI and zero mark
Synchronization with DI
In order to use this function, you must first select it with the "Synchronize on Positive Edge"
Function DI parameter.
,QWHUQDOFRXQWSXOVHV
XSRUGRZQ
'LJLWDOLQSXW
]HURPDUN
6\QFKURQL]DWLRQ
RQFHRQO\
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
6\QFKURQL]DWLRQ
SHULRGLF
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
Technological Functions
156 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
If you have assigned synchronization, the positive edge of a reference signal on the input
sets the 1Count5V/500kHz to the load value.
You can select between once-only and periodic synchronization ("Synchronization"
parameter).
The following conditions apply:
● The counting mode must have been started with the SW gate.
● The "Enable synchronization CTRL_SYN" control bit must be set.
● In once-only synchronization, the first edge loads the1Count5V/500kHz with the load
value after the enable bit is set.
● In periodic synchronization, the first edge and each subsequent edge load the
1Count5V/500kHz with the load value after the enable bit is set.
● After successful synchronization, the STS_SYN feedback bit is set and the SYN LED
comes on. The RES_STS control bit resets the feedback bit and switches the LED off.
● 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.
In isochrone mode, the set feedback bit STS_SYN indicates that the positive edge on the
digital input was between time Ti in the current cycle and Ti in the previous cycle.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 157
1Count5V/500kHz
3.6 Count Modes
,QWHUQDOFRXQWSXOVHV
XSRUGRZQ
'LJLWDOLQSXW',
=HURPDUN
6\QFKURQL]DWLRQ
RQFHRQO\
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
6\QFKURQL]DWLRQ
SHULRGLFDOO\
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
Technological Functions
158 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
If you have assigned synchronization with DI and zero mark, the DI serves as the HW
enable. When the HW enable is active, the 1Count5V/500kHz is loaded with the load value
by the zero mark of the encoder.
You can select between once-only and periodic synchronization.
The following conditions apply:
● The counting mode must have been started with the SW gate.
● The "Enable synchronization CTRL_SYN" control bit must be set.
● In once-only synchronization, the first zero mark loads the 1Count5V/500kHz with the
load value after the enable bit and the HW enable are set.
● In periodic 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.
● After successful synchronization, the STS_SYN feedback bit is set and the SYN LED
comes on. The RES_STS control bit resets the feedback bit and switches the LED off.
● 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.
In isochrone mode, the set feedback bit STS_SYN indicates that the positive edge on the
digital input was between time Ti in the current cycle and Ti in the previous cycle.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 159
1Count5V/500kHz
3.6 Count Modes
Introduction
The 1Count5V/500kHz lets you store two comparison values, which are assigned to the
digital outputs. The outputs can be activated, depending on the count and comparison
values. The various ways of setting the behavior of the outputs are described in this section.
Output
You can switch the outputs on and off with the control bits SET_DO1 and SET_DO2.
The control bits CTRL_DO1 or CTRL_DO2 must be set for this.
You can query the status of the outputs with the status bits STS_DO1 and STS_DO2 in the
feedback interface.
The status bits STS_CMP1 and STS_CMP2 indicate that the relevant output is or was
switched on. These status bits retain their status until they are acknowledged. If the output is
still switched, the corresponding bit is set again immediately. These status bits are also set
when the control bit SET_DO1 or SET_DO2 is operated without DO1 or DO2 being enabled.
Isochrone mode: In isochrone mode, the outputs DO1 and DO2 are switched at time To.
Technological Functions
160 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 161
1Count5V/500kHz
3.6 Count Modes
Technological Functions
162 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Isochrone mode: In isochrone mode, as well, the DO1 output is switched as soon as the
comparison condition is fulfilled and is therefore independent of the bus cycle.
&RXQW
9
9
W
'2
W
&RXQW
9
9
W
'2
W
Setting or Modifying the Function and Behavior of the Digital Output DO1
When setting or modifying the behavior of DO1, you must take all assignable
interdependencies into account. Failure to do so will generate a parameter assignment error
or a loading error.
Boundary conditions:
If you assign "Switch at Comparison Values" for DO1, you must:
● Set hysteresis = 0, and
● Assign "Output" for the DO2 output
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 163
1Count5V/500kHz
3.6 Count Modes
Hysteresis
An encoder can remain at a particular position and then fluctuate around this position. This
state causes the count to fluctuate around a particular value. If there is a comparison value
in this fluctuation range, for example, the associated output is switched on and off in
accordance with the rhythm of the fluctuations. To prevent switching occurring in the case of
small fluctuations, the 1Count5V/500kHz is equipped with an assignable hysteresis. You can
assign a range between 0 and 255 (0 means: hysteresis switched off).
Hysteresis also works with overflow and underflow.
Method of Operation with Count ≤ Comparison Value and Count ≥ Comparison Value
The diagram below provides an example of how hysteresis works. The figure shows the
differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as
opposed to hysteresis of 3. In the example, the comparison value is 5.
The following settings are assigned for the counter: "Main count direction" = "Up" and
"Switch on at count ≥ comparison value".
When the comparison condition is met, hysteresis becomes active. While the hysteresis is
active, the comparison result 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.
&RXQW
+\V
+\V
Figure 3-15 Example of How Hysteresis Works
Note
If the count direction changes on the comparison value when hysteresis is active, the output
is reset.
Technological Functions
164 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Method of Operation when the Comparison Value Is Reached and the Pulse Duration = 0
The diagram below provides an example of how hysteresis works. The figure shows the
differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as
opposed to hysteresis of 3. In the example, the comparison value is 5.
The following settings are assigned for the counter: "Pulse on reaching the comparison
value", "No main count direction" and "Pulse duration = 0".
When the comparison conditions are met, hysteresis becomes active. While the hysteresis is
active, the comparison result remains unchanged. If the count value goes outside the
hysteresis range, hysteresis is no longer active. The comparator deletes the result of the
comparison.
&RXQW
+\V
+\V
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 165
1Count5V/500kHz
3.6 Count Modes
Method of Operation when the Comparison Value Is Reached, Output Pulse Duration
The diagram below provides an example of how hysteresis works. The figure shows the
differences in the behavior of an output when hysteresis of 0 (= switched off) is assigned as
opposed to hysteresis of 3. In the example, the comparison value is 5.
The following settings are assigned for the counter: "Pulse on reaching the comparison
value", "No main count direction" and "pulse duration > 0".
When the comparison conditions have been met, hysteresis becomes active and a pulse of
the assigned duration 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.
&RXQW
+\V
+\V
Figure 3-17 Example of How Hysteresis Works
Technological Functions
166 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Note
An output set with SET_DO1 or SET_DO2 is not reset at the comparison value (by the
comparator).
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 167
1Count5V/500kHz
3.6 Count Modes
3.6.10 Assignment of the Feedback and Control Interface for the Count Modes
Note
The following data of the control and feedback interfaces are consistent for the
1Count5V/500kHz:
Bytes 0 to 3
Bytes 4 to 7
Bytes 8 to 11 (modified user data interface)
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your DP master (only for configuration using the GSD file).
Assignment Tables
The tables show the assignment of the feedback and control interface for the counting
modes.
Technological Functions
168 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Address Assignment
Bytes 0 to 3 Load value direct, preparatory, comparison value 1 or 2
Byte 0 Behavior of DO1, DO2 of the 1Count5V/500kHz
Bit 2 Bit 1 Bit 0 Function DO1
0 0 0 Output
0 0 1 Switch on at count ≥ comparison value
0 1 0 Switch on at count ≤ comparison value
0 1 1 Pulse on reaching the comparison value
1 0 0 Switch at comparison values
1 0 1 blocked
1 1 0 blocked
1 1 1 blocked
Bit 5 Bit 4 Function DO2
0 0 Output
0 1 Switch on at count ≥ comparison value
1 0 Switch on at count ≤ comparison value
1 1 Pulse on reaching the comparison value
Bits 3, 6, and 7: Reserve = 0
Bytes 1 to 3 Byte 1: Hysteresis DO1, DO2 (range 0 to 255)
Byte 2: Pulse duration [2ms] DO1, DO2 (range 0 to 255)
Byte 3: Reserve = 0
Byte 4 EXTF_ACK Bit 7: Error diagnostics acknowledgment
CTRL_DO2 Bit 6: Enable DO2
SET_DO2 Bit 5: Control bit DO2
CTRL_DO1 Bit 4: Enable DO1
SET_DO1 Bit 3: Control bit DO1
RES_STS Bit 2: Start resetting of status bit
CTRL_SYN Bit 1: Enable synchronization
SW_GATE Bit 0: SW gate control bit
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 169
1Count5V/500kHz
3.6 Count Modes
Address Assignment
Byte 5 Bit 7: Reserve = 0
Bit 6: Reserve = 0
Bit 5: Reserve = 0
C_DOPARAM Bit 4: Change function and behavior of DO1, DO2
CMP_VAL2 Bit 3: Load comparison value 2
CMP_VAL1 Bit 2: Load comparison value 1
LOAD_PREPARE Bit 1: Load counter preparatory
LOAD_VAL Bit 0: Load counter direct
Bytes 6 to 7 Reserve = 0 1
1 Not used for modified user interface
Technological Functions
170 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 171
1Count5V/500kHz
3.6 Count Modes
Table 3-8 Access to the Control and Feedback Interface in STEP 7 Programming
Technological Functions
172 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
(YHQWVWLOOSHQGLQJRQUHVHW
)HHGEDFNVLJQDOV
RQHRIWKHVWDWXVELWV
&RQWUROELW
5(6B676
)HHGEDFNELW
5(6B676B$
W
5HVHWH[HFXWHG
5HTXHVWFDQFHOHG
&RXQW9N+]H[HFXWHVWKHUHVHW
5HTXHVWUHVHW
(UURUELW
(55B/2$'
&RQWUROELW
/2$'B9$/
/2$'B35(3$5(
&03B9$/
&03B9$/
&B'23$5$0
)HHGEDFNELW
676B/2$'
W
9DOXHLVDSSOLHG(QGRIWUDQVIHU
&DQFHOUHTXHVWDQGDQGNHHSYDOXH
DYDLODEOH
&RXQW9N+]KDVXQGHUVWRRGWKHUHTXHVW
5HTXHVWYDOXHWUDQVIHUDQGPDNHYDOXHDYDLODEOH
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 173
1Count5V/500kHz
3.6 Count Modes
Note
Only one of the following control bits can be set at a particular time:
CMP_VAL1 or CMP_VAL2 or LOAD_VAL or LOAD_PREPARE or C_DOPARAM.
Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted
again.
The ERR_LOAD error bit is only deleted when the following is carried out correctly.
&RQWUROELW
LQXVHU
SURJUDP
6WDWXVELW
RIPRGXOH
Technological Functions
174 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Error Detection
The program errors must be acknowledged. They have been detected by the
1Count5V/500kHz and are indicated at the feedback interface.
A channel-specific diagnosis is carried out if you have enabled group diagnostics in your
parameter assignment (see the ET 200S Distributed I/O System Manual).
The parameter assignment error bit is acknowledged by means of correct parameter
assignment.
$QHUURUKDVRFFXUUHGWKH&RXQW9N+]VHWVDQHUURU
ELWDGLDJQRVWLFPHVVDJHPD\DSSHDUHUURUGHWHFWLRQ
FRQWLQXHV
(UURUHOLPLQDWHGZKHQ(;7)B$&.LVVHWE\WKHXVHU
SURJUDPWKH&RXQW9N+]GHOHWHVWKHHUURUELWD
GLDJQRVWLFPHVVDJHPD\DSSHDU
HJHUURUELW
(55B9
(UURUDFNQRZOHGJ
(;7)B$&.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 175
1Count5V/500kHz
3.6 Count Modes
Introduction
You can use either of the following to assign parameters for the 1Count5V/500kHz:
● A GSD file (http://www.ad.siemens.de/csi/gsd)
● STEP 7 V5.3 SP2 or later
Technological Functions
176 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.6 Count Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 177
1Count5V/500kHz
3.7 Measurement Modes
3.7.1 Overview
Introduction
You can choose between the following modes:
● Frequency Measurement
● Period Measurement
● Rotational Speed Measurement
To execute one of these modes, you have to assign parameters to the 1Count5V/500kHz.
Measurement Process
The measurement is carried out during the parameter assignment integration time. When the
integration time elapses, the measured value is updated.
The end of a measurement is indicated by the STS_CMP1 status bit. This bit is reset by the
RES_STS control bit at the control interface.
If there were not at least two rising edges in the integration time which has been assigned
parameters, 0 is returned as the measured value.
A value of -1 is returned by the end of the first integration time.
You can change the integration time for the next measurement during operation.
Gate Control
To control the 1Count5V/500kHz, you have to use the gate functions.
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.
In each cycle the 1Count5V/500kHz transfers a measured value and the status bits that were
valid at the time Ti.
The measurement starts and ends at the time Ti.
Technological Functions
178 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
NOTICE
The value range limits for the integration time must not be exceeded (see table for every
separate measuring mode).
If the range limits are violated, this results in a parameter assignment error, and the
1Count5V/500kHz does not go into clocked mode.
Note
When you change the configuration from non-clocked to clocked mode and vice versa, you
must always adjust the integration time parameter if you want to keep the length of the
integration time.
See also
Parameter Assignment for Measurement Modes (Page 209)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 179
1Count5V/500kHz
3.7 Measurement Modes
Measuring Principle
The 1Count5/500kHz counts each positive edge of a pulse and assigns it a time value in µs.
The update time indicates the time interval at which the measured value is updated by the
module in the feedback interface.
The following applies for a pulse train with one or more pulse trains per update time:
Dynamic measuring time = Time of last pulse in the current update time interval
minus
Time of last pulse in the previous update time interval
When the update time has elapsed, a new measured value is calculated and output with the
dynamic measuring time.
If the current update time does not contain a pulse, the following dynamic measuring time
results:
Technological Functions
180 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
If the "1 Pulse per dynamic measuring time" estimated measured value is less than the last
measured value during the frequency and speed measurement, this estimated measured
value is output as the new measured value. With the period measurement, the dynamic
measuring time is output as the estimated period if the dynamic measuring time is greater
than the last measured period.
'\QDPLF
PHDVXULQJWLPH
'\QDPLF
PHDVXULQJWLPH
'\QDPLF
PHDVXULQJWLPH
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 181
1Count5V/500kHz
3.7 Measurement Modes
The following figure illustrates the principle of continuous measurement using frequency
measurement as an example.
*DWH
3XOVHWUDLQ
0HDVXUHG
YDOXH
8SGDWHWLPH
Gate Control
To control the 1Count5V/500kHz, you have to use the gate functions.
Isochrone Mode
In isochrone mode, the 1Count5V/500kHz accepts control bits and control values from the
control interface in each bus cycle and reports back the response in the same cycle.
In each cycle, the 1Count5V/500kHz transfers a measured value and the status bits that
were valid at the time Ti.
The measurement starts and ends at time Ti.
Technological Functions
182 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Note
The value range limits for the integration time/update time must not be exceeded (see tables
for the individual measuring modes).
A violation of the value range limits will result in a parameter assignment error, and the
1Count5V/500kHz will not go into isochrone mode.
Note
When you change the configuration from non-isochrone to isochrone mode and vice versa,
you must always adjust the integration time/update time parameter if you want to keep the
length of the integration time/update time.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 183
1Count5V/500kHz
3.7 Measurement Modes
Definition
In frequency measurement mode, the 1Count5V/500kHz counts the pulses that arrive within
a set integration time.
Integration time
You preset the integration time with the Integration Time parameter (see table).
Frequency Measurement
The value of the calculated frequency is made available in the unit Hz*10-3. The measured
frequency value can be read in the feedback interface (byte 0 to 3).
,QWHJUDWLRQWLPH
Q PV Q PV
&RXQWSXOVHV
,QWHUQDOJDWH
%HJLQQLQJRIIUHTXHQF\ (QGRIIUHTXHQF\
PHDVXUHPHQW PHDVXUHPHQW
Technological Functions
184 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
See also
Gate Functions in Measurement Modes (Page 199)
Behavior of the Outputs in Measurement Modes (Page 200)
Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 202)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 185
1Count5V/500kHz
3.7 Measurement Modes
Definition
In frequency measurement mode, the 1Count5V/500kHz counts the pulses that arrive within
a dynamic measuring time.
Update time
The 1Count5V/500kHz updates the measured values cyclically. You preset the update time
with the Update Time parameter (see table). You can change the update time during
operation.
Frequency Measurement
The value of the calculated frequency is made available in the unit Hz*10-3. The measured
frequency value can be read in the feedback interface (byte 0 to 3).
8SGDWHWLPH 8SGDWHWLPH
&RXQWSXOVHV
,QWHUQDOJDWH
6WDUWRIIUHTXHQF\ (QGRI
PHDVXUHPHQW IUHTXHQF\PHDVXUHPHQW
Technological Functions
186 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 187
1Count5V/500kHz
3.7 Measurement Modes
See also
Gate Functions in Measurement Modes (Page 199)
Behavior of the Outputs in Measurement Modes (Page 200)
Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 202)
Technological Functions
188 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Definition
In rotational speed measurement mode, the 1Count5V/500kHz counts the pulses that arrive
from a tachometer generator within a set integration time and calculates the speed of the
connected motor.
Integration time
You preset the integration time with the Integration Time parameter.
,QWHJUDWLRQWLPH ,QWHJUDWLRQWLPH
&RXQWSXOVHV
,QWHUQDO*DWH
%HJLQQLQJRIURWDWLRQDO (QGRIURWDWLRQDO
VSHHGPHDVXUHPHQW VSHHGPHDVXUHPHQW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 189
1Count5V/500kHz
3.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Table 3-13 Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder
Revolution = 60)
Technological Functions
190 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Definition
In rotational speed measurement mode, the 1Count5V/500kHz counts the pulses that are
received from a tachometer generator within a dynamic measuring time, and calculates the
speed from this value with the number of pulses per encoder revolution.
Update Time
The 1Count5V/500kHz updates the measured values cyclically. You preset the update time
with the Update Time parameter (see table). You can change the update time during
operation.
8SGDWHWLPH 8SGDWHWLPH
&RXQWSXOVHV
,QWHUQDOJDWH
6WDUWRIURWDWLRQDOVSHHG (QGRI
PHDVXUHPHQW URWDWLRQDOVSHHGPHDVXUHPHQW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 191
1Count5V/500kHz
3.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
Possible Measuring Ranges with Error Indication (Number of Pulses per Encoder Revolution = 60)
Technological Functions
192 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
See also
Gate Functions in Measurement Modes (Page 199)
Behavior of the Outputs in Measurement Modes (Page 200)
Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 202)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 193
1Count5V/500kHz
3.7 Measurement Modes
Definition
In period measurement mode, the 1Count5V/500kHz measures the time between two
positive edges of the counting signal by counting the pulses of an internal quartz-accurate
reference frequency (16 MHz) within a set integration time.
Integration Time
You preset the integration time with the Integration Time parameter (see the table below).
Period Measurement
The value of the calculated period is given in the unit 1 µs and 1/16 µs. The measured period
can be read in the feedback interface (byte 0 to 3).
,QWHJUDWLRQWLPH ,QWHJUDWLRQWLPH
3HULRG
&RXQWSXOVHV
,QWHUQDOJDWH
6WDUWRISHULRG (QGRISHULRG
PHDVXUHPHQW PHDVXUHPHQW
Technological Functions
194 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
1 μs resolution
1/16 µs resolution
1 µs resolution
1/16 µs resolution
See also
Gate Functions in Measurement Modes (Page 199)
Behavior of the Outputs in Measurement Modes (Page 200)
Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 202)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 195
1Count5V/500kHz
3.7 Measurement Modes
Definition
In period measurement mode, the 1Count5V/500kHz indicates the dynamic measuring time
as a period. If the period is less than the update time, then an average is calculated for the
period.
Update Time
The 1Count5V/500kHz updates the measured values cyclically. You preset the update time
with the Update Time parameter (see table). You can change the update time during
operation.
These limits must not be violated. If these limits are violated, the 1Count5V/500kHz generates a parameter assignment
error and will not go into isochrone mode.
Period Measurement
The value of the calculated period is given in the unit 1 µs and 1/16 µs. The measured period
can be read in the feedback interface (byte 0 to 3).
8SGDWHWLPH 8SGDWHWLPH
3HULRG
&RXQWSXOVHV
,QWHUQDOJDWH
6WDUWRISHULRGPHDVXUH (QGRISHULRGPHDVXUH
PHQW PHQW
Technological Functions
196 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Limit-Value Monitoring
The following value ranges are permitted for limit-value monitoring:
1 μs resolution
1/16 µs resolution
1 µs resolution
Period Period
Tmin ± absolute error Tmin ± absolute error
1 µs* (10 ± 0) 1 µs* (100 000 ± 10)
1 µs* (100 ± 0) 1 µs* (1 000 000 ± 100)
1 µs* (1 000 ± 0) 1 µs* (10 000 000 ± 1 002)
1 µs* (10 000 ± 1) 1 µs* (100 000 000 ± 10 020)
1/16 µs resolution
Period Period
Tmin ± absolute error Tmin ± absolute error
1/16 µs* (160 ± 1) 1/16 µs* (1 600 000 ± 160)
1/16 µs* (1 600 ± 1) 1/16 µs* (16 000 000 ± 1 600)
1/16 µs* (16 000 ± 3) 1/16 µs* (160 000 000 ± 16 000)
1/16 µs* (160 000 ± 20) 1/16 µs* (1 600 000 000 ± 160 000)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 197
1Count5V/500kHz
3.7 Measurement Modes
See also
Gate Functions in Measurement Modes (Page 199)
Behavior of the Outputs in Measurement Modes (Page 200)
Assignment of the Feedback and Control Interfaces for the Measurement Modes (Page 202)
Technological Functions
198 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Internal gate
The internal gate is the logical AND operation of the HW gate and SW gate. Counting is only
active when the HW gate and the SW gate are open. The STS_GATE feedback bit (internal
gate status) indicates this. If a HW gate has not been assigned, the setting of the SW gate is
decisive.
Gate Control
Gate control by means of the SW gate only
The opening/closing of the SW gate starts/stops measurement.
If the SW gate is opened in isochrone mode in bus cycle "n" by setting the SW_GATE control
bit, measurement starts at time Ti in cycle "n+1".
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 opening and closing of the HW gate with the SW gate open starts/stops measurement.
The SW gate is opened/closed by means of the control interface with the SW_GATE bit.
The HW gate is opened/closed by means of a 24-V signal on the digital input.
In isochrone mode, when the SW gate is open, measurement starts at time Ti, immediately
after the HW gate has opened. The measurement ends at time Ti, which occurs immediately
after the HW gate has closed.
When the HW gate is open, the measurement starts at time Ti in the cycle, immediately after
the SW has opened, and ends at time Ti in the cycle, which occurs immediately after the SW
gate has closed.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 199
1Count5V/500kHz
3.7 Measurement Modes
Introduction
The various ways of setting the behavior of the outputs are described in this section.
Output
If you want to switch the outputs on or off, you must enable them with the CTRL_DO1 and
CTRL_DO2 control bits.
You can switch the outputs on and off with the control bits SET_DO1 and SET_DO2.
You can query the status of the outputs with the status bits STS_DO1 and STS_DO2 in the
feedback interface.
In isochrone mode, the outputs are switched at time To.
Technological Functions
200 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Limit-Value Monitoring
8)/: 2)/:
*DWHVWDUW
0HDVXUHGYDOXH
/RZ +LJK
OLPLW OLPLW
After the integration time elapses, the measured value obtained (frequency, rotational speed,
or period) is compared with the assigned limit values.
If the current measured value is under the assigned low limit (measured value < low limit), bit
STS_UFLW = 1 is set in the feedback interface.
If the current measured value is over the assigned high limit (measured value > high limit),
bit STS_OFLW = 1 is set in the feedback interface.
You must acknowledge these bits with the RES_STS control bit.
If the measured value is still outside or again outside the limits after acknowledgment, the
corresponding status bit is set again.
If you set the low limit at 0, you switch off dynamic monitoring of violation of the low limit
value.
Depending on the parameter assignment, the enabled digital output DO1 can be set by the
limit-value monitoring:
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 201
1Count5V/500kHz
3.7 Measurement Modes
3.7.11 Assignment of the Feedback and Control Interfaces for the Measurement Modes
Note
The following data of the control and feedback interfaces are consistent for the
1Count5V/500kHz:
Bytes 0 to 3
Bytes 4 to 7
Bytes 8 to 11 (modified user data interface)
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your master (only for configuration using the GSD file).
Assignment Tables
Technological Functions
202 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Address Assignment
Bytes 0 to 3 Low limit or high limit
Function of DO1
Byte 0: Bit 1 Bit 0 Function DO1
0 0 Output
0 1 Measured value outside the limits
1 0 Measured value under the low limit
1 1 Measured value over the high limit
Bytes 1 to 3: Reserve = 0
Integration time/update time
Byte 0, 1: Integration time [n*10ms]
(Range 1 to 1000/12000)
Byte 2, 3: Reserve = 0
Byte 4 Bit 7: Error diagnostics acknowledgement EXTF_ACK
Bit 6: Enable DO2 CTRL_DO2
Bit 5: Control bit DO2 SET_DO2
Bit 4: Enable DO1 CTRL_DO1
Bit 3: Control bit DO1 SET_DO1
Bit 2: Start resetting of status bit RES_STS
Bit 1: Reserve = 0
Bit 0: SW gate control bit SW_GATE
Byte 5 Bit 7: Reserve = 0
Bit 6: Reserve = 0
Bit 5: Reserve = 0
Bit 4: Change function of DO1, C_DOPARAM
Bit 3: Reserve = 0
Bit 2: Change integration time, C_INTTIME
Bit 1: Load high limit LOAD_PREPARE
Bit 0: Load low limit LOAD_VAL
Bytes 6 to 7 Reserve = 01
1 Not used for modified user interface
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 203
1Count5V/500kHz
3.7 Measurement Modes
Technological Functions
204 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 205
1Count5V/500kHz
3.7 Measurement Modes
Table 3-19 Access to the Control and Feedback Interface in STEP 7 Programming
(YHQWVWLOOSHQGLQJDWUHVHW
)HHGEDFNVLJQDOV
2QHRIWKHVWDWXVELWV
&RQWUROELW
5(6B676
)HHGEDFNELW
5(6B676B$
W
5HVHWH[HFXWHG
5HPRYDORIWKHUHTXHVW
7KH&RXQW9N+]H[HFXWHVUHVHWWLQJ
5HTXHVWUHVHW
Technological Functions
206 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
(UURUELW
(55B/2$'
&RQWUROELW W
/2$'B9$/
/2$'B35(3$5(
&B'23$5$0
&B,177,0(
W
)HHGEDFNELW
676B/2$'
W
9DOXHDFFHSWHG(QGRIWUDQVIHU
5HPRYHUHTXHVWDQGNHHSYDOXHDYDLODEOH
7KH&RXQW9N+]KDVXQGHUVWRRGWKHUHTXHVW
5HTXHVWYDOXHWUDQVIHUDQGPDNHYDOXHDYDLODEOH
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.
The ERR_LOAD error bit is only deleted when a correct value is transferred as follows.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 207
1Count5V/500kHz
3.7 Measurement Modes
&RQWUROELW
LQXVHU
SURJUDP
6WDWXVELW
RIPRGXOH
Error Detection
The diagnostic errors must be acknowledged. They have been detected by the
1Count5V/500kHz and are indicated at the feedback interface. A channel-specific diagnosis
is carried out if you have enabled group diagnostics in your parameter assignment (see the
ET 200S Distributed I/O System Manual).
The parameter assignment error bit is acknowledged by means of correct parameter
assignment.
$QHUURUKDVRFFXUUHGWKH&RXQW9N+]VHWVDQHUURU
ELWDGLDJQRVWLFPHVVDJHPD\DSSHDUHUURUGHWHFWLRQ
FRQWLQXHV
(UURUHOLPLQDWHGZKHQ(;7)B$&.LVVHWE\WKHXVHU
SURJUDPWKH&RXQW9N+]GHOHWHVWKHHUURUELWD
GLDJQRVWLFPHVVDJHPD\DSSHDU
HJHUURUELW
(55B9
(UURUDFNQRZOHGJ
(;7)B$&.
Technological Functions
208 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.7 Measurement Modes
Introduction
You can use either of the following to assign parameters for the 1Count5V/500kHz:
● A GSD file (http://www.ad.siemens.de/csi/gsd)
● STEP 7 V5.3 SP2 or later
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 209
1Count5V/500kHz
3.7 Measurement Modes
Technological Functions
210 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.8 Fast mode
3.8.1 Overview
Introduction
This mode is suitable for position detection is especially short isochronous cycles.
This mode represents a subset of the functionality of the continuous counting mode.
It is intended for isochronous mode and differs from continuous counting by having a lower
TDP Modulemin and a TWA equal to zero. The module is operated in this mode as a pure
input module, i.e., there is no control interface in this operating mode.
This mode is available starting with FW Version V2.0 of the module. The module must be
configured as "1Count5V Fast Mode V2.0" in HW Config.
Load value
You can specify a load value for the 1Count5V.
This load value is applied directly as the start value.
Gate Control
To control the 1Count5V, you can use the HW gate.
Isochronous Mode
In each cycle, the 1Count5V transfers the count and the status bits that were valid at time Ti.
See also
Assigning parameters for fast mode (Page 217)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 211
1Count5V/500kHz
3.8 Fast mode
Definition
In this mode, the 1Count5V counts continuously starting from the start value:
When counting up, if the 1Count5V reaches the maximum value that can be represented
with 25 bits (all bits of the counter are set) and another count pulse arrives, the count value
jumps to "0" and resumes counting from there without losing a pulse.
When counting down, if the 1Count5V reaches the value "0" and another count pulse arrives,
the count value jumps to the maximum value that can be represented with 25 bits (all bits of
the counter are set) and resumes counting without losing a pulse.
See also
Assigning parameters for fast mode (Page 217)
Synchronization (Page 213)
Gate function in the case of fast mode (Page 212)
Hardware Gate
The 1Count5V has a HW gate, which can be controlled via the digital input on the 1Count5V.
You assign the hardware gate as the function of the digital input (Function DI "HW Gate"). It
is opened on a positive edge at the digital input and closed on a negative edge.
If no HW gate is assigned, counting becomes active immediately.
The STS_GATE checkback signal indicates whether counting is active.
When the HW gate is opened, this causes counting to continue starting from the current
count.
See also
Synchronization (Page 213)
Technological Functions
212 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.8 Fast mode
3.8.4 Synchronization
Introduction
In order to use this function, you must first select it with the "Synchronize on Positive Edge"
Function DI parameter.
,QWHUQDOFRXQWSXOVHV
XSRUGRZQ
'LJLWDO,QSXW
]HURPDUN
&RXQWYDOXH
6WDUWYDOXH
If you have assigned synchronization, the positive edge of a reference signal on the input
sets the 1Count5V to the start value.
The following conditions apply:
● Fast mode must be active (HW gate).
– When synchronization is activated, the first edge and each additional edge loads the
1Count5V with the start value.
● The signal of a bounce-free switch or the zero mark of a rotary encoder can serve as the
reference signal.
● The STS_DI feedback bit indicates the level of the reference signal.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 213
1Count5V/500kHz
3.8 Fast mode
,QWHUQDOFRXQWSXOVHV
XSRUGRZQ
'LJLWDOLQSXW',
=HURPDUN
&RXQWYDOXH
6WDUWYDOXH
If you have assigned synchronization with DI and zero mark, the DI serves as the HW
enable. When the HW enable is active, the 1Count5V is loaded with the load value by the
zero mark of the encoder.
Technological Functions
214 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.8 Fast mode
Note
For the 1Count5V, the following data of the feedback interface are consistent:
• Bytes 0 to 3
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your master (only for configuration using the GSD file).
Assignment Tables
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 215
1Count5V/500kHz
3.8 Fast mode
Technological Functions
216 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.8 Fast mode
Introduction
You use the following to assign parameters for the 1Count5V:
● STEP 7 Version 5.4 or higher; if necessary, the HSP (hardware support package) must
be downloaded from the Internet
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 217
1Count5V/500kHz
3.9 Position feedback
3.9.1 Overview
Description
This mode encompasses a subset of the functionality of the continuous counting mode. It is
intended for isochrone mode and differs from continuous counting by a smaller TDP
Modulemin and a TWA equal to zero. This TWA equal to zero makes it possible to operate the
module as an input module only. In this case, however, the possible controls are no longer
synchronized with To but rather are executed in the TDP cycle before or after Ti.
To execute this mode, you must assign parameters to the 1Count5V/500kHz.
Load value
You can specify a load value for the 1Count5V/500kHz.
This load value is either applied directly as the new count value (LOAD_VAL) or it is applied
as the new count value when the following events occur (LOAD_PREPARE):
● The counting operation is started by a SW gate or HW gate (if the counting operation is
continued, the load value is not applied).
● Synchronization
● Latch and retrigger
Gate Control
To control the 1Count5V/500kHz, you have to use the gate functions.
Technological Functions
218 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
Isochrone mode
In isochrone mode, the 1Count5V/500kHz accepts control bits and control values from the
control interface in each bus cycle and reports back the response in this mode in the same
cycle or in the next cycle.
In each cycle, the 1Count5V/500kHz transfers the count or latch value that was valid at time
Ti and the status bits valid at time Ti.
A count controlled by hardware input signals can only be transferred in the same cycle if the
input signal occurred before time Ti.
See also
Assigning Parameters for Position Feedback (Page 235)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 219
1Count5V/500kHz
3.9 Position feedback
Definition
In this mode, the 1Count5V/500kHz counts continuously starting from the load value:
● If the 1Count5V/500kHz reaches the high counting limit when counting up, and another
count pulse then comes, it will jump to the low counting limit and continue counting from
there without losing a pulse.
● If the 1Count5V/500kHz reaches the low counting limit when counting down, and another
count pulse then comes, it will jump to the high counting limit and continue counting from
there without losing a pulse.
● The high counting limit is set at +2147483647 (231 – 1).
● The low counting limit is set to –2147483648 (–231).
&RXQWHUVWDWXV
+LJKFRXQWLQJOLPLW
/RDGYDOXH
/RZFRXQWLQJOLPLW
See also
Gate Functions for Position Detection (Page 221)
Latch Function (Page 224)
Synchronization (Page 227)
Technological Functions
220 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
Internal Gate
The internal gate is the logical AND operation of the HW gate and SW gate. Counting is only
active when the HW gate and the SW gate are open. The STS_GATE feedback bit (internal
gate status) indicates this. If a HW gate has not been assigned, the setting of the SW gate is
decisive. Counting is activated, interrupted, continued, and canceled by means of the
internal gate.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 221
1Count5V/500kHz
3.9 Position feedback
&RXQW
+LJKFRXQWLQJOLPLW
/RDGYDOXH
/RZFRXQWLQJOLPLW
&RXQWHUVWDWXV
8SSHUFRXQWOLPLW
/RDGYDOXH
/RZHUFRXQWOLPLW
Technological Functions
222 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
Gate Control
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 223
1Count5V/500kHz
3.9 Position feedback
Overview
There are two latch functions:
● The Latch and Retrigger function
● The Latch function
&RXQWSXOVHV
6:B*$7(
',GLJLWDOLQSXW
&RXQWHUVWDWXV
/DWFKYDOXH
This function stores the current internal count of the 1Count5V/500kHz and retriggers
counting when there is a positive edge on the digital input. This means that the current
internal counter status at the time of the positive edge is stored (latch value), and the
1Count5V/500kHz is then loaded again with the load value, from which counting resumes.
The counting mode must be enabled with the SW gate before the function can be executed.
It is started with the first positive edge on the digital input.
The stored count rather than the current count is indicated in the feedback interface. The
STS_DI bit indicates the status of the latch and retrigger signal.
The latch value is preassigned with its RESET state (see corresponding table). It is not
changed when the SW gate is opened.
Technological Functions
224 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
Direct loading of the counter does not cause the indicated stored count to be changed.
If you close the SW gate, it only interrupts counting; this means that when you open the SW
gate again, counting is continued. The digital input DI remains active even when the SW
gate is closed.
Counting is also latched and triggered in isochrone mode with each edge on the digital input.
The count that was valid at the time of the last edge before Ti is displayed in the feedback
interface.
&RXQWSXOVHV
6:B*$7(
',GLJLWDOLQSXW
&RXQWHUVWDWXV
/DWFKYDOXH
Count and latch value are preset with their RESET states (see corresponding table).
The counting function is started when the SW gate is opened. The 1Count5V/500kHz begins
at the load value.
The latch value is always the exact count at the time of the positive edge on the digital input
DI.
The stored count rather than the current count is indicated in the feedback interface. The
STS_DI bit indicates the level of the latch signal.
Direct loading of the counter does not cause the indicated stored count to be changed.
In isochrone mode, the count that was latched at the time of the last positive edge before Ti
is displayed in the feedback interface.
When you close the SW gate, the effect is either canceling or interrupting, depending on the
parameter assignment. The digital input DI remains active even when the SW gate is closed.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 225
1Count5V/500kHz
3.9 Position feedback
Further possible causes of parameter assignment errors with the latch function:
● Incorrect parameter assignment of the digital output function (Function DI)
Technological Functions
226 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
3.9.5 Synchronization
Synchronization
In order to use this function, you must first select it with the "Synchronize on Positive Edge"
Function DI parameter.
,QWHUQDOFRXQWSXOVHV
XSRUGRZQ
'LJLWDOLQSXW
]HURPDUN
6\QFKURQL]DWLRQ
RQFHRQO\
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
6\QFKURQL]DWLRQ
SHULRGLF
(QDEOH
&57/B6<1
&RXQWYDOXH
/RDGYDOXH
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 227
1Count5V/500kHz
3.9 Position feedback
If you have assigned synchronization, the positive edge of a reference signal on the input
sets the 1Count5V/500kHz to the load value.
You can select between once-only and periodic synchronization ("Synchronization"
parameter).
The following conditions apply:
● The counting mode must have been started with the SW gate.
● The "Enable synchronization CTRL_SYN" control bit must be set.
● In once-only synchronization, the first edge loads the1Count5V/500kHz with the load
value after the enable bit is set.
● In periodic synchronization, the first edge and each subsequent edge load the
1Count5V/500kHz with the load value after the enable bit is set.
● After successful synchronization, the STS_SYN feedback bit is set. It must be reset by
the RES_STS control bit.
● The signal of a bounce-free switch or the zero mark of a rotary encoder can serve as the
reference signal.
● The STS_DI feedback bit indicates the level of the reference signal.
In isochrone mode, the set feedback bit STS_SYN indicates that the positive edge on the
digital input was between time Ti in the current cycle and Ti in the previous cycle.
See also
Synchronization (Page 156)
Technological Functions
228 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
3.9.6 Assignment of the Feedback and Control Interface for Position Feedback
Note
The following data of the control and feedback interfaces are consistent for the
1Count5V/500kHz:
Bytes 0 to 3
Bytes 4 to 7
Bytes 8 to 11 (modified user data interface)
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your master (only for configuration using the GSD file).
Assignment Tables
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 229
1Count5V/500kHz
3.9 Position feedback
Technological Functions
230 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 231
1Count5V/500kHz
3.9 Position feedback
Table 3-26 Access to the Control and Feedback Interface in STEP 7 Programming
(YHQWVWLOOSHQGLQJDWUHVHW
)HHGEDFNVLJQDOV
2QHRIWKHVWDWXVELWV
&RQWUROELW
5(6B676
)HHGEDFNELW
5(6B676B$
W
5HVHWH[HFXWHG
5HPRYDORIWKHUHTXHVW
7KH&RXQW9N+]H[HFXWHVUHVHWWLQJ
5HTXHVWUHVHW
Technological Functions
232 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
(UURUELW
(55B/2$'
&RQWUROELW W
/2$'B9$/
/2$'B35(3$5(
&B'23$5$0
&B,177,0(
W
)HHGEDFNELW
676B/2$'
W
9DOXHDFFHSWHG(QGRIWUDQVIHU
5HPRYHUHTXHVWDQGNHHSYDOXHDYDLODEOH
7KH&RXQW9N+]KDVXQGHUVWRRGWKHUHTXHVW
5HTXHVWYDOXHWUDQVIHUDQGPDNHYDOXHDYDLODEOH
Figure 3-42 Accepting Values with the Load Function (LOAD_VAL; LOAD_PREPARE;
C_DOPARAM; C_INTTIME)
Note
Only one of the following control bits can be set at a particular time:
LOAD_VAL or LOAD_PREPARE.
Otherwise, the ERR_LOAD error is reported until all the specified control bits are deleted
again.
The ERR_LOAD error bit is only deleted when the following is carried out correctly.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 233
1Count5V/500kHz
3.9 Position feedback
&RQWUROELW
LQXVHU
SURJUDP
6WDWXVELW
RIPRGXOH
Error Detection
The program errors must be acknowledged. They have been detected by the
1Count5V/500kHz and are indicated at the feedback interface. A channel-specific diagnosis
is carried out if you have enabled group diagnostics in your parameter assignment (see the
ET 200S Distributed I/O System Manual).
The parameter assignment error bit is acknowledged by means of correct parameter
assignment.
$QHUURUKDVRFFXUUHGWKH&RXQW9N+]VHWVDQHUURU
ELWDGLDJQRVWLFPHVVDJHPD\DSSHDUHUURUGHWHFWLRQ
FRQWLQXHV
(UURUHOLPLQDWHGZKHQ(;7)B$&.LVVHWE\WKHXVHU
SURJUDPWKH&RXQW9N+]GHOHWHVWKHHUURUELWD
GLDJQRVWLFPHVVDJHPD\DSSHDU
HJHUURUELW
(55B9
(UURUDFNQRZOHGJ
(;7)B$&.
Technological Functions
234 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.9 Position feedback
Introduction
You can use either of the following to assign parameters for the 1Count5V/500kHz:
● A GSD file (http://www.ad.siemens.de/csi/gsd)
● STEP 7 V5.3 SP2 or later
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 235
1Count5V/500kHz
3.10 Evaluation of count and direction signal
Signal Evaluation A, B
Signal evaluation by means of A, B allows you to count directionally. Different evaluation
modes are possible depending on the parameter assignment:
Rotary Encoder
The 1Count5V/500kHz can count the edges of the signals. Normally, only the edges at A are
evaluated (single evaluation). To obtain a higher resolution, when assigning parameters
("Signal Evaluation" parameter), you can select whether the signals are to be subjected to
single, double, or quadruple evaluation.
Multiple evaluation is only possible with asymmetric 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 positive edge at A and low level at B, and down count pulses are recorded at a negative
edge at A and low level at B.
The diagram below illustrates the single evaluation of the signals.
6LJQDO$
6LJQDO%
8SFRXQWSXOVHV
'RZQFRXQWSXOVHV
XS GRZQ
Technological Functions
236 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.10 Evaluation of count and direction signal
Double Evaluation
Double evaluation means that the positive and negative edge of the A signal are evaluated.
Whether up or down count pulses are generated depends on the level of the B signal.
The diagram below illustrates the double evaluation of the signals.
6LJQDO$
6LJQDO%
8SFRXQWSXOVHV
'RZQFRXQWSXOVHV
XS GRZQ
Quadruple Evaluation
Quadruple evaluation means that the positive and negative 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.
6LJQDO$
6LJQDO%
8SFRXQWSXOVHV
'RZQFRXQWSXOVHV
XS GRZQ
Note
A counting frequency of 500 KHz refers to the maximum frequency of the A and B signals.
With double evaluation, a maximum frequency of 1 MHz is produced for the counting pulses;
with quadruple evaluation, the maximum frequency is 2 MHz.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 237
1Count5V/500kHz
3.11 Behavior at CPU-Master-STOP
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 1Count5V/500kHz.
Technological Functions
238 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.11 Behavior at CPU-Master-STOP
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 239
1Count5V/500kHz
3.12 Technical Specifications
Technical Specifications
Technological Functions
240 Operating Instructions, 04/2008, A5E00124867-06
1Count5V/500kHz
3.12 Technical Specifications
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 241
1Count5V/500kHz
3.12 Technical Specifications
Technological Functions
242 Operating Instructions, 04/2008, A5E00124867-06
1SSI 4
4.1 Product Overview
Order Number
6ES7 138-4DB03-0AB0
Compatibility
The 1SSI with order number 6ES7 138-DB03-0AB0 replaces the 1SSI with the following
order numbers:
● 6ES7 138-4DB02-0AB0
● 6ES7 138-4DB01-0AB0
● 6ES7 138-4DB00-0AB0
and is fully compatible.
Features
● The 1SSI is an interface between an absolute encoder (SSI) and the parent controller.
You edit the cyclically recorded encoder value in your controller program.
● Can be operated using terminal modules TM-E15S24-01 and TM-E15S26-A1
● Isochronous mode
● Normalization of the encoder value (that is, discounting of adjusted, irrelevant bits in the
encoder value).
● Reversal of the direction of rotation to adjust the direction of movement of the absolute
encoder to the axis.
● Latch function for freezing the current encoder value (only possible in standard mode).
● Comparison function between the current encoder value and loadable comparison values
(only possible in standard mode).
● Type of encoder value recording can be selected:
– Free-wheeling
– Synchronous to the update rate
– Isochronously
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 243
1SSI
4.1 Product Overview
● Fast mode can be selected; with rapid encoder value detection and compressed
functionality (cannot be used with the IM 151 with the order number 6ES7 151-1AA00-
0AB0).
● Maximum encoder sampling rate (e.g., for ultrasonic encoders) is taken into account in
isochronous mode
● Sign of life in isochronous mode
● Parity check of encoder value can be performed
● Gray/dual converter
Note
Notice!
(Bit width restrictions exist for the predecessor modules of the 6ES7138-4DB03-0AB0
and when using the HSP2022 V1.0.)
Firmware Update 1
To add functions and for troubleshooting, it is possible to load firmware updates to the
operating system memory of the 1SSI using STEP 7 HW Config.
Note
Notice!
When you start the firmware update, the old firmware is deleted. If the firmware update is
interrupted or canceled for any reason, the 1SSI will no longer function correctly as a result.
Re-launch the firmware update and wait until this has completed successfully. See also
ET 200S Distributed I/O System Manual, section: Identification Data.
Technological Functions
244 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.1 Product Overview
Identification Data 1
● Hardware release status
● Firmware release status
● Serial number
See also ET 200S Distributed I/O System Manual, section: Identification Data.
1This function is only possible if the header module in use supports the necessary system
services.
Configuration
You can use either of the following to configure the 1SSI:
● A GSD file (http://www.ad.siemens.de/csi/gsd)
● STEP 7 V5.4 SP2 and later, or with the HSP hardware support package (available online)
STEP 7 V5.3 SP2 and later.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 245
1SSI
4.2 Clocked Mode
Note
The principles of isochronous mode are described in a separate manual.
See Isochrone Mode function manual (A5E00223279).
Hardware Requirements
You will require the following for the 1SS in isochronous mode:
● A CPU that supports isochronous mode
● A master or Profinet master that supports the equidistant bus cycle
● An IM 151 that supports isochronous mode
Features
Depending on the system parameter assignment, the 1SSI works in either non-isochronous
or isochronous mode.
In isochronous mode, the data exchange between the master and 1SSI is isochronous to the
bus cycle.
In isochronous mode, all bytes of the feedback interface are consistent.
If isochronous mode fails, the feedback interface is not updated. In the user program, this
can be detected with the sign of life in the feedback interface.
Technological Functions
246 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.3 Example: Starting 1SSI
Introduction
These instructions provide an example to guide you to a functioning application that will
enable you to become familiar with and check the basic hardware and software functions of
the 1SSI. For this example, you will operate the 1SSI in standard mode, rather than
isochrone mode.
Requirements
The following requirements must be satisfied:
● You have commissioned an ET 200S station on an S7 station with a master.
● You must have the following:
– A TM-E15S24-01 terminal module
– An 1SSI
– An SSI encoder and the necessary wiring material
66, 70(6DQG(066,
6)
83 '1
&03
(6
'%$%
' 7ZLVWHGSDLUUFDEOHV
' ' '
9'&
9'& 9'&
66,
0
0 ',
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 247
1SSI
4.3 Example: Starting 1SSI
Technological Functions
248 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.3 Example: Starting 1SSI
STL Description
Block: FC101
Network 1: Presettings
L 0 //Delete control bits
T DB1.DBD0
T DB1.DBD4
Testing
Use Monitor/Modify Variables to monitor the encoder value and the direction indicator.
1. Select the "Block" folder in your project. Choose the "Insert > S7 Block > Variable Table"
menu command to insert the VAT 1 variable table, and then confirm with OK.
2. Open the VAT 1 variable table, and enter the following variables in the "Address" column:
DB1.DBD8 (encoder value)
DB1.DBX12.0 (UP status)
DB1.DBX12.1 (DN status)
3. Choose "PLC > Connect To > Configured CPU" to switch to online.
4. Choose "Variable > Monitor" to switch to monitoring.
5. Switch the CPU to RUN mode.
6. Change the position of the SSI encoder.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 249
1SSI
4.3 Example: Starting 1SSI
Result
You can now see that:
● The UP LED or the DN LED on the 1SSI is on, depending on the direction in which you
change the position of the SSI encoder.
● The encoder value in the block changes.
Technological Functions
250 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.4 Terminal Assignment Diagram
Wiring Rules
The cables (terminals 1 and 5 and terminals 4 and 8) must be shielded, twisted-pair cables.
The shield must be supported at both ends. To do this use the shield connection (see the
ET 200S Distributed I/O System Manual).
Terminal Assignment
You will find the terminal assignment for the 1SSI in the table below.
&03
(6
'%$%
3: Chassis ground
2QHSDLUWZLVWHG
' 7: Digital input latch function
' SDLUFDEOHV
' ' 4/8: SSI clock (clock wire) 1
9'&
9'& 9'&
66,
0
0 ',
83 '1 70(6$DQG(066,
&03
(6
'%$%
2QHSDLUWZLVWHG
'
' SDLUFDEOHV
' '
9'&
9'& 9'&
66,
0
0 ',
& & 2QHSDLUWZLVWHG
&
$ $ &
SDLUFDEOHV
$8; $8;
$ $
$8; $8;
1 It is essential that you maintain the correct polarity when wiring the encoder. If you do not, an absolute encoder error is
reported. Signals according to RS422
2Short circuit-proof, maximum 0.5 A.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 251
1SSI
4.5 Configuring standard mode and fast mode
Introduction
In order to take full advantage of the functionality of the 1SSI for the application in question,
choose between fast mode and standard mode, depending on your automation task.
Technological Functions
252 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.6 Functions of the 1SSI
Operating Principle
The 1SSI records the signals of the connected position encoder cyclically and forwards
them, depending on the parameter assignment, to the feedback interface by means of the
following functions:
● Encoder value detection
● Gray/binary converter
● Normalization
● Direction reversal
● Comparator (only in standard mode)
● Latch function (only in standard mode)
● Error detection
● Sign of life
The 1SSI uses the "ready for operation" feedback bit to indicate that the functions are
executable and the displayed encoder value is valid.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 253
1SSI
4.6 Functions of the 1SSI
Description
The absolute encoder transfers its encoder values in message frames to the 1SSI. The
transmission of message frames is initiated by the 1SSI. The following alternatives are
available for encoder value detection:
● Free-wheeling encoder value detection
● Synchronous encoder value detection
● Isochronous encoder value detection
You can set free-wheeling or synchronous encoder value detection in HW Config with the
"Detection" parameter. This parameter only works in non-isochrone mode.
The detection of the encoder value will be isochronous when the 1SSI is in isochronous
mode. In this case, the "Detection" parameter is not evaluated.
The following table shows these connections:
Technological Functions
254 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.6 Functions of the 1SSI
Description
When Gray is set, the encoder value supplied by the absolute encoder in gray code is
converted to binary code. When Binary is set, the supplied encoder value is not converted.
NOTICE
If you selected the Gray setting, the 1SSI always converts the total encoder value (13 to
25 bits). Preceding special bits thus influence the encoder value and trailing bits can under
some circumstances be corrupted.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 255
1SSI
4.6 Functions of the 1SSI
Description
The transmitted encoder value contains the encoder position of the absolute value encoder.
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.
So that the 1SSI can determine the encoder position, specify the following:
● Encoder type
● Number of trailing bits
● Total steps of the absolute encoder
With normalization, you specify the representation of the encoder value in the feedback
interface.
● With "Normalization On", you specify that trailing, irrelevant bits in the encoder value are
to be discounted (see the following example).
● With "Normalization Off", you specify that trailing bits are retained and are available for
evaluation.
Normalization Example
Presettings:
You use a single-turn encoder with 29 (corresponds to 9 bits) = 512 steps/revolution
(resolution/360°) with the following parameter assignment:
● Encoder type: SSI-13 bit
● Number of trailing bits: 4 places
● Total steps of the absolute encoder: 512
:LWKRXWQRUPDOL]DWLRQ&\FOLFDOO\UHFRUGHGHQFRGHUSRVLWLRQ
'DWDGRXEOHZRUG
; ; ; ;
5HOHYDQWELWV
7UDQVIHUUHGELWV
2IWKHELWVWUDQVIHUUHGELWVWRDUHUHTXLUHGIRUHYDOXDWLRQ
$IWHUQRUPDOL]DWLRQHQFRGHUSRVLWLRQ
'DWDGRXEOHZRUG
5HOHYDQWELWV
Technological Functions
256 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.6 Functions of the 1SSI
Direction Detection
The 1SSI needs the following information to detect the direction of movement of the encoder
correctly:
● Encoder type
● Total steps of the absolute encoder
● Number of trailing bits
The information is used as explained in the normalization example.
The direction of movement that is determined is displayed in the feedback interface and at
the LEDs.
UP LED: encoder position change from lower to higher value
DN LED: encoder position change from higher to lower value
Direction Reversal
The direction reversal adjusts the direction of movement of the encoder to that of the axis.
Two settings are possible:
● Off
The direction of the transmitted encoder position is maintained.
● On
The direction of the transmitted encoder position is reversed. This means that although
the encoder sends ascending values, descending values are displayed.
This reversal applies to the total steps of the absolute encoder, as indicated in the
parameter assignment.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 257
1SSI
4.6 Functions of the 1SSI
Description
The encoder position that is detected can be compared with up to two loadable values
(without hysteresis). Both comparison results are stored in the feedback interface. The
appropriate comparator becomes active only after the comparison value is loaded.
You set the two comparators in the Comparator 1 and Comparator 2 parameters:
Note
Only one control bit can be set at a particular time:
CMP_VAL1 or CMP_VAL2.
Otherwise, the ERR_LOAD error is reported until both control bits are deleted.
Technological Functions
258 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.6 Functions of the 1SSI
&RQWUROELW
&03B9$/
&03B9$/
)HHGEDFNELW
676B/2$'
66,9DOXHDFFHSWHGHQGRIWUDQVIHU
SRVVLEO\ZLWKDQHUURU
8VHU5HPRYHUHTXHVWDQGNHHSYDOXHDYDLODEOH
66,5HTXHVWXQGHUVWRRG
8VHU5HTXHVWYDOXHWUDQVIHUDQGPDNHYDOXHDYDLODEOH
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 259
1SSI
4.6 Functions of the 1SSI
Description
You use the latch function to freeze the current encoder value of the 1SSI at an edge at the
digital input (DI).
The encoder value can thus be evaluated on an event-dependent basis.
A frozen encoder value is identified by the set bit 31 and is preserved until the termination of
the latch function.
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."
Note
Direction determination, comparison, and error monitoring also take place when the encoder
value is frozen.
Technological Functions
260 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.6 Functions of the 1SSI
66,ODWFKIXQFWLRQLVDFWLYHHQFRGHUYDOXH
LVIUR]HQ ELW ZDLWIRU
/$7&+B$&.
8VHU/$7&+PXVWEH
DFNQRZOHGJHGZLWK/$7&+B$&.
66,/DWFKIXQFWLRQLVWHUPLQDWHG
HQFRGHUYDOXHLVFXUUHQW
8VHU/$7&+B$&.PXVWEHFOHDUHG
IUHH]LQJLVSRVVLEOHDJDLQDVVRRQDV
66,GHWHFWV/$7&+B$&.
%LWVHW
LQHQFRGHUYDOXH
/$7&+B$&.
',
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 261
1SSI
4.6 Functions of the 1SSI
Description
The absolute value encoder and sensor supply short circuit errors must be acknowledged.
They have been detected by the 1SSl and are indicated at the feedback interface. A
channel-specific diagnosis is carried out after you have enabled group diagnosis at
parameter assignment (see the ET 200S Distributed I/O System manual).
The parameter assignment error bit is acknowledged by means of correct parameter
assignment.
$QHUURURFFXUVWKH66,VHWVDQHUURUELWD
GLDJQRVWLFPHVVDJHPD\DSSHDUHUURUGHWHFWLRQ
FRQWLQXHVWREHDFWLYH
(UURUHOLPLQDWHGLI(;7)B$&.LVVHWE\WKHXVHUSURJUDP
WKH66,FOHDUVWKHHUURUELWDGLDJQRVWLFPHVVDJHPD\
DSSHDU
)RUH[DPSOH
HUURUELW
(55B66,
(UURUDFNQRZOHGJPHQW
(;7)B$&.
Description
The absolute value encoder and sensor supply short circuit errors have been detected by the
1SSl and are indicated at the feedback interface. A channel-specific diagnosis is carried out
after you have enabled group diagnosis at parameter assignment (see the ET 200S
Distributed I/O System manual).
The parameter assignment error bit is acknowledged by means of correct parameter
assignment.
As soon as the absolute value encoder and sensor supply short circuit errors are no longer
detected by the 1SSl, the error display at the feedback interface is cleared, and in certain
cases the channel-specific diagnosis reports an error-free condition.
Technological Functions
262 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.7 Behavior at CPU-Master-STOP
Description
The 1SSI detects the CPU/ bus master STOP. The reaction to this is to stop the active
operation.
Without reassigning the parameters of the ET 200 station • The feedback interface of the 1SSI remains current.
With reassignment of the parameters of the ET 200 station • You must reload the comparison values.
• The latch function has to be triggered with a new edge
on the digital input DI.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 263
1SSI
4.8 Setting parameters for the 1SSI
Overview
You set the parameters for the 1SSI by means of the GSD file for the ET 200S or using the
STEP 7 parameter assignment software. It is not possible to reassign the parameters by
means of the user program.
Depending on the mode that you selected, either of the following parameter sets from your
parameter assignment appear in the parameter assignment software:
● All parameters (standard mode), or
● A portion of the parameters (fast mode)
You can enter the following parameters (the default appears in bold):
Technological Functions
264 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.8 Setting parameters for the 1SSI
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 265
1SSI
4.8 Setting parameters for the 1SSI
Technological Functions
266 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.9 Control and Feedback Interfaces in Standard Mode
Note
For the 1SSI, the following data of the control and feedback interface are consistent:
Byte 0 to 3
Byte 4 to 7
Use the access or addressing mode for data consistency over the entire control and
feedback interface on your master (only for configuration using the GSD file).
Description
The two tables show the assignment of the control interface (outputs) and the feedback
interface (inputs):
Address Assignment
Bytes 0 to 3 Encoder value double word (bit 31 set, encoder value frozen)
Byte 4 Bit 7: or sign of life LZ
Bit 6: Ready for operation RDY
Bit 5: Parameter assignment error ERR_PARA
Bit 4: Absolute encoder error ERR_SSI
Bit 3: Encoder supply short circuit ERR_24V
Bit 2: Status DI STS_DI
Bit 1: Status DN STS_DN
Bit 0: Status UP STS_UP
Byte 5 Bit 7: Reserved = 0
Bit 6: Reserved = 0
Bit 5: Reserved = 0
Bit 4: Reserved = 0
Bit 3: Comparison value 2 reached, CMP2
Bit 2: Comparison value 1 reached, CMP
Bit 1: Load function error, ERR_LOAD
Bit 0: Load function running, STS_LOAD
Bytes 6 to 7 Reserved = 0
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 267
1SSI
4.9 Control and Feedback Interfaces in Standard Mode
Address Assignment
Bytes 0 to 3 Comparison value 1 or 2 (double word)
Byte 4 Bit 7: Error acknowledgment EXTF_ACK
Bit 6: Acknowledgment of latch function LATCH_ACK
Bit 5: Reserved = 0
Bit 4: Reserved = 0
Bit 3: Reserved = 0
Bit 2: Reserved = 0
Bit 1: Load comparison value 2, CMP_VAL2
Bit 0: Load comparison value 1, CMP_VAL1
Byte 5 Reserved = 0
Bytes 6 to 7 Reserved = 0
Bits Notes
CMP Comparison result of comparator 1
CMP2 Comparison result of comparator 2
CMP_VAL1 Load comparison value 1
CMP_VAL2 Load comparison value 2
ERR_24V The encoder supply is short-circuited. ERR_24V is reset when the short circuit is eliminated and
acknowledged with the EXTF_ACK control bit.
ERR_LOAD Error while loading the comparison values because both control bits CMP_VAL1 and CMP_VAL2 are
set.
ERR_PARA Incorrect parameter assignment for the ET 200S station.
Cause: Total steps of the absolute encoder are not in the range of values for the type of encoder.
The parameter bit is cleared when a correct parameter assignment is transmitted.
ERR_SSI The 1SSI detects an absolute encoder error if the message frames at the SSI interface are faulty.
Causes: No encoder connected; wire break in the encoder cable; over voltage of encoder supply; type
of encoder, transmission rate, parity error, monoflop time do not correspond to the connected
encoder; programmable encoders do not correspond to the settings on the 1SSI; encoder is defective
or faults exist.
ERR_SSI is reset when the cause of the error is eliminated and acknowledged with the EXTF_ACK
control bit.
EXTF_ACK Error acknowledgement for the absolute encoder ERR_SSI and encoder supply short circuit
ERR_24V errors
LATCH_ACK Acknowledgement for latch function
LZ This parameter is only active in isochronous mode.
When sign of life is on, the sign-of-life bit is toggled, i.e., the last sent value is inverted, each time an
encoder value is read in isochronous mode. If a reduction is assigned in the "Encoder Sampling Rate"
parameter, the value is toggled only if an encoder value was actually read in.
STS_DI The bit displays the status of the digital input DI.
Technological Functions
268 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.9 Control and Feedback Interfaces in Standard Mode
Bits Notes
STS_DN Status direction down; for encoder value change from larger to smaller encoder positions (including
zero crossover)
STS_LOAD Feedback bit for CMP_VAL1 and CMP_VAL2. The 1SSI uses this bit to indicate that a comparison
value is loaded.
STS_UP Status direction down; for encoder value change from larger to smaller encoder positions (including
zero crossover)
RDY The parameter assignment of the 1SSI is correct, and the module is executing its functions. The
displayed feedback is valid. For the absolute value encoder error, ERR_SSI is also set.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 269
1SSI
4.10 Feedback Interface in Fast Mode
Description
Refer to the table below for the assignment of the feedback interface (inputs):
Address Assignment
Bytes 0 to 3 Bit 31: Reserved = 0 or sign of life LZ
Bit 30: Ready for operation (feedback is valid) RDY
Bit 29: Parameter assignment error ERR_PARA;
Bit 28: Group error absolute encoder or encoder supply short circuit EXTF
Bit 27: Status DI STS_DI
Bit 26: Status DN STS_DN
Bit 25: Status UP STS_UP
Bytes 0 to 24: Encoder value
Bits Notes
ERR_PARA Incorrect parameter assignment for the ET 200S station.
Cause: Total steps of the absolute encoder are not in the range of values for the type of encoder.
The parameter bit is cleared when a correct parameter assignment is transmitted.
EXTF Group error absolute encoder or encoder supply short circuit
Causes:
The encoder supply is short-circuited
or
No encoder connected; wire break in the encoder cable; type of encoder, transmission rate, monoflop
time do not correspond to the connected encoder; programmable encoders do not correspond to the
settings on the 1SSI; encoder is defective or faults or parity errors exist.
EXTF is reset when the causes of the errors are eliminated.
LZ This parameter is only active in isochrone mode.
When sign of life is on, the sign-of-life bit is toggled, i.e., the last sent value is inverted, each time an
encoder value is read in isochrone mode. If a reduction is assigned in the "Encoder Sampling Rate"
parameter, the value is toggled only if an encoder value was actually read in.
STS_DI The bit displays the status of the digital input DI.
STS_DN Status direction down; for encoder value change from larger to smaller encoder positions (including
zero crossover)
STS_UP Status direction down; for encoder value change from larger to smaller encoder positions (including
zero crossover)
RDY The parameter assignment of the 1SSI is correct, and the module is executing its functions. The
displayed feedback is valid. For the absolute value encoder error, ERR_SSI is also set.
Technological Functions
270 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.10 Feedback Interface in Fast Mode
Configuring with STEP 7 using the GSD Configuring with STEP 7 using HW Config
File
Feedback interface Read with SFC 14 "DPRD_DAT" Load command (e.g. L PID)
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 271
1SSI
4.11 Technical Specifications
Overview
Technological Functions
272 Operating Instructions, 04/2008, A5E00124867-06
1SSI
4.11 Technical Specifications
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 273
1SSI
4.11 Technical Specifications
Technological Functions
274 Operating Instructions, 04/2008, A5E00124867-06
2PULSE 5
5.1 Product Overview
Order Number
6ES7 138-4DD00-0AB0
Features
● 2-channel
The two channels of the 2PULSE can be used independently of one another; they permit
pulse output in four different modes.
Minimum pulse duration: 200 µs,
Accuracy: ± (pulse duration x 100 ppm) ±100 µs
● Apart from the set mode, the 2PULSE also has two other functions.
● Digital output DO 0 for channel 0 and digital output DO 1 for channel 1 to output the
pulses.
● Digital input DI 0 for channel 0 and digital input DI 1 for channel 1 for enabling.
Operating 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; the output value corresponds
to the ratio of the pulse duration to the period.
● Pulse train mode
Output of n pulses on the digital output of the 2PULSE with a specifiable period and pulse
duration.
● On/Off-delay mode
The signal pending at the digital input DI is output with an on/off-delay at the digital output
DO by the 2PULSE.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 275
2PULSE
5.1 Product Overview
Functions
● Direct control of the digital output by means of the control program
● Programmable behavior for CPU/master STOP
● Error detection/diagnostics (short circuit of the digital output and encoder supply)
Configuration
You can use either of the following to configure the 2PULSE:
● A GSD file (http://www.ad.siemens.de/csi/gsd)
or
● STEP 7 V5.0 SP3 and later.
Note
Restrictions for the 2PULSE module with IM151-7 CPU, IM151-1 HIGH FEATURE or
IM 151-1 BASIC:
With the IM 151-7 CPU, you must use STEP 7 V5.1, Service Pack 1, Hotfix 1 or higher for
configuration.
You cannot enable the group diagnostics parameter in the configuration if you use the
2PULSE module.
Technological Functions
276 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.2 Example: Starting 2PULSE
Task
These instructions guide you to a functioning application that will enable you to become
familiar with and check the basic hardware and software functions of your 2PULSE. The
"Pulse Output" mode will be used as an example here. Channel 0 of the 2PULSE is used in
this example.
Requirements
The following requirements must be satisfied:
● You have commissioned an ET 200S station on an S7 station with a master.
● You must have the following:
– A TM-E15S24-01 terminal module and
– a 2PULSE.
3XOVH
6)
70(6DQG38/6(
&KDQQHO &KDQQHO
(6
''$%
', ',
9'& 9'&
0 0
'2 '2
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 277
2PULSE
5.2 Example: Starting 2PULSE
STL Description
Block: FC101
L MB10
T PAB258 //Write control signals to channel 0 of the 2PULSE
Technological Functions
278 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.2 Example: Starting 2PULSE
Testing
Start a pulse output with SW_ENABLE=1 and monitor the STS_ENABLE and STS_DO
feedback bits using "Monitor/Modify Variables".
1. Select the "Block" folder in your project. Choose the "Insert > S7 Block > Variable Table"
menu command to insert the VAT 1 variable table, and then confirm with OK.
2. Open the VAT 1 variable table, and enter the following variables in the "Address" column:
M20.0 (STS_ENABLE)
M20.1 (STS_DO)
M30.0 (SW_ENABLE)
3. Choose "PLC > Connect To > Configured CPU" to switch to online.
4. Choose "Variable > Monitor" to switch to monitoring.
5. Switch the CPU to RUN mode.
Result
The following table shows you which activity triggers which result.
Activity Result
When you switch the CPU to RUN, the following results are • All the LEDs are turned off
obtained: • STS_ENABLE = 0
• STS_DO = 0
Start the pulse output by setting memory bit 30.0 (Variable →
Modify → )
• STS_ENABLE = 1
Directly after the start... • STS_DO = 1
• LED 4 for DO 0 lights up
• STS_ENABLE = 0
After the 5 s pulse duration has expired • STS_DO = 0
• LED 4 for DO 0 is turned off
To start further pulse output, you must delete SW_ENABLE (memory bit M30.0 = 0) and
reset it (memory bit M30.0 = 1).
You can change the pulse duration in the control program.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 279
2PULSE
5.3 Modes and Functions
5.3.1 Overview
Principle
The 2PULSE has two channels. You can select a separate mode for each channel. You
assign parameters to the mode using HWCONFIG or COM PROFIBUS. The mode that has
been assigned parameters can then no longer be changed with your control program.
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, the 2PULSE also has the following functions:
● Direct control of the DO digital output by means of your control program; controllable
separately for each channel.
● Error detection/diagnostics; the 2PULSE recognizes the errors for each channel
separately.
● Behavior at CPU/master STOP; the 2PULSE recognizes the CPU/master STOP for both
two channels and responds in accordance with your parameter assignment.
&KDQQHO
3DUDPHWHUV
&RQWUROVLJQDOV '2
0RGHVDQG
IXQFWLRQV
)HHGEDFNVLJQDOV ',
&RQWURO3URJUDP
3URFHVV
&KDQQHO
3DUDPHWHUV
&RQWUROVLJQDOV '2
0RGHVDQG
IXQFWLRQV
)HHGEDFNVLJQDOV ',
Technological Functions
280 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 281
2PULSE
5.3 Modes and Functions
Definition
For the pulse duration you set, the 2PULSE outputs a pulse at the DO digital output (output
sequence) on expiration of the set on-delay.
+:HQDEOH
RSWLRQDO
ุ 676B(1$%/(
6RIWZDUHHQDEOH
6:B(1$%/( 6 4 6 4
'2
5 5
2QGHOD\ 3XOVH
GXUDWLRQ
Technological Functions
282 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Pulse diagram
6RIWZDUHHQDEOH
6:B(1$%/(
$&.B6:B(1$%/(
+:HQDEOH
',GLJLWDOLQSXW
'2GLJLWDORXWSXW
676B(1$%/(
(55B38/6
2QGHOD\ 3XOVHGXUDWLRQ
6WDUWRIWKHRXWSXWVHTXHQFH (QGRIWKHRXWSXWVHTXHQFH
Truth Table
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 283
2PULSE
5.3 Modes and Functions
Time base = 0.1 ms: You can set times from 0.2 ms to 6.5535 s with a resolution of 0.1 ms.
Time base = 1 ms: You can set times from 1 ms to 65.535 s with a resolution of 1 ms.
Technological Functions
284 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 285
2PULSE
5.3 Modes and Functions
Technological Functions
286 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Definition
You specify an output value to the 2PULSE. The 2PULSE generates continuous pulses on
this basis. The output value determines the pulse/interpulse ratio within a period (pulse-width
modulation). The period can be adjusted.
The pulse train is output on expiration of the assigned on-delay on the DO digital output of
the 2PULSE (output sequence).
+:HQDEOH
RSWLRQDO
6RIWZDUHHQDEOH ุ 676B(1$%/(
6:B(1$%/(
6 4 6 4
'2
3:0
5 5 3:0LQ
RSHUDWLRQ
2QGHOD\ 2XWSXWYDOXH
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 287
2PULSE
5.3 Modes and Functions
Pulse Diagram
6RIWZDUHHQDEOH
6:B(1$%/(
$&.B6:B(1$%/(
+:HQDEOH
',GLJLWDOLQSXW 3HULRGGXUDWLRQ 3HULRGGXUDWLRQ
'2GLJLWDOLQSXW
2XWSXWYDOXHಽ 2XWSXWYDOXHಽ
676B(1$%/(
6WDUWRIWKHRXWSXWVHTXHQFH
Truth Table
Technological Functions
288 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
3XOVHGXUDWLRQ
3HULRGGXUDWLRQ
3HULRGGXUDWLRQPLQLPXP
LQWHUSXOVHSHULRG
0LQLPXPSXOVHGXUDWLRQ
2XWSXWYDOXHLQಽ
You specify the period in accordance with the required accuracy of the process variables
generated by the actuator.
Time base = 0.1 ms: You can set times from 0.2 ms to 6.5535 s with a resolution of 0.1 ms.
Time base = 1 ms: You can set times from 1 ms to 65.535 s with a resolution of 1 ms.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 289
2PULSE
5.3 Modes and Functions
Technological Functions
290 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 291
2PULSE
5.3 Modes and Functions
Technological Functions
292 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 293
2PULSE
5.3 Modes and Functions
Definition
The 2PULSE outputs the number of pulses you specified as a pulse train at the DO digital
output on expiration of the set on-delay (output sequence). The period duration and pulse
duration of the pulses can be adjusted.
+:HQDEOH
RSWLRQDO
6RIWZDUHHQDEOH ุ 676B(1$%/(
6:B(1$%/( 6 4 6 4
'2
5 5 7KHSXOVH
WUDLQLVLQ
2QGHOD\ 1XPEHU RSHUDWLRQ
RISXOVHV
Technological Functions
294 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Pulse Diagram
6:HQDEOH
$&.B6:B(1$%/(
+:HQDEOH
',GLJLWDOLQSXW
'2GLJLWDORXWSXW
(55B38/6
Truth Table
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 295
2PULSE
5.3 Modes and Functions
Time base = 0.1 ms: You can set times from 0.2 ms to 6.5535 s with a resolution of 0.1 ms.
Time base = 1 ms: You can set times from 1 ms to 65.535 s with a resolution of 1 ms.
Technological Functions
296 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 297
2PULSE
5.3 Modes and Functions
Technological Functions
298 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 299
2PULSE
5.3 Modes and Functions
Definition
The signal pending at the digital input DI is output with an on/off-delay at the digital output
DO by the 2PULSE.
676B(1$%/(
6RIWZDUHHQDEOH
6:B(1$%/(
6 4 '2
',
2QGHOD\
6 4
2IIGHOD\
Technological Functions
300 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Pulse Diagram
6RIWZDUHHQDEOH
6:B(1$%/(
$&.B6:B(1$%/(
+:HQDEOH
',GLJLWDOLQSXW
'2GLJLWDORXWSXW
676B(1$%/(
(55B38/6
2QGHOD\ 2IIGHOD\
Truth Table
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 301
2PULSE
5.3 Modes and Functions
3XOVHGXUDWLRQ
',GLJLWDOLQSXW
2IIGHOD\
2QGHOD\
'2GLJLWDORXWSXW
',GLJLWDOLQSXW ,QWHUSXOVHSHULRG
2QGHOD\
2IIGHOD\
',GLJLWDOLQSXW
Technological Functions
302 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
3XOVH ,QWHUSXOVH
GXUDWLRQ SHULRG
',GLJLWDOLQSXW
2IIGHOD\
2QGHOD\
5HWULJJHU
'2GLJLWDORXWSXW
3XOVH ,QWHUSXOVH
GXUDWLRQ SHULRG
',GLJLWDOLQSXW
2IIGHOD\
5HWULJJHU
2QGHOD\ 2QGHOD\
'2GLJLWDORXWSXW
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 303
2PULSE
5.3 Modes and Functions
Time base = 0.1 ms: You can set times from 0.2 ms to 6.5535 s with a resolution of 0.1 ms.
Time base = 1 ms: You can set times from 1 ms to 65.535 s with a resolution of 1 ms.
Technological Functions
304 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 305
2PULSE
5.3 Modes and Functions
Technological Functions
306 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Definition
You can directly control the digital output DO of the 2PULSE to test the actuator you have
connected. To do this, you have to select the function from your control program with the
MANUAL_DO control bit set and with the SW_ENABLE control bit deleted.
After you have selected the function, the feedback bits STS_ENABLE and ERR_PULS are
deleted by the 2PULSE, and an active output sequence is canceled.
You specify the reset the status of the digital output DO with the SET_DO control bit.
When you delete the MANUAL_DO control bit, you deselect the function for the direct control
of the digital output DO. This deletes the digital output DO. You will then have to restart the
output sequence.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 307
2PULSE
5.3 Modes and Functions
Diagnostic Message
In the event of parameter assignment errors or a short circuit in the encoder supply or in the
digital output, 2PULSE generates a diagnostic message for the connected CPU/master. To
do this, you must enable the Group diagnostics parameter.
Technological Functions
308 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.3 Modes and Functions
Parameters
Feedback Signals
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 309
2PULSE
5.3 Modes and Functions
Definition
You can assign parameters to what the 2PULSE is to do in the event of the failure of the
parent controller for the two channels together.
Startup
To start a new output sequence after CPU/master STOP and after ACK_SW_ENABLE has
been set, first delete SW_ENABLE, and repeat this deletion until ACK_SW_ENABLE has
also been deleted.
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 software enable control bit (SW_ENABLE=1), and write
the values to the 2PULSE.
Technological Functions
310 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
5.4.1 Overview
Introduction
The following application examples give you an overview of possible uses for the 2PULSE in
different processes.
You use the 2PULSE in various modes according to your process-related requirements.
The table below presents the possible modes for selected technological processes:
Additional Applications
Other possible uses are described in this section.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 311
2PULSE
5.4 Application Examples
Task
Filling is started as soon as a container is under the valve. The valve is opened for a preset
pulse duration by means of the 24 V control signal. The amount of liquid is proportional to
the specified pulse duration.
The 2PULSE generates the 24 V control signal at its digital output for the pulse duration you
have specified. After it has been filled, the container is moved along.
3XPS
9FRQWUROVLJQDO
IURP38/6(
9DOYH
,QLWLDWRU
9HQDEOHVLJQDO
WR38/6(
(1) Valve
(2) Pump
(3) 24 V control signal from the 2PULSE
(4) 24 V enable signal to the 2PULSE
(5) Initiator
Technological Functions
312 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
Requirements
● The volume of liquid to be filled is proportional to the time the valve is open.
● The cross-section of the feeder pipe cannot be changed.
● The valve only has the two positions OPEN and CLOSED.
● The minimum pulse duration must be longer than the on/off times specified by the
manufacturer.
Procedure
1. Starting filling process: To start the process, use the software enable (SW_ENABLE) on
your control program. 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.
2. Monitoring filling process: The error detection/diagnostic function allows you to check in
the program that the process is running correctly.
3. Terminating filling process: You can find out when the process has finished in the
program by evaluating STS_ENABLE.
9HQDEOHVLJQDO
',GLJLWDOLQSXW
6RIWZDUHHQDEOH
6:B(1$%/(
9FRQWUROVLJQDO
'2GLJLWDORXWSXW
676B(1$%/(
3XOVHGXUDWLRQ PV
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 313
2PULSE
5.4 Application Examples
Parameters
The following parameters are required for channel 0 of the 2PULSE to fill liquids in pulse
output mode.
Technological Functions
314 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
STL program
Below you will find a section from a STEP 7 STL program.
The configured start address of the inputs and outputs of the 2PULSE is 256.
You use this part of the program to start the filling process. To do this, memory marker
M30.0 must be set.
The pulse duration in this example is 5000 ms.
STL Description
Block:
L 0 Generate SW_ENABLE
T MB10
U M20.2 Container is positioned
U M30.0 Start of the filling process
= M10.0 Set SW_ENABLE=1
6)
70(6DQG
38/6(
&KDQQHO &KDQQHO
(6
''$%
9HQDEOHVLJQDO
', ',
,QLWLDWRU
9'& 9'&
9FRQWUROVLJQDO
0 0
9DOYH
'2 '2
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 315
2PULSE
5.4 Application Examples
Description
A liquid is heated with an electrical heating element. The energy needed to do this is
supplied to the heating element by a switching element (a contactor, for example).
The 2PULSE generates a 24 V control signal on its digital output for the switching element.
The temperature of the heating element is determined by the on/off length of the 24 V control
signal.
The longer the 24 V control signal is switched on, the longer the heating process and
therefore the greater the rise in temperature of the fluid.
9FRQWUROVLJQDO
IURPWKH38/6(
(OHFWULFDOKHDWLQJ
HOHPHQW
Requirements
● The heating element only has two switching states: ON or OFF.
● The actual heating current corresponds to the ratio of the on/off duration of the 24 V
control signal.
● The minimum pulse or minimum interpulse period must be greater than the response
times of the switching element and heating element.
Technological Functions
316 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
Sequence
1. Starting heating process: To start the heating process, use the software enable
(SW_ENABLE) in your control program.
2. Monitoring heating process: The error detection/diagnostic function allows you to check
via the program that the heating element is being controlled correctly.
Software enable
(SW_ENABLE)
24 V control signal
(DO digital output)
STS_ENABLE
Heating
process starts
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 317
2PULSE
5.4 Application Examples
Parameters
The following parameters are required for channel 0 of the 2PULSE to heat a liquid in pulse-
width modulation mode.
Technological Functions
318 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
Programming/Flow Diagram
Below you will find a section from a STEP 7 STL program.
The configured start address of the inputs and outputs of the 2PULSE is 256.
This program section starts the heating process. To do this, memory bit M30.0 must be set.
You provide the output value in memory word MW32.
STL Description
Block:
6)
70(6DQG
38/6(
&KDQQHO
&KDQQHO
(6
''$%
', ',
9'& 9'&
9FRQWUROVLJQDO
0 0
&RQWDFWRU
'2 '2
Figure 5-21 Terminal Assignment of the 2PULSE for the Heating of a Liquid
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 319
2PULSE
5.4 Application Examples
Additional Applications
Limit-value monitoring of the temperature: To monitor the limits of the temperature of the
medium, use a temperature sensor evaluated by an analog module. You can monitor the
temperature with your control program.
Temperature control: To control the temperature of the medium, use a temperature sensor
evaluated by an analog module. You can use one of the software controllers of SIMATIC S7
to do this. Pass on the manipulated variable calculated by the software closed-loop controller
directly to the 2PULSE using your control program. If you require separate actuators for
heating and cooling, use the second channel of the 2PULSE. If you detect a negative
manipulated variable in your control program, pass on the value to the second channel of the
2PULSE.
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. This will enable you to control, for example, the flow through a heat
exchanger using a solenoid valve.
+HDWH[FKDQJHU 6ROHQLGYDOYH
9FRQWUROVLJQDO
IURPWKH38/6(
Technological Functions
320 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
Description
Packing is started as soon as a folding box from conveyor 1 is in the correct position. The 24
V control signal controls the pusher and, when the compartmentalized conveyor is in
operation, pushes the piece goods into the folding box. Each pulse corresponds to a
complete movement of the pusher. The next movement of the pusher begins at the next
pulse from the pulse train.
The number of items that have to be packed corresponds to the number of output pulses.
The 2PULSE generates the 24 V control signal on its digital output DO with the number of
pulses you have specified. After the piece goods have been packed, the folding box is
moved on.
Counting begins from the start again when a new folding box passes the initiator.
9FRQWUROVLJQDO
IURPWKH38/6(
/RFNLQJPHFKDQLVP
&RPSDUWPHQWDOL]HG
FRQYH\RU
&RQYH\RU ,QLWLDWRU
9HQDEOHVLJQDO
WRWKH38/6(
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 321
2PULSE
5.4 Application Examples
Requirements
● Identical piece goods
● Repetition rate depends on the conveyor behavior
● 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.
Sequence
1. Starting the packing process: To enable the start, use the software enable (SW_ENABLE
0→1) in your control program. The 2PULSE uses the 24 V enable signal (HW enable,
digital input DI) to tell whether the folding box is correctly positioned and then starts the
pusher.
2. Monitoring the packing process: The error detection/diagnostic function allows you to
check via the program that the packing process is running correctly.
3. End of the packing process: By evaluating STS_ENABLE, you can find out when the
preset number of goods has been packed.
9HQDEOHVLJQDO
+:HQDEOH
',GLJLWDOLQSXW
6RIWZDUHHQDEOH
6:B(1$%/(
9FRQWUROVLJQDO
'2GLJLWDORXWSXW
676B(1$%/(
7KHIROGLQJER[
LVLQSRVLWLRQ 3UHVHWQXPEHURI )ROGLQJER[LV
WKHSXVKHU JRRGVSDFNHG PRYHGDZD\
VWDUWV
Technological Functions
322 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
Parameters
The following parameters are required for channel 0 of the 2PULSE to pack piece goods in
pulse train mode.
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 323
2PULSE
5.4 Application Examples
Programming/Flow Diagram
Below you will find a section from a STEP 7 STL program.
The configured start address of the inputs and outputs of the 2PULSE is 256.
You can use this program section to start the packing process (5 pieces). To do this,
memory bit M30.0 must be set.
The HW enable then starts the pulse train.
STL Description
Block
Technological Functions
324 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
6)
70(6DQG
38/6(
&KDQQHO &KDQQHO
(6
''$%
9HQDEOHVLJQDO
', ',
,QLWLDWRU
9'& 9'&
9FRQWUROVLJQDO
0 0
/RFNLQJ
PHFKDQLVP
'2 '2
Figure 5-25 Terminal Assignment of the 2PULSE for the Packing of Piece Goods
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 325
2PULSE
5.4 Application Examples
Task
Metal parts are to be covered with a wax layer. The conveyor belt moves at a constant
speed. As soon as a metal part passes the initiator, the valve is opened. The distance the
item and the wax have to cover is proportional to the time.
The 2PULSE receives a 24 V enable signal from the initiator. The 2PULSE then generates a
24 V control signal at its digital output that opens the valve. The valve remains open while
the Initiator sends the 24 V enable signal to the 2PULSE.
To ensure that the wax hits the metal at the optimum time, a corresponding on/off-delay is
required.
3XPS
9FRQWUROVLJQDO
IURPWKH38/6(
9DOYH
,QLWLDWRU 9HQDEOHVLJQDOWR
WKH38/6(
(1) Valve
(2) Pump
(3) 24 V control signal from the 2PULSE
(4) 24 V enable signal to the 2PULSE
(5) Initiator
Technological Functions
326 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
Requirements
● The item is moved at a constant and quantifiable speed. (The distance is proportional to
the time.)
● The valve only has the two positions OPEN and CLOSED.
● The minimum pulse duration must be longer than the on/off times specified by the
manufacturer.
On/Off-Delay Mode
Use channel 0 of the 2PULSE in on/off-delay mode to control the valve. In this mode, the
2PULSE generates a 24 V control signal at its DO digital output to control the valve. This
24 V control signal is switched on and off with the 24 V enable signal.
Procedure
1. Starting process: To start the process, use the software enable (SW_ENABLE) on your
control program. The 2PULSE uses the 24 V enable signal (DI digital input) to check
whether a metal object is positioned at the initiator. The valve is opened on expiration of
the on-delay. If the metal object goes past the initiator, the valve is closed after the
off-delay has expired.
2. Monitoring process: The error detection/diagnostic function allows you to check by means
of a program that the valve is being controlled correctly.
3. Terminating process: You can tell on the program by evaluating the STS_DO (status of
the 24 V control signal) when the process has ended.
6RIWZDUHHQDEOH
6:B(1$%/(
9HQDEOHVLJQDO
',GLJLWDOLQSXW
9FRQWUROVLJQDO
'2GLJLWDORXWSXW
676B(1$%/(
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 327
2PULSE
5.4 Application Examples
Parameters
The following parameters are required for channel 0 of the 2PULSE to apply a protective
layer in on/off-delay mode.
Technological Functions
328 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.4 Application Examples
STL program
Below you will find a section from a STEP7 STL program.
The configured start address of the inputs and outputs of the 2PULSE is 256.
You use this part of the program to start the process. To do this, memory marker M30.0 must
be set. Set up the off-delay in memory word MW32.
STL Description
Block:
L PEB256 Read the feedback messages from channel 0 of the 2PULSE
T MB20
6)
70(6DQG
38/6(
&KDQQHO &KDQQHO
(6
''$%
9HQDEOHVLJQDO
', ',
,QLWLDWRU
9'& 9'&
9FRQWUROVLJQDO
0 0
9DOYH
'2 '2
Figure 5-28 Terminal Assignment of the 2PULSE for Applying a Protective Layer
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 329
2PULSE
5.5 Technical Specifications of the 2PULSE, Terminal Assignment
Overview
Technological Functions
330 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.5 Technical Specifications of the 2PULSE, Terminal Assignment
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 331
2PULSE
5.5 Technical Specifications of the 2PULSE, Terminal Assignment
The figures below show you the output current in relation to the ambient temperature and the
frequency.
N+]!PV
N+]PV
&XUUHQW>$@
N+]wV
N+]wV
$PELHQWWHPSHUDWXUH>r&@
N+]!wV
N+]wV
N+]wV
&XUUHQW>$@
$PELHQWWHPSHUDWXUH>r&@
Technological Functions
332 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.5 Technical Specifications of the 2PULSE, Terminal Assignment
Terminal Assignment
The following table shows the terminal assignment for the 2PULSE.
', ',
9'& 9'&
0 0
'2 '2
Wiring Rules
The cables (terminals 1 and 2 and terminals 5 and 6) 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 in the Appendix).
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 333
2PULSE
5.6 Technical Specifications for Programming, Reference Lists
Address Assignment
Channel 0 Channel 1
Word 0 Word 4 Depending on the mode
• Pulse output: Pulse duration
• Pulse-width modulation: Output value
• Pulse train: Number of pulses
• On/off-delay: Off-delay
Byte 2 Byte 6 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
Address Assignment
Channel 0 Channel 1
Byte 0 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
Technological Functions
334 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.6 Technical Specifications for Programming, Reference Lists
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 335
2PULSE
5.6 Technical Specifications for Programming, Reference Lists
Configuration with STEP 7 Using the DDB Configuration with STEP 7 Using
File HWCONFIG
Feedback interface Load instruction (L PEW, for example) Load instruction (L PEW, for example)
Control interface Transfer instruction (T PQW, for example) Transfer instruction (T PQW, for example)
Technological Functions
336 Operating Instructions, 04/2008, A5E00124867-06
2PULSE
5.6 Technical Specifications for Programming, Reference Lists
Parameter List
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 337
2PULSE
5.6 Technical Specifications for Programming, Reference Lists
Technological Functions
338 Operating Instructions, 04/2008, A5E00124867-06
Index
1 B
1Count 5V/500kHz Brief instructions on commissioning
Counting modes, 140 1Count 5V/500kHz, 133
Isochronous mode, 132 1Count24V/100kHz, 19
Operating modes, 138 1SSI, 247
Technical specifications, 240 2PULSE, 277
1Count24V/100kHz
Counting modes, 26
Isochrone mode, 18 C
Measuring modes, 64
Comparison setting, 258
Operating modes, 24
Control and feedback interface
Technical specifications, 125
Accessing with STEP 7 programming, 59, 90, 115,
Terminal Assignment Diagram, 23
172, 206, 232, 269
1Count5V/500kHz
Control interface, 55, 86, 112, 229, 267, 334
Measurement Modes, 178
Count and direction evaluation, 236
Terminal Assignment Diagram, 137
Count and Direction Evaluation, 120
1SSI
Count continuously, 28
Encoder types, 244
Count once, 30
Encoder value detection, 254
Counting modes
In fast mode, 252
Control interface, 55, 168
In standard mode, 252
Feedback interface, 55, 168
Isochronous mode, 246
Normalization, 256
Parameters, 264
D
Technical Specifications, 272
Terminal assignment diagram, 251 Direction detection, 257
Direction reversal, 257
2
2PULSE
E
Application examples, 311 Encoder value detection
On/off-delay, 300 Free-wheeling, 254
Pulse output, 282 Isochronously, 255
Pulse train, 294 Synchronous, 254
PWM, 287 Endless Counting, 142
Technical Specifications, 330
Terminal Assignment, 333
Technological Functions
Operating Instructions, 04/2008, A5E00124867-06 339
Index
Technological Functions
340 Operating Instructions, 04/2008, A5E00124867-06