7 Encoder
A
B
G r a y C o u n t e r
H i g h R e s o l u t i o n C o u n t e r
0
1
2
3
0
1
2
3
2
1
0
3
2
1
2
3
0
0
1
2
3
4
5
6
7
6
5
4
3
2
1
2
3
4
1
5
F o u r P h a s e C o u n t e r
0
1
0
1
Figure 7.2: Encoder Modes
7.2
Encoder trigger output
The trigger output of the encoder reacts to changes of the position counter. Triggers are
generated according to the EncoderOutputMode property:
Off
Disables the encoder output trigger.
PositionUp
Triggers are generated whenever the position counter increments and the position
value has not previously been reached.
PositionDown
Triggers are generated whenever the position counter decrements and the
position value has not previously been reached.
DirectionUp
Triggers are generated whenever the position counter increments.
DirectionDown
Triggers are generated whenever the position counter decrements.
Motion
Triggers are generated whenever the position counter value changes.
In order to keep track of the highest respectively lowest position in the PostionUp and -Down
modes, a watermark counter is used. The counter resets whenever the output mode changes,
the encoder is reset or a new start value is written. See Fig. 7.3 for a comparison of the modes.
The number of generated output triggers can be reduced by setting the EncoderDivider
H
i g h R e s o l u t i o n M o d e
A
B
G r a y C o u n t e r
E n c o d e r C o u n t e r
P o s i t i o n U p T r i g g e r
P o s i t i o n U p W
a t e r m a r k
0
1
0
1
2
0
1
3
0
1
2
3
0
1
2
2
3
3
4
4
5
5
0
3
2
1
0
1
2
3
0
1
2
3
0
1
6
6
7
7
8
8
9
9
8
7
6
5
4
5
2
6
7
8
9
1 0
1 1
1 2
1 3
1 4
1 0
1 1
1 2
1 3
1 4
P o s i t i o n D o w n T r i g g e r
D i r e c t i o n U p T r i g g e r
D i r e c t i o n D o w n T r i g g e r
M o t i o n T r i g g e r
P o s i t i o n D o w n W
a t e r m a r k
0
Figure 7.3: Encoder Output Modes
property accordingly. This property only affects the trigger output, the position is tracked
exactly the same independent of the divider value.
7.3
Encoder Status
The encoder has different states which reflect on the A/B input signals. The current state can
be read out by the EncoderStatus register. The following list shows the available states:
54 of 143
MAN093 08/2021 V1.1
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 ...