
6
Encoder
E
n c o d e r
S
o
u
r
c
e
.
.
.
S
o
u
r
c
e
.
.
.
S
o
u
r
c
e
.
.
.
A
c
t
i
v
a
t
i
o
n
R
i s i n g E d g e
F a l l i n g E d g e
B o t h E d g e s
L e v e l H i g h
L e v e l L o w
E n c o d e r
S o u r c e A
E n c o d e r
S o u r c e B
E n c o d e r
R e s e t
E n c o d e r V a l u e A t R e s e t
E n c o d e r S t a r t V a l u e
E n c o d e r V a l u e
E n c o d e r S t a t u s
E n c o d e r R e s e t ( )
E n c o d e r M o d e
E n c o d e r T r i g g e r
E n c o d e r O u t p u t M o d e
E n c o d e r T i m e o u t
E n c o d e r D i v i d e r
Figure 6.1: Encoder Structure
An incremental encoder with A/B outputs can be used to synchronize the camera triggers to
the speed of a conveyor belt. These A/B outputs can be directly connected to the camera and
appropriate triggers are generated inside the camera with the help of the encoder block. See
Section 13.6.2 for more information, how to connect an encoder interface to the camera.
Fig. 8.1 shows the structure of the encoder. The trigger sources for the A and B inputs can be
mapped to any of the line inputs of the camera, while the reset source can also be mapped to a
multitude of other triggers. The encoder signals are used to track the position of the target
using a counter. The block generates trigger signals based on the input, these can be used to
trigger other blocks, like counter, timer, acquisition, frame or exposure control.
6.1
Encoder Usage
In order to enable the encoder, both trigger sources A and B need to be mapped to an input
line. The encoder then starts tracking the position as soon as it is reset. Depending on the
EncoderMode, the position counter reacts to either every input signal transition
(HighResolution mode) or only to every full cycle of state transitions (FourPhase mode), see Fig.
6.2.
A start position can be configured through the EncoderStartValue property, the current
position can be read through the EncoderValue property. Whenever the encoder is reset via
input signal or software command, the current encoder value gets stored in the
EncoderValueAtReset property.
MAN082 09/2019 V1.0
49 of 125
Содержание MV0 3D06 Series
Страница 10: ...1 Preface 10 of 125 MAN082 09 2019 V1 0...
Страница 20: ...3 Product Specification 20 of 125 MAN082 09 2019 V1 0...
Страница 38: ...4 Image Acquisition 38 of 125 MAN082 09 2019 V1 0...
Страница 48: ...5 Counter Timer 48 of 125 MAN082 09 2019 V1 0...
Страница 58: ...9 Image Format Control 58 of 125 MAN082 09 2019 V1 0...
Страница 62: ...10 Frame Rate 62 of 125 MAN082 09 2019 V1 0...
Страница 88: ...11 Image Data Processing 88 of 125 MAN082 09 2019 V1 0...
Страница 92: ...12 Precautions 92 of 125 MAN082 09 2019 V1 0...
Страница 100: ...13 Hardware Interface 100 of 125 MAN082 09 2019 V1 0...
Страница 104: ...14 Mechanical Considerations 104 of 125 MAN082 09 2019 V1 0...
Страница 106: ...15 Troubleshooting 106 of 125 MAN082 09 2019 V1 0...
Страница 112: ...18 Support and Repair 112 of 125 MAN082 09 2019 V1 0...
Страница 114: ...19 References 114 of 125 MAN082 09 2019 V1 0...
Страница 125: ...D Document Revision History Revision Date Change 1 0 September 2019 First version MAN082 09 2019 V1 0 125 of 125...