
Table of contents
Counting, measurement and position detection
6Function Manual, 12/2017, A5E32009889-AG
2.2.14 Signal evaluation of incremental signals................................................................................ 72
2.2.14.1 Overview ................................................................................................................................ 72
2.2.14.2 Single evaluation.................................................................................................................... 72
2.2.14.3 Double evaluation .................................................................................................................. 73
2.2.14.4 Quadruple evaluation............................................................................................................. 74
2.2.15 Clock synchronization (TM Count and TM PosInput) ............................................................ 75
2.3 Basics of counting (TM Timer DIDQ)..................................................................................... 76
2.3.1 Overview of applications ........................................................................................................ 76
2.3.2 Counting with incremental encoder........................................................................................ 77
2.3.3 Counting with pulse encoder.................................................................................................. 78
2.3.4 24 V count signals.................................................................................................................. 79
2.3.5 Isochronous mode ................................................................................................................. 80
2.4 Basics of counting (digital input modules) ............................................................................. 81
2.4.1 Overview of applications ........................................................................................................ 81
2.4.2 Counting with pulse encoders................................................................................................ 82
2.4.3 Behavior at the counting limits ............................................................................................... 83
2.4.4 Gate control............................................................................................................................ 85
2.4.4.1 Software gate ......................................................................................................................... 85
2.4.4.2 Hardware gate........................................................................................................................ 85
2.4.4.3 Internal gate ........................................................................................................................... 86
2.4.5 Comparison values ................................................................................................................ 87
2.4.6 Interrupts ................................................................................................................................ 90
2.4.7 24 V count signals.................................................................................................................. 90
2.4.8 Isochronous mode ................................................................................................................. 91
3 Using the High_Speed_Counter technology object ................................................................................ 92
3.1 Convention ............................................................................................................................. 92
3.2 High_Speed_Counter technology object................................................................................ 92
3.3 Overview of the configuration steps....................................................................................... 93
3.4 Add technology object............................................................................................................ 94
3.5 Configuring the High_Speed_Counter ................................................................................... 96
3.5.1 Working with the configuration dialog .................................................................................... 96
3.5.2 Basic parameters ................................................................................................................... 98
3.5.3 Counter inputs (High_Speed_Counter).................................................................................. 99
3.5.4 Counter behavior.................................................................................................................. 104
3.5.4.1 Counting limits and start value............................................................................................. 104
3.5.4.2 Counter behavior at limits and gate start ............................................................................. 105
3.5.5 Behavior of a DI (High_Speed_Counter) ............................................................................. 106
3.5.6 Behavior of a DQ (High_Speed_Counter)............................................................................ 110
3.5.7 Specify measured value (High_Speed_Counter)................................................................. 115
3.6 Programming the High_Speed_Counter .............................................................................. 117
3.6.1 High_Speed_Counter instruction ......................................................................................... 117
3.6.2 Call instruction in the user program ..................................................................................... 118
3.6.3 Description High_Speed_Counter........................................................................................ 119
3.6.4 High_Speed_Counter input parameters............................................................................... 125
3.6.5 High_Speed_Counter output parameters ............................................................................ 126
3.6.6 Error codes of parameter ErrorID ........................................................................................ 128
3.6.7 High_Speed_Counter static variables.................................................................................. 130