Troubleshooting
Why a replacement encoder lamp disturbs optical quadrature alignment
Short answer
Swapping an encoder lamp moves the optical aperture and the detector board behind it, so both channel amplitudes and the 90 degree quadrature phase drift. Recovery is measured, not visual: restore each channel's specified amplitude under the specified load and the quarter-period phase offset, verified on a two-channel scope; motor nameplate ratings never set encoder alignment.

On this page
- What moves inside the encoder when the lamp is replaced?
- How far apart should A and B be on a two-channel scope?
- What amplitude and load should the encoder signals be checked against?
- Which checks come first after a lamp swap?
- Is optical alignment the same job as commutation alignment?
- Do motor nameplate numbers set the encoder alignment?
- Can this encoder be aligned without the factory documentation?
- What passes the repair before the machine runs again?
- Questions asked
Replacing the lamp in an optical incremental encoder looks like a five-minute job, and it rarely ends that way. The lamp, the adjustable aperture in front of the rotating graduation and the photodetector board behind it form one optical system, so touching any part of it changes the electrical output. What decides whether the encoder is good again is not that the lamp lights. It is two amplitudes and one phase relationship: both channels at their specified amplitude under the specified load, and the B channel sitting one quarter of a signal cycle away from A. Motor nameplate ratings describe the motor, not this measurement. This article walks the checks from cheapest to hardest, shows the arithmetic a scope check needs, and ends with the decision for each repair path.
What moves inside the encoder when the lamp is replaced? #
Three things move: the new lamp sits at a different filament position, the adjustable aperture template between lamp and chopper wheel shifts, and the round detector board that carries the light sensors behind the wheel moves on its three screws.
The optical chain runs lamp, adjustable aperture, rotating graduation or chopper wheel, then the detector board, and each element leaves a separate fingerprint on the scope. Lamp position and output set illumination, and illumination sets modulation depth, which you read as amplitude. Aperture position changes how much of that light modulates, so it moves amplitude too and can unbalance the two channels against each other. Detector board position is the sensitive one: the geometry of the sensors relative to the graduation is what fixes the phase between the channels, so a board that moved even part of a millimetre shifts phase. A replacement lamp contributes its own error even when it lights normally, because filament position and light distribution are part of the optical geometry. None of it is visible: weak amplitudes and a phase error can hide behind a trace that looks clean at a slow sweep.
How far apart should A and B be on a two-channel scope? #
Ninety electrical degrees: the B channel's edges sit one quarter of a cycle away from the A channel's edges, read as time at a fixed steady speed, and that is a quarter of the signal period, never 90 mechanical shaft degrees.
Trigger the scope on the A channel's rising edge and read the time from that edge to the next B rising edge, in both rotation directions.
Worked example, calculated for example inputs rather than measured: take an example 2500-line encoder at a steady 300 RPM. Frequency is 300 rev/min divided by 60 s/min, times 2500 lines/rev = 12,500 Hz. Period is 1 / 12,500 Hz = 80 microseconds. Quadrature offset is 80 microseconds / 4 = 20 microseconds, so the B rising edge follows the A rising edge by 20 microseconds at that speed. Double the speed to 600 RPM and the period halves to 40 microseconds with a 10 microseconds offset: the phase fraction is fixed while the time scales with speed. That scaling is why phase is judged at a stated speed, not at whatever speed the shaft happens to be drifting through.
Measure the offset at several shaft positions, hand-turning between them. An offset correct at one angle and wrong at another is detector geometry, not electronics. Also confirm which channel leads in each direction, because direction logic depends on the lead; the guide on how an incremental encoder shows direction of rotation covers that side of the check.
What amplitude and load should the encoder signals be checked against? #
Check against the encoder's own output specification at its specified supply and load: for a 5 V logic encoder the signals switch between close to 0 V and close to 5 V, and the load that matters is the receiver input the signals must drive.
Amplitude measured into a bare probe is a number without meaning. Measure at the receiver end, or at the encoder with loading that matches it. A differential pair is judged differentially, between its two conductors; one conductor against ground says little about what the receiver sees, which is the situation in the guide on why a differential input rejects a single-ended 5 V encoder signal. Other interface families state their own windows, and the exact acceptance window comes from the encoder variant's output specification, not from a scope impression.
Measure the encoder supply at its connector too, under the drive's real load. A supply that sags under load shrinks both amplitudes together and mimics a failing optic. Verifying the signals after wiring them to the drive's encoder terminals, as the guide on wiring a TTL quadrature encoder to drive encoder terminals walks through, closes the gap between the bench reading and the machine reading.
Which checks come first after a lamp swap? #
Work from cheapest to touch to hardest: supply and loading first, then channel balance, then amplitude around one revolution, then quadrature offset, and the optics themselves last.
Before opening the encoder housing or any guard, lock the machine out and let stored electrical, pneumatic and hydraulic energy discharge.
- Supply and loading, nothing opened. Measure the encoder supply at its connector and both channels at the receiver, under the drive's load. Confirms whether the lamp work is even the fault: a supply out of range or a damaged receiver produces weak channels with untouched optics.
- Channel balance. Same probe, same loading, compare A against B. One channel clearly weaker points at uneven illumination, a detector board that moved, or a channel-specific electrical defect; the interface's stated amplitude and balance limits decide, and without them this stays a relative check.
- Amplitude around one revolution. Hand-rotate a full turn and watch amplitude against shaft angle. A dip repeating at the same angle convicts rotating geometry: eccentricity, contamination or a shifted graduation, not the lamp.
- Quadrature offset. At a steady low speed, confirm the quarter-period offset at several shaft positions and in both directions. An offset that moves with shaft angle convicts the detector board.
- Bench good, machine bad. Clean traces at the encoder with unreliable counts at the control move the suspicion to cable, shield and receiver; compare signals at both ends under the intended load. A drive answering with a feedback phase alarm is best isolated by the wiring-encoder-drive sequence in the guide to isolating a servo drive encoder phase alarm between wiring, encoder and drive.
- Warm-up drift. Trend amplitude and supply together over the first ten minutes. Drift that follows lamp warm-up with a steady supply is the new filament settling; lamp-driven amplitude instability is its own documented failure mode, and the guide to lamp amplitude instability troubleshooting in oscillator circuits shows the same mechanism from the analog side. Drift that follows the supply convicts the supply.
Is optical alignment the same job as commutation alignment? #
No. On a brush-commutated DC servomotor the brushes and commutator already switch armature current, so the incremental encoder only reports speed and position; aligning its optics is a separate job from setting commutation phase to the stator windings of an AC servo.
Commutation alignment, the careful matching of feedback signals to winding positions before first power-up, belongs to brushless motors, and procedures written for that job do not transfer. The practical trap is direction: guidance about commutation phase can send someone moving optical parts that were never wrong. Confirm from the machine's records what the control expects from this feedback path before touching anything, including how its input signal names map to the encoder's channels; the guide on matching encoder signal names between motor and servo drive is the checklist for that step.
Do motor nameplate numbers set the encoder alignment? #
None of them does. Maximum speed, armature voltage and pulse current describe the motor's limits, not the encoder; the only nameplate figure with bench value here is the tachometer constant, and it checks the tachometer, not the optics.
Treat the plate as motor context. A plate of this kind on a permanent-magnet DC servomotor of the era reads like the example below; read your own plate, because transcriptions garble units.
| Nameplate quantity | Example reported value | What it is for |
|---|---|---|
| Motor type | permanent-magnet DC servomotor | Confirms the motor commutates mechanically |
| Maximum speed | 4000 RPM | Motor limit, not an alignment speed |
| Armature voltage | 132 V | Motor supply context, not the encoder or lamp supply |
| Pulse current | 65 A | Peak motor rating, not a bench-test setting |
| Continuous stall torque | unit unclear in the transcription | Read the motor datasheet before using it in any load calculation |
| Tachometer constant | 9.5 V per 1000 RPM | A separate speed-feedback check |
The torque line is a warning in itself: the transcription reads 3.2 with a unit that makes no physical sense for a motor of this size, which is why any torque figure for a load calculation comes from the datasheet of the exact motor.
One plate number earns bench time. Expected tachometer voltage equals the constant times speed divided by 1000, so a correct tachometer reads 9.5 V at 1000 RPM and 38 V at the plate's maximum speed, measured with the tachometer wired and loaded as the machine intends. That is a calculated expectation for this example plate, and it confirms the speed loop's separate feedback independently of the encoder. No plate value sets the speed for the optical checks; the example speed used in the scope section is that kind of choice, picked to give clean edges at a steady rate.
Can this encoder be aligned without the factory documentation? #
Yes, if you hold the encoder's own acceptance numbers; without them, no. A clean-looking trace is not a pass: the documented bench procedure, the specified amplitudes and the phase tolerance under the specified load decide, and a qualified encoder shop carries the fixtures for the rest.
| Repair path | What it needs | What it resolves | Choose it when |
|---|---|---|---|
| Documented bench alignment | The exact variant's service procedure: pinout, supply, output specification, adjustment sequence | Lamp, aperture and detector realigned against stated amplitudes and phase tolerance | The documentation and a two-channel scope are in hand |
| Qualified encoder repair | Encoder identification and a description of what was disturbed | Realignment plus electrical acceptance testing against the maker's limits | Adjustment limits, fixtures or the output specification are unavailable |
| Compatible replacement | Mechanical fit, coupling, electrical interface, resolution and reference behavior verified against the control | The disturbed encoder leaves the machine | The optics cannot be restored, or cannot be restored reliably |
If the replacement path wins, the electrical interface decides, not the housing: signal format and supply, counts per revolution, differential versus single-ended outputs, index behavior against the homing sequence, then mount and coupling. Commissioning the new unit with the drive's motor identification, as the guide on commissioning a replacement servo encoder with motor ID data walks through, is what turns a mechanical fit into a working axis. And a sibling variant's procedure, even one sharing the lamp, is not this encoder's procedure.
What passes the repair before the machine runs again? #
The axis passes when both channels hold their specified amplitude at the specified load, the B offset stays at one quarter period at several shaft positions in both directions, the readings survive warm-up unchanged, and a full reference move runs clean.
Each line is checked into the load the signals must drive, not into a bare probe:
- Both channels sit inside their specified amplitude window, and A matches B within the interface's stated balance, at the receiver.
- The rising-edge offset from A to B measures one quarter of the period at the chosen steady speed, at several shaft positions, in both rotation directions.
- Repeating the amplitude and offset readings after ten minutes of warm-up gives the same values with the supply steady.
- Amplitude stays flat through a full hand revolution, with no once-per-revolution dip.
- Where the machine uses one, the index or reference pulse is present in the expected relationship to the A and B channels.
- The machine's homing or reference sequence completes and repeats identically, and the first powered move runs supervised with the drive's position error display open.
If any line fails, go back to the ordered checks above rather than compensating with drive tuning; if the optics cannot hold these results after realignment, the compatible-replacement path is the decision.
Questions asked
Does the replacement lamp have to be an exact match?
Yes, match the lamp type the encoder was built with, or a documented equivalent from the encoder maker. Filament position, light output and beam distribution set how much light reaches the detectors through the aperture, so a lamp that lights but sits differently shifts amplitude and phase. Expect amplitude to drift during the first minutes of warm-up even with a correct lamp.
Can the servo drive's tuning hide an encoder alignment error?
No. Loop tuning shapes how the drive responds to feedback; it cannot repair a feedback waveform with weak amplitude or a phase offset that is not one quarter of the signal period. Misaligned optics produce lost or doubled counts that appear as following error and position drift, so restore the signals first and only then touch the tuning.
Can a replacement encoder with a different line count be used?
Only with the control's scaling recomputed, because every stored parameter that converts counts into distance, speed and homing positions is tied to the old count. Matching the original counts per revolution keeps the existing parameters valid, which matters on a machine whose records are thin, so treat a different count as a deliberate recalibration project, not a drop-in.
Does the axis need re-referencing after encoder work?
Yes. An incremental encoder holds no position through power-off, and opening the encoder adds mechanical change on top, so run the machine's homing or reference sequence before any cutting or automatic motion. If the drive performs its own startup calibration, let it complete; a completed reference move that repeats identically twice is the practical confirmation.


