Counter Terminal
7.2
Example for a Time Measurement with Comparative
Conditions
Programming
15
14
13
12
0
0
0
1
0
0
0
1
1
DOK-CONTRL-R-IL*CNT***-AW02-EN-P
Measurement of the duration of pulses. The output is to follow a
Task
hysteresis loop with the comparative condition "Counter value < start
value with hysteresis". The limit values of the hysteresis should be 40 ms
and 80 ms.
Wiring is according to Fig. 7-1on page 7-1.
Wiring
Output word 1 (OUT[0]) for the time measurement
11
10
9
1
0
0
1
0
0
8
Fig. 7-4: Output word 1 (OUT[0]) for the time measurement
Resolution
Out
Type
Comparative
Condition
Start Value:
End Value:
When entering the start and end values, observe the resolution that is
indicated for the time measurement!
8
7
6
5
0
Resolution
Out
0
0
1
1
7
2 ms
Output is set when the comparative
condition is fulfilled
Pulse duration measurement
Counter value is smaller than the start
value with hysteresis
40 ms (observe resolution!)
80 ms (observe resolution!)
Examples and Hints
4
3
2
1
Type
0
Comparative
condition
1
0
1
1
6
01
bin
1
bin
1
bin
110
bin
20
= 14
dec
40
= 28
dec
7-3
0
0
hex
hex