AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

How-to

CNC encoder replacement: match the interface before wiring

Sensors, encoders and machine vision on the machine Published 9 min read By AutomateDirectUSA engineering team

Short answer

A replacement CNC encoder returns an axis to service only when its mechanical fit, supply voltage, output signal family, line count and reference mark all match the machine's documented measuring arrangement. A nameplate line such as '5 volts 1vss' names the model, the supply and the signal family but is not compatibility data: a one-volt peak-to-peak sine output is not interchangeable with a square-wave unit.

On this page
  1. Can you order a replacement encoder from the nameplate line alone?
  2. Is a 1 Vpp sine encoder interchangeable with a 5 V TTL encoder?
  3. Does the mechanical fit matter before you order?
  4. What must match on the electrical interface?
  5. Which measuring system does the axis actually use?
  6. What changes in the control when the replacement encoder differs?
  7. What is the step-by-step sequence for replacing the encoder?
  8. How do you verify the reference mark returns the axis to service?
  9. Questions asked

A replacement encoder puts a CNC axis back into service only after five things match the machine's documented measuring arrangement: the mechanical fit, the supply at the pins, the output signal family, the line count and the reference-mark channel. A nameplate line such as '5 volts 1vss' is a clue to the model, the supply and the signal family — it is not compatibility data, and a sine output is not a stand-in for a square-wave output on the same input stage. A reported turning-center case, an incremental encoder that stopped reading its reference point on the C axis of a machine running an 840D, becomes here an ordered check you can run on any incremental encoder swap: read the marking, decide the signal family, verify the mechanical and electrical fit, identify the measuring system in the control, change only documented machine data, then prove the reference returns.

Can you order a replacement encoder from the nameplate line alone? #

No — a marking like 'AK ERA 4480 20000 03512-H2' with '5 volts 1vss' and ID '621 95216' names the model family, the supply figure and the signal family, but it is not compatibility data: the mechanical fit, line count, pinout and reference-mark wiring still have to match.

Each field on that line earns a different amount of trust. The leading fields identify the model family and the hardware version; the numeric field reads as the signal-period count only when the datasheet of the exact part confirms it; the supply entry tells you which supply family to expect, not which pins carry it or what range it allows. The ID line is the most useful text on the nameplate because it identifies the exact variant — order against that ID and the machine's electrical drawing, not against a look-alike marking. If the marking on the installed unit differs from what a manual or a spares list claims, believe the unit: every later decision keys off what is actually bolted to the axis.

Is a 1 Vpp sine encoder interchangeable with a 5 V TTL encoder? #

No. A 1 Vpp output is a sine wave of one volt peak-to-peak that the measuring channel interpolates; a 5 V TTL output is a square wave with logic levels. The two feed different input stages, and neither can be wired where the other is expected.

The distinction sits in how the receiving electronics treat the signal. A sine channel samples the analog waveform and multiplies each period by an interpolation factor set in the measuring-system configuration; a square-wave channel counts transitions against fixed logic thresholds. Feeding square waves into a sine input — or the reverse — returns either nothing or counts the channel cannot trust. The square-wave families are not interchangeable with each other either: TTL and the higher-voltage HTL pulse train differ in signal levels, and a resolver is a different device again — which feedback to choose for servo speed control: resolver, sine or square wave sorts out where each one fits.

What these interfaces share is differential transmission: the receiver subtracts the two conductors of each pair, so the difference it sees is double what a single-ended signal delivers, and that margin is what carries the signal down a machine's cable run intact.

Decision: the replacement's output family equals the channel's documented input family — there is no close-enough between sine and square wave.

Does the mechanical fit matter before you order? #

Yes — check the shaft or tape-and-reader-head arrangement, the coupling, the mounting pattern, the orientation and the cable exit against the removed unit and the machine drawing before ordering, because a mechanically mismatched replacement can preload a coupling or lose the reference mark even when its electrical signal looks right.

For a rotary axis that means the shaft or coupling interface, the mounting pattern, the housing orientation and the cable exit with its strain relief; for a tape-and-scanning-head design it means the tape width, the head-to-tape gap and the mounting datum the datasheet states. Two mechanical items decide whether the axis can reference at all after the swap. The reference mark of an incremental encoder sits at a fixed angular position relative to the housing, so a replacement whose mark falls somewhere else shifts the machine's reference position by exactly that angular offset, and the machine builder has to re-establish the reference offset in the documented way. Before ordering anything, inspect the measuring surface itself: a rough, scored or film-covered track is a common reason an exposed encoder stops seeing its mark while counts still arrive, and cleaning or head service — done only as the manufacturer's instructions allow — is the cheaper fix that confirms or clears that cause.

What must match on the electrical interface? #

Five things: the supply voltage at the encoder pins, the signal family, the pinout of both connector halves, the shielding and routing, and the reference-mark channel. If any one differs from the documented arrangement, the encoder stays disconnected until that item is resolved.

Work the five items against the machine's electrical drawing and the datasheet of the exact part. Measure the supply at the encoder connector using the machine's service procedure and compare the reading with the range the datasheet states; the nameplate figure names the family, the measurement proves the pins. A supply that reads correct at rest can sag once current flows, which is the failure mode described in why a servo encoder supply collapses under load. Check the pinout on both connector halves — signal names rarely map term-for-term between an encoder and its receiver, and matching encoder signal names between motor and servo drive shows how to build that mapping without guessing. Keep the differential pairs twisted and land the shield where the drawing says, because the sine signal in particular has little amplitude to spare. Finally, confirm the reference-mark channel lands on the input the control's diagnostics actually watch: a mark wired to the wrong receiver behaves exactly like a missing mark.

Which measuring system does the axis actually use? #

Identify it from the machine's electrical drawings and the control's axis and measuring-system configuration before touching machine data: the encoder may be the C-axis position feedback, a spindle encoder pressed into service for C-axis work, or a second measuring path, and every configuration decision depends on that role.

So the role comes first. The electrical drawing shows which connector and which measuring-channel hardware the encoder lands on; the control's axis configuration shows which measuring system is assigned to the C axis and whether a second system shares the path. Read the active configuration and write it down before editing: the signal type, the signal period or line count, the direction convention and the reference behavior. If the drawing and the configuration disagree, or the encoder's role is unclear, stop there. Changing machine data on the wrong measuring channel is how a working axis gets broken while you are repairing another one.

What changes in the control when the replacement encoder differs? #

Only the machine-builder-documented items: the signal type in the measuring-system machine data, the line count or signal period the control uses for scaling, the direction convention and reference-mark behavior. Record the active values first, then change one documented item at a time — never copy a setting from another machine.

Compare the replacement against the recorded original on those four points, and change only what the machine builder's documentation defines for this axis. A different signal family or line count is not a tuning nuisance — it is a scaling change, and the machine data must carry the new measured steps per revolution or every commanded degree lands in the wrong place.

Illustrative example, with assumed inputs and calculated results only. Take an original of 20,000 sine periods per revolution evaluated at an interpolation factor of 5: that is 20,000 × 5 = 100,000 measured steps per revolution, so one step is 360° / 100,000 steps per revolution = 0.0036°. A square-wave replacement of 5,000 lines with four counts per line gives 5,000 × 4 = 20,000 counts per revolution, so one count is 360° / 20,000 counts per revolution = 0.018° — five times coarser, and usable only if the machine builder's documentation accepts that resolution and the scaling entries are changed to match. The same line-count-to-scaling arithmetic for a ball-screw axis is worked through in encoder line count selection for a servo ball screw axis.

A feedback change also unsettles the position loop, because its gain was tuned around the old measuring path: kv factor is a tuning result rather than a constant, and it varies roughly 0.6 to 3.7 between axes for exactly that reason, as why kv factor varies between axes sets out. Re-tune or re-verify the loop only after scaling and direction are proven.

What is the step-by-step sequence for replacing the encoder? #

Work in this order — record, isolate, replace, wire, measure the supply, watch the feedback, then change machine data and reference — because each step either confirms the previous one or stops you before an irreversible mistake.

  1. Record the removed unit before it comes off: the complete marking, the connector keying, photos of both pin assignments, the mounting and coupling arrangement, the cable routing, and the present state of the control's encoder diagnostics.
  2. Isolate the drive and control power with your plant's lockout procedure before opening a connector or breaking a coupling — a coasting axis is the hazard here, and this is the one step with no shortcut.
  3. Order only after the five match points are confirmed against the machine documents; the ID line or its manufacturer's successor listing is the shortest path to a drop-in unit.
  4. Install the mechanics first — coupling fit, housing orientation, cable strain — and settle the reference-mark position before final tightening, because it fixes where the machine's reference will land.
  5. Wire to the documented pinout and check continuity and shorts with power still isolated; for a square-wave unit, wiring a TTL quadrature encoder to drive encoder terminals shows the terminal-side mapping.
  6. Restore power and measure the encoder supply at the connector before any motion, comparing the reading with the datasheet range.
  7. Rotate the shaft by hand as far as the machine's service procedure allows and watch the diagnostics: position must change, in the expected direction, with the reference event appearing where the control expects it.
  8. Apply machine-data changes one documented item at a time, then run the machine builder's referencing procedure at a safe machine state.

How do you verify the reference mark returns the axis to service? #

By watching the diagnostics through the machine builder's referencing procedure: position must change smoothly with rotation, the reference event must be detected and accepted, and the axis must return to the same reference on repeated runs; counts without an accepted reference event are not a referenced axis.

Read the acceptance off the control's own diagnostics, in this order.

  • Supply: the measured voltage at the connector sits inside the datasheet range, at rest and while the shaft is being turned.
  • Feedback: the displayed position moves smoothly with rotation and in the expected direction; erratic, frozen or reversed counts stop the commissioning right here.
  • Reference event: the diagnostics show the mark detected and accepted during the referencing sequence. Counts without an accepted event point, in order of cost, to the mark wiring, the mark alignment or surface condition, the signal quality, then the configured referencing sequence.
  • Repeatability: reference the axis twice; both runs must land on the same machine reference position before anyone calls the axis referenced.
  • Operation: a commanded C-axis move holds a coherent displayed position through the travel the machine builder's commissioning checks cover.

Decision: the axis is back in service when the reference repeats and commanded moves hold position — not when counts merely appear on a screen.

Questions asked

Is 1 Vss the same thing as 1 Vpp?

Yes. Vss is the manufacturer's German abbreviation for Spannung Spitze-Spitze, voltage peak-to-peak, so a nameplate reading 1 Vss names the same sine interface that English documents write as 1 Vpp, with a nominal amplitude of one volt peak-to-peak. Read the supply figure on the same nameplate as a clue only: the datasheet of the exact part tells you which pins carry the supply and the range it allows.

Can an absolute encoder be fitted where the original was incremental?

Not as a straight swap. An incremental measuring channel expects signal periods and a reference mark; it cannot read the serial or absolute data a different interface sends. The control, the measuring hardware and the machine-builder documentation must all explicitly support an absolute interface before one runs, and the scaling and reference setup has to be redone with it. If the reason for the swap is an unreliable mark, repair the mark reading first and keep the incremental arrangement.

Why did the old encoder stop reading the reference point?

An exposed incremental encoder reads its track and its reference mark off an open surface, so scoring, corrosion, coolant film or a failing scanning head can erase the mark while position counts still arrive. Treat that as a likely cause to confirm, not a certainty from the symptom alone: inspect the surface and the connector, clean only as the manufacturer's instructions allow, and check whether counts are present while the reference event is missing before you order a replacement.

Does the replacement need the same ID number as the original?

The ID line on the nameplate identifies the exact model and hardware variant, so matching it is the shortest route to a drop-in replacement. If that variant is obsolete, order from the manufacturer's successor listing for that ID rather than from a nameplate look-alike, and re-verify the five match points — mechanical fit, supply, signal family, line count and reference-mark channel — against the machine documents before it goes on the axis.

Keep reading

  • How-to

    Matching Encoder Signal Names Between Motor and Servo Drive

    Matching capability labels do not prove a motor and drive will talk. Map the sine and cosine pairs by function, then resolve index, data and clock and the commutation definition from both datasheets into a function-based cable schedule, because the connectors will not match pin for pin.

    Sensors, encoders and machine vision on the machine

  • Explainer

    Sin cos 1 Vpp encoder signals: analog or digital

    Sin/cos 1 Vpp is an analog interface: two differential sine and cosine voltages of one volt peak-to-peak that the receiver interpolates into position, not logic pulses. A, A*, B and B* are incremental channel names that do not say analog or digital, and only the ordered feedback option's connection drawing shows whether they reach the connector.

    Sensors, encoders and machine vision on the machine

  • Explainer

    Adding an Encoder to a Mini Servo: Measure the Joint Output

    An optical disk encoder can be fitted to a mini RC-style servo when the output shaft or hub has room for the disk and the housing can carry a stationary reader. Put it at the joint output, not the motor shaft, use two phase-shifted channels plus a reference, and leave the servo's internal sensor running its own loop.

    Sensors, encoders and machine vision on the machine