MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Troubleshooting encoder A/B phase errors
HomeModels
Table of contents

On this page

Fault Diagnosis & Standards (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)(每月更新中)

Troubleshooting encoder A/B phase errors

When encoder A and B phases lose their 90-degree relationship the axis reverses, counts jump, or the servo runs away the moment it is enabled. This page gives the correct phase relationships, a two-channel scope procedure, and how to tell reversed phases, a missing channel and noise apart.

1. How it works

Incremental encoders output 50 percent duty square waves with a 90-degree plus or minus 15 degree offset; A leads B forward and B leads A reverse, with one Z pulse per revolution for homing. Reversed relationships show as inverted direction commands, a servo that runs away on enable because the velocity feedback polarity forms positive feedback, and counters that only increment. A missing channel gives one-way travel, while noise shows as slow counter drift at standstill, a fundamentally different signature.

2. Numbers and practice

Measure with a two-channel scope: channel 1 on A, channel 2 on B, probe grounds on the 0V common and never on 24 V. Trigger on channel 1 rising edge at 1 to 5 ms per division; two square waves offset by a quarter period equal 90 degrees. Rotate the motor slowly one full turn forward to confirm A leads B, then reverse to confirm the swap. Note many encoders are 5 V TTL while open-collector types need pull-ups, so confirm the output stage before judging waveforms.

3. Pitfalls and fixes

Separate the three fault classes. Reversed phases are stable and repeatable: swap the A and B conductors or change the drive parameter, but remember homing shifts so re-zero afterwards. A missing channel points to broken cores, backed-out pins or a failed receiver; beep out each core with a meter. Noise glitches call for double-ended shield bonding, separating pulse wiring from power, a hysteresis receiver, or differential RS422 outputs for runs beyond 10 m.

4. Encoder phase fault quick reference

SymptomCauseScope signatureFix
Runs away on enableFeedback polarity reversedA-B relation wrongSwap A/B or change parameter
Direction invertedA and B swappedOffset is -90 degreesExchange A and B wires
Alarm in one directionMissing B channelOnly A square wave seenCheck cable and connectors
Slow count driftNoise glitchesEdge glitches at standstillEarth both ends, go differential
Homing point wandersZ noisy or invertedPoor Z repeatabilityShield Z line, set threshold
Pulse loss at speedReceiver level too lowAmplitude droopCheck pull-ups and supply
Jitter alarmA/B crosstalkRagged edgesSeparate from power cables
Alarm right at enableReversed supply damageNo output or stuck levelReplace encoder

5. Notes

Always measure before replacing: confirm 5 V plus or minus 5 percent supply, the output type (TTL, open collector, differential) and pinout, then look at waveforms, and only then suspect the element. After any encoder swap re-verify direction and homing before power-up travel.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Rotary encoder terminology per GB/T 2900 series; machine electrical safety per GB/T 5226.1 (IEC 60204-1). Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Clipping the scope ground on 24 V: that shorts through the probe and burns the encoder output stage; ground on 0V only
② Swapping A and B without re-homing: the Z reference shifts and the axis homes into a mechanical stop; always re-zero after rewiring
③ Running 5 V TTL pulses 30 metres: the level sags below threshold and pulses drop randomly; beyond 10 m use differential RS422

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