AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

How Two Servo Axes Sync as One Gantry Axis Over EtherCAT

Servo and stepper motion Published 7 min read By AutomateDirectUSA engineering team

Short answer

Yes, two servos can move as one gantry axis over EtherCAT. The controller creates a virtual master axis, feeds both physical servo axes from it through a cross-coupled control function, and supervises the difference between the two actual positions so the bridge cannot rack unnoticed.

On this page
  1. Why two identical commands are not one axis
  2. The architecture: one virtual master, two coupled followers
  3. What EtherCAT changes underneath
  4. Sizing the differential limit: a 2 m gantry at 500 mm/s on a 1 ms EtherCAT cycle
  5. Commissioning order
  6. Fault behavior and what trips first
  7. When the two-axis approach is right
  8. Questions asked

Two servo axes can move as one gantry axis over EtherCAT, and the way it works in practice is a virtual master axis commanding both physical drives through a cross-coupled control loop. The controller closes a second loop on the difference between the two actual positions and corrects it every EtherCAT cycle. That differential supervision is the whole point: two drives that each receive the same command still follow it independently, and only cross-coupling notices when one side lags before the bridge racks.

Why two identical commands are not one axis #

Give both gantry drives the same position target at the same time and each servo closes its own position loop. Any load imbalance, stiffness difference, tuning mismatch or noise disturbance pushes one side off the trajectory while the other holds it. On a rigid dual-motor gantry that divergence twists the bridge, loads the linear guides unevenly and usually ends as a following-error or torque fault on whichever servo is losing the fight.

A cross-coupled controller changes the command structure. Instead of two copies of one command, a single virtual master axis generates the gantry trajectory, and a coupling function continuously compares the two physical actual positions and trims each side toward the other. The mechanism is close to electronic gearing between the two sides, which is why the setup looks familiar if you have worked through servo electronic gearing with registration correction — but the coupling here runs both ways, on the difference, not as master-to-follower gearing alone.

The architecture: one virtual master, two coupled followers #

In a PLCopen-style EtherCAT motion environment the gantry is configured as three axes:

  • Virtual master — no motor, no drive. It carries the commanded position, velocity, acceleration and travel limits for the gantry as a whole. You issue every gantry move to this axis.
  • Physical axis A — the first EtherCAT servo drive, coupled to the virtual master through the cross-coupling function.
  • Physical axis B — the second drive, coupled the same way.

Each physical drive still closes its own current, velocity and position loops internally; the motion controller coordinates their position references and supervises the relationship between them. This is the same division of labor described in where the position loop closes in an Ultra 200 servo drive: the drive holds the fast inner loops, the controller holds the coordinated outer logic.

The coupling function blocks used in the LS Electric XMC and XEM EtherCAT environments work exactly this way — a function such as LS_CrossCoupledControlOn on the XMC, or XPM_CCCON on an XEM CPU with an XBF-PN08B/PN04B EtherCAT module, takes the two physical axes as inputs, and the function-block status reports active, busy and error states you must honor before commanding motion. The exact signature and inputs come from the installed controller's documentation and example program, never from guesswork.

What EtherCAT changes underneath #

EtherCAT's contribution is deterministic delivery. Both drives' setpoints and actual positions travel the same network in the same cycle, so the controller computes the differential from two samples taken at effectively the same instant. With the network's distributed clocks aligning the drives' sampling to the cycle, the residual skew between the two sides' data is a fraction of the cycle time rather than a race between two pulse cards and two feedback cables. That is also why command update rate matters for coordinated axes generally — what a fieldbus command update rate decides for servo axes covers how the cycle time sets the granularity of every commanded move.

When a network-level synchronization problem appears instead of a mechanical one, it usually shows up as a master or sync error on a slave device rather than as racking, and that failure mode is its own topic — see why FB_EcCoESdoWrite reports a Sync Master error in TwinCAT.

Sizing the differential limit: a 2 m gantry at 500 mm/s on a 1 ms EtherCAT cycle #

The cross-coupling loop and the differential following-error limit need numbers at commissioning. This worked example uses illustrative inputs you would replace with your own machine's values; the arithmetic is what you repeat with them.

Inputs (example values, chosen to be typical of a mid-size dual-servo gantry):

  • Gantry width between the two rails: 2.0 m
  • Commanded gantry speed: 500 mm/s
  • EtherCAT cycle time: 1 ms (0.001 s)
  • Mechanical squaring tolerance of the assembled bridge: 0.2 mm

Rule: a servo axis that receives its command one full cycle late falls behind by the distance the gantry travels in that cycle. Distance lag equals commanded speed multiplied by the delay.

Arithmetic:

  • Distance traveled in one cycle: 500 mm/s × 0.001 s = 0.5 mm
  • So a one-cycle command skew between the two sides shows up as a 0.5 mm differential — more than twice the 0.2 mm squaring tolerance of the example bridge.

Result and decision: at 500 mm/s on a 1 ms cycle, losing even one synchronization cycle injects half a millimetre of error across the example 2 m bridge. That is why the differential following-error limit must be set from observed behavior, not from the mechanical tolerance alone: start commissioning with a trip around 1 mm, trend the difference between the two actual positions during low-speed moves, and raise it above the steady-state differential you actually see plus margin. If the differential grows during a move instead of converging, stop — the coupling is fighting something mechanical or a lost cycle, and neither fixes itself.

Commissioning order #

Cross-coupling cannot rescue a badly assembled mechanism, so the mechanical and electrical foundation comes first:

  1. Jog each side independently at low speed with the bridge unloaded or disconnected as the machine allows. Confirm that a positive command moves both sides in the same machine direction and that equal commands produce equal physical travel on both sides.
  2. Verify feedback polarity and scaling on each physical axis. If one encoder counts opposite to the machine coordinate system, fix it in the axis configuration — never patch it by reversing commands in application logic.
  3. Check the EtherCAT topology and axis mapping. Both drives must reach their normal communications state and report valid actual positions, and the mapping must survive a power cycle.
  4. Square and reference the gantry before engaging coupling. Reference each side through its defined sequence so no offset is trapped between the sides when the coupling closes; most CNC-style controllers reference gantry axes sequentially for exactly this reason.
  5. Engage the coupling function and wait for its active state before commanding the virtual axis. Then make a short low-speed move and trend the virtual commanded position, both physical actual positions and their difference.
  6. Ramp speed and acceleration up in increments, repeating in both directions, with no growth in differential and no communications errors at any step.

The commissioning questions overlap with those in why a servo axis needs position control to stop at the same position: both are about repeatable stopping on axes whose position loop the controller supervises.

Fault behavior and what trips first #

In a healthy cross-coupled gantry, a transient disturbance — a hard part entry, a sticky guide — produces a brief differential that the coupling pulls back to zero, and no fault. A sustained differential means the losing servo has hit its torque limit, the drive has tripped on following error, or a cycle was lost on the network. Trending the differential signal during commissioning tells you which: torque saturation shows as a differential that grows in proportion to acceleration; a lost cycle shows as a step of roughly the size computed in the example above; a mechanical bind shows as a differential that keeps climbing after speed stabilizes. Set the differential trip lower than the following-error trips of the individual drives, so the gantry-specific fault fires before either side wanders into a generic one.

When the two-axis approach is right #

A cross-coupled virtual-master gantry is the right architecture when the bridge is mechanically rigid and both rails are the same length, because the coupling assumes a stiff mechanical relationship it is protecting. For loads slung between two independently positioned lifting axes with compliant connections, the same synchronization problem needs a different coordination scheme, as synchronizing two servo axes on one heavy lift describes. And when the axis count grows past a handful of coordinated gantries, the controller's capacity to run the virtual masters and coupling loops at cycle rate becomes the deciding factor — the axis-count logic in counting real axes before selecting a gantry motion controller applies.

Safety note: commission a cross-coupled gantry with the bridge able to move freely and personnel clear, because a coupling that closes with a squaring offset trapped between the sides will drive both motors to correct it, and that correction is fast, full-torque and not a substitute for the machine's guarding and risk assessment.

Questions asked

Can I just send the same pulse or position command to both servo drives at the same time?

You can, but two identical commands are not synchronization. Each drive closes its own position loop, so load imbalance, tuning differences and noise make the sides diverge, and nothing supervises the divergence until the bridge itself is under strain. A cross-coupled controller closes a loop on the difference between the two actual positions and corrects it every cycle, which independent same-command moves never do.

What is a virtual master axis?

It is a computed axis with no motor attached. It holds the commanded position, velocity and motion profile for the gantry as a whole. Both physical servo axes are coupled to it as followers, so you issue one move to the virtual axis instead of two coordinated moves to two motors, and the cross-coupling function uses the virtual reference to keep both sides matched.

What differential following-error limit should I set between the two gantry sides?

There is no universal figure; it depends on bridge stiffness, mechanical play and the process. Commission with a conservative value, trend the difference between the two actual positions during low-speed test moves, and set the trip above the steady-state differential you observe plus a margin. In the worked example in this article a one-cycle command skew at 500 mm/s and a 1 ms EtherCAT cycle already produces 0.5 mm of lag, so a 1 mm commissioning trip on a 2 m bridge would catch a lost cycle without nuisance trips.

Why move from pulse cards to EtherCAT for a gantry?

Pulse wiring carries the step stream to each drive separately, so conducted and coupled noise on either cable corrupts that side's motion, and the controller cannot see the divergence until a following-error trip. EtherCAT carries position, velocity, torque, drive status and diagnostics for both axes over one deterministic network, so the controller has both actual positions in the same cycle and can supervise the differential directly.

Keep reading

  • How-to

    Synchronizing Two Servo Axes on One Heavy Lift

    Yes, two servos can raise one 900 lbf fixture — gear both real axes to one virtual master, trip a cross-axis position fault that halts the master when either side strays, watch the two motor currents separately, and counterbalance each side so the holding brakes stop drifting the level away. Identical independent commands are not synchronization.

    Servo and stepper motion

  • Explainer

    Can Continuous Rotation Servos Position an XY Drawing Gantry

    No, not by themselves: a continuous rotation servo's pulse commands speed and direction, never angle, so drawn shapes do not close. Add feedback — an encoder on the axis, a servo reprogrammed to standard 300-degree mode on a rack (about 199 mm of travel with a 3 in pitch-diameter pinion), or a homed stepper — and the gantry positions.

    Servo and stepper motion

  • How-to

    Synchronizing Four Servo Lift Axes With One Virtual Master

    Create one virtual master axis, gear all four real lift axes to it with MC_GearIn at 1:1, and command only the master with MC_MoveJog; every follower then receives the same position command at the same instant and stops with it. Because a follower fault does not stop the master, add a programmatic group stop that withdraws jog permission and stops the master. Reference each absolute encoder once against a physical sensor, since stored encoder position identifies shaft angle, not lift level.

    Servo and stepper motion