AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a simulated delta robot drifts up in Z on an X move

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

Short answer

Read three Z values at the first visible deviation: the commanded Z, the Z the kinematics calculates, and the tool-point Z the NX mechanism shows. Where the deviation appears decides the fix: commanded Z means the command or the frame, calculated Z means geometry or joint zero references, and tool-point Z alone means the joint-value mapping into the position control.

On this page
  1. Read three Z values at the first visible deviation
  2. The commanded Z moves: fix the command or the frame
  3. The calculated Z departs: geometry or joint zero
  4. TIA holds Z but the mechanism rises: the joint mapping
  5. Worked example: mapping check on a 0 to 360 degree virtual axis
  6. The decision at each outcome
  7. Questions asked

A simulated delta robot that climbs in Z while you command pure X is one of three faults, and the first visible deviation separates them. At that settled pose, read three numbers: the Z in the commanded target, the Z in the kinematics' calculated Cartesian position, and the Z of the tool point on the NX mechanism, expressed in the robot base frame. If the commanded Z moved, the command or its frame is wrong. If the calculated Z departed from the command, the geometry or the joint zero references are wrong. If TIA Portal still holds Z while the mechanism rises, the joint-value mapping between the technology objects and the NX position control is wrong.

Read three Z values at the first visible deviation #

The reported setup is three TO_PositionAxis technology objects configured as virtual axes for an ABB IRB 365 model in NX MCD, driven from TIA Portal V19 through PLCSim Advanced 6, with a TO_Kinematics carrying the robot's entered measurements. Run the X move in the commissioning view of TO_Kinematics, stop at the first pose where the model visibly climbs, let the axes settle, and record the three readings there. Express the NX tool point relative to the robot base frame, not the world frame and not the camera view: a screen view cannot tell vertical rise from travel along a tilted reference plane. Each reading then points at one layer:

  • Commanded Z — the target in the commissioning view. If it changes during a pure X test, the command or the frame it references is wrong.
  • Calculated Cartesian Z — the solution position the kinematics reports. If it departs from the commanded Z, the inverse solution is landing off the path.
  • NX tool-point Z — the mechanism, measured in the base frame. If TIA Portal holds Z and this rises, the joint values arrive but the mechanism ends up elsewhere.
  • All three hold — if every coordinate stays constant and only the screen view looks wrong, a model view or reference plane is misleading you, not the motion.

The commanded Z moves: fix the command or the frame #

For a pure X test the expected reading is X changing with Y and Z constant, in the coordinate system the commissioning view has selected. Record that selection before you read anything: a target captured in a tool frame or a world frame can carry a Z component while the robot itself stays level, and the kinematics will faithfully follow it. Re-capture or rewrite the target in the frame the motion actually uses and nothing downstream needs touching. This is the same frame discipline as on a live cell, where teaching the pick point, not the frame origin decides whether positions repeat.

The calculated Z departs: geometry or joint zero #

TO_Kinematics converts each Cartesian target into three joint values using the geometry entered in the object and the joint zero conventions it was configured with; the walk-through of delta robot forward and inverse kinematics covers that conversion in detail. When the calculated Z leaves the commanded height while X progresses, the inverse solution lands off the straight line, and two things bend it.

Geometry parameters against the CAD model #

The kinematics needs the delta's defining dimensions: upper-arm length, forearm length, base attachment radius, moving-platform radius and the angular spacing of the three arms; the literature writes these L1, L2, rA, rB plus the arm direction vectors. Measure each one in the NX CAD model between the same reference features the parameter defines — motor shaft axis to elbow pivot center, elbow pivot to platform joint, base pivot circle, platform attachment circle. Plausible numbers are not enough: both systems must describe the same reference points, or the path tracks near the reference pose and curves away from it, which is exactly the reported signature of parallel at first and climbing later. The short list of geometry parameters a delta controller must hold has to match the model on every line.

Joint zero conventions and base frames #

Identical joint coordinates must describe identical arm orientations in both systems. Command zero on each virtual axis at the setup pose and compare: each NX joint must sit at its zero in that same pose. A zero shifted on one arm bends every later Cartesian solution even when every link length is right. Compare base frames at the same time: read the base-frame origin and axis directions in both systems, and check whether an NX world-coordinate Z changes while the robot-base-frame Z stays constant — if it does, the frame comparison, not the robot, is producing the rise.

TIA holds Z but the mechanism rises: the joint mapping #

The TO_PositionAxis.ActualPosition values are simulated axis positions the technology objects produce; they are not measurements returned from the mechanism. A correct readout in TIA Portal proves the object holds the value, not that the mechanism reached the corresponding pose. Compare four pairs at several settled poses, holding long enough for motion to stop at each:

Check Expected reading A mismatch means
Sent axis value vs value the NX position control receives identical after the documented conversion wrong signal source, axis assignment or update behavior
Received value vs NX joint coordinate identical after scale and zero offset mapping scale, offset, units or direction
Axis order vs mechanical actuator order each signal drives its intended joint permuted axis mapping
Small positive command on one joint that joint moves in its defined positive direction, the others hold direction sign or joint orientation flipped

Run the direction test in the last row only in the simulation, with the mechanism's constraints active; on the physical robot the same test moves real links under power.

If sent and received values differ, fix that interface discrepancy before anything else. If they agree but the joint coordinate differs, the receiving side applies the wrong scale or offset — the worked example below puts numbers on that check.

Speed control and position control are not interchangeable. Speed control commands a rate of change; position control requires an absolute relationship with the receiving joint's zero reference and its unit. In the setup behind this question the drift survived swapping the Siemens reference model from speed control to position control — a reported symptom, not a proven cause — and that outcome points away from the control type, back at the mapping and the geometry.

The same fault exists on real hardware, which makes the diagnosis easier to trust: when a control moves only half the commanded distance, the cause is usually a scale or conversion error, and the two-pose comparison finds it. A drift that compounds after the first moves has a documented twin in compounding servo position drift after the first move, read pose by pose for the same reason.

The delta is a closed chain: the platform pose follows from the three driven arms through the constraining forearms, so the passive linkage joints have no independent position. Do not command them to pull the animation back onto the path; their values must follow from the mechanism's constraints, and forcing them hides the real error.

Stop the axes at the deviation and hold. If the tool-point Z keeps changing while every joint value holds still, the error is in the update path or the solver: the NX MCD motor sizing documentation notes a solver time setting where a larger value gives the solver more time to bring many joints into position, and a setting too small for three coupled chains leaves the mechanism trailing the commanded values. If Z holds at a wrong value once motion stops, the error is positional — mapping, geometry or zeros — and it will keep growing with travel.

Worked example: mapping check on a 0 to 360 degree virtual axis #

Inputs:

  • The virtual axes are rotary positioning axis technology objects configured over 0 to 360 degrees, the documented example configuration, so every reading below is in degrees.
  • Example readings, illustrative and not measured: at the start pose the sent value is 0.0 deg and the NX joint coordinate is 0.0 deg; at the first visible climb the sent value is 30.0 deg and the joint coordinate is 30.9 deg. Received values equal sent values at both poses, because the actual-position signal feeds the position control directly.

Rule in words: for a rotary joint the mapping between what TIA Portal sends and what the NX joint applies must be a straight line, NX joint value = s × sent value + b, with s equal to 1 when both sides use the same unit and direction, and b equal to 0 deg when both share a zero. Two settled poses solve both constants.

Arithmetic:

s = (30.9 - 0.0) deg / (30.0 - 0.0) deg = 30.9 / 30.0 = 1.03

b = 0.0 deg - 1.03 × 0.0 deg = 0.0 deg

The degrees cancel in the scale. Result: a scale of 1.03 with no offset — the receiving joint applies each commanded degree as 1.03 degrees. The joint error at any pose is (s - 1) × sent value: 0.9 deg at 30.0 deg commanded, 1.8 deg at 60.0 deg, 2.7 deg at 90.0 deg. That growth with travel is why the model looks parallel at first and climbs after a while. This is a calculated example for these inputs, not a measured result.

Decision: after the documented conversion, s must read 1.000 and b 0.0 deg. At 1.03, correct the scale — the unit, the direction sign or the ratio in the position-control definition — and do not patch with an offset, because an offset fixes only the first pose and leaves the growth. Re-run the pure X move: if the tool-point Z holds, the mapping was the fault; if the mapping is clean and Z still climbs, return to the geometry and zero checks.

The decision at each outcome #

  • Commanded Z changes on a pure X test → correct the target or the frame the commissioning view references; the kinematics and the mapping are innocent.
  • Commanded Z holds, calculated Z departs → correct the geometry parameters or the joint zero references so both systems describe the same mechanism; do not patch with a tool offset.
  • Sent and received values differ → fix the interface first: signal source, axis assignment, conversion, update behavior.
  • Received values match but NX joint coordinates differ → fix the mapping scale and zero in the position-control definition, as the worked example shows.
  • Mapping and geometry clean, mechanism still climbs → look for a second position control or constraint fighting the driven joints on the same links.
  • Z keeps changing while all joint values hold → motion-dependent error: give the solver more time or check the update behavior; geometry is not the fault.

Questions asked

Does the drift appearing only after a while mean a timing problem?

Not necessarily. An error that grows with commanded travel is positional: a wrong scale, a shifted joint zero or a mismatched link length adds deviation on every move, so the model tracks near the start pose and climbs later. Stop the axes and hold. If the tool-point Z holds at a wrong value, the error is positional; if Z keeps changing while the joint values hold, the problem is in the update path or the solver instead.

What units should the joint values use on each side?

The virtual rotary axes report positions in degrees, as in the documented example of a virtual positioning axis configured over 0 to 360 degrees. The NX joint applies the value in its own joint unit and zero convention. Read the engineering unit from each position-control definition before converting anything, then write the mapping down once: a scale factor for unit and direction, an offset for the zero reference, and check it at two settled poses.

After correcting the geometry, what is the re-test order?

Re-enter the corrected dimensions or zero references, then re-home both systems to one identical reference pose before any Cartesian move. Run a short X move first and re-read the three Z values at a settled pose; only when commanded, calculated and tool-point Z agree there should you run the full travel. A fix that survives the short move but fails at full travel points at a geometry error that grows away from the reference pose.

Keep reading

  • Troubleshooting

    Delta kinematic axis mapping error before the first move

    A Cartesian move on a delta kinematic that enters error reaction while every call returns TRUE is a group-configuration fault, not a tuning or limit problem. The joint axes were never added to the kinematic with the add-axis call, so the group enables empty, the machine coordinate system keeps its configuration error and every move is refused. Add all joint axes the model requires, in the configured order, before enabling and setting the coordinate system.

    Servo and stepper motion

  • Explainer

    How a delta robot free axis adds gripper rotation

    Add the gripper's rotary axis as a free axis in the ctrlX OS web UI under ctrlX MOTION, Delta configuration, then command it as part of the kinematic from Delta commissioning before mapping its target into MC_MoveLinearAbsolute or ML_KinMoveLinAbs. A separately commanded motor rotates, but it is not an interpolated coordinate of the robot move, so the angle is never tied to the path.

    Servo and stepper motion

  • Troubleshooting

    Why robot hand tracking sends velocity spikes to a servo

    The spikes are not a servo tuning problem: the robot's own axes close their loops, so any jump injected upstream arrives as a velocity spike. Work the chain in order — sample timestamps, pose estimate, coordinate transform, inverse-kinematics target, command stream — find the first signal that turns discontinuous, and repair that stage before touching any gain.

    Servo and stepper motion