Tutorial Encoder
Tutorial Encoder
WP-2000:incremental
address
or absolute. Absolute encoders have a unique digitally coded output or
Selecting Digital
for every distinct positionEncoder Outputs
of the encoder. Incremental encoders will output a
count or pulse at periodic predetermined intervals. Rotary incremental encoders are the
most commonly used encoder. We will focus on rotary incremental encoders for this
discussion.
Encoder - A Definition
There are two important
considerations when
An encoder is an electro-mechanical device that translates
selecting the outputs of an
mechanical motion into electrical signals. There are two
encoder. The first is the
major types of encoders: linear encoders and rotary
number of output channels.
encoders.
The second is the electrical
output characteristics of the
Linear encoders have a read head and track. The read head
encoder channels. In order
will slide along the track
to makewith athis
predetermined scale. This
determination
will produce an output
is isforvery
distance traveled typically
important to in
pulses per inch (PPI).understand the requirements
of the receiving device.
A rotary encoder converts the angular
Receiving movement
devices mayof a
rotational device andconsist
will haveofanPLC’s,
output formotion
rotation about
the fixed axis, typically in cycles per high
controllers, revolution (CPR). Figure
speed
1 shows two typicalcounters,
motion feedbackor any other rotary signals
systems where Figure 1. Figure
Two1.types of of
Two types feedback systems.
feedback systems. Closed
Closed-loop loopisfeedback
feedback is where
where the encoder signalsthe encoder
control the
control the motor without anyloopuser inputs. Open loop feedback is awhere thetheencoder
encoders are used. device designed to accept motor without any user inputs. Open feedback is where the encoder
signal runs to a display and the uses adjust the motor to fit a desired output.
signal runs to display and
user adjusts the motor to fit a desired output.
encoder inputs. Some
receiving devices have selectable inputs which will provide more flexibility in selecting
the appropriate encoder.
Encoder Types
Digital incremental encoders have three basic choices for
Within linear or rotary
theencoders,
number there
of are two basic types
channels: single of electrical
channeloutput formats:
(figure 2), incremental
two or absolute. Absolute encoders have a
channels
unique digitally coded output, orinaddress,
quadrature
for everyoften
distinctreferred
position oftotheasencoder.
a quadrature
Incremental encoders will output a count or pulse at periodic
encoder (figure 3), and quadrature with an index channel
predetermined intervals. Figure 2. Single channel encoder output.
(figure 4). A single channel has a single “A” channel that
Rotary incremental will
encoders are thea most
output commonlyof
set number used encoder.
pulses perWerevolution.
will focus on rotary
Theincremental encodersencoder
single channel for this discussion.
will give
There are two important considerations when selecting the outputs of an encoder. The first is the number of output channels. The second is the
electrical output characteristics of the encoder channels. In order to make this determination, it is very important to understand the requirements
of the receiving device.
Receiving devices may consist of PLCs, motion controllers, high speed counters, or any other device designed to accept encoder inputs. Some
receiving devices have selectable inputs, which will provide more flexibility in selecting the appropriate encoder.
page 1
Electrical Output
There are four major types of electrical output:
The first output type is differential line driver. With differential signals, there will be two connections for each channel (Figure 5). It provides
differential output, or complementary signals for noise immunity. Noise immunity is obtained by what is called “common mode rejection,” which
page 2
white paper
WP-2000: Selecting Digital Encoder Outputs
Figure 3. Quadrature encoder and
quadrature counting.
occurs when noise is present on a differential pair, and the differential receiver cancels the noise. Differential line driver is the preferred output type
for longer encoder cable lengths because of the inherent noise immunity. Differential line driver also meets RS-422 standards when operated at 5
VDC. An encoder should have differential line drive outputs when the receiving device is set up to receive differential signals. Some Accu-Coder™
Figure
encoders also have a 5 VDC regulated differential line driver output. This will take a higher input voltage 4. Quadrature
and regulate the outputencoder
to 5 VDC.with an index
channel.
The second output type is push-pull. Push-pull is sometimes referred to as
a “totem-pole” type of output circuit. This is a combination of sinking and
sourcing outputs. When the output is in logic state high, current will source to
the receiving device load. When the output is in logic state low, current will
sink from the load.
Push-pull does not have the noise immunity that is inherent in a differential
line driver. When the output is high, the noise on the DC power supply (ripple,
voltage, spikes, etc.) may show up on the output of the encoder. A push-pull
output type can replace a PNP transistor output in some applications. Some
encoders have a 5 volt regulated push-pull output, so the encoder will have a
5 volt signal when the supply voltage to the encoder is higher than 5 volts. Figure
Figure 5. Differential outputs. 5. Differential outputs.
The third output type is NPN open collector. NPN open collector is a current
sinking output type and requires a pull-up resistor external to the encoder. Typically, the pull-up resistor is built into the receiving device.
Open collector is useful for doing what is called level shifting. Level shifting occurs when the encoder is pulled up externally to a different voltage
level. For example, the encoder can be powered with 5 volts, and the output can be pulled up to a 24 VDC level. Encoder Products Company offers
an open collector differential output on some encoder models. This is an open collector output with the complimentary channels similar to a line
driver.
NOTE: NPN open collector is not the same as a PNP output. A PNP output requires a pull down resistor and is a current sourcing type output. PNP
outputs are seldom used in encoders.
The fourth output type is pull-up. It is the same as the open collector, but, as the name implies, it contains the pull-up resistor internal to the
encoder. This is useful for customers who do not need the level shifting capabilities of an open collector and do not want to add external pull-up
resistors to the feedback system. Common values for the internal pull-up resistor in an EPC Accu-Coder™ encoder are between 1.5k and 2.2k.
Conclusion
Choosing the correct number of channels and the correct output type for an encoder can be the determining factor in whether or not a feedback
system will function properly. This is one of the most common problems customers have when selecting encoders. Remember: it is the receiving
device that determines the correct configuration of the encoder’s outputs. If the encoder configuration is in question, call Encoder Products
Company’s technical service for assistance.
If you still have questions about output, or anything else encoder-related, give us a call. When you contact EPC, you talk to real engineers and
encoder experts who can answer your toughest encoder questions. Contact EPC today to get the information you need.
page 3
1-800-366-5412 | www.encoder.com | [email protected] WP-2000 Rev 03/2012 © 2012 Encoder Products Company. All Rights Reserved.