GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

Controls & tuning

Multi-Axis Synchronization Control Method of CNC Machine Tools

A practical tuning guide for engineers who have to make two or more servo axes move as one. It covers gantry and dual-drive pairing, master-slave and cross-coupled schemes, 5-axis RTCP alignment, and the parameters we adjust on real parts. Read it and you can tell whether your machine needs gain matching, a different coupling scheme, or a mechanical fix.

±0.005 mm toleranceGantry and rotary pairingMaster-slave vs cross-coupledCutting test verification
Multi-axis synchronization control method of CNC machine tools on a 5-axis machining center
Quick answer

Key takeaways

Two loops, not oneA velocity loop matches motor speed; a position loop matches actual axis position. Close both before you cut metal.
Match gain firstSet the follower drive to the master's velocity gain, then raise position gain until the axis just starts to hum.
Torque, not currentOn gantries, share torque between the two motors. Forcing equal current splits the load unevenly.
Verify with a ball barA circular test at 500–2,000 mm/min shows whether the two axes really stay in step.
Mechanics set the limitNo controller can hide a loose gib, a worn rack, or a twisted gantry beam.
Fundamentals

What multi-axis synchronization control actually closes

Multi-axis synchronization control means two or more servo axes follow one commanded path so their positions stay locked in a fixed relationship. On a gantry mill that relationship is a straight line: the two Y-axis motors must stay square to each other within a few microns. On a 5-axis machine it is a moving geometry, where the rotary table and the spindle head must keep the tool tip on the programmed path while the part rotates.

The controller closes two loops per axis. The inner velocity loop keeps motor speed proportional to the command. The outer position loop compares the encoder count with the interpolated setpoint and corrects the error. Synchronization lives in the outer loop, because that is where the difference between two axes becomes visible. If one loop is tuned softer than the other, the axes drift apart during acceleration and come back together at steady state.

CNC systems add a third layer that ordinary machines do not have: feedback comparison between axes. The control reads both encoders, computes the following error of each, and injects a correction into the lagging axis. This is why a CNC gantry can hold squareness through a reversal that would twist a mechanically coupled machine.

The practical limit is mechanical. A synchronization error you can measure with a dial indicator on the gantry is real, but if the rack has 0.03 mm of backlash or the linear guide preload is gone, no gain change will remove it. Tune the mechanics first, then the loops.

  • 1
    Velocity loopInner loop. Sets how fast the motor reaches commanded speed.
  • 2
    Position loopOuter loop. Sets how tightly the axis holds commanded position.
  • 3
    Cross-axis correctionThe CNC-specific layer that compares two encoders and corrects the lagging axis.
Schemes

Master-slave, cross-coupled and gantry schemes compared

Master-slave is the default on most dual-drive gantries. One drive is master; the second gets the master's velocity command plus a position correction from the encoder difference. It is simple, and it works well when the two sides of the gantry have similar inertia. Its weakness is that the slave only reacts after an error appears, so during a hard reversal the two sides can separate by 10–30 µm before the correction catches up.

Cross-coupled control feeds the difference between the two axes back into both drives. Each axis is corrected toward the average position instead of one axis chasing the other. On a gantry with a heavy cross beam this cuts reversal error roughly in half. The cost is tuning time: two gain sets must be balanced, and an unbalanced pair will oscillate.

Electronic gantry with torque sharing is the scheme we use on machines where the beam is long or the load is off-center. Instead of commanding equal velocity, the control splits the torque command between the two motors based on the position error of each. A heavy cut on the left side loads the left motor more, and the beam stays square without twisting.

For rotary pairing, such as a tilting head driven by two motors, master-slave with a backlash-compensation offset is usually enough. Cross-coupled control is not worth the tuning effort unless the rotary axes carry a large offset load, for example a heavy fixture hanging off a trunnion.

Parameters

Parameters that decide synchronization accuracy

Position gain is the first number to set. It defines how much velocity the drive commands per unit of position error. Too low and the axis lags; too high and the machine rings. On a typical machining center with a 40 mm pitch ball screw and a 1:1 coupling, we start around 30–50 rad/s and raise it in 5 rad/s steps until the axis hums, then back off 20 percent.

Velocity feedforward matters more than most people expect. It predicts the velocity needed for the commanded path and adds it ahead of the position loop, which removes following error during constant feed. With feedforward set correctly, a 1,000 mm/min move should show almost no steady-state following error on either axis. Without it, the two axes can each lag by the same amount and still be synchronized, but any difference in their gains shows up as a contour error.

The synchronization threshold is the window the controller accepts before it flags or corrects an error. Set it too wide and small misalignments pass through into the part. Set it too tight and the machine trips on normal thermal drift. On a gantry with a 4,000 mm travel, we usually allow 0.02–0.05 mm of correction window and alarm at 0.10 mm.

Current or torque limit on the follower axis protects the mechanics. If the slave hits its limit, the master keeps moving and the gantry twists. That twist is far more expensive than a stopped cycle, so we set the follower limit slightly below the master's and let the alarm stop the machine.

  • 1
    Position gainStart 30–50 rad/s on a ball-screw axis. Raise in 5 rad/s steps, then back off 20 percent.
  • 2
    Velocity feedforwardSet to 100 percent of the axis's velocity loop response, then trim by test cut.
  • 3
    Sync window0.02–0.05 mm correction window, 0.10 mm alarm on a 4,000 mm gantry.
  • 4
    Follower torque limitSet just below the master so a jam stops the cycle instead of twisting the beam.
5-axis

Synchronizing rotary axes and RTCP on 5-axis machines

On a 5-axis machine, synchronization is not only between two linear axes. The rotary axes must stay coordinated with the linear axes so the tool tip follows the programmed path while the part rotates. RTCP, or tool center point control, does the math: the control recalculates the linear axis positions from the rotary positions so the tip stays on path.

RTCP accuracy depends on the kinematic model stored in the control. The pivot distance, the rotary axis offsets, and the tool length must be measured and entered correctly. A 0.01 mm error in the pivot distance becomes a visible gouge when a Ø10 mm ball nose tool tilts 45 degrees. We measure these values with a dial indicator and a test bar, not from the drawing.

Rotary axes also need backlash and thermal compensation. A trunnion that grows 15 µm as it warms will drift out of sync with the linear axes over a long cycle. Most controls let you apply a compensation table based on running time or encoder temperature. This is worth doing on any cycle longer than 30 minutes.

When the rotary axis is driven by two motors, the same master-slave logic applies, with one addition: the two motors must be phased so their torque ripple does not add. If the rotors are aligned the same way, the combined torque ripple doubles. Rotate one motor's commutation offset by half an electrical cycle during commissioning.

  • 1
    RTCP needs real geometryMeasure pivot distance and offsets with a test bar, not from the drawing.
  • 2
    Thermal drift is realApply a compensation table for cycles longer than 30 minutes.
  • 3
    Phase dual rotary motorsOffset one commutation by half an electrical cycle to avoid doubling torque ripple.
Procedure

Step-by-step tuning procedure

Follow the order. Skipping a step usually means repeating the ones before it.

  • 1
    Check the mechanics firstPush and pull each axis by hand with the servos off. Look for backlash above 0.01 mm, loose gibs, and a gantry beam that is not square. Fix mechanical faults before touching parameters.
  • 2
    Set the velocity loop on each axis aloneRun each drive in velocity mode. Raise velocity gain until the motor hums, then back off 20 percent. Record the value for each axis; the follower should match the master within 10 percent.
  • 3
    Close the position loop on each axisStart at 30 rad/s position gain. Increase in 5 rad/s steps until the axis rings on a rapid reversal, then reduce 20 percent. Repeat for both axes in the pair.
  • 4
    Match following error between axesCommand a 1,000 mm/min move on both axes. Read the following error of each. Adjust feedforward or position gain until the two values differ by less than 5 µm.
  • 5
    Enable synchronization and set the windowTurn on master-slave or cross-coupled control. Set the correction window to 0.02–0.05 mm and the alarm to 0.10 mm. Watch the correction output during a full-travel rapid.
  • 6
    Run a ball bar or circular testCut or trace a Ø100–300 mm circle at 500, 1,000 and 2,000 mm/min. Look for a step at the quadrant points. A step means the two axes have different reversal characteristics.
  • 7
    Cut a test part and measureMachine a test piece with a long straight wall and a full-circle bore. Measure squareness and roundness. If squareness is out but the ball bar was clean, the problem is thermal, not tuning.
  • 8
    Log the settings and re-check after warm-upRecord every gain, window and compensation value. Re-run the ball bar after 30 minutes of spindle running. Adjust thermal compensation if the error grew.
Selection

Which synchronization scheme fits which machine

Pick by machine type and load, not by what the control defaults to.

Machine or axis pairRecommended schemeTypical sync windowAvoid when
Gantry mill, short beamMaster-slave0.02–0.05 mmBeam is longer than 2,000 mm
Gantry mill, long beamCross-coupled or torque sharing0.02–0.05 mmDrives cannot share a fast bus
Dual-drive Y on a mill-turnMaster-slave with backlash offset0.03–0.06 mmLoad is heavily off-center
Tilting head, dual motorMaster-slave, phased commutation0.02–0.04 mmRotary axis carries a heavy fixture
Trunnion with offset loadCross-coupled0.03–0.05 mmThermal drift is not compensated
Box-in-box 5-axisRTCP with measured pivot0.01–0.03 mmKinematic model is unverified
Ordinary lathe, single turretNo synchronization neededn/aTwo turrets cut at once
Twin-turret latheMaster-slave on the second turret0.02–0.05 mmTurret backlash exceeds 0.01 mm

Fix the mechanics, then the loops

No synchronization scheme holds two axes together if the rack, gibs or gantry geometry are already out. Check backlash and squareness first. If they pass, tune velocity gain, position gain and feedforward in that order, then verify with a ball bar and a test cut.

FAQs

Questions engineers ask

Why do my two gantry axes drift apart only during acceleration?

The two drives have different acceleration response. One reaches commanded velocity faster than the other, so the position error grows during the ramp and closes at steady state.

Match the velocity loop gains first, then add velocity feedforward to both axes. If the drift remains, check that the moving mass is balanced across the two sides of the gantry.

How tight should the synchronization window be?

On a 4,000 mm gantry, a correction window of 0.02–0.05 mm works for most work. The alarm should sit around 0.10 mm so a real fault stops the machine.

Tighter than 0.01 mm usually trips on thermal drift during a long cycle. That stops production without improving the part.

Can cross-coupled control replace a mechanical coupling?

It can replace a torsion bar or a rack-and-pinion tie between two gantry sides, and it removes the wear those parts introduce.

It cannot fix a gantry beam that is not square or a guide that is not parallel. Those errors are geometric and stay in the part.

What causes a step at the quadrant points in a ball bar test?

A step means the two axes reverse with different characteristics. Common causes are unequal backlash, different friction, or a follower drive with a softer velocity loop.

Measure backlash on both axes. If it differs by more than 0.005 mm, fix the mechanics before retuning.

Do I need thermal compensation on a synchronized axis?

If a cycle runs longer than 30 minutes and the part tolerance is tighter than 0.02 mm, yes. A ball screw or a trunnion grows with temperature and the two axes can drift apart.

Start with a time-based compensation table. Log the error after warm-up and after four hours, then build the table from those measurements.

How do we verify synchronization on a finished part?

Measure squareness between two machined walls and roundness on a full-circle bore. A gantry that is out of sync shows squareness error that changes with feed rate.

If roundness is good but squareness drifts through the cycle, the cause is thermal. If both are bad, retune the loops.

Send us the drawing and the tolerance

We machine synchronized multi-axis parts on 16 simultaneous 5-axis centers, with 100 percent inspection before shipment and reports on request.

12-hour quoteFree DFM analysis±0.005 mm toleranceNo minimum order quantity

Follow

More from GreatLight

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC