How-to
Synchronizing Four Servo Lift Axes With One Virtual Master
Short answer
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.

On this page
Gear all four real lift axes to one virtual master axis with MC_GearIn, and command only the master with MC_MoveJog: every follower then receives the same position command at the same instant, so the four ball screws raise, travel and stop together. Gearing leaves two jobs to the program. A faulting follower does not stop the master, so the application needs a group-stop routine that withdraws jog permission and stops the master. And a stored absolute-encoder position identifies shaft angle, not lift level, so each axis needs one mechanical reference against a physical sensor at commissioning, repeated after any encoder, drive, coupling or mechanical change.
One virtual master, four geared followers #
Starting four MC_MoveJog blocks at once synchronizes nothing. Each axis executes its own instruction with its own ramp and its own stop timing, so the lift points skew during every acceleration and a faulting axis stops alone while the others keep running. MC_GearIn does the opposite: it couples a follower to a master with a fixed ratio written as a numerator and a denominator, so the follower's commanded position becomes the master's position multiplied by that ratio. Gear all four real axes to the same virtual master and the group shares one command timeline.
The coupling is asymmetric, and on a lift that matters more than any tuning detail. If the master stops, every geared follower stops with it. If a follower faults, the master keeps running until the program says otherwise — that is the group-stop section below. For a two-axis lift, where pairing the motors and sharing the load dominate the design, see Synchronizing Two Servo Axes on One Heavy Lift; four axes on one virtual master is mostly a command-structure problem, and this article takes it end to end.
Configure the five axes #
Work through these checks before any motion code runs:
- Confirm the controller's motion resources cover four real axes plus one virtual axis, and that its instruction help lists MC_GearIn, MC_GearOut and MC_MoveJog as available for those axis types.
- Scale each real axis in linear lift units: fold the ball-screw lead and any gearbox reduction into the axis scaling so one axis unit equals 1 mm of lift travel. Identical mechanics takes identical scaling on all four.
- Set the positive direction to raise the lift on all four axes, and prove it axis by axis before the group is coupled.
- Give the virtual master the same linear scaling and travel limits that match the lift stroke. The followers inherit the master's motion, so the master's limits are what keep the group inside stroke; a master commanded past its endpoint drags all four followers into the same overrun.
- Keep the master idle until every follower reports gearing established, and do not engage or drop the coupling on a moving master unless the controller's documentation explicitly allows it.
Gear the four followers to the master #
Execute one MC_GearIn call per real axis, all against the same virtual master, with the same numerator and denominator on every call. With identical screws, reductions and scaling, the ratio is 1:1: a master command of 50 mm becomes a 50 mm lift command on each follower. If one axis has a different screw lead or reduction, put the difference into that axis's scaling instead of a special ratio, so all four gearing relationships stay equal and every axis speaks millimeters of lift.
Keep the ratios fixed while the group runs; changing a ratio during motion is its own procedure, covered in Changing a servo axis gear ratio at runtime with MC_GearIn. Do not redefine the master's position while followers are geared — a drive vendor advisory warns that this can spike or jump the follower velocity. Do not treat MC_GearOut as a stop either: it deliberately removes the coupling, which is a different operation from stopping the group. A plain lift needs no registration or correction blocks; those belong to webs moving under a sensor, as in Setting Up Servo Electronic Gearing With Registration Correction.
Jog the master only #
Aim every operator command at the virtual axis. Wire the raise button to the positive-direction input of one MC_MoveJog block on the master and the lower button to its negative-direction input, and reject a request while both are pressed. The followers take no motion instructions at all: each holds its geared coupling and reproduces the master's profile as commanded. Releasing the jog decelerates the master on its own deceleration input, and all four followers decelerate on that same profile, ending at the same commanded position. Leave unconnected inputs at their defaults only where the instruction help documents them as suitable for your axis type; a loaded vertical mechanism deserves explicit velocity, acceleration and deceleration values. That common stop is a property of closed position control as much as of gearing, as set out in Why a Servo Axis Needs Position Control to Stop at the Same Position.
Worked example: speed, motor speed and stop distance #
Take these example inputs and calculate what the master's jog asks of each axis — a calculated example for these inputs, not a measured result:
- Virtual master jog velocity 50 mm/s, deceleration input 500 mm/s²
- Ball-screw lead 10 mm/rev, gearbox reduction 5:1, gearing ratio 1:1
Each follower is geared to the master at that ratio, so every follower command velocity equals the jog velocity: 50 mm/s. Screw speed = 50 mm/s ÷ 10 mm/rev = 5 rev/s = 300 rpm, and the 5:1 reduction makes the motor speed 300 rpm × 5 = 1500 rpm; check that against the rated speed on the motor's own datasheet rather than on this example. Stop from jog release: time = 50 mm/s ÷ 500 mm/s² = 0.1 s, and stopping distance = (50 mm/s)² ÷ (2 × 500 mm/s²) = 2500 mm²/s² ÷ 1000 mm/s² = 2.5 mm. All four followers cover the same 2.5 mm of commanded travel while stopping, because they share the master's profile. Change the jog velocity or the deceleration and every number moves with it; the equality between the four axes does not.
Reference each absolute encoder once #
An absolute encoder keeps its shaft angle through power-off, so ordinary power-ups need no homing. But the stored count identifies shaft angle, not lift level: nothing in the encoder knows where the lift points sit mechanically. At commissioning, align the four lift points level, support the structure, and run the controller and drive's documented absolute-position setup — the procedure that moves each axis to a physical reference sensor and writes the defined home position into the encoder. Your drive family's manual gives the exact steps; the general method is in Homing an Absolute Encoder Axis to a Reference Sensor. Then, with the structure still supported, cycle control power once and confirm every axis reports the unchanged mechanical position. That one check proves retention before the group ever lifts.
Before any referencing move or first motion on a lift, secure the load mechanically and keep the procedure inside the machine's risk assessment under the applicable machinery safety standard.
Re-reference only when the stored relationship can no longer be trusted: after a lost-reference fault from the drive, after replacing a motor, encoder or drive, when a motor coupling moves or slips, or after mechanical work on screw or frame. Controlled stops and ordinary power cycles never require it.
Stop the group when a follower faults #
The asymmetry of gearing sets the requirement: a follower fault does not stop the master, and the other three followers keep lifting on a group that is missing a corner. Program the response instead of trusting the coupling:
- Check all four followers every motion cycle: drive faults, axis errors, gearing dropped or never established, travel-limit conditions, and the actual-position spread between the four axes in the common linear coordinate.
- On any follower fault, withdraw jog permission and command the master to stop through its controlled-stop input, so the three healthy axes decelerate on the shared profile. A faulted follower may not decelerate controllably; the master stop is the response you control.
- Latch a restart inhibit until the fault is cleared, the references are valid again and a spread check passes.
Set the spread trip from the mechanics: for example 1.0 mm between the highest and lowest follower actual position, for a platform that must stay level within about a millimeter. Also compare load between the motors. On four axes that should share a lift evenly, a growing current imbalance usually shows mechanical skew before the position spread does — the same reasoning behind diagnosing current imbalance across every motor on a service.
How tightly each follower tracks the master's command is a different quantity again, set by that axis's own position-loop tuning, which differs even between identical hardware. The page on why the KV factor varies between axis loops explains where that variation comes from.
The decisions #
- Use one virtual master geared to all four axes when the lift points must share one timeline, at 1:1 against identical linear scaling.
- Command only the master; treat any direct jog of a real lift axis as a maintenance function with the group disengaged.
- Put the group stop in software: any follower fault withdraws jog permission and stops the master, then latches a restart inhibit.
- Reference each absolute encoder once against a physical sensor at commissioning, and again after any encoder, drive, coupling or mechanical change — never as a routine.
Questions asked
What happens when the master faults instead of a follower?
A master fault is the case the gearing handles by itself: every follower that stays geared loses its command and stops when the master stops, so the four axes lose their timeline together. The open question is holding, not synchronization. A vertical axis carrying a suspended load must still hold position with the command gone, so the drive behavior after its own fault and any brake provision belong in the machine's risk assessment.
Do all four MC_GearIn calls use the same ratio?
Yes on a lift. Give every call the same numerator and denominator so the four axes share one scale. With identical ball screws, reductions and axis scaling the ratio is 1:1, and one unit of master travel produces one unit of travel on each follower. If one axis has different mechanics, correct it in that axis's scaling rather than with a special ratio, keeping the gearing equal across the group.
When does an absolute-encoder lift axis need referencing again?
Let the drive tell you. Drive diagnostics report a lost-reference state; an axis that still reports a valid reference after power-up does not need re-referencing, whatever happened in between. Re-run the documented reference procedure only after that fault, after replacing a motor, encoder or drive, after a motor coupling moves or slips, or after mechanical work on screw or frame. Recording the reference values written at commissioning makes drift obvious at the next check.
Can four axes be jogged directly and skip the virtual master?
They can, and nothing stops four MC_MoveJog blocks from starting together, but nothing ties them together either. Each axis accelerates, runs and stops on its own instruction timing, so the lift points skew during every ramp and a faulting axis stops alone while the rest continue. The virtual master gives all four axes a single command timeline, which is what produces the common stop as well as the common move.
How much spread between lift points should trip the group stop?
Set the trip from the mechanics, not the drive. Example: a platform that must stay level within about a millimeter trips at 1.0 mm of actual-position spread between the highest and lowest follower, checked every motion cycle. A stiff platen tolerates less spread than independent saddles, so take the number from the frame's allowed twist and the tooling it carries, and alarm below it.
