AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

How-to

Switching a CNC Axis From Linear Scale to Motor Encoder

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

Short answer

Yes — a CNC axis with a broken linear scale can run on the servo motor encoder as the active position feedback. It is a configuration change, not a repair: confirm the scale is truly dead, switch the axis to the motor measurement system, re-home against a real home switch, and give the axis hardware overtravel switches because the motor encoder cannot see a drivetrain failure.

On this page
  1. Can I run my CNC axis on the motor encoder when the linear scale breaks?
  2. How do I know the linear scale is really broken?
  3. How much accuracy do I lose without the linear scale?
  4. How do I switch the active feedback to the motor encoder?
  5. Does the axis still need a home switch after the conversion?
  6. Do I need to add overtravel switches after removing the scale?
  7. How do I verify the axis before cutting a part?
  8. Questions asked

Yes, and it has been done: a machining-centre Y axis with a broken linear glass scale was converted to run on its servo motor encoder as the active position feedback, with the control manufacturer's support line walking the change. The conversion is a control-configuration change, not a wiring hack, but it moves the feedback device from the table to the motor, so you give up direct knowledge of everything in between: ballscrew error, backlash and thermal growth. That loss, and the protection you must add because of it, sets the order of work below.

Can I run my CNC axis on the motor encoder when the linear scale breaks? #

Yes — on a modern CNC this is a supported configuration, not a hack: the control makes the motor encoder the axis's active measurement system, and the axis then has to be re-referenced before it will run again.

Every servo axis on a full-closed-loop machine already carries two candidate feedback devices: the motor encoder, which the drive has always used for velocity, and the linear scale, which the CNC used for position. Converting means telling the control to close position on the first device instead of the second. The servo drive and its wiring normally stay exactly as they are; what changes is one axis setting plus the reference.

Treat the conversion as the plan B it is. On the machine in question the axis ran again on the motor encoder with a realigned home switch, at the cost of the accuracy and protection arithmetic in the sections below.

How do I know the linear scale is really broken? #

Check the readhead, cable and connector before condemning the glass: a physically cracked scale is obvious once the cover is off, while contamination and a damaged cable raise the same alarm with the scale still serviceable.

Work cheapest first: note the exact alarm and whether it names the scale, the cable or the reference mark; check the readhead's status indication if it has one; inspect the cable and connector along the run, especially any flexing section; then, with the axis powered down, pull the scale cover and look at the glass. Scale manufacturers and their dealers test and repair scales, and a scale that faulted after a crash may only need realignment.

Decision: an electrical fault or contamination gets fixed and the machine configuration stays untouched. Convert when the glass is physically broken and a replacement scale is uneconomic or unavailable, knowing that on a machine built without separate limit hardware you are also signing up for the switch work two sections down.

How much accuracy do I lose without the linear scale? #

On a one-metre ballscrew warmed 3 °C above ambient, the table ends up about 35 µm from where the motor encoder says it is: the screw grows, the encoder sits on the motor, and the control never sees the difference.

Calculated example for those inputs: screw length 1.00 m, coefficient of linear expansion of steel 11.7×10⁻⁶ per °C, warmup 3 °C.

ΔL = 1.00 m × 11.7×10⁻⁶ /°C × 3 °C = 0.035 mm = 35 µm.

That is a calculated example, not a measured result, and it scales linearly with screw length and temperature. Also gone from the loop are measured ballscrew pitch error and backlash, which the control used to compensate against the scale; whatever the compensation table does not cover now lands on the part. Resolution is not the problem: on a 10 mm-per-revolution screw with an 8,192-count-per-revolution encoder, one count is 10 mm ÷ 8,192 = 1.2 µm, using illustrative inputs. Owners who made this change report a small temperature-driven drift, which matches the arithmetic.

Decision: for ±0.05 mm work, run the motor encoder with a warmup cycle and re-mastered offsets; for ±0.005 mm work, repair the scale. The same rule, that feedback on the motor is only as good as the drivetrain between motor and load, is why mounting a motor encoder behind a belt reduction is chosen only when that drivetrain error is measured and accepted.

How do I switch the active feedback to the motor encoder? #

Set the axis's measurement-system selection so the motor encoder becomes the active feedback, then re-reference the axis; on Siemens 828D controls that selection is axis machine data 34210, indexed [0] or [1] for the two measurement systems.

  1. Back up the machine first: the active measurement-system setting for the axis, pitch-error and backlash compensation tables, soft-limit positions, home offset, and the drive's parameter set if the drive keeps its own copy.
  2. Confirm the motor encoder is alive: the drive's status should show motor speed or position following a jog, with no encoder alarm. If the motor encoder is also suspect, stop here.
  3. Move the axis to a known, re-findable position such as mid-stroke before touching any setting.
  4. Change the measurement-system selection. On Siemens 828D controls it is axis machine data 34210, where the [0] or [1] index picks which of the axis's two measurement systems is active; the documented sequence is to move the axis to the target position, set the data, then switch to homing mode and execute the zero-point approach. On another control family the documented switch is parameter 1815, bit 4 (SCALE): 0 runs the axis on the motor encoder, 1 expects the separate scale. If your control documents no such switch, make this change with the control manufacturer's support, as the machine here did.
  5. Re-home the axis against its reference, then trim the home offset until machine coordinates land where they did before.
  6. Rebuild compensation: measure pitch error and backlash against a laser or a fixed reference and load fresh tables for the motor-feedback configuration.
  7. Leave the scale disconnected but labelled; it is your revert path.

Does the axis still need a home switch after the conversion? #

Yes — the motor encoder reports counts per revolution, not absolute machine position, so the axis still needs a physical reference; the machine converted here had a home switch, and realigning it was the entire homing task after the change.

Home is not stored in the motor encoder: an incremental encoder gives counts per revolution only, and even an absolute one knows motor angle, not machine position. Machines built with linear scales often take their reference from a mark on the scale glass, and some were built with no separate home switch at all — an owner of a similar machine reported exactly that, while the converted machine did have one. Inspect yours rather than assuming either way.

To align it: jog to the old zero, set the switch so its trip point sits near the middle of the dog's travel, tighten, then trim the control's home offset until machine zero coincides with the old work reference. Verify with five re-home cycles against a dial indicator on a fixed point and accept a total spread of half your tightest tolerance — 0.025 mm on a ±0.05 mm job, for example. If the machine has no home switch and one cannot be added quickly, some controls can reference to a hard stop under a torque limit instead, covered in homing a servo axis to a hard stop with torque limit.

Do I need to add overtravel switches after removing the scale? #

Yes, if the scale was the overtravel device: plan on hardware limit switches at both ends of travel, because the motor encoder cannot detect a stripped coupling or failed ballscrew that lets the table keep moving while the control reads perfect position.

Separate the three protections. Soft limits survive the conversion untouched — the control still counts axis position, so its software limits stop the axis exactly as before. What does not survive is detection of mechanical decoupling: strip the coupling or break the screw, and the motor encoder reports a stationary, perfectly positioned axis while the table travels until something structural stops it. Only a hardware limit switch closes that hole; the machine in question could source switches from a parts machine, and so can most used-machine owners.

Overtravel switches are a safety function: under ISO 13849-1 they are rated parts of the machine's safety-related control system, and whether your machine needs them, and to what performance level, comes out of its risk assessment under ISO 12100. This page is not that assessment.

Decision: if the axis has working hard limit switches today, verify both ends stop the axis at low feed and release the machine to production. If it has none, add them at both ends of travel before the first part.

How do I verify the axis before cutting a part? #

Run seven checks in this order — feedback direction, homing repeatability, full travel, soft limits, hard-limit stop response, compensation, one test cut — and stop at the first one that fails.

  1. Feedback direction: jog +0.100 mm and confirm the table moves the way the position display counts. If it moves the other way, stop; feedback polarity or axis configuration is wrong.
  2. Homing repeatability: five re-home cycles against a dial indicator, with the spread inside the acceptance number set in the homing section.
  3. Full travel: jog the complete stroke in both directions and listen for binding or cover noise that was not there before.
  4. Soft limits: confirm both set points sit inside the mechanical stroke and that each one trips.
  5. Hard-limit stop response: approach each hardware limit at low feed; the axis must decelerate, stop and alarm, then reset cleanly.
  6. Compensation: indicate a known length or machine and measure a test bar, and compare the error against your tolerance.
  7. First part: cut one, measure every dimension this axis controls, adjust work offsets, then release the machine.

In the weeks after, watch finished dimensions: day-to-day wander points at drivetrain error rather than the conversion itself, and diagnosing servo axis position drift in the drivetrain walks that fault tree in order of cost.

Questions asked

Can I switch back to the linear scale later?

Yes, if the scale wiring stays in place and you recorded the original settings. Flip the measurement-system selection back, re-reference against the scale's reference mark, and re-apply the compensation tables you saved. A repaired scale then goes back in as though nothing had changed; the conversion is reversible by design.

Will the servo drive need changes too?

Usually not. The drive has been closing its velocity and current loops on the motor encoder all along; the conversion changes which device the CNC closes position on. If your machine routes the scale signal into the drive rather than the control, that path needs reconfiguration as part of the documented procedure.

What faults will the motor encoder hide that the scale would have caught?

Anything between the motor and the table: a stripped coupling, a sheared key, excess backlash and ballscrew windup. The linear scale sees the resulting following error and alarms; the motor encoder reports a perfectly positioned axis while the table sits still or drifts. That blind spot is the real argument for hardware overtravel switches and a periodic backlash check.

How do I stop thermal drift from eating my tolerance on motor feedback?

Run a warmup program that exercises the axis over its full stroke before tight work. Steel grows about 12 µm per metre per degree Celsius, so a one-metre screw running 3 °C hot is 0.035 mm longer than its compensation table believes. Re-master offsets after warmup; for tolerances near ±0.005 mm, repair the scale instead.

Keep reading

  • Selection guide

    Where to Mount a Proximity Switch for Induction Motor Speed Feedback

    Mount the inductive proximity switch on the motor's own shaft, rear stub if there is one, otherwise the drive-end stretch, sensing a single metal flag whenever the number you need is motor RPM. One flag keeps the pulse rate near 29 Hz at 1750 RPM, far inside a 200 Hz sensor. Use the VFD's estimate when the drive already runs the motor and an estimate suffices; use an encoder when speed is critical to control.

    Sensors, encoders and machine vision on the machine

  • Explainer

    Are Servo Motor Absolute Encoders Really Battery-Backed

    Most servo motors sold as absolute use incremental feedback whose multi-turn count lives in battery-backed memory. The battery feeds a microamp retention circuit, not the operating draw, which is why the hold runs about two years powered down. Change the battery with the control powered so the count survives.

    Sensors, encoders and machine vision on the machine

  • How-to

    How to Identify Geared Resolver and Encoder Feedback on Old Servos

    Treat the resolver plus its geared 1:4 and 1:80 channels as one integrated coarse-and-fine, multi-turn position package: the resolver reads absolute angle within one shaft revolution, and the geared channels count revolutions above it. Identify each channel by resistance checks, ratio counting and waveform capture before choosing a replacement drive, because the resolver model number alone establishes neither commutation nor multi-turn position recovery.

    Sensors, encoders and machine vision on the machine