Fig. 7-5: Programming The Example Of A Time Measurement With Comparative Condition; Fig. 7-6: Example Of A Hysteresis - Bosch Rextroth Indramat RECO R-IB IL CNT Applications Manual

Inline counter terminal
Table of Contents

Advertisement

7-4
Examples and Hints
Action
Resetting the counter
to default condition
command
Await acknowledgement
Default start value
command, start value
= 14
hex
Await acknowledgement
Default end value
command, end value =
28
hex
Await acknowledgement
Operating mode: time
measurement with
parameters as
specified in the above
Await acknowledgement
The following steps are not necessary if all that is of importance is the output behavior.
Read Counter
Await acknowledgement
16-bit counter value
Time in ms
Explanation of the output curve
OUT[0]
OUT[1]
hex
hex
2800
xxxx
4000
0014
5000
0028
1876
xxxx
0000
xxxx
wait until (IN[0] & FC00
Time = counter value x resolution; resolution = 2 ms
Fig. 7-5: Programming the example of a time measurement with comparative
condition
After the command for the operating mode has been issued, the counter
terminal immediately begins counting (time measurement) the signals at
the input.
The pulse duration begins at 0 ms and is slowly increased (section A in
Fig. 7-6). As long as the pulse duration is smaller than the end value (80
ms), the output remains at "1". The output is set to "0" when the pulse
duration is the same as the end value (point B).
The pulse duration continues to increase (section C) up to 120 ms. It then
begins to decrease (section D). If the pulse duration is the same as the
start value (40 ms; point E), then the output is set to "1". If the pulse
duration is shortened even more then the output remains at "1".
O U T = 1
O U T = 0

Fig. 7-6: Example of a hysteresis

OUT[0]
bin
0010 1000 0000 0000
wait until IN[0] = OUT[0]
0100 0000 0000 0000
wait until IN[0] = OUT[0]
0101 0000 0000 0000
wait until IN[0] = OUT[0]
0001 1000 0111 0110
wait until IN[0] = OUT[0]
0000 0000 0000 0000
) = (OUT[0] & FC00
hex
Counter value = IN[1]
A
F
4 0 m s
E
Counter Terminal
OUT[1]
bin
xxxx xxxx xxxx xxxx
0000 0000 0001 0100
0000 0000 0010 1000
xxxx xxxx xxxx xxxx
xxxx xxxx xxxx xxxx
)
hex
B
C
8 0 m s
1 2 0 m s
D
59790020.eps
DOK-CONTRL-R-IL*CNT***-AW02-EN-P
5 9 7 9 0 0 2 0

Advertisement

Table of Contents
loading

Table of Contents