Skip to content
Tech Interview Prep

Real Interview Questions for the Mechatronics Engineer at ASML

New

Interview Q&A

7 questions · Flow follows Relevance until this set has a learning order.

Q&A-1How was your experience working as a team, and how do you resolve issues?

Reported in ASML Mechatronics Engineer Interview Experience & Questions

The 90-second answer

On my last mechatronics project we had a reticle stage that met its servo spec on the bench and missed it in the integrated tool. Positioning error was 11 nm RMS against a 5 nm budget, and the error grew after 20 minutes of continuous motion. The team was six people across mechanical design, controls, metrology and software, plus a supplier engineer for the linear encoder.

I owned the controls side, but the fault was not in the controller. We resolved it by agreeing on one measured quantity, reproducing it together, and letting the data assign the owner. That took two days. The first day we spent arguing from separate test setups. The second day, with a shared trace, we found a thermal drift in the encoder mounting bracket that the supplier had changed without a revision notice.

How the work actually split

Each discipline owned a boundary and a number. Mechanical owned stiffness and thermal growth of the bracket. I owned the servo bandwidth and the disturbance observer. Metrology owned the interferometer setup and its calibration interval. Software owned the motion profile timing. When the numbers at the boundaries did not match, that was the bug location, not a person.

We wrote those boundaries down before integration. For this stage: encoder scale error below 2 ppm, bracket growth below 0.8 nm per degree, servo following error below 3 nm at 100 mm/s, and profile jitter below 50 microseconds. If a subsystem met its boundary numbers in isolation and failed in the system, we looked at the interface first.

TimeObservationOwnerActionResult
Day 1, 09:0011 nm RMS in tool, 4 nm on benchControlsReplayed same profile on bench with tool controllerBench stayed at 4 nm, so profile and tuning were not the cause
Day 1, 14:00Error rises after 20 min, resets after 30 min idleMetrologyLogged interferometer and stage temperature togetherError tracked bracket temperature with 6 min lag
Day 2, 10:00Bracket supplier lot changedMechanicalCompared drawings, found material change from aluminium to a lower expansion alloy in the wrong direction for the preloadGrowth was 2.1 nm per degree, not 0.8
Day 2, 16:00New bracket fittedMechanical + ControlsRe-ran 2 h soak at full dutyError back to 4.6 nm RMS, stable

How we resolved the disagreement

The supplier engineer initially said the encoder was out of tolerance. Controls said the observer was masking a mechanical resonance. Both were plausible from our own data. We stopped debating and used a rule we had agreed in the kickoff:

Yes No Disagreement on cause Reproduce on one setup Agree one metric and threshold Isolate one subsystem at a time Boundary number violated? Owner fixes and retests Move to next interface Full system soak test

That rule matters because in mechatronics the same symptom has three homes. A 47 Hz peak in the error spectrum could be a servo resonance, a cable force, or a structural mode of the bracket. We checked it by changing one thing at a time: detuning the observer, clamping the cable, then stiffening the bracket. Only the bracket moved the peak. Without that sequence we would have retuned the servo, shipped a softer controller, and hidden a mechanical problem until it failed in the field.

Failure modes I watch for

The first is fixing in software what belongs in hardware. It works for a demo and fails under thermal load, which is exactly what happened here. The second is each team keeping its own test rig and its own definition of pass. We lost a day to that. The fix was metrology owning one rig for integration decisions, even if bench rigs stayed with each team for development.

The third is escalation too late. We set a rule: if a subsystem misses its boundary number twice, or if two teams disagree for more than half a day, the issue goes to the system architect with both traces attached. Not a summary, the traces. That keeps the decision technical and stops it becoming a status meeting.

If I joined your team, I would bring the same habit. Define the interface numbers early, measure them on a shared setup, and let the trace decide who owns the fix. That is how a mixed team of mechanical, controls and software engineers stays fast without stepping on each other.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-2Describe your coolest project in the past?

Reported in ASML Mechatronics Engineer Interview Experience & Questions

The 90-second answer

I would describe a dual-stage wafer positioning prototype I worked on for inspection. The coarse stage carried a 300 mm wafer over long travel at up to 500 mm/s. A separate fine stage, a voice-coil actuator on flexures, handled small corrections. The coarse stage used an encoder with micrometre-level error. The fine stage used a laser interferometer and a 10 kHz controller to keep following error in the tens of nanometres. Splitting travel and precision between two actuators was the central decision.

In the final bench build, following error was 14 nm RMS at 400 mm/s, against a 25 nm budget we set for the prototype. Repeatability was 9 nm over 1,000 moves. Those figures came from the interferometer log during stripe scans, not from the encoder. The main work for me was the fine-stage servo, the feedforward from the coarse trajectory, and diagnosing why the first single-stage build kept exciting a structural resonance.

Why two stages, and when I would not use them

The first build used one long-travel stage. Its measured resonance was near 87 Hz, and the servo had limited gain margin around it. The fine stage was short and stiff, with its first mode above 400 Hz in our measurements. That let the controller use higher bandwidth for small errors while the coarse stage only needed smooth motion.

Dual stage is the wrong choice when the travel is short, the error budget is loose, or the added loop costs more than it buys. A direct-drive linear motor on a single stiff stage can meet a 100 nm budget over 20 mm of travel with far less calibration. In vacuum, the extra actuator, cabling and heat source also add outgassing and thermal problems. We accepted that complexity because travel was 300 mm and the budget was 25 nm. If either number changed by an order of magnitude, I would revisit the architecture.

C++
// Fine-stage controller, C++17. pos_ref and pos_meas are in metres.
// integral_v is stored in volts, so its clamp is in volts.
double step = 1.0 / 10000.0;
double err = pos_ref - pos_meas;
integral_v += ki * err * step;
integral_v = clamp(integral_v, -2.0, 2.0);  // anti-windup
 double deriv = (err - prev_err) / step;
deriv_filt += 0.2 * (deriv - deriv_filt);  // 2 kHz low-pass, approx.
double u = kp * err + integral_v + kd * deriv_filt + kff * vel_ff;
u = clamp(u, -10.0, 10.0);  // amplifier limit, volts
prev_err = err;

The unfiltered derivative was our first problem. Interferometer noise fed straight into the output and the stage jittered. Filtering the derivative fixed the jitter without lowering the proportional gain as much. That trade-off showed up in the spectrum before it showed up in RMS error, which is why we logged the spectrum during tuning.

A check an interviewer can follow

At 400 mm/s, a 300 mm stripe takes 0.75 s. With 10 mm stripes, a full pass needs 30 stripes, so motion alone is about 22.5 s before turnarounds. The error budget mattered for image blur. Following error of 14 nm RMS against a 300 nm pixel is 14 / 300 = 4.7% of a pixel. At 61 nm RMS, the single-stage result, the same ratio is 20%. That calculation is approximate, because RMS error is not peak blur, but it explains why we treated 25 nm as the limit.

BuildSpeedRMS following errorRepeatabilityWhat changed
Single stage400 mm/s61 nm48 nmResonance near 87 Hz
Dual stage400 mm/s14 nm9 nmFine stage plus derivative filter
Dual stage500 mm/s19 nm11 nmFeedforward gain raised 15%

Two failure modes took the most time. Cable forces on the fine stage varied with position and reversed with scan direction, so we rerouted the umbilical and added a position-dependent feedforward term. Heating from the voice coil, about 2 C on the stage housing during continuous scans in our setup, drifted the measurement path. A housing temperature sensor and a compensation term reduced that drift by roughly two thirds in the logged data.

The lesson I took from it was to measure the error spectrum and the disturbance sources before tuning gains. That order of work is what I would carry into a production wafer stage, where the vacuum, thermal and throughput constraints are stricter than on our bench.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-3What other controls schemes are you familiar with other than classical controls like PID controller?

Reported in ASML Mechatronics Engineer Interview Experience & Questions

The 90-second answer

Beyond PID I would name five I have actually tuned on motion hardware: feedforward plus feedback, cascade control, state-space control with an observer (LQG), H-infinity for robust performance, model predictive control, and iterative learning control for repetitive motion. At ASML the distinction matters because a wafer stage is not a single loop. You have a long-stroke stage and a short-stroke stage, a reticle stage, metrology that measures overlay after exposure, and disturbances from cables, cooling flow and the floor that repeat every wafer or every scan. PID alone leaves those on the table.

My default architecture is feedforward for the known trajectory, a cascade for the fast inner loop, and a disturbance observer or learning term for what repeats. I reach for LQG or H-infinity when the plant is MIMO and lightly damped, and for MPC when constraints such as actuator saturation or stage travel limits are the real limit.

Reference trajectory Feedforward model Summing junction Cascade / state feedback Voice coil / linear motor Wafer stage Encoder / interferometer Observer / Kalman filter Disturbance observer

How I choose, with a concrete stage example

Assume a hypothetical short-stroke stage: mass 12 kg, first structural mode at 85 Hz with damping ratio 0.02, position loop needs to track a scan at 40 mm/s with following error under 2 nm RMS. Those figures are illustrative, not an ASML specification.

SchemeWhen I use itWhat it buys on a stageFailure mode to watch
Feedforward (inverse model)Trajectory known in advance, as in a scanRemoves most following error before feedback actsModel error at high acceleration, friction change with temperature
Cascade PID (position outer, velocity or current inner)Single axis, well separated time constantsInner loop rejects current and velocity disturbances fastOuter loop tuned too aggressively excites the 85 Hz mode
LQG (LQR + Kalman filter)MIMO, coupled axes, noisy encoderOptimal trade-off of error versus control effort, estimates unmeasured statesPerformance collapses if the noise covariance is guessed badly
H-infinityPlant varies with payload, temperature or cable loadGuaranteed stability margin over a set of plantsConservative, can give up bandwidth you needed for overlay
MPCSaturation, travel limits or coupled constraints bindHandles limits explicitly over a prediction horizonCompute cost and model mismatch, needs a fallback if the optimiser misses its deadline
Iterative learning control (ILC)Same scan repeated wafer after waferLearns the repeatable error from the previous wafer and cancels itLearns non-repeatable noise and diverges, so I filter the learning update and cap iterations

A disturbance observer sits between those rows. It estimates the lumped disturbance, including cable forces and cogging, from the difference between measured motion and the model prediction, then cancels it in the summing junction. On a repetitive scan it behaves like ILC without needing a full wafer cycle to converge.

State-space snippet I would show in the loop

Python 3.11, using scipy.signal and scipy.linalg. This is a single-axis double integrator with a flexible mode approximated as a second-order system, kept deliberately small so the interviewer can follow the design steps.

Python
import numpy as np
from scipy import signal, linalg

# Hypothetical stage: states [pos, vel, mode_disp, mode_vel]
wn = 2 * np.pi * 85.0
zeta = 0.02
A = np.array([[0, 1, 0, 0],
              [0, 0, 0, 0],
              [0, 0, 0, 1],
              [0, 0, -wn**2, -2*zeta*wn]])
B = np.array([[0], [1/12.0], [0], [0.3]])  # force input, kg
C = np.array([[1, 0, 0, 0]])               # position output

Q = np.diag([1e12, 1e4, 1e8, 1e4])  # penalise position error heavily
R = np.array([[1e-6]])              # penalise force
P = linalg.solve_continuous_are(A, B, Q, R)
K = np.linalg.inv(R) @ B.T @ P      # LQR gain, u = -K x

# Kalman filter with encoder noise vs process noise
Qk = np.diag([1e-10, 1e-6, 1e-8, 1e-4])
Rk = np.array([[1e-14]])            # (1 nm)^2 encoder noise, illustrative
Pk = linalg.solve_continuous_are(A.T, C.T, Qk, Rk)
L = Pk @ C.T @ np.linalg.inv(Rk)    # observer gain
print("K =", K)
print("L =", L.T)

I would then check the closed loop in simulation before touching hardware: gain margin and phase margin at the position loop crossover, sensitivity peak, and RMS error on the actual scan profile. If the sensitivity peak exceeds about 6 dB near the structural mode, I back off the bandwidth or add a notch in the loop shape rather than raising gains.

What I would not claim

I would not present MPC as a drop-in replacement for a 10 kHz servo loop on a stage. The optimiser has to finish inside the sample period every cycle, and on a real-time controller that constraint is unforgiving. I use MPC higher in the hierarchy, for trajectory and constraint management at a slower rate, and keep the fast loop as cascade plus observer based control. That split is usually what an ASML interviewer is probing for: whether the candidate knows which scheme fits which time scale, and where each one breaks.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-4Do you have experience with Buck Converters?

Reported in ASML Mechatronics Engineer Interview Experience & Questions

The 90-second answer

Yes, with synchronous bucks for low voltage rails in motion systems. My most recent one was 24 V in, 5 V out, 3 A continuous, 500 kHz, feeding a motion controller and its encoder interface. I can walk through the sizing and the measurements, and I would start by asking what the load tolerates.

That question decides the design. A digital rail can usually accept 50 mV peak to peak ripple and a few hundred millivolts on a load step. An analog front end or an encoder supply in a precision stage cannot, so I would budget under 10 mV ripple, keep the switch node small, and check the sensor noise floor with the converter at full load. Frequency, inductor, capacitance and compensation all follow from that budget, not the other way round.

I used synchronous rectification because efficiency at 2 A was about 92% in my bench test, against roughly 80% for a diode version, and that removed the need for a heatsink. The trade is layout sensitivity and shoot through risk if dead time is wrong. For a cheap auxiliary rail I would take the diode version and accept the loss.

Sizing, hypothetical worked example

Assume Vin = 24 V, Vout = 5 V, fsw = 500 kHz, L = 10 uH, Cout = 47 uF ceramic. Duty ratio D = 5/24 = 0.208.

Inductor ripple: dI = (Vin - Vout) * D / (L * fsw) = 19 * 0.208 / (10e-6 * 500e3) = 0.79 A peak to peak. I would choose saturation current above the 3 A load plus half the ripple, with margin for cold temperature, where inductance falls.

Capacitive ripple: dV = dI / (8 * fsw * Cout) = 0.79 / (8 * 500e3 * 47e-6) = 4.2 mV. That is a lower bound. ESR, layout inductance and probe technique add to it, so I measure with a short ground spring at the load.

Python
# Python 3, sizing check for the example above
Vin, Vout, fsw, L, C = 24.0, 5.0, 500e3, 10e-6, 47e-6
D = Vout / Vin
dI = (Vin - Vout) * D / (L * fsw)
dV = dI / (8 * fsw * C)
print(f"D={D:.3f}  dI={dI:.2f} A  dV={dV*1e3:.1f} mV")
# D=0.208  dI=0.79 A  dV=4.2 mV
24 V bus Input cap and EMI filter High side and low side FETs Inductor Output ceramic caps Load Feedback and compensation

What I check, and what goes wrong

The table below is a hypothetical bench trace, labelled as such, showing the checks I run and the response I would expect. It is a method, not a claim about a specific unit.

CheckMethodWhat I look for
---------
Load step, 0.5 A to 3 ACurrent probe plus scope at loadDip and recovery time, inductor current for saturation
Light loadScope at 10% loadEntry into discontinuous mode and higher ripple
Startup into capacitive loadScope on output and input currentOvershoot, current limit behaviour, soft start
Loop stabilityNetwork analyser or step responsePhase margin at full load and at light load
Noise couplingEncoder signal with converter loadedNoise floor shift when switching starts

Two failure modes I design against. Inductor saturation shows as a sudden loss of regulation and a spike in input current under load. I detect it with a current probe and prevent it by sizing saturation current at worst case temperature. The second is noise injection into nearby sensor wiring through the ground plane. I keep the switch node area small, route return current under the input and output capacitors, join feedback ground at one point, and remeasure the sensor with the converter running. If the floor moves, I fix layout before touching the sensor.

If the bus can sag below the output, I would move to buck boost. If the rail is a low current analog supply, I would consider a linear regulator after the buck for its lower noise, accepting the extra heat. For the 5 V digital rail above, the synchronous buck is the design I would defend, with measured ripple, transient and thermal data behind it.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-5What brings you to ASML?

Reported in ASML Mechatronics Engineer Interview Experience & Questions

The 90-second answer

"I have spent the last few years building motion systems for research equipment, and I keep hitting the same limit. We can prove a stage works on the bench, but we do not have the test infrastructure, the supplier base or the volume to prove it works the same way on the hundredth unit. I want to work on a machine where that proof is the job. ASML is the clearest example I know of a mechatronics problem at that scale, where the stage, the metrology and the control have to be designed together and then manufactured repeatably. That is the gap I want to close in my own experience."

I would add one specific thing, because a general answer about scale sounds like a brochure. I am interested in how a control change gets validated on a scanner. On my last project, a change to the servo tuning looked good in simulation and then excited a structural mode on the real frame. We found it because we had time to measure the frequency response again. On a production system, that kind of change has to be caught before it reaches a customer, and I want to learn how that validation is structured.

Why ASML over the other options I considered

I looked at robotics and at aerospace suppliers as well. Robotics would have given me faster iteration and more varied projects, and I would have taken that if my priority was breadth. Aerospace would have given me stricter documentation and qualification discipline. I chose ASML because my priority for the next step is depth on one system, with tolerances that force you to understand mechanics, sensing and control as one problem. The trade-off is slower iteration and less variety. I am accepting that, because breadth is what I already have.

What could go wrong in the move

Two things, honestly. The first is the environment. I have worked in air, at room temperature, with access to the machine whenever I wanted it. A scanner runs in vacuum, under thermal control, and you do not open it for a quick check. If I treat a fault the way I did on the bench, I will waste time and possibly damage hardware. I would need to learn the access and safety discipline early, and I would expect to be slower in the first months while I learn it.

The second is pace of change. In a small team I could change a controller, test it the same afternoon and change it again. In a large product organisation, a change goes through review, regression testing and release control. That is not bureaucracy for its own sake, it is how you protect a machine that customers run around the clock. If I get frustrated with that pace and start working around it, I will be a problem. My criterion for whether this role is right for me is whether I can work well inside that discipline while still being useful on the hard technical problems.

What I would ask in return

How does a new mechatronics engineer get access to a real system or a full scale test rig, and how long does that usually take? And how does the team decide that a control change is safe to release? Those two answers would tell me more about the daily work than any description of the technology.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-6Explain control theory concepts such as Nyquist and PID control?

Reported in ASML Mechatronics Engineer Interview Experience & Questions

The 90-second answer

I would start by separating two uses of Nyquist that come up in a servo loop, then connect both to PID tuning.

First, Nyquist-Shannon sampling. If a controller samples position at $f_s$, it cannot distinguish frequencies above $f_s/2$. A vibration at $f$ above that limit aliases to $|f - k f_s|$ for integer $k$. Second, the Nyquist stability criterion. Plot the open-loop frequency response $L(j\omega)$ in the complex plane. If the plot encircles $-1$ a number of times inconsistent with open-loop unstable poles, the closed loop is unstable. Gain margin and phase margin are read from how close that plot passes to $-1$.

PID then closes the loop around that sampled plant. For error $e(t)=r(t)-y(t)$:

$$u(t)=K_p e(t)+K_i\int_0^t e(\tau)d\tau+K_d\frac{de}{dt}$$

$K_p$ sets stiffness and bandwidth, $K_i$ removes steady-state error, $K_d$ adds damping. In a wafer or reticle stage at ASML, I would not tune PID in isolation. I would check sampling rate, anti-alias filtering, and delay first, because they cap the bandwidth PID can safely achieve.

Reference trajectory Sum: e = r - y PID + feedforward Current / force saturation Stage + mechanics Encoder / interferometer Anti-alias filter ADC at fs

Sampling and aliasing, with numbers

Suppose the position loop runs at $f_s = 10$ kHz, a plausible order for a fast stage loop, so the Nyquist frequency is 5 kHz. A structural resonance or cable vibration at 7 kHz is above that limit. It aliases to $|7 - 10| = 3$ kHz in the sampled data. The controller sees a 3 kHz disturbance and may try to correct it, injecting energy at the wrong frequency.

True vibrationSampled at 10 kHzController sees
3 kHz3 kHz3 kHz, correct
7 kHz3 kHz3 kHz, aliased
12 kHz2 kHz2 kHz, aliased
19 kHz1 kHz1 kHz, aliased

That is why the analogue anti-alias filter sits before the ADC, and why mechanical design matters. If a mode sits at 7 kHz, filtering it out before sampling is cheaper than discovering it as a phantom 3 kHz error. A common rule of thumb is to keep the closed-loop bandwidth well below $f_s/10$ to $f_s/20$, leaving margin for phase lag from sampling delay, computation, and zero-order hold. At 10 kHz sampling, that points to a bandwidth in the hundreds of hertz, not kilohertz, unless the loop is carefully modelled in discrete time.

Nyquist plot and margins

For stability, I look at $L(j\omega)=C(j\omega)P(j\omega)$, controller times plant. The $-1$ point is where $L=-1$, meaning loop gain is 1 with 180 degrees of phase lag, so a small change can sustain oscillation.

Gain margin is how much extra gain, in dB, pushes the plot through $-1$. Phase margin is how much extra phase lag, in degrees, at unity gain pushes it through $-1$. I would want, as a starting target for a precision stage, roughly 6 dB gain margin and 30 to 60 degrees phase margin, then verify against the actual error budget. If the Nyquist plot passes close to $-1$ at a resonance, raising $K_p$ to chase bandwidth will eat both margins at once. The fix is often a notch filter at the resonance, a lower bandwidth, or more damping in the mechanics, not more integral action.

PID in practice

TermHelpsHurts if too large
$K_p$Faster response, stiffer against disturbancesExcites resonances, amplifies noise, eats phase margin
$K_i$Removes steady-state offset, for example from gravity or cable forceWindup on saturation, slow oscillation, overshoot after large moves
$K_d$Adds damping, suppresses overshootAmplifies encoder noise and quantisation, jitter in $u$

Three implementation details decide whether the textbook equation survives on hardware. Derivative on measurement, not on error, so a step in the reference does not produce a derivative kick. A low-pass filter on the derivative term, because raw differentiation of a quantised encoder signal is mostly noise. Anti-windup, because the integral term keeps growing while the actuator is saturated.

Python
# Discrete PID, derivative on measurement, clamping anti-windup
# Checked against Python 3.11 semantics; gains are illustrative
Kp, Ki, Kd = 12.0, 80.0, 0.08
Ts = 1e-4  # 10 kHz loop
integral = 0.0
prev_y = 0.0

def pid_step(r, y, u_max=50.0):
    global integral, prev_y
    e = r - y
    d = -Kd * (y - prev_y) / Ts  # derivative on measurement
    u_unsat = Kp * e + Ki * integral + d
    u = max(-u_max, min(u_max, u_unsat))
    if u == u_unsat or (u > 0) != (e > 0):
        integral += e * Ts  # integrate only when not driving deeper into saturation
    prev_y = y
    return u

Feedforward carries most of the load for a known trajectory, acceleration and friction compensation, so PID only corrects the residual. That keeps $K_i$ small and avoids the integral fighting the trajectory generator during a fast move.

How I would answer a follow-up on failure modes

Limit cycle at constant reference points to integral plus saturation or stiction. Noise on the command at high frequency points to derivative gain. A loop that is stable in simulation and unstable on the machine usually means unmodelled delay, a resonance that moved with payload or temperature, or aliasing from a vibration above $f_s/2$. I would log $r$, $y$, $e$, and $u$ at full rate, check the spectrum of $y$ for aliased peaks, and re-measure the frequency response before retuning gains.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-7Walk us through a past project where you had to solve a significant mechatronic failure?

Reported in Debugging a Mechatronic Failure

The 90-second answer

I worked on a 6-axis wafer inspection stage that started scrapping dies intermittently. The symptom was a servo following error spike of 180 nm on the X axis, against a 20 nm RMS budget, occurring two or three times per hour with no fault logged. The drives reported in tolerance. My first assumption was a tuning problem, so I ruled that out before touching the controller. I logged encoder position, commanded position, motor current and stage temperature at 2 kHz for a full shift, and the spikes correlated with nothing in the servo loop. They correlated almost perfectly with the cable chain passing a fixed point in its travel. That pointed me at the harness, not the control law.

Following error spike 180 nm Log pos, current, temp at 2 kHz Correlate spike with X position Inspect cable chain at that position Measure harness pull force vs travel Reroute and strain-relieve harness Re-run 8 h soak, verify error budget

What the trace showed

I exported one spike and the surrounding 200 ms. The pattern repeated at the same X coordinate, which a pure servo instability would not do.

Time (ms)Following error (nm)X position (mm)Motor current (A)Stage temp (°C)
-4012118.21.821.4
-1019119.61.921.4
0184120.03.421.4
+1096120.32.721.4
+4015121.81.921.4

Current rose before the error peaked, so the axis was fighting a load, not losing position to a disturbance torque from the process. I repeated the run with the process off and the stage moving empty. The spike stayed. I then ran it with the cable chain disconnected and supported on a bench arm. The spike disappeared. That isolated the harness as the source in one afternoon, instead of spending a week on PID retuning.

Root cause and fix

At X = 120 mm the cable chain reached the end of its straight section and began to bend. A damaged guide shoe was pinching the encoder cable against the chain, so each pass added a pull force of about 14 N over 8 mm of travel. The servo compensated, which is why current rose, but the compensation lagged by roughly one sample period at 2 kHz and produced the 180 nm transient. The arithmetic was unforgiving: 14 N on a stage with a stiffness of 80 N per micron in the loop gave a quasi-static deflection near 175 nm, matching the measured spike.

I replaced the guide shoe, rerouted the encoder cable with a proper service loop, and added a strain relief clamp so the chain load no longer reached the connector. I also added a position-dependent current monitor in the controller. If current exceeds the model prediction by more than 0.8 A for more than 5 ms at a repeatable position, it now raises a maintenance warning instead of silently eating the error budget.

Python
# Offline check I ran on the logged data (Python 3.11)
import numpy as np

err = np.load("following_error.npy")      # nm, 2 kHz
pos = np.load("x_position.npy")          # mm
cur = np.load("motor_current.npy")       # A

spikes = np.where(err > 60)[0]
for i in spikes:
    print(f"t={i/2000:.3f}s pos={pos[i]:.1f}mm cur={cur[i]:.2f}A err={err[i]:.0f}nm")
# All spikes clustered at 119.8-120.4 mm, none elsewhere in 0-240 mm travel

Verification and what I would do differently

After the fix I ran an 8 hour soak at production speed, 400 wafers equivalent travel, and logged the same channels. Peak following error fell to 22 nm, RMS stayed at 11 nm, and no position-dependent current residual remained. I also re-measured harness pull force with a spring scale across the full travel. It now stays under 3 N, well inside the 5 N limit we set for that axis.

Two lessons stuck. First, log the physical channels, not just the error signal. Current told me the axis was loaded, temperature ruled out thermal drift at 21.4 °C flat, and position gave me the repeatability that separated a mechanical fault from a control fault. Second, a fault that follows position is mechanical until proven otherwise. I wasted the first day suspecting the encoder interpolation because the error looked electrical. If I started again I would do the position correlation in the first hour, before any tuning change, and I would have saved a day.

Curated: · Written: · Reviewed:

Difficulty: Medium

Curated: · Written: · Reviewed: