AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Robot program recalibration after reinstalling the arm

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

Short answer

Waypoints stored against the robot base move with the base, so every reinstall shifts the whole path, and program correction refuses to run on the robot that created the program. Save one station datum as the variable reference_point, re-reference every waypoint to it, and a reinstall costs a single re-teach plus a reduced-speed verification run.

On this page
  1. Why does program correction refuse the robot that created the program?
  2. What actually moves when you refit the arm?
  3. How do you tell a moved base from a moved fixture?
  4. How precise does the station datum teach have to be?
  5. How do you re-reference every waypoint to the station datum?
  6. How do you verify the program after the next reinstall?
  7. When does one station datum stop being enough?
  8. Questions asked

An arm that moves between stations does not need its program rewritten at every reinstall; it needs its waypoints pointed at the station instead of at the robot. Waypoints stored against the robot base travel with the base, so every refit shifts the whole path, and the program correction feature refuses to run because its documented job is carrying a program to a different robot. Point every waypoint at one station datum saved as reference_point, and each reinstall costs a single re-taught point plus a reduced-speed verification pass. The sections below give the checks that decide whether the base or a fixture moved, the arithmetic that sets how precisely the datum must be taught, and the procedure that makes the next reinstall routine.

Why does program correction refuse the robot that created the program? #

Program correction is a transfer tool, not a recalibration tool: the controller blocks it when the target robot is the robot the program was created on, because a same-robot reinstall needs the waypoints re-referenced, not transformed between machines.

The error text — "Program Correction is not applicable when using the same robot the program was created on" — is that guard operating as written, and no bypass for it is documented. The controller manual documents the feature for carrying a program between robots and limits automatic correction to fixed waypoints; unsupported waypoint types must be corrected by hand. The coordinate chain underneath explains the behavior: a waypoint taught without an explicit reference frame is stored relative to the robot base, and the base is bolted to the mounting surface, so the station appears nowhere in that chain. When the base shifts on its mounting screws, the program data is untouched but the tool tip lands somewhere else in the world. The supported route is to change what the waypoints are measured against, which turns program-wide recalibration into one re-teach.

What actually moves when you refit the arm? #

When you unbolt and refit the arm, the base shifts as one rigid body by a few millimeters or a small angle, and every waypoint referenced to the base shifts by exactly that same offset in the real world.

Element in the coordinate chain Moves on a reinstall? Consequence for base-referenced waypoints
Robot base on its mounting screws Yes, by a few millimeters or a small angle Every waypoint shifts by the same rigid offset
Station fixtures, bolted to the station frame No, until a fixture is disturbed Physical targets stay where the program expects them
Station datum saved as reference_point Never, relative to the fixtures Waypoints referenced to it follow the station

Two footnotes to the table. The fixtures row is an assumption until the next check proves it: a fixture knocked during handling behaves like a moved target, and no frame change fixes it. And a waypoint stored as joint angles carries no frame at all — it follows the joints, not any feature, so no frame change can reach it, and it has to be re-taught as a pose before it can follow anything.

How do you tell a moved base from a moved fixture? #

Jog the tool tip to a physical datum on the station and read the offset against where the program was taught; if the offset is the same rigid shift at every datum you touch, the base moved and one re-taught station point corrects it.

The check is cheap — one jog per datum and one reading — and it splits into three branches:

  • Offset identical at every datum: the base moved as one rigid body. A single re-taught station datum corrects the whole program, so continue to the re-referencing procedure.
  • Offset differs between datums in a way one rigid shift cannot explain: fixtures moved relative to each other, or a fixture is not rigid. Repair or re-locate the fixture first; no frame change fixes a bent station.
  • No offset at any datum: the mounting did not move, so the drift lives in the tool or TCP. Re-verify the TCP before editing anything.

Only the first branch reaches the datum procedure; the other two are mechanical work that comes first.

How precise does the station datum teach have to be? #

Teach the datum in translation and in rotation, because one point defines a full pose: as a calculated example, a 1 degree rotation error at 500 mm from the datum already moves the tool tip about 8.7 mm at the far end of the program.

The lever arm does the multiplying, so set the teach tolerance from it. Worked example, calculated for these inputs and not a measured result:

  • Datum rotation error: θ = 1 degree = 0.01745 rad (1 × π ÷ 180)
  • Lever arm from datum to the farthest waypoint: r = 500 mm = 0.500 m
  • Tip offset: e = r × θ = 0.500 m × 0.01745 = 0.00873 m ≈ 8.7 mm

The offset scales linearly — double the lever arm and it doubles. Rearranged, the same relation sets the tolerance: holding a 1 mm tip offset at that lever arm needs θ = e ÷ r = 0.001 m ÷ 0.500 m = 0.002 rad ≈ 0.11 degrees. That is why the datum goes where a pose can be re-taught mechanically — a corner against locating pins or a machined datum edge, not a mark made by eye — anywhere on the station, provided it is fixed relative to the program's targets, which is the same tie-the-reference-to-the-fixed-structure logic as teaching conveyor tracking targets at the conveyor base frame.

Machine tools fight the identical lever arm at their tilt axes; how CNC tilt axes keep the tool tip at its datum works through that same tip-to-datum geometry from the machine-tool side.

How do you re-reference every waypoint to the station datum? #

Save one station point as the variable reference_point, change every waypoint's reference from Base to reference_point, and re-save each waypoint at its current physical position; the edit runs per waypoint, so budget time proportional to the waypoint count before the next reinstall.

Do it once, in this order:

  1. Put the installation in its known-good state and jog the TCP to the datum with the same approach every time; save that pose in the installation as the variable reference_point.
  2. Open the first waypoint and change its reference frame from Base to reference_point, then re-save it at its current physical position so the stored pose is expressed relative to the datum.
  3. Repeat for every waypoint, approach and retract points included — one Base-referenced point left behind is the one that crashes after the next reinstall.
  4. Where a waypoint was stored as joint angles, re-teach it as a pose first; it carries no frame and cannot follow reference_point until it is stored as one.
  5. For the process points themselves, teach the physical pick point rather than a frame origin, the argument teach the pick point, not the conveyor frame origin makes for conveyor work.
  6. Run the program once at reduced speed and confirm each waypoint lands on its physical target.

After this pass the program no longer depends on where the base sits, and program correction is out of the workflow for this robot and station.

How do you verify the program after the next reinstall? #

Re-teach reference_point at the station datum with the same translation-and-rotation procedure used the first time, then run the program at reduced speed and check the waypoint nearest the datum and the one farthest from it against their physical targets.

The sequence, with the decision at each step:

  1. Remount the arm, power up, and do not start the program yet.
  2. Re-teach reference_point at the datum, same procedure as the original teach.
  3. Run at reduced speed with the e-stop in reach — the first pass after a frame change is where a wrong waypoint becomes a crash, so this is the one place not to shortcut.
  4. Compare the nearest and farthest waypoints against their physical targets; the far point exposes any rotation error in the re-teach.
  5. Far waypoint off while the near one is on target: the datum rotation is wrong — re-teach reference_point and repeat from step 3.
  6. Both waypoints off by the same offset in the same direction: the datum itself moved — go back to the base-versus-fixture check.
  7. Release to production only when every taught target, approach and retract points included, sits inside your process tolerance.

When does one station datum stop being enough? #

One datum corrects exactly one rigid shift of the robot; if the station fixtures moved relative to each other, or the datum pose cannot be re-taught inside your process tolerance, no frame change will save the program and the mechanical datum comes first.

The decisions, per case:

  • Same robot, rigid base shift, undisturbed fixtures: re-reference once to reference_point; every reinstall after that is one re-teach plus one reduced-speed pass, and program correction stays out of the workflow entirely.
  • A fixture moved relative to the others: repair the fixture, then re-run the datum check; the procedure only pays off on a station that holds its geometry.
  • TCP drift with the mounting untouched: re-verify the TCP; no frame change applies.
  • A datum that cannot be re-taught within tolerance: improve the mechanical datum before building another program on it.

Run the re-reference once and recalibration collapses into a single re-taught point and one reduced-speed verification — the reinstall stops being a programming task at all.

Questions asked

Can several programs on the same station share one datum?

Yes. Save the datum pose once in the installation as the variable reference_point and point every program's waypoints at it, so one re-teach after each reinstall updates all programs together. Programs written before the datum existed need the one-time frame change on each of their waypoints first.

How far off is the tool tip if the datum re-teach is 0.5 degrees out?

Tip offset is lever arm times angle in radians. Half a degree is 0.00873 radians, so as a calculated example at a 250 mm lever arm the tip lands about 2.2 mm off (0.250 m × 0.00873 ≈ 0.0022 m), and the offset scales linearly with distance.

If the arm remounts on dowel pins, is recalibration still needed?

Usually not. A mount that re-seats to the same pose within your process tolerance, which dowels or machined stops are there to provide, leaves the stored waypoints valid. Confirm it once with the datum jog check after a remount: no offset at the datum means no re-teach is required.

Keep reading

  • How-to

    Homing an Incremental Encoder Axis With a Zero Mark

    Switch the homing mode from absolute calibration to Zero Mark, enter the approach speed and the zero offset in load units, bound the search with the travel limit, and pulse the homing start bit to 1 with no other move active. The axis then finds the encoder's index mark and reports the offset coordinate from it. Without a real zero mark the search faults on its travel limit or reaches a mechanical stop.

    Servo and stepper motion

  • Troubleshooting

    Fixing a grid align error after a servo motor rebuild

    The zero-return switch made, but the control finished its alignment move without seeing the encoder's marker pulse. Verify the encoder connector, cable and the Index Invert A and Index Invert B fields first; if those are right, loosen the motor coupling, rotate the motor 180 degrees on the ballscrew and re-home — the documented field fix that clears the alarm when the marker sits outside the alignment move.

    Servo and stepper motion

  • How-to

    Reversing an Axis After a Belt Drive Retrofit in Mach3

    Yes — flip the direction active level for that axis in Config > Ports and Pins > Motor Outputs (the Dir LowActive checkbox) and commanded travel reverses; never mirror programs or swap motor and encoder wiring. The 0.02 in of lost motion is separate: seat the ball screw in its thrust supports mechanically, because no polarity change removes it.

    Servo and stepper motion