Maximizing encoder accuracy, Connecting the usb-2527 to an encoder – Measurement Computing USB-2527 User Manual
Page 39

USB-2527 User's Guide
Functional Details
39
The concentric pattern for B has the same number of window pairs as A—except that the entire pattern is
rotated by 1/4 of a window-pair. Thus the B signal is always 90 degrees out of phase from the A signal. The A
and B signals pulse 512 times (or 1024, 4096, etc.) per complete rotation of the encoder.
The concentric pattern for the Z signal has only one transparent window and therefore pulses only once per
complete rotation. Representative signals are shown in the following figure.
A
B
Z
Figure 20. Representation of quadrature encoder outputs: A, B, and Z
As the encoder rotates, the A (or B) signal indicates the distance the encoder has traveled. The frequency of A
(or B) indicates the velocity of rotation of the encoder. If the Z signal is used to zero a counter (that is clocked
by A) then that counter gives the number of pulses the encoder has rotated from its reference. The Z signal is a
reference marker for the encoder. It should be noted that when the encoder is rotating clockwise (as viewed
from the back), A will lead B and when the encoder is rotating counterclockwise, A lags behind B. If the
counter direction control logic is such that the counter counts upward when A leads B and counts downward
when A lags B, then the counter gives direction control as well as distance from the reference.
Maximizing encoder accuracy
If there are 512 pulses on A, then the encoder position is accurate to within 360°/512.
You can get even greater accuracy by counting not only rising edges on A but also falling edges on A, giving
position accuracy to 360 degrees/1024.
You get maximum accuracy counting rising and falling edges on A and on B (since B also has 512 pulses.) This
gives a position accuracy of 360°/2048. These different modes are known as X1, X2, and X4.
Connecting the USB-2527 to an encoder
You can use up to two encoders with each USB-2527 in your acquisition system. Each A and B signal can be
made as a single-ended connection with respect to common ground.