7
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 7.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 14.6.4 for more information, how to connect an encoder interface to the camera.
Fig. 7.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.
7.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.
7.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.
MAN093 08/2021 V1.1
53 of 143
Summary of Contents for MV4 Series
Page 8: ...CONTENTS 8 of 143 MAN093 08 2021 V1 1 ...
Page 12: ...1 Preface 12 of 143 MAN093 08 2021 V1 1 ...
Page 40: ...4 Image Acquisition 40 of 143 MAN093 08 2021 V1 1 ...
Page 42: ...5 Exposure Control 42 of 143 MAN093 08 2021 V1 1 ...
Page 52: ...6 Counter Timer 52 of 143 MAN093 08 2021 V1 1 ...
Page 64: ...10 Image Format Control 64 of 143 MAN093 08 2021 V1 1 ...
Page 66: ...11 Frame Rate 66 of 143 MAN093 08 2021 V1 1 ...
Page 82: ...12 Pixel Data Processing 82 of 143 MAN093 08 2021 V1 1 ...
Page 92: ...12 Pixel Data Processing 92 of 143 MAN093 08 2021 V1 1 ...
Page 96: ...13 Precautions 96 of 143 MAN093 08 2021 V1 1 ...
Page 120: ...16 Troubleshooting 120 of 143 MAN093 08 2021 V1 1 ...
Page 126: ...19 Support and Repair 126 of 143 MAN093 08 2021 V1 1 ...
Page 128: ...20 References 128 of 143 MAN093 08 2021 V1 1 ...