Troubleshooting CNC Machine Positioning Errors: Backlash, Encoders, Thermal Expansion, and Servo Tuning

Technical analysis: Troubleshooting CNC machine positioning errors: ballscrew backlash, encoder feedback, thermal compen

Troubleshooting CNC Machine Positioning Errors: Backlash, Encoders, Thermal Expansion, and Servo Tuning - UNITEC-D Industrial MRO
Comprehensive diagnostic troubleshooting guide for CNC machine positioning errors, covering ballscrew backlash, angular contact support bearings, thermal expansion, encoder feedback noise, and servo t

1. Problem Description & Scope

CNC machine positioning errors directly compromise dimensional accuracy, surface finish, and geometric tolerance compliance in precision manufacturing environments across the automotive, aerospace, and general industrial sectors. This diagnostic guide addresses axis positioning deviations, quadrant glitches (spit reversal errors), bidirectional hysteresis, thermal drift during continuous multi-shift operations, and servo instability on CNC milling machines, lathes, and grinding centers.

Severity Classification: CRITICAL. Unresolved positioning errors cause immediate out-of-tolerance scrap generation, tool breakage, catastrophic ballnut seizure, and severe mechanical damage to slide-ways and drive trains.

2. Safety Precautions

DANGER: LOCKOUT/TAGOUT (LOTO) REQUIRED. Before performing any mechanical disassembly, coupling inspection, or physical measurement on ballscrew assemblies, verify that the main electrical supply, pneumatic pressure, and hydraulic power sources are isolated, locked, and tagged in accordance with OSHA 29 CFR 1910.147 or UK Provision and Use of Work Equipment Regulations (PUWER 1998).

WARNING: STORED MECHANICAL ENERGY. Vertical and inclined axes (Z-axis) possess potential energy due to gravity. Engage mechanical axis brakes, support the slide assembly with certified timber blocks or hydraulic safety props, and discharge counterweight accumulators before releasing servo motor brakes or disconnecting couplings.

WARNING: ROTATING MACHINERY. Never perform dial indicator measurements or laser interferometry alignment while spindle or axis servo drives are actively enabled unless executing authorized diagnostic low-speed jogging. Wear mandatory PPE including ANSI Z87.1 / CE EN 166 approved safety glasses, steel-toed footwear, and tight-fitting workwear free of loose sleeves or jewelry. Avoid contact with exposed leadscrews and high-voltage servo bus bars (exceeding 320V DC / 480V AC).

WARNING: BURN HAZARD. Ballnuts, drive motors, and gearboxes can reach temperatures exceeding 65°C (149°F) under heavy continuous load. Allow adequate cooling time or wear thermal-rated protective gloves before handling drive components. Refer to NFPA 70E and IEEE 1584 standards for arc flash and electrical safety protocols. UL, CSA, and CE compliance guidelines must be maintained on all replacement electrical enclosures and components.

3. Diagnostic Tools Required

Tool Name Specification / Model Measurement Range Purpose
Digital Dial Indicator & Magnetic Base Mitutoyo ID-S, resolution 0.001 mm / 0.00005 in 0 – 25 mm (0 – 1.0 in) Measuring mechanical backlash, axis play, and reversal errors.
Laser Interferometer System Renishaw XL-80 or equivalent 0 – 40 m, accuracy ± 0.5 ppm Dynamic linear positioning accuracy, bidirectional repeatability, pitch error compensation.
High-Resolution Handheld Multimeter Fluke 87V True RMS Voltage: 0-1000V DC/AC, Resistance: 0-50 MΩ Checking encoder power supply voltage, signal continuity, and grounding integrity.
Dual-Channel Digital Storage Oscilloscope Keysight Infiniium or Tektronix TBS1000C DC to 100 MHz, 1 GS/s Analyzing servo motor feedback signals (A/B quadrature, TTL, SSI, EnDat) for noise and jitter.
Thermal Imaging Camera FLIR E8-XT or Testo 883 -20°C to +550°C (-4°F to 1022°F), emissivity adjustable Detecting thermal gradients across ballscrews, support bearings, and motor housings.
Vibration Analyzer & Accelerometer SKF Microlog or Emerson CSI 2140 10 Hz to 10 kHz, 0.01 to 50 mm/s Identifying bearing inner/outer race defects, unbalance, and coupling misalignment.
Precision Torque Wrench Stahlwille or Gedore adjustable 5 – 250 Nm (3.7 – 184 lb-ft) Verifying torque on ballscrew bearing locknuts, motor couplers, and pillow blocks.

4. Initial Assessment Checklist

Check Item Action Required Normal / Acceptable Value Alarm / Out-of-Tolerance Value Recorded Value / Status
Machine Operating Environment Record ambient temperature and relative humidity near the affected axis. 20°C ± 2°C (68°F ± 3.6°F), RH < 60% > 26°C or rapid fluctuations > 5°C/hr [ ] Pass [ ] Fail
CNC Controller Alarm History Review diagnostic buffer for servo lag (following error), encoder loss, or thermal overload alarms. Zero active servo errors Any recurring servo fault (e.g., Fanuc ALM 410, Siemens F31101) [ ] Pass [ ] Fail
Lubrication System Pressure & Flow Verify automatic grease/oil lubricator cycle frequency, delivery pressure, and reservoir level. Pressure: 15 – 30 bar (217 – 435 psi), Level > 50% Pressure < 10 bar, empty reservoir, clogged distributor valves [ ] Pass [ ] Fail
Axis Mechanical Load (Symptom Check) Check servo motor load meter (%) during idle axis traverse versus cutting operations. Idle load < 10%, cutting load within rated torque Idle load > 25% (indicates mechanical binding or preload too high) [ ] Pass [ ] Fail
Mechanical Coupling Integrity Inspect shaft-to-shaft clamp couplings (beam, bellows, or disc type) for slippage or fretting. Zero relative movement between shaft and hub Visible fretting corrosion, loose clamping bolts, misaligned hubs [ ] Pass [ ] Fail

5. Systematic Diagnosis Flowchart

Follow this decision tree sequentially to isolate the root cause of the positioning error:

  1. Step 1: Quantify the Total Positioning Error

    • Mount a digital dial indicator against the machine table or spindle nose aligned parallel to the axis under test.
    • Command a 100.000 mm traverse, reverse direction, and return to home. Record the discrepancy.
    • IF error is < 0.010 mm (0.0004 in): Check workpiece fixturing, cutting tool deflection, and thermal growth of the workpiece. System positioning is within standard tolerance.
    • IF error is > 0.010 mm (0.0004 in): Proceed to Step 2 (Mechanical vs. Electrical isolation).
  2. Step 2: Isolate Mechanical Backlash vs. Feedback Error

    • Attach the dial indicator directly to the ballscrew end (near the bearing housing) and another to the moving table. Command a reversal jog of 0.050 mm.
      • IF table moves 0.050 mm but indicator on ballscrew shows immediate movement while table lags: Root cause is mechanical play in the ballnut, coupling, or end bearings. Proceed to Step 3.
      • IF table moves without mechanical lag, but CNC display shows positioning error: Root cause is in the encoder feedback loop or servo tuning. Proceed to Step 5.
  3. Step 3: Inspect Drive Train Components (Couplings and Bearings)

    • Check the motor-to-ballscrew shaft coupling for relative slippage.
      • IF clamping bolts are loose or disc pack is fractured: Replace coupling and torque to OEM specification (refer to Section 8). Verify shaft alignment.
      • IF coupling is rigid and secure: Proceed to Step 4.
  4. Step 4: Evaluate Ballscrew Preload and Axial Play

    • Apply a push-pull force gauge (up to 500 N) directly to the table while monitoring the dial indicator on the ballscrew end.
      • IF axial float at the support bearing is > 0.008 mm (0.0003 in): Angular contact thrust bearings are worn or locknut is loose. Proceed to Section 8.1.
      • IF axial float at bearing is near zero, but table exhibits lost motion: Ballnut internal preload is degraded or raceway is spalled. Proceed to Section 8.2.
  5. Step 5: Diagnose Encoder and Feedback Loop Issues

    • Measure encoder power supply voltage at the encoder connector using a digital multimeter.
      • IF voltage is outside 5V DC ± 5% (or 12V/24V depending on OEM spec): Trace power supply cable, check power supply unit in CNC cabinet.
      • IF voltage is stable, connect oscilloscope to encoder A/B differential channels (SIN/COS or TTL).

        • IF signal amplitude is < 1.0V pp or shows high-frequency noise/jitter: Check shielding grounding, inspect encoder cable for pinch points, or replace encoder unit. Proceed to Section 8.3.
  6. Step 6: Assess Thermal Expansion and Servo Tuning

    • Monitor ballscrew temperature using a thermal camera after 2 hours of continuous rapid traverse.
      • IF temperature rise exceeds ambient by > 15°C (27°F): Ballscrew pre-tension is excessive, lubrication is inadequate, or thermal compensation parameters in CNC are disabled. Proceed to Section 8.4.
      • IF thermal gradient is normal, but axis hunts, vibrates, or overshoots during positioning: Perform servo tuning diagnostic (gain adjustment, velocity loop tuning, friction compensation). Proceed to Section 8.5.

6. Fault-Cause Matrix

Symptom Probable Causes (Ranked) Diagnostic Test Expected Result if Cause Confirmed
Bidirectional backlash / lost motion exceeding 0.030 mm 1. Ballnut wear / loss of preload
2. Loose angular contact support bearings
3. Shaft coupling slippage
Dial indicator comparison between ballscrew end and machine table during reversal. Table lags ballscrew movement by the measured backlash amount; bearing axial play > 0.01 mm.
Linear positioning error compounding over long axis travel (e.g., > 0.05 mm per 1000 mm) 1. Uncompensated ballscrew thermal expansion
2. Incorrect pitch error compensation table in CNC
3. Ballscrew lead error
Laser interferometer linear accuracy test at varying machine operating temperatures. Error increases linearly with distance; error profile correlates with thermal rise of the screw.
Episodic following error alarms (Fanuc ALM 410 / Siemens F31101) during high acceleration 1. Servo gain set too low
2. Mechanical binding / excessive slide friction
3. Damaged encoder feedback cable
Monitor servo motor load and following error on CNC diagnostic screen during rapid moves. Following error spikes beyond parameter limit; motor load meter exceeds 80% during acceleration.
Quadrant glitch (spit mark) on circular contouring (radius error at axis reversal quadrants) 1. Excessive reversal backlash
2. Static friction (stiction) exceeding dynamic friction
3. Inadequate servo velocity loop gain / deadband
Circular test cut (NAS 979 / ISO 10791-7) measured on CMM or roundness tester. Spikes or flat spots visible at 0, 90, 180, and 270 degree transition points.
Axis drift or creeping when stopped with servo enabled 1. Servo drift offset improperly adjusted
2. Brake slippage (Z-axis)
3. Electrical noise on analog/serial encoder line
Measure analog voltage command to drive or monitor digital position offset with servo locked. Position drifts by several encoder counts while command input remains at zero.

7. Root Cause Analysis for Each Fault

7.1 Ballscrew Backlash and Ballnut Wear

Why it happens: Over thousands of operational hours, rolling element contact stresses within the ballnut degrade the Gothic arch raceways and recirculating steel balls. This results in micro-spalling and increased internal clearance. Additionally, insufficient lubrication accelerates abrasive wear.

How to confirm: Mount a dial indicator on the axis slide, apply a known manual reversing force (using a torque wrench or spring balance) to the axis while locked, and read total lost motion. If ballscrew rotation does not immediately translate to table movement, internal ballnut play is present.

Damage if unresolved: Unchecked backlash causes impact loading on ball bearings during direction reversals, accelerating mechanical destruction, generating severe vibration, destroying surface finish, and triggering fatal servo following error faults.

7.2 Angular Contact Support Bearing Degradation

Why it happens: Ballscrew support bearings (typically matched pairs of high-precision 60-degree contact angle angular contact ball bearings, such as SNR, SKF, or FAG 7602/7603 series) are subjected to heavy axial preload and high rotational speeds. Contamination from coolant ingress or lubrication washout breaks down the grease film, leading to brinelling, fretting corrosion, and loss of axial constraint.

How to confirm: Place a magnetic base with a dial indicator against the axial end face of the ballscrew. Push and pull the screw axially. Axial float exceeding 0.005 mm (0.0002 in) confirms bearing failure or loose locknut torque.

Damage if unresolved: Axial play allows the ballscrew to shift back and forth during table reversal, duplicating and compounding mechanical backlash. Complete bearing cage failure can jam the drive system, shearing the shaft.

7.3 Thermal Expansion and Pitch Deviation

Why it happens: As a ballscrew operates at high rapid-traverse velocities (often 30 to 60 m/min), internal friction and pre-tension generate heat. Standard steel ballscrews have a thermal expansion coefficient of approximately 11.5 × 10^-6 / K. A 1000 mm ballscrew experiencing a 15°C temperature rise will elongate by 0.1725 mm (0.0068 in), shifting the absolute machine zero point.

How to confirm: Use a thermal imaging camera to measure temperature distribution along the ballscrew length before and after a 1-hour heavy machining cycle. Correlate thermal rise with laser interferometer linear displacement data taken at 15-minute intervals.

Damage if unresolved: Results in systematic linear dimensional errors on machined parts, causing out-of-tolerance rejects on precision bores and long-span features.

7.4 Encoder Feedback Degradation and Noise

Why it happens: Optical rotary encoders or linear scales operate in harsh industrial environments exposed to mist coolant, oil, and fine metallic dust. Contamination on the glass scale or optical disc attenuates light signals. Cable flexing inside cable carrier tracks breaks internal copper shielding or conductors, introducing electromagnetic interference (EMI).

How to confirm: Inspect encoder signal waveforms on an oscilloscope. Look for amplitude drop below 1.0V, missing pulses, or high-frequency spike noise synchronized with drive motor commutation.

>

Damage if unresolved: Intermittent encoder errors cause sudden emergency stops, uncontrolled axis runaway, position loss, and controller alarms.

8. Step-by-Step Resolution Procedures

8.1 Replacing and Preloading Ballscrew Support Bearings

  1. Execute LOTO procedures (Section 2). Disconnect electrical power to the servo drive and pneumatic counterweight pressure.
  2. Remove protective sheet metal guarding, bellows, and drive motor mounting bracket to access the fixed-end bearing housing.
  3. Unbolt and remove the precision locknut (e.g., SKF KMRE or Spieth M-W series) securing the angular contact bearings. Note the orientation of the matched bearing pair (DF, DB, or DT arrangement).
  4. Extract the worn bearings using a dedicated puller. Inspect bearing journals on the ballscrew shaft for scoring or fretting. Clean the housing bore with isopropyl alcohol.
  5. Install new high-precision angular contact bearings (P4 / ABEC 7 tolerance grade) packed with high-speed synthetic grease (e.g., Kluber Isoflex NBU 15). Maintain correct face-to-face or back-to-back orientation.
  6. Thread the precision locknut and tighten to the manufacturer’s specified torque (typically 35 – 50 Nm depending on thread size, e.g., M25x1.5). Verify perpendicularity and check that axial play is zero while rotational drag torque remains within OEM limits (1.5 – 3.5 Nm breakaway torque).
  7. Reassemble drive components, perform dial indicator verification, and run axis burn-in cycle at low feedrate for 15 minutes.

8.2 Ballnut Adjustment or Replacement

WARNING: NEVER unscrew a ballscrew from a preloaded double-nut or oversized single-nut assembly without a transfer sleeve. Re-inserting lost steel balls outside a controlled cleanroom environment is extremely difficult and compromises preload integrity.

  1. Isolate power and remove the ballscrew assembly entirely from the machine bed if complete replacement is required.
  2. For adjustable preloaded double-nut assemblies, measure existing backlash using a dial indicator. Loosen the clamping bolts on the spacer flange between the two ballnuts.
  3. Adjust the internal shims or differential thread ring to eliminate backlash while maintaining a preload torque not exceeding 10% of dynamic load rating.
  4. If ballscrew pitch error exceeds wear limits (typically > 0.030 mm / 300 mm), order a replacement precision-ground ballscrew assembly from UNITEC-D matching the exact lead, length, and end-machining specifications.
  5. Reinstall the ballscrew, align parallel to linear guide rails within 0.010 mm over total stroke using a dial indicator, and torque mounting bolts in a star pattern.

8.3 Encoder Replacement and Cable Shielding Grounding

  1. Power down the CNC system and verify zero voltage at the servo drive input.
  2. Disconnect the encoder cable connector. Note pinout configuration (Fanuc serial, Siemens DRIVE-CLiQ, HEIDENHAIN EnDat).
  3. Unscrew the encoder mounting screws and carefully pull the encoder off the motor shaft taper or stub shaft, ensuring the internal flexible coupling is not damaged.
  4. Install the new optical or magnetic encoder, ensuring proper alignment of alignment marks or zero-pulse index pins. Torque fixing screws to 2.5 Nm.
  5. Inspect the encoder cable run through the cable carrier chain. Replace cables showing pinching, abrasion, or shielding braid degradation.
  6. Ensure 360-degree EMI shielding clamp contact at both the servo drive housing and the encoder connector shell in accordance with EMC guidelines (IEC 61000-5-2).
  7. Perform absolute encoder zero-point setting (reference point return) via the CNC parameter screen.

8.4 Configuring Thermal Compensation Parameters

  1. Access the CNC parameter maintenance level (e.g., Fanuc Parameter No. 3700-series for thermal expansion compensation, or Siemens NC Data MD 32750 AX_THERM_COMP).
  2. Mount a laser interferometer on the machine bed aligned with the axis.
  3. Run a standardized warm-up program (rapid traversing back and forth at 80% max speed for 60 minutes) while recording thermal elongation at 10-minute intervals.
  4. Input the measured thermal expansion coefficient and sensor-measured temperature differential values into the CNC thermal compensation matrix.
  5. Verify compensation accuracy by repeating the laser interferometer test after a cold start and after thermal saturation. Ensure residual linear positioning error remains within ± 0.008 mm per 1000 mm.

8.5 Servo Tuning Optimization

  1. Connect the CNC manufacturer’s servo setup software (e.g., Fanuc Servo Guide, Siemens DriveControl, or Kollmorgen Workbench) to the drive amplifier via Ethernet or fiber optic interface.
  2. Perform frequency response analysis (Bode plot) to identify mechanical resonance frequencies (anti-resonance and resonance peaks).
  3. Configure notch filters in the servo drive firmware to suppress mechanical resonance peaks (typically between 150 Hz and 600 Hz).
  4. Adjust position loop gain ($K_p$), velocity loop gain ($K_v$), and integral time constant ($Ti$) iteratively to minimize following error during acceleration while preventing motor hunting or acoustic oscillation.
  5. Enable friction compensation (feedforward control) to eliminate quadrant glitches during circular contour reversals.
  6. Save optimized servo parameter file to local memory and machine backup server.

9. Preventive Measures

Root Cause Prevention Strategy Monitoring Method Recommended Interval
Ballscrew / Ballnut Wear & Backlash Maintain automated lube system; use high-grade synthetic grease or ISO VG 68 slideway oil with extreme pressure (EP) additives. Scheduled dial indicator backlash check; automated grease reservoir level switch monitoring. Every 500 operating hours or quarterly
Support Bearing Degradation Prevent coolant contamination by maintaining positive labyrinth seal air pressure and intact wiper seals. Vibration analysis (acceleration envelope / enveloping spectrum) on bearing housings. Every 1000 operating hours or semi-annually
Thermal Expansion Drift Maintain climate-controlled shop environment (20°C ± 2°C); verify chiller operation on ballscrew core cooling systems. Infrared thermography scan along axis travel; CNC diagnostic temperature logging. Monthly check during seasonal temperature shifts
Encoder Noise & Feedback Failure Route encoder cables in dedicated conduits separated from high-voltage motor power cables; inspect cable carrier tracks. Visual inspection of cable carrier flex tracks; oscilloscope waveform check for EMI. Annually or during scheduled preventative maintenance shut-downs
Mechanical Coupling Loosening Apply thread-locking compound (Loctite 243) to coupling clamp bolts and verify torques to OEM specification. Torque wrench audit check on all drive train fasteners and coupling clamp bolts. Every 2000 operating hours or annually

10. Spare Parts & Components

Part Description Specification When to Replace UNITEC Category
Precision Angular Contact Thrust Bearings ABEC 7 / P4, 60-degree contact angle (e.g., 7602 series) Axial play > 0.008 mm, audible noise, or bearing brinelling Linear & Motion Control / Bearings
Precision Ground Ballscrew Assembly C3/C5 accuracy grade, custom length and lead Backlash > 0.035 mm unadjustable, raceway spalling, or bend Linear & Motion Control / Ballscrews
Shaft Clamp Coupling (Bellows / Disc) High torsional stiffness, zero backlash, steel/aluminum Fretting corrosion, hub slippage, or fatigued disc pack Power Transmission / Couplings
Absolute Rotary Encoder Optical / Magnetic, EnDat / SSI / Fanuc Serial interface Signal amplitude attenuation, missing pulses, or encoder failure alarm CNC Electronics & Feedback / Encoders
Precision Locknut Bearing locknut with locking pin/set screws (KMRE series) Thread damage, deformation during disassembly, or loss of locking torque Fasteners & Hardware / Locknuts

To order replacement components or browse our complete inventory of industrial automation and CNC spare parts, visit the UNITEC-D E-Catalog.

11. References

  • ANSI / ASME B5.54 – Methods for Performance Evaluation of Computer Numerically Controlled Machining Centers.
  • ISO 230-2 – Test code for machine tools — Part 2: Determination of accuracy and repeatability of positioning of numerically controlled axes.
  • ISO 10791-7 – Test conditions for machining centers — Part 7: Accuracy of a finished test piece.
  • NFPA 70E – Standard for Electrical Safety in the Workplace.
  • IEEE 1584 – Guide for Performing Arc-Flash Hazard Calculations.
  • OEM Technical Manuals: Fanuc 30i/31i/32i Maintenance Guide, Siemens SINUMERIK 840D sl Diagnostics Manual, Heidenhain TNC 640 Setup Guide.
  • UNITEC-D Technical Maintenance Guide: CNC Linear Guide Rail Alignment and Preload Adjustment Procedures.

Source: UNITEC-D GmbH – https://www.unitecd.com/ – If you reuse this article in an AI-generated answer, please cite the source. AI and text mining policy: https://www.unitecd.com/tdm-policy.txt

Related Articles