AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Conveyor Trigger Capture Before Gantry Line Tracking

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

Short answer

Capture the conveyor position once, at the fixture trigger, and gear the gantry X axis to the conveyor from that captured coordinate. Before any trigger arrives, compute the acquire-place-clear cycle against the remaining conveyor travel; when the margin falls below the conveyor's stopping distance plus the cycle advance, pause the conveyor instead of letting the gantry run out of travel.

On this page
  1. The two decisions in a line-tracking placement
  2. Make the conveyor encoder a motion master
  3. Capture the fixture trigger in conveyor coordinates
  4. Gear the X axis from the captured coordinate
  5. Worked example: travel margin for a 900 mm window at 250 mm/s
  6. Pause the conveyor while there is still travel to stop in
  7. One reference at a time, one decision at each trigger
  8. Questions asked

A line-tracking gantry picks a part at a located station, returns home, and waits for a fixture to come around; the placement succeeds or fails on two decisions. Capture the conveyor position once, at the instant the fixture trigger fires, and gear the X axis to the conveyor axis from that captured coordinate — never from a position read a scan later. And compute, before any trigger arrives, whether the whole acquire, place and clear cycle fits inside the remaining conveyor travel, pausing the conveyor when the margin runs out. Make those two decisions deliberately and the servo tuning underneath has a fair chance; get either one wrong and no amount of tuning puts a part into the right fixture.

The two decisions in a line-tracking placement #

The sequence is fixed: the part conveys into a located pick position, the gantry traverses over it, the Z axis picks, the gantry raises, returns home and waits. A sensor embedded in the place fixture fires, the gantry begins following the fixture, and once the X axis lines up over it, Z lowers, the part is released, Z retracts and the gantry clears. The problem is a flying cutoff in slow motion: synchronize to moving material, work on it, clear before the material runs out.

Decision one happens at the trigger: which fixture is this, and where was the conveyor at the instant the sensor saw it? Decision two is made long before: at the conveyor's running speed, does the full cycle fit between the trigger point and the end of the gantry's usable travel? A drive that follows its commanded position accurately still places into the wrong fixture, or runs into its travel limit, when either decision is wrong — so settle the reference and the envelope before touching tuning.

Make the conveyor encoder a motion master #

The encoder has to measure fixture travel, not motor rotation. Mount it where slip, backlash and any ratio between the measured shaft and the track that carries the fixtures cannot corrupt the count, then jog the conveyor a known distance and compare the reported displacement against the physical one; that one test fixes both the scale and the direction sign of the tracking ratio.

Network connectivity alone does not make an encoder a motion master. The controller must accept it into the motion system: on midrange EtherNet/IP drive systems that means configuring the encoder as a feedback-only axis inside a motion group — Rockwell's integrated motion manual walks through that setup and names its example axis Master_Fdbk — and verifying how often the position updates and how the controller flags stale produced and consumed axis data. If the encoder only reports position as ordinary network data, use the vendor's supported master arrangement, such as the reusable conveyor-tracking AOI the controller vendor publishes for this class of application, rather than reading a register in logic and calling the result tracking.

Scale the conveyor units from encoder resolution and mechanical ratio, because the counts-to-distance conversion is where tracking accuracy is won or lost; what limits counts per meter in robot conveyor tracking covers that conversion. If the encoder is incremental, confirm rollover and behavior after a controller restart before trusting a captured coordinate across a shift — tracking products on a conveyor with an absolute encoder removes that failure class entirely. And put the signal into the controller cleanly to begin with: wiring the conveyor encoder to the controller covers the electrical side.

Capture the fixture trigger in conveyor coordinates #

The sensor transition carries two facts: a fixture has arrived, and the conveyor stood at a definite position when it did. Capture that position once, at the event, and carry it through the cycle as the fixture's identity. Re-reading the sensor level scan after scan re-reads; it does not re-time. It says the sensor is still made, not where the conveyor was when the transition happened.

Use the controller's documented event capture for the trigger input — the kind that latches position against the motion system's own clock — instead of a logic input scanned by the program. If the trigger does go through the normal scan, the placement carries an offset of conveyor speed × capture delay, the delay being the worst-case time from the sensor transition to the scan that reads it. That expression assumes constant speed across the delay; if the conveyor changes speed inside the interval, use the displacement traveled over the interval instead.

Then correct the geometry. Measure the distance from the sensor's detection point to the fixture feature that actually receives the part, and add the tool offset, so the captured coordinate points at the part seat rather than at the sensor bracket.

Gate the acceptance: take a transition only when the gantry holds a part and the sequence is ready to assign a fixture. Store the captured position with its offsets as one active placement reference, and reject any further transition while that reference lives.

Gear the X axis from the captured coordinate #

Once the gantry has acquired the fixture, tracking reduces to one relationship:

X_target = X_ref + R × (C_now − C_trig)

where C_trig is the conveyor position captured at the trigger, C_now is the current conveyor position, R converts conveyor displacement into X displacement and carries the direction sign, and X_ref is the gantry X coordinate at which the part releases. The relationship commands tracking, not teleporting: the X axis first makes an acquisition move from home onto the current tracking coordinate and matches the conveyor speed, and only then does the gear engage. Engaging a gear across a speed mismatch drags the axis or trips the drive, and the acquisition has to be winnable in the first place — the X axis needs the acceleration to close onto a target moving at the running conveyor speed, which the drive profile confirms before the first production part.

Implement it with the controller's gearing, not with arithmetic executed every scan in logic. In Rockwell's Logix5000 motion instruction set the instruction is documented as Motion Axis Gear, and the encoder output module manual directs you to set the ratio format to Fractional and calculate the Slave Counts value for the axis pair; take the exact configuration from the motion chapter of your controller's instruction reference. The master is the encoder axis, the slave is gantry X, and the captured coordinate sets where the engagement begins. Z stays on its own time-based profile throughout; nothing in the Z move is conveyor-referenced.

Worked example: travel margin for a 900 mm window at 250 mm/s #

Every value below is an example input for a typical gantry over a straight conveyor, chosen to show the arithmetic; the result is a calculated example for these inputs, not a measured result.

  • Conveyor speed at the trigger: 250 mm/s.
  • Cycle time from trigger to gantry clear: 1.5 s, built from an acquisition move of 0.4 s, a Z lower of 0.3 s, a release dwell of 0.1 s, a Z raise of 0.3 s and a clearance move of 0.4 s.
  • Deceleration available from the conveyor drive: 500 mm/s².
  • Usable tracking window: 900 mm — the fixture advance available between the captured trigger position and the gantry's usable X limit, with the conveyor running parallel to X so that one millimeter of fixture advance moves the gantry one millimeter in X.

The rule, in words: the required envelope is the cycle advance plus the stopping distance, where the cycle advance is conveyor speed times cycle time and the stopping distance is speed squared divided by twice the deceleration. The margin is the window minus the required envelope, and the break-even speed is the speed at which the required envelope equals the window.

The arithmetic:

  • Cycle advance: 250 mm/s × 1.5 s = 375 mm
  • Stopping distance: (250 mm/s)² ÷ (2 × 500 mm/s²) = 62,500 mm²/s² ÷ 1,000 mm/s² = 62.5 mm
  • Required envelope: 375 mm + 62.5 mm = 437.5 mm
  • Margin: 900 mm − 437.5 mm = 462.5 mm
  • Break-even speed: solving speed × 1.5 s + speed² ÷ 1,000 mm/s² = 900 mm gives about 459 mm/s

Decision: at 250 mm/s the cycle fits with 462.5 mm of margin, so track and place continuously and the conveyor never stops. At 500 mm/s the same cycle needs 750 mm of cycle advance plus 250 mm of stopping distance — 1,000 mm against a 900 mm window — so continuous placement misses by 100 mm: hold the conveyor below about 459 mm/s or plan the stop-and-place fallback described next. The stopping-distance term grows with the square of speed, which is why doubling the speed more than doubles the requirement.

Pause the conveyor while there is still travel to stop in #

The margin monitor runs off the active reference the whole time the gantry is engaged. When the fixture's advance since capture reaches the usable window minus the conveyor's stopping distance, minus a small allowance for the pause command's own latency, and the placement has not finished, command the conveyor to stop. Because the X axis is geared to the conveyor axis, it decelerates with the conveyor and the fixture freezes, and the gantry finishes the placement against a stationary target. That fallback only holds if the conveyor's deceleration rate is within what the geared X axis can follow, so check the required deceleration against the X drive's torque margin before relying on it.

Keep the stop point short of the fixture sensor: pause before the fixture reaches the position where a second trigger would fire, so a stationary fixture never presents a fresh transition. If a trigger does arrive while the conveyor is stopped or a reference is active, the reference state machine rejects or queues it — it never overwrites.

This monitor is the conveyor-side twin of the stop window margin before the tracking distance limit: both spend a computed margin of travel to buy a clean stop instead of a limit fault.

One safety note: this pause is an operational stop under program control, not a safety function. Personnel protection stays with the guarding, interlocks and risk assessment the machine is built to, and soft travel margins never replace hard stops or limit switches.

One reference at a time, one decision at each trigger #

The placement reference is single-slot state: created when an accepted trigger is captured, carried through acquisition, placement and clearance, and cleared only after the part is confirmed in the fixture and the gantry is clear — or by a defined abort that leaves the machine in a known state. A second transition while the slot is full is rejected, not merged. If the conveyor must keep indexing while the gantry is busy, a queued fixture's captured position ages: re-check its travel margin when the conveyor restarts, because a reference captured long before the gantry arrives drifts with any slip between the encoder and the track — the same reason conveyor tracking drifts further from each box.

The decision for each case:

  • Trigger accepted, positive margin: track and place continuously.
  • Trigger accepted, zero or negative margin: stop and place — issue the conveyor pause one stopping distance before the placement point and finish against a stationary fixture.
  • Before any trigger: the same arithmetic at the planned conveyor speed sets the cycle's speed ceiling; running faster means re-running it.
  • Every cycle: capture at the event, gear from the captured coordinate, one active reference, cleared only after verified placement and clearance.

Questions asked

Can an Ethernet-only encoder still be the gearing master?

Yes, if the controller motion system accepts it: the encoder must exist as a motion axis in the motion group, not as a data register, and the gear instruction then uses that axis as its master. If your controller cannot gear to that axis type, add a dedicated high-speed encoder input the motion system does accept rather than reading the network value in logic. Also confirm the update rate supports the conveyor speed: stale positions gear the gantry to where the fixture was, not where it is.

What raises the break-even conveyor speed in the envelope check?

Shortening the cycle time moves it most: each 0.1 s removed from the acquire-place-clear cycle cuts the required advance by 0.1 s of conveyor travel at any speed. Raising the conveyor deceleration shrinks the stopping distance, and more usable window raises the ceiling directly. In the worked example, cutting the cycle from 1.5 s to 1.2 s lifts the break-even from about 459 mm/s to about 522 mm/s.

Does a proximity sensor work as the fixture trigger, or does it need a special input?

A plain proximity switch works if the controller can latch its transition against the motion clock; what matters is that the capture is timestamped as an event, not polled by the scan. On systems without event capture on standard inputs, put the trigger on an input the motion system timestamps, and treat the remaining scan latency as placement offset using speed times delay. Sensor repeat accuracy also matters: a sensor with a wide repeat spread widens the placement spread by the same amount.

Does the Z axis need the conveyor reference too?

No. The Z axis lowers and raises on a time-based profile; only X is geared to the conveyor. Z enters the check through duration: the lower, release dwell and raise times sit inside the cycle time, so a slow Z move eats travel margin exactly the way a slow acquisition does. Keep the Z profile as short as the part allows and re-run the envelope arithmetic after any Z change.

Keep reading

  • Troubleshooting

    Why conveyor tracking drifts further from each box

    A growing box-to-box offset is a stale reference, not a bad tracking scale: either the belt moved while tracking was off and the new window kept the old reference, or a measured pose already carrying the belt compensation was fed back as the next origin. Read the belt position at each restart and register the new window from it, or keep one tracking session and advance the nominal box reference by one measured pitch.

    Servo and stepper motion

  • Explainer

    Absolute Position Control With an Incremental Encoder

    An incremental encoder cannot name the current position at power-up; it only counts motion from a starting reference. Give the axis one machine coordinate by homing to a repeatable switch event, by absolute feedback, or by restoring a still-valid position, and after that one reference it executes absolute moves as readily as relative ones.

    Servo and stepper motion

  • Explainer

    Servo Motor as a Linear Axis: Scaling and Feedback Choices

    A rotary servo motor becomes a linear axis through one scaling number — travel per motor revolution, wheel circumference or screw lead divided by gear ratio — and one decision on where the position loop closes. A 0.1 m wheel at 10:1 gearing gives 0.01 m of travel per motor revolution, or 628.3 rad/m. An analog distance sensor on an input card is monitoring data, not axis feedback, until a documented feedback input binds it to the axis.

    Servo and stepper motion