• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Advertise
  • Subscribe

Motion Control Tips

Automation • Motion Control • Power Transmission

  • News
    • Industry News
    • Editor Blogs
  • Controls
    • HMIs
    • PC-Based Controllers
    • PLCs + PACs
    • Stand-Alone Controllers
    • Software
  • Drives
    • Servo Drives
    • Stepper Drives
  • Encoders
    • Absolute Encoders
    • Incremental Encoders
    • Rotary Encoders
  • Mechanical
    • Bearings
    • Brakes + Clutches
    • Belt + chain
    • Couplings
    • Gears + Gearing
    • Lubrication
    • Shock + Vibration Mitigation
    • Springs + Rings + Seals
  • Linear
    • Actuators
    • Linear Motors
    • Linear Encoders
  • Motors
    • AC Motors
    • DC Motors
    • Brushless Motors
    • Gearmotors
    • Piezo Motors
    • Servo Motors
    • Stepper Motors
  • Systems
    • Conveyors + linear transport systems
    • Gantries + Stages
    • Rotary Tables
    • Grippers + End Effectors
    • Robotics
  • Networks
    • Connections + Sliprings
    • Fieldbuses
    • I/O
    • Sensors + Vision
  • Resources
    • FAQs
      • Motion Casebook
      • Motion Selection Guides
    • Suppliers
    • Video
You are here: Home / Encoders / FAQ: What do X1, X2, and X4 position encoding mean for incremental encoders?

FAQ: What do X1, X2, and X4 position encoding mean for incremental encoders?

October 1, 2015 By Danielle Collins 1 Comment

An encoder is a device that measures position, and in some configurations, can also measure direction. Rotary encoders measure rotation of a shaft, while linear encoders measure distance traveled. For both types of encoder, the position measurement can be either incremental or absolute. An incremental encoder measures change in position, but does not keep track of actual position. When power is interrupted, incremental encoders lose their position reference and must start over via a re-homing sequence to a reference point. Absolute encoders, on the other hand, keep track of absolute position, whether rotation of a shaft or linear travel, by assigning a unique digital value to each position. So even if power is lost, an absolute encoder will know the exact position of the shaft or the linear drive.

Incremental encoders work by producing a specific number of equally spaced pulses per revolution (PPR) or per distance (PPM—pulses per millimeter, or PPI—pulses per inch). When one set of pulses, or output channel, is used, the encoder can determine position only.  But most incremental encoders use quadrature output, which consists of two channels, typically referred to as channel A and channel B, that are out of phase by 90 degrees. Quadrature output allows the encoder to also sense direction, by determining which channel is leading and which is following. Some incremental encoders also produce a third channel with a single pulse, commonly referred to as channel Z or channel I. This channel serves as the index or reference position for homing.

With quadrature output, three types of encoding can be used: X1, X2, or X4. The difference between these encoding types is simply which edges of which channel are counted during movement, but their influence on encoder resolution is significant.

With X1 encoding, either the rising (aka leading) or the falling (aka following) edge of channel A is counted. If channel A leads channel B, the rising edge is counted, and the movement is forward, or clockwise. Conversely, if channel B leads channel A, the falling edge is counted, and the movement is backwards, or counterclockwise.

Incremental encoders
X1 encoding, in which either the rising or the falling edge of channel A is counted. Notice that when channel B is leading, the movement is considered counterclockwise or reverse, and the count is decreased.
Image credit: National Instruments Corporation

 

When X2 encoding is used, both the rising and falling edges of channel A are counted. This doubles the number of pulses that are counted for each rotation or linear distance, which in turn doubles the encoder’s resolution.

Incremental encoders
X2 encoding, in which both the rising and falling edges of channel A are counted.
Image credit: National Instruments Corporation

 

X4 encoding goes one step further, to count both the rising and falling edges of both channels A and B, which quadruples the number of pulses and increases resolution by four times.

Incremental Encoders
X4 encoding, in which both the rising and falling edges of channels A and B are counted.
Image credit: National Instruments Corporation

 

For rotary encoders, position is calculated by dividing the number of edges counted by the product of the number of pulses per revolution and the encoding type described above (1, 2, or 4), and then multiplying the result by 360 in order to get degrees of motion.

Incremental Encoders

x = type of encoding (X1, X2, or X4)

N = number of pulses generated per shaft revolution

For linear encoders, position is calculated by dividing the number of edges counted by the product of the number pulses per revolution and the encoding type. This result is then multiplied by the inverse of the pulses per millimeter (or per inch).

Incremental encoders

incremental encoders

PPM = pulses per millimeter

PPI = pulses per inch

Incremental encoders are a relatively simple and inexpensive feedback option for applications where re-homing after a power loss is not detrimental to the process. And with quadrature output, incremental encoders can achieve high resolution, even at high speeds.

Incremental encoders

Featured image credit: National Instruments Corporation

You Might Also Like

Filed Under: Encoders, FAQs + basics, Incremental Encoders, Linear Encoders, Rotary Encoders

Reader Interactions

Leave a Reply

You must be logged in to post a comment.

Primary Sidebar

LEARNING CENTER

Design World Learning Center

Motion Control Handbook

“mct
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for Design Engineering Professionals.

RSS Featured White Papers

  • Robotic Automation is Indispensable for the Logistics Industry’s Continued Growth and Success
  • Reliable Linear Motion For Packaging Machines
  • Polymers Outperform Metals In Precision Gearing

Footer

Motion Control Tips

DESIGN WORLD NETWORK

Design World Online
The Robot Report
Coupling Tips
Linear Motion Tips
Bearing Tips
Fastener Engineering.
Wire and Cable Tips

MOTION CONTROL TIPS

Subscribe to our newsletter
Advertise with us
Contact us
About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy | RSS