44
•
Xtium2-CLHS PX8 Reference
Xtium2-CLHS PX8 User's Manual
K
D
D
K
D
D
K
D
D
K
D
D
K
D
D
Shaft Encoder phase A
Shaft Encoder phase B
K = Keep
D = Drop or Skip
Note: in this example, Number of trigger to drop = 2
Line acquired
Figure 10: Encoder Input with Pulse-drop Counter
Example using Sequential Encoder Input
Support of a dual phase encoder should consider the direction of motion of one phase signal to the
other. Such a case might exist where system vibrations and/or conveyor backlash can cause the
encoder to briefly travel backwards. The acquisition device must in those cases count the reverse
steps and subtract the forward steps such that only pulses after the reverse count reaches zero are
considered. By using the event “Shaft Encoder Reverse Counter Overflow”, an application can
monitor an overflow of this counter.
Also, if a maximum line rate camera trigger source is a high jitter shaft encoder, the parameter
CORACQ_PRM_LINE_TRIGGER_AUTO_DELAY can be used to automatically delay line triggers to
avoid over-triggering a camera, and thus not miss a line. Note that some cameras integrate this
feature. See also the event “
Line Trigger Too Fast
” that can be enabled when using the ‘auto delay’
feature.
The example figure below shows shaft encoder signals with high jitter. If the acquisition is
triggered when phase B follows phase A, with jitter present phase B may precede phase A. Use of
the Shaft Encoder Direction parameter will prevent false trigger conditions.
Shaft Encoder phase A
Shaft Encoder phase B
Figure 11: Using Shaft Encoder Direction Parameter
Note: Modify camera file parameters easily with the Sapera CamExpert program.
CVI/CCF File Parameters Used
Shaft Encoder Enable = X, where:
•
If X = 1, Shaft Encoder is enabled
•
If X = 0, Shaft Encoder is disabled
Shaft Encoder Pulse Drop = X, where:
•
X = number of trigger pulses ignored between valid triggers
Shaft Encoder Pulse Multiply = X, where:
•
X = number of trigger pulses generated for each shaft encoder pulses