MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Incremental rotary encoder A/B/Z phase outputs
HomeModels
Table of contents

On this page

Sensors & Detection (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Incremental rotary encoder A/B/Z phase outputs

Incremental encoders live on three pulse trains: A and B at 90 electrical degrees apart for direction, and Z, one narrow pulse per revolution, for the homing datum. Know their roles, the quadrature counting and the output standards.

1. How it works

The encoder emits square waves A and B, offset by 90 electrical degrees: forward rotation puts A ahead of B, reverse puts B ahead, and the controller reads direction from that lead-lag. The Z phase, also called C or Index, delivers one narrow pulse per revolution as the homing reference - catching Z fixes the mechanical zero, usually combined with a limit switch for coarse plus fine homing. Common line counts run 100, 360, 500, 1000, 1024, 2000 and 2500 pulses per revolution, chosen from the required resolution against the controller counting rate.

2. Practice and pitfalls

Quadrature counting exploits the 90-degree offset: the controller counts each edge of A and B, four counts per line, so a 1000-line unit yields 4000 counts per revolution, and servo drives can interpolate further. Resolution per count equals 360 degrees divided by lines times quadrature - 1024 lines at 4x gives 0.0879 degrees per count; spec the line count with 30 percent margin for backlash and drift. Output standards: open-collector NPN for short runs under 10m, voltage output for simple hookups, push-pull HTL for 10~30V noise immunity into PLC high-speed inputs, and differential RS-422 with six wires for up to 100m - the servo standard. On the scope, A leads B by a quarter cycle forward, duty cycle 50 percent plus or minus 10, and the Z pulse must exceed 0.1 of an A period or the controller may miss it.

3. Incremental encoder signal quick table

SignalFunctionWaveform trait
Phase ACounting and directionSquare wave, 50% duty, lines per rev
Phase BDirection and quadrature90 electrical degrees from A
Phase ZOne pulse per revolutionWidth above 0.1 of an A period
4x quadratureFourfold resolution1024 lines become 4096 counts per rev
NPN open collectorEconomy outputUnder 10m, needs pull-up resistor
Differential RS-422Servo and long runsSix wires, noise-proof to 100m

4. Notes

The heart of incremental encoders is phase order: A leading B means forward, and a swapped pair means reversed counting. Commission a new axis in three steps that cannot be skipped - hand-rotate slowly to confirm the count direction, home, then speed up.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Digital interfaces and control circuits per GB/T 5226.1 (IEC 60204-1); differential signalling per the IEC 61158 series electrical profiles. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① Swapping A and B without verifying direction:Counts run opposite to the mechanics and every position lies - hand-check at low speed first
② Z pulse too narrow for the filter:Homing never succeeds - match the Z width against the input filter at selection
③ Open-collector output on long runs:Edges soften past 10m and pulses vanish - move to differential beyond that

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL