
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.4 for more information, how to connect an encoder interface to the camera.
Fig. 6.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.
MAN094 03/2021 V1.0
51 of 139
Summary of Contents for MV8-D8424-G01-GT
Page 8: ...CONTENTS 8 of 139 MAN094 03 2021 V1 0...
Page 12: ...1 Preface 12 of 139 MAN094 03 2021 V1 0...
Page 40: ...4 Image Acquisition 40 of 139 MAN094 03 2021 V1 0...
Page 50: ...5 Counter Timer 50 of 139 MAN094 03 2021 V1 0...
Page 68: ...10 Frame Rate 68 of 139 MAN094 03 2021 V1 0...
Page 79: ...11 6 Binning MAN094 03 2021 V1 0 79 of 139...
Page 92: ...12 Precautions 92 of 139 MAN094 03 2021 V1 0...
Page 110: ...13 Hardware Interface 110 of 139 MAN094 03 2021 V1 0...
Page 116: ...15 Troubleshooting 116 of 139 MAN094 03 2021 V1 0...
Page 122: ...18 Support and Repair 122 of 139 MAN094 03 2021 V1 0...
Page 124: ...19 References 124 of 139 MAN094 03 2021 V1 0...
Page 128: ...A Pinouts 128 of 139 MAN094 03 2021 V1 0...