Explainer
What a Robot Controller Needs to Run Gantry External Axes
Short answer
Adding gantry travel to a robot controller is configuration, not programming: each gantry axis is declared as an external axis with its transmission ratio, direction, working range, speed and acceleration limits, channel mapping and calibration offset. Once declared, gantry motion rides in the same move instructions as the arm joints.

On this page
The effort in putting gantry travel on a robot controller is not programming. It is configuration: each gantry axis is declared as an external axis with a fixed parameter set, and once that set is right, gantry motion runs inside the same move instructions as the arm joints. Get the set wrong and you do not get a syntax error; you get an axis that runs the wrong way, stops at a software limit, or trips on following error mid-move. This article gives the parameter set, the one-axis-at-a-time commissioning order, the failure signatures, and the decision between coordinated axes and a separate gantry PLC.
The external-axis parameter set #
Every gantry axis on the controller needs these values, and each comes from a specific document, not from the drive's nameplate alone:
| Parameter | What it controls | Where the value comes from |
|---|---|---|
| Transmission ratio | Scales every taught position and speed on that axis | The gantry builder's axis data (revolutions of the motor per unit of travel) |
| Direction sign | Which way positive travel moves | Your frame definition, confirmed at first jog |
| Working range | The software limits; they must sit inside the mechanical stops | The gantry mechanical drawing |
| Speed and acceleration limits | Achievable dynamics and drive thermal load | The gantry sizing data, not the drive's absolute capability |
| Motor and measurement channel mapping | Which drive and which feedback channel serves the axis | The controller cabinet drawings |
| Calibration offset | Relates encoder counts to the physical reference position | Set at calibration, stored in the controller |
| Base-frame relationship | Keeps straight-line moves straight across the stroke | Your robot base frame |
The ABB application manual for additional axes describes the same categories for its controllers: transmission ratio, limits, calibration and the mechanical-unit definition that lets coordinated motion share move instructions. If you are still deciding whether one controller can hold the arm plus the gantry at all, settle the axis count first as covered in counting real axes before selecting a gantry motion controller.
The ratio is the one value that scales everything. Suppose a rack-and-pinion gantry axis has a pinion with an effective pitch diameter of 119.4 mm (a 38-tooth, 1 mm-module pinion, an example) driven through a 10:1 gearbox with the motor encoder as the measuring system. Travel per motor revolution is
- π × 119.4 mm = 375.2 mm of rack travel per pinion revolution
- 375.2 mm ÷ 10 = 37.52 mm per motor revolution
So the transmission ratio entered on the controller is 37.52 mm per motor revolution, a calculated example for those inputs. Enter 37.5 instead and every 3 m of commanded travel ends about 16 mm short, which shows why this number is verified over the full stroke before anything is taught.
Commissioning one axis at a time #
Bring the axes up in this order; skipping a step moves the failure downstream where it is harder to find:
- Confirm every gantry drive and its measurement channel is installed and addressed before the controller goes live. An axis without a measurement channel cannot enter the mechanical-unit definition.
- Enter the parameters for one axis: ratio and direction first, then working range, then the speed and acceleration ceilings from the gantry sizing data.
- Jog that axis alone at low speed with the others held. Check the direction sign, check that the displayed position tracks the physical position over the full stroke, and check that the software limits stop it short of the mechanical stops.
- Calibrate the reference position and store it. Repeat steps 2 to 4 for each remaining axis.
- Take a full controller backup before a single point is taught. That backup is the only cheap way back if calibration is ever lost.
- Define the base frame relating gantry travel to the robot base so linear moves across the stroke stay linear.
- Teach a test path crossing the full stroke in one linear move and run it at reduced speed in manual mode.
- Raise speed in steps toward production rate, watching following error and drive temperature at each step.
Before handover, run the production path for a full thermal cycle, because gantry axes drive real friction and the current at minute one is not the current at minute forty. Then power the controller down completely and re-run the same path without re-teaching: positions that repeat after a cold start prove the calibration is stored, not held in volatile memory.
Failure signatures and their confirming checks #
Separate the symptom from the cause, and check the cheap ones first:
- Following error trip at the start of a move. Likely cause: the acceleration limit was entered from the drive's rating instead of the loaded gantry's inertia. Confirm by halving that axis's acceleration parameter and re-running; if the trip clears, the tuning was optimistic. Raise it in steps to find the real boundary. The mechanics of this are covered in why a servo faults when acceleration ramps increase.
- Intermittent measurement or brake fault at one position along the stroke. Likely cause: the cable carrier on the moving axis. Confirm by flexing the carrier by hand at the position where the fault appears, before suspecting the drive or the encoder.
- Position error that grows with stroke length over months. Likely cause: rack-and-pinion backlash or a loosening pinion mount. Confirm by measuring physical position against the controller reading at both ends of travel before touching any parameter. A ratio correction here masks wear instead of fixing it.
- Every taught point on one axis invalid after a power event. Likely cause: lost calibration offsets after a battery or measurement-board fault. Confirm against the backup timestamp, then restore the backup rather than re-teach.
Mid-move fault handling in general is covered in troubleshooting a servo axis that faults mid move.
The decision: coordinated axes or a separate gantry controller #
Run the gantry axes as external axes on the robot controller whenever the workpiece or tool path crosses gantry travel during a move: welding, dispensing, machine tending over multiple machines, any interpolated path longer than the arm's reach. That is the whole point of the parameter set above: one coordinate system, one target format, coordinated straight lines across the full stroke. Two robots sharing a common gantry axis work the same way, with each arm's targets carrying the shared external-axis values.
A separate PLC-driven gantry with handshaking to the robot is defensible in exactly one case: the gantry only positions between operations and never moves during a robot path, and the point set is small. Then the gantry is a positioner, not a motion axis, and the coordination cost disappears. For anything that moves during the process, splitting the control costs you cycle time and doubles every taught point.
A teach pendant that is more parameter-driven than command-line programming changes how these values are entered, not which values exist. Choose the controller on axis count, coordinated-motion capability and the parameter set it exposes, not on the programming style, because axis parameterisation, calibration and tuning exist on every platform.
One safety note: jog verification and all commissioning moves run in manual reduced-speed mode with the gantry's software limits set inside the mechanical stops, and the coordinated system's restart behavior after an emergency stop is tested before handover, since the gantry and the arm must resume from the same target.
Questions asked
Can I run the gantry axes from a PLC and let the robot controller handle only the arm?
You can, but you split the coordinate system in two. Every taught point then needs a gantry position and a robot position captured at the same instant, and a straight-line move across the gantry stroke stops being a single motion instruction. Coordination collapses into handshaking and cycle time suffers. Declare the gantry axes as external axes on the robot controller instead.
Why does my gantry axis trip on following error only at the start of a move?
Because following error is largest during acceleration, and the acceleration limit was probably entered from the drive's capability rather than from the loaded gantry's inertia. Reduce that axis's acceleration parameter, re-run the same move, and raise it in steps until the trip returns. That boundary is the real value for the loaded axis.
What does a backup protect me from after commissioning?
A battery or measurement-board fault can erase the calibration offsets, and with them every taught point on the affected axis. Restoring a current backup takes minutes; re-teaching a full gantry point set takes days. Take the backup after calibration and before teaching, store it off the machine, and refresh it after any later configuration change.
Why does the gantry read differently at the two ends of the stroke after months of running?
On a rack-and-pinion axis that is backlash or a loosening pinion mount: the position error grows with stroke length. Measure the physical position against the controller reading at both ends of travel before changing any parameter, because a ratio correction would mask the mechanical wear instead of fixing it.
