AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Where the Vision Offset Pivots in Conveyor Tracking

Sensors, encoders and machine vision on the machine Published 8 min read By AutomateDirectUSA engineering team

Short answer

In the direct compound tracked move, any rotation inside the vision offset pivots about the origin of the vision frame. A point taught a distance d downstream swings sideways by about d times the sine of the yaw, so the direct form is exact only at zero conveyor position or with translation-only offsets. Shift the pivot to the taught point, apply the offset there, and move to the corrected frame.

On this page
  1. What each term of the tracked move contributes
  2. Where a rotation in the offset pivots
  3. Worked example: swing of a point 4 m downstream at a 2° yaw offset
  4. Why the same move passes one test and fails another
  5. Shifting the pivot to the taught point
  6. Reading the miss before redoing the math
  7. Which form to run
  8. Questions asked

Conveyor tracking can follow a part perfectly and still set the tool down in the wrong spot, and the cause is usually not the camera and not the encoder — it is where the vision offset pivots. In the direct compound move CVLMOVE vis_frame+vis_offs+point[1], any rotation inside vis_offs swings the taught point around the origin of vis_frame, a fixed location upstream of the robot, instead of around the part. That pivot is exact in two cases only: a point taught at zero conveyor position, whatever rotation the offset carries, or a translation-only offset at any count. Away from those two cases, a yaw of θ displaces a point a distance d downstream by about d × sin(θ) — tens to hundreds of millimetres at metre-scale standoffs. The fix is to move the pivot to the taught point's conveyor position before the offset is applied.

What each term of the tracked move contributes #

A tracked move is one compound transform, and the expression itself decides which frame each term lives in: the leftmost variable is the reference frame, and every term to its right is applied on top of it. The command and variable names follow the AS robot language of Kawasaki controllers, but the geometry is not specific to them.

  • vis_frame — the vision frame expressed in robot base coordinates, established by laser-measuring the robot against that frame. It sits at a fixed stand upstream of the belt and does not move with it.
  • vis_offs — the vision system's delta from its master part, defined relative to vis_frame.
  • point[1] — the taught robot point, defined relative to vis_offs: define the variable, then store its XYZOAT value.

Stored values are bare XYZOAT and record nothing about the frame they were taught against; only the compound expression gives them meaning, and only the rightmost variable is defined against the prefix when you teach it. When a frame looks suspect, list its raw XYZOAT with LIST or the /l switch.

Under the tracked move, the conveyor count acts as a dynamic base: the tracking frame is an ordinary frame that translates as the encoder counts change — the same position feed used to track conveyor parts with an encoder and a FIFO buffer. The robot does not control the conveyor, so that feed comes from an encoder on a friction wheel, and its faults are physical: slip and scaling corrupt the count in ways no frame math repairs, which is why wiring the conveyor encoder to the controller deserves its own verification before any frame work. Registration closes the loop once per part: when the part breaks the photo eye at cell entry, CVSET sets the tracking value to zero or to an offset derived from the part-detection sensor, and the count from there drives the motion.

Where a rotation in the offset pivots #

A translation in vis_offs has no pivot. It shifts every point to its right by the same vector wherever that point sits, so it lands correctly at every conveyor position.

A rotation — any nonzero O, A or T component in the offset — does have one. It rotates everything to its right about the origin of the frame to its left, which is the vis_frame origin. A point sitting at that origin does not move; a point displaced a distance d from it, measured along the conveyor, swings sideways by about d × sin(θ), on top of the pure shift the vision system intended.

That distance d is the point's downstream displacement from the frame origin at the moment the offset is applied: zero for a point taught at zero conveyor count, growing whenever registration or teaching places the part downstream of the frame. Nothing here belongs to one robot maker; any controller that composes an offset over a tracking frame that translates with the encoder count has the same pivot.

Worked example: swing of a point 4 m downstream at a 2° yaw offset #

Inputs:

  • d = 4000 mm — the distance from the vis_frame origin to the taught point when the offset is applied. The reference cell for this article has its vision frame about 4 m upstream of the robot, which puts a point taught at the robot centreline about 4000 mm from the frame origin. Treat these as example geometry, not measurements of your cell.
  • θ = 2° — an illustrative yaw in vis_offs, the kind of orientation delta a vision system reports for a part sitting rotated on the belt. Example input, not a measured value.

Rule, in words: rotating a point about a pivot it sits a distance d away from moves it along a circle of radius d, so the sideways miss is approximately d × sin(θ). The exact chord is 2 × d × sin(θ/2), and the two agree at small angles.

Arithmetic:

  • θ = 2° = 2 × (π/180) rad = 0.03491 rad
  • sin(2°) = 0.03490
  • sideways miss = 4000 mm × 0.03490 = 139.6 mm
  • chord check: 2 × 4000 mm × sin(1°) = 8000 mm × 0.01745 = 139.6 mm, the same figure

Result: about 140 mm of lateral error on top of the shift the vision system asked for. The robot tracks the part perfectly and sets the tool down beside it.

Decision: at this standoff, each 0.1° of yaw adds 4000 mm × sin(0.1°) = 4000 mm × 0.001745 ≈ 7 mm of miss, so the error scales almost linearly with yaw and with standoff distance. Any nonzero rotation in the offset at metre-scale distances dwarfs a normal pick window. Keep the direct form only where d = 0 or the offset is translation-only; shift the pivot for everything else.

Why the same move passes one test and fails another #

Two careful tests of the direct form can disagree, and both can be right. The expression lands exactly when the shifted point sits at zero conveyor position, so a simulator check whose taught point sits at the origin passes while a floor check whose registration places the part downstream misses. Resolve it with one measurement rather than a preference: teach a point at a nonzero conveyor count and run it twice, once with a translation-only vis_offs and once with an offset carrying nonzero O, A or T. The translation-only run lands at every count; the rotational run lands only at zero. That single comparison isolates the pivot from the camera, the encoder and the registration sensor, each of which leaves a different signature in the table below.

Shifting the pivot to the taught point #

The working fix moves the pivot before the offset is applied. The variable names are yours to choose; the composition order is what matters.

  1. Extract the taught conveyor position of the point to shift; call it c.
  2. Shift vis_frame downstream by c along the conveyor travel direction; call the result vf_shift. The frame origin now sits at the point's position on the belt.
  3. Apply the offset to the shifted frame: vf_off = vf_shift + vis_offs. The rotation now pivots at the point instead of at the distant frame origin.
  4. Project vf_off back to the original frame location. In the reference cell the projection ran along the shifted frame's X vector, because that vector pointed back toward vis_frame; confirm your travel axis before choosing a projection direction.
  5. Form the delta between the original frame and the projected-back frame: delta = -(vis_frame) + vf_back, where the leading minus inverts a frame. Verify the sign and the composition order in the offline simulator (K-Roset in the reference cell) before running hardware.
  6. Build the corrected frame vf_corr = vis_frame + delta and make the tracked move to vf_corr + point[1]. The delta carries the vision offset inside it, so vis_offs no longer appears in the move.

Compute this per point, because the shift distance is that point's own taught conveyor position — once per point or per point group, after the vision result arrives and before the tracked motion starts. Prove the chain in simulation, then on the cell at reduced speed with the guards closed, before running it at production rate. If the tracking path was taught in world coordinates, rebase it first with visionpnt = -(vis_frame)+worldpnt, the same inversion as step 5; that conversion is a prerequisite to the offset work, not an offset method in itself.

Reading the miss before redoing the math #

Every hop in the chain — encoder feed, registration, frame, offset, taught point — hands a value to the tracked move, and a fault at any hop shows up as a vision error at the tool. Sort the candidates by what changes with conveyor count:

What you observe Likely cause Confirming check
Lands at zero count, drifts with count, only when the vision offset reports rotation Offset pivots at the vis_frame origin instead of at the point Repeat with a translation-only offset; the drift disappears
Drifts with count even with a translation-only offset Encoder feed: scaling, friction-wheel slip, reversed direction Track a fixed marker down the full stroke with no offset applied
Constant miss at every count vis_frame shot error, or a shifted master-part reference Re-shoot the frame; re-teach the master part
Every point off by the same fixed transform Points taught in world coordinates but consumed relative to vis_frame Rebase with visionpnt = -(vis_frame)+worldpnt

The last row and the delta in step 5 are the same inversion, so one tested helper serves both.

Which form to run #

Three cases, one decision each:

  • Point taught at zero conveyor position — run the direct CVLMOVE vis_frame+vis_offs+point[1]. The pivot has nothing to swing, and the shifted-frame construction returns the identical target.
  • Translation-only offset at any count — run the direct form as well. A pure shift has no pivot and lands at every conveyor position.
  • Nonzero O, A or T away from zero count — build the corrected frame per point and move to the corrected frame plus the taught point. Run the direct form here and the miss is the swing computed in the worked example, about 140 mm for that small yaw at that standoff, and it grows with every metre of extra distance.

Questions asked

Why does the miss hit rotated parts but not square ones?

A part found at the master orientation gives a vision offset with little or no rotation, and a translation-only offset has no pivot, so it lands on target at every conveyor count. A rotated part makes the offset carry yaw, and only that rotation swings the taught point around the distant frame origin. If the miss appears on tilted parts and vanishes on square-to-the-frame parts, the pivot is the cause, not the camera or the encoder.

How much yaw can I leave uncorrected?

Work backwards from the pick tolerance: divide the allowed miss by the standoff distance to get the sine of the largest safe yaw. Ten millimetres allowed at the 4000 mm standoff of the worked example gives a sine of 0.0025, about 0.14 degrees; a 1 mm window is roughly a tenth of that. Above the computed angle, shift the pivot rather than trimming the tolerance.

Where should the registration sensor sit?

Wherever the geometry wants zero count. The registration reset accepts zero or an offset derived from the part-detection sensor, so you can place zero at the vision frame origin and keep taught points near it, which keeps the pivot distance small and the direct form usable. If part spacing forces registration somewhere else along the belt, expect the sideways swing on every rotational offset and use the shifted-pivot frame instead.

Which commands build and inspect these frames?

Composition and inversion are ordinary transform arithmetic: addition chains frames and a leading minus inverts one, which is how the delta and the world-to-vision conversion are built. To take a stored frame apart and rebuild it, the Decompose, Trans and Point commands in the AS Language documentation are the working tools. Registration, waiting and tracked motion live in the CV-prefixed conveyor tracking commands, and the robot maker's vision and synchronous-conveyor option manual covers the rest.

Keep reading

  • How-to

    How to Track Conveyor Parts With an Encoder and a FIFO Buffer

    Load one FIFO element per slot of encoder-measured belt travel and read any element by index arithmetic instead of shifting data down a table. Worst-case registration error equals one slot length, and update cost is constant whether the block holds 100 or 100,000 elements. Size the slot from placement tolerance and the block from sensor-to-actuator distance plus 10 to 20 percent margin.

    Sensors, encoders and machine vision on the machine

  • Troubleshooting

    Why Robot Conveyor Tracking Ignores Encoder Speed Changes

    A conveyor-tracking motion that ignores encoder speed has one of three faults: the controller receives no changing count, the count converts to the wrong belt distance, or the executed motion never activates the conveyor reference. Confirm the count changes with belt speed first, calibrate distance per count second, verify tracking activation third — in that order. Speed and acceleration settings cannot supply a missing reference.

    Sensors, encoders and machine vision on the machine

  • Selection guide

    Absolute encoder input card response time vs count rate

    Keep the 3-9 ms DC input card. Gray code changes one bit per count, so at a 10 ms count rate each input holds its level for two counts, 20 ms, against a 9 ms worst-case delay, and no transition is lost. The lag to budget is card delay plus PLC scan, about one to three encoder counts, which cam-switch replacement tolerates; the 0.8 ms card buys less than one count, so it is not worth a PLC family change.

    Sensors, encoders and machine vision on the machine