A servomechanism is a closed-loop control system that uses error-sensing feedback to drive an output — position, velocity, or torque — to match a commanded reference. It works by continuously comparing the measured output from a sensor like an encoder or resolver against the command, then correcting the actuator's drive signal until the error approaches zero. The purpose is to deliver precise, repeatable motion under varying load, friction, and disturbance. You see this in CNC machine tools, surgical robots, and aircraft flight controls where ±10 µm or sub-degree accuracy is non-negotiable.
Servomechanism Interactive Calculator
Vary command, feedback, loop rate, and settling time to see closed-loop following error and servo update timing.
Equation Used
The servo controller subtracts measured feedback from the commanded position. The resulting following error tells the PID controller which direction and how strongly to drive the motor. Loop period and update count show how many correction cycles occur during the settling interval.
- Command and feedback use the same linear position units.
- Positive error means the commanded position is ahead of the measured feedback.
- Loop rate is constant over the settling interval.
- Settled feedback equal to command gives zero following error.
Inside the Servomechanism
A servomechanism takes a commanded value — say, move to position 125.000 mm — and drives an actuator while a sensor watches the actual output. The controller subtracts measured from commanded, gets an error signal, and feeds that error through a PID controller (proportional, integral, derivative gains) to generate the drive command. The actuator moves, the sensor reads the new position, and the loop runs again. On a modern servo drive that loop closes 8,000 to 16,000 times per second. The result is that the output tracks the input even when load, friction, or temperature change.
The physics matter. Loop bandwidth — how fast the controller can respond to error — is set by the mechanical resonance of the load, the encoder resolution, and the current loop speed of the drive. Push gains too high and the system oscillates. Set them too low and you get sluggish settling time and steady-state error. A typical industrial servo settles to within ±1 encoder count in 10-50 ms after a step command. Miss that target and parts get scrapped on a CNC, or a pick-and-place head smashes a 0402 capacitor.
Failure modes are predictable. If the encoder loses counts — common with a damaged shielded cable or a marginal 5 V supply — the controller chases a phantom position and the axis drifts. If the load inertia ratio exceeds 10:1 versus the motor rotor inertia, you can't tune out the resonance and you'll see tail-end ringing on every move. If the current loop saturates because torque demand exceeds the drive's continuous rating, following error grows and the drive faults out. Each of these is detectable on a scope trace of the error signal.
Key Components
- Servo Motor: The actuator, typically a brushless permanent-magnet AC motor with three-phase windings. Continuous torque ratings range from 0.16 Nm on a small Yaskawa SGM7J to 50+ Nm on industrial spindle servos. Rotor inertia must be matched to load inertia within roughly 10:1 for clean tuning.
- Position Feedback Sensor: An incremental or absolute encoder, resolver, or linear scale measures actual output. Resolutions run from 2,500 lines per rev on a basic optical encoder to 23-bit absolute (8.4 million counts/rev) on a Mitsubishi HG-KR. The sensor's resolution sets the floor on positioning accuracy.
- Servo Drive (Amplifier): Closes the current, velocity, and position loops. Drives like the Delta ASDA-A3 or Yaskawa Σ-7 run a 16 kHz current loop and accept ±10 V analog, pulse-and-direction, or EtherCAT command inputs. The drive enforces torque, velocity, and following-error limits.
- Controller / PLC: Generates the motion command — point-to-point, S-curve profile, electronic gearing, or interpolated path. On a CNC this is the machine controller; on a robot arm it's the kinematics solver feeding joint commands at 1-4 kHz.
- Mechanical Coupling: Couplings, gearboxes, ball screws, or belts that transmit motor output to the load. Backlash above 1-2 arcmin in a planetary gearhead degrades repeatability; coupling stiffness sets the first mechanical resonance frequency that limits servo bandwidth.
Real-World Applications of the Servomechanism
Servomechanisms show up wherever a system has to track a reference under disturbance. The combination of feedback, fast computation, and high-torque actuators means closed-loop control now drives almost every precision machine built since the 1990s. The questions readers tend to ask — what makes a servo different from a stepper, why bandwidth matters, where torque control beats position control — all come back to the same answer: a servo measures what actually happened and corrects in real time, where an open-loop system just hopes the command was followed.
- Machine Tools: X, Y, and Z axes on a Haas VF-2 vertical machining centre run brushless servos with 1 nm-resolution linear scales for cutting accuracy of ±5 µm over 760 mm travel.
- Industrial Robotics: Each of the 6 joints on a FANUC LR Mate 200iD uses a brushless servo with 17-bit absolute encoder, achieving ±0.02 mm repeatability at the tool centre point.
- Aerospace: The flight control surfaces on a Boeing 777 use hydraulic servovalves driven by electrohydraulic servomechanisms that position elevons against 50+ kN aerodynamic loads.
- Semiconductor: ASML EUV lithography wafer stages use moving-coil linear servos with sub-nanometre interferometric feedback, scanning at 0.7 m/s while holding ±0.5 nm position error.
- Medical Robotics: The Intuitive da Vinci Xi surgical system uses cable-driven servo joints with optical encoders to translate surgeon hand motion into 1:5 scaled instrument motion at the patient.
- Camera and Broadcast: Pan-tilt heads like the Mark Roberts Motion Control Bolt cinebot use servo-driven axes with 0.001° resolution for repeatable VFX motion-control passes.
The Formula Behind the Servomechanism
The single most useful servo equation for a practitioner is the closed-loop position bandwidth — how fast the controlled axis can follow a changing command. At the low end of the typical range (10-20 Hz) the axis feels mushy and overshoots on stops. In the sweet spot (50-100 Hz for a well-tuned industrial servo) commands track cleanly with minimal following error. Push the high end (200+ Hz) and you start exciting mechanical resonances in the coupling, ball screw, or belt — the axis screams audibly and tuning becomes brittle. Bandwidth is bounded by the velocity loop, which is in turn bounded by the current loop and the mechanical first resonance.
Variables
| Symbol | Meaning | Unit (SI) | Unit (Imperial) |
|---|---|---|---|
| fBW | Closed-loop position bandwidth | Hz | Hz |
| Kp | Position loop proportional gain (effective stiffness) | Nm/rad | lb·in/rad |
| Jtotal | Combined motor + reflected load inertia | kg·m² | lb·in·s² |
| π | Mathematical constant | — | — |
Worked Example: Servomechanism in a CNC router gantry retrofit
A custom-machinery shop in Hamilton Ontario is retrofitting a 1500 × 3000 mm CNC router gantry with a Delta ECMA-C20807 brushless servo (0.78 Nm continuous, rotor inertia 1.13 × 10⁻⁴ kg·m²) driving a 25 mm pitch ball screw on the X axis. Reflected load inertia at the motor is 2.7 × 10⁻⁴ kg·m². The integrator wants to estimate achievable position-loop bandwidth across the typical tuning range to know whether the axis can chase a 50 Hz toolpath without lag.
Given
- Jmotor = 1.13 × 10⁻⁴ kg·m²
- Jload = 2.7 × 10⁻⁴ kg·m²
- Kp,nom = 60 Nm/rad
- Kp,low = 15 Nm/rad
- Kp,high = 240 Nm/rad
Solution
Step 1 — sum the inertias. The total reflected inertia at the motor shaft is the rotor plus the load reflected through the ball screw:
Inertia ratio is 2.7 / 1.13 ≈ 2.4:1, well under the 10:1 ceiling — this axis will tune cleanly.
Step 2 — compute nominal bandwidth at Kp = 60 Nm/rad, a typical mid-tune value for a router gantry:
63 Hz is the sweet spot — the axis will track a 50 Hz toolpath with modest following error and no audible resonance ringing.
Step 3 — at the low end of useful tune, Kp = 15 Nm/rad:
31 Hz feels sluggish. Step inputs settle in 80-100 ms and the axis lags noticeably during corner blends — you'd see scalloped corners on a finishing pass.
Step 4 — at the high end, Kp = 240 Nm/rad:
126 Hz is theoretical. In practice the ball screw and gantry beam first resonance sits around 90-120 Hz, so pushing Kp this high will excite the structure — you'll hear it whine on every direction reversal and following error will spike.
Result
Nominal closed-loop bandwidth lands at 63 Hz, which is exactly what you want for a 50 Hz toolpath — the servo tracks cleanly with following error under one encoder count at constant velocity. The low-end 31 Hz tune feels sluggish and produces scalloped corners; the high-end 126 Hz tune crashes into the gantry's mechanical resonance and rings audibly. If your measured bandwidth lands well below the 63 Hz prediction, the three usual suspects are: (1) coupling stiffness lower than spec — a flexible jaw coupling or an undersized bellows coupling adds compliance that drops the velocity loop ceiling, (2) reflected inertia miscalculated because the ball-screw pitch or carriage mass was wrong in the spreadsheet, or (3) current loop saturation during the test step — if the drive's peak current limit is hit, the bandwidth equation no longer holds and you measure a slewing-limited response instead of true small-signal bandwidth.
Servomechanism vs Alternatives
Servos compete with stepper motors and open-loop variable-frequency drives in motion-control duty. Each handles position, speed, and torque differently, and the right pick depends on whether you actually need feedback or whether dead-reckoning will do the job at lower cost.
| Property | Servomechanism | Stepper Motor (open-loop) | VFD-driven AC Motor |
|---|---|---|---|
| Position accuracy | ±1 encoder count (sub-µm with linear scale) | ±1 full step (1.8°) under load | No position control without added feedback |
| Closed-loop bandwidth | 50-200 Hz typical | 5-20 Hz effective | 1-10 Hz speed loop only |
| Continuous torque at high speed | Flat torque curve to rated speed | Drops sharply above 500-1000 RPM | Roughly constant power, drops below base speed |
| Cost per axis (drive + motor) | $800-3000 industrial | $100-500 | $300-1500 |
| Tuning complexity | PID + feedforward, requires expertise | None — open loop | Basic V/f or vector tune |
| Behaviour under overload | Following error fault, clean shutdown | Step loss, silent failure | Trips on overcurrent |
| Best fit | CNC, robotics, semiconductor, precision motion | 3D printers, low-cost positioners, light-duty axes | Conveyors, pumps, fans, spindles |
Frequently Asked Questions About Servomechanism
That's almost always a velocity feedforward problem, not a position loop problem. At standstill the integrator term in the PID winds up enough to hold against static friction. Once you start moving slowly, the position loop alone can't generate enough command to overcome stiction and viscous drag without lag, so you accumulate following error.
Fix it by enabling and tuning velocity feedforward (often called Kvff or FF1) in the drive. Set it to roughly 100% to start, then trim until the following error trace stays flat during a constant-velocity segment. If your drive doesn't expose a feedforward term, raise the integral gain — but watch for overshoot on stops.
At 0.05 mm a closed-loop stepper will hit the spec on paper, but the dynamic behaviour is different. A stepper running closed-loop still commutates in discrete steps, so settling looks coarse and audible noise is higher. A servo moves smoothly and settles within a single encoder count, typically in 10-30 ms.
If your duty cycle is light and cost matters, a closed-loop stepper like a Leadshine iSV2 saves money. If the axis runs continuous duty or feeds a vision system that triggers immediately on settle, spend the extra money on a real servo — the settling consistency is worth it.
Above 10:1 the load dominates the dynamics and the motor rotor can't dampen oscillations fast enough through the coupling. You see two symptoms: (1) you can't raise gains high enough to reach target bandwidth without ringing, and (2) the axis rings for several cycles after every stop, even at low gains.
The clean fix is a gearhead — a 5:1 planetary reduction divides reflected inertia by 25, so a 30:1 mismatch becomes 1.2:1. Notch filters in the drive can suppress a single resonance peak but won't fix the underlying inertia problem. If you can't add a gearhead, switch to a larger motor with higher rotor inertia.
You're hitting current limit during acceleration. The drive can deliver peak torque only up to its peak current rating, typically 200-300% of continuous for 1-3 seconds. Once you saturate, the actual acceleration falls below commanded, and following error grows linearly with the missing torque until the move ends.
Check the drive's current monitor during the move. If it's pegged at the peak limit, either lengthen the acceleration ramp (lower jerk and accel in your motion profile) or move to a larger motor. Don't just raise the following error fault threshold — that hides a real torque shortfall.
The bench tune saw motor + dummy load inertia. Once installed, you've added the full mechanical structure — ball screw, carriage, work mass — and the first resonance frequency dropped, often into the velocity loop bandwidth. The gains that were stable at 200 Hz resonance now excite a 90 Hz structure.
Re-tune in the machine. Run an autotune frequency sweep if your drive supports it (Yaskawa Σ-7 and Delta ASDA-A3 both do) and look for the resonance peak. Either drop position-loop gain below that frequency or insert a notch filter at the peak. Never deploy a bench tune to a real machine without re-checking.
Encoder faults usually show as small, random count jumps that don't correlate with motion direction or load. Mechanical problems — backlash, coupling slip, ball-screw windup — correlate with direction reversals or torque spikes.
Run the axis bidirectionally against a dial indicator at the load. If error appears only on direction change and is repeatable in size, it's mechanical (backlash or coupling). If error accumulates randomly during constant-direction moves, swap the encoder cable first — shielded twisted pair with the shield grounded only at the drive end. Damaged or improperly grounded encoder cables cause more phantom servo problems than any other single failure.
Torque mode, almost always. In a web tensioning application the controlled variable is the pulling force, not a position. Running position mode with a dancer-arm feedback loop adds a layer of complexity and a slow outer loop that fights the fast inner torque dynamics.
Command the servo in torque mode with the torque setpoint scaled from a load cell or dancer position. Tension stays clean through speed changes, web breaks fault out cleanly on torque drop, and you avoid the tuning headache of nesting two position loops. This is how most modern slitter-rewinders run.
References & Further Reading
- Wikipedia contributors. Servomechanism. Wikipedia
Building or designing a mechanism like this?
Explore the precision-engineered motion control hardware used by mechanical engineers, makers, and product designers.