
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 14.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.
MAN085 04/2021 V1.3
53 of 151
Summary of Contents for Luxima DR4-D1280-L01-FB
Page 8: ...CONTENTS 8 of 151 MAN085 04 2021 V1 3...
Page 12: ...1 Preface 12 of 151 MAN085 04 2021 V1 3...
Page 42: ...4 Image Acquisition 42 of 151 MAN085 04 2021 V1 3...
Page 52: ...5 Counter Timer 52 of 151 MAN085 04 2021 V1 3...
Page 84: ...12 Pixel Data Processing 84 of 151 MAN085 04 2021 V1 3...
Page 94: ...12 Pixel Data Processing 94 of 151 MAN085 04 2021 V1 3...
Page 98: ...13 Precautions 98 of 151 MAN085 04 2021 V1 3...
Page 128: ...16 Troubleshooting 128 of 151 MAN085 04 2021 V1 3...
Page 134: ...19 Support and Repair 134 of 151 MAN085 04 2021 V1 3...
Page 136: ...20 References 136 of 151 MAN085 04 2021 V1 3...
Page 140: ...A Pinouts 140 of 151 MAN085 04 2021 V1 3...