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.
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.
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.
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.
| Symptom | Cause | Scope signature | Fix |
|---|---|---|---|
| Runs away on enable | Feedback polarity reversed | A-B relation wrong | Swap A/B or change parameter |
| Direction inverted | A and B swapped | Offset is -90 degrees | Exchange A and B wires |
| Alarm in one direction | Missing B channel | Only A square wave seen | Check cable and connectors |
| Slow count drift | Noise glitches | Edge glitches at standstill | Earth both ends, go differential |
| Homing point wanders | Z noisy or inverted | Poor Z repeatability | Shield Z line, set threshold |
| Pulse loss at speed | Receiver level too low | Amplitude droop | Check pull-ups and supply |
| Jitter alarm | A/B crosstalk | Ragged edges | Separate from power cables |
| Alarm right at enable | Reversed supply damage | No output or stuck level | Replace encoder |
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.
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.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.