AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Stop Window Margin Before the Tracking Distance Limit

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

Short answer

Stop the conveyor upstream of the last usable tracking position, not at it. The stop threshold must sit before the maximum tracking distance by the belt's post-request travel d = v·t + v²/(2a) — 120 mm for a 300 mm/s belt, 0.1 s latency and 500 mm/s² decel — plus room to finish placement. The decision must run in a monitor independent of the robot program, because a sequential output cannot fire while the program is busy or before the object is attached.

On this page
  1. Where should the conveyor stop window sit?
  2. How much distance does the conveyor cover after the stop request?
  3. Why can't a digital output in the tracking program stop the belt?
  4. Which object does the stop decision follow?
  5. What happens to tracking while the conveyor is stopped?
  6. What limits the usable tracking distance besides the configured maximum?
  7. Which tracking settings should I check when objects fail to connect?
  8. How do I stop the conveyor independently of the robot program?
  9. Questions asked

A conveyor stop window belongs upstream of the last position where the robot can still finish placement, never at that boundary itself. The distance to reserve is the belt's post-request travel — everything the belt covers between the stop request and actual standstill — and it is d = v·t + v²/(2a): speed times latency, plus braking distance. For a 300 mm/s belt with 0.1 s of command latency and a 500 mm/s² ramp, that reserve is 120 mm. The second half of the answer is where the decision lives: not in an output instruction inside the tracking program, which only executes when program flow reaches it, but in a monitor that keeps evaluating object positions while the motion program is busy and before any object is attached. This article sizes that margin, explains why the sequential-output approach fails, and defines what the monitor must follow.

Where should the conveyor stop window sit? #

Put the stop threshold upstream of the usable tracking boundary by at least the belt's post-request travel — 120 mm in the worked example — then add the distance the robot still needs to finish the placement and your own position uncertainty.

The usable boundary is not one number: it is the smaller of the configured maximum tracking distance, past which the controller gives up tracking the object, and the last position where your robot can reach, orient the tool and complete the placement path. The stop window does one job — it requests a conveyor stop when an object with unfinished placement reaches the threshold — so both numbers must live on the same conveyor coordinate reference, the same zero and the same direction of travel.

The decision, in one expression: stop threshold = usable boundary − post-request travel − finishing allowance − position uncertainty. The post-request term sets the minimum before you subtract anything else. If the expression goes negative, the window has nowhere to exist and the cell needs a longer finishing zone or a faster stop — not a bigger configured number.

How much distance does the conveyor cover after the stop request? #

Model the belt as holding speed v through the command delay t, then braking uniformly at a: the post-request travel is d = v·t + v²/(2a), which comes out in millimetres when v is in mm/s, t in seconds and a in mm/s².

Worked example, with illustrative inputs:

  • v = 300 mm/s, the measured belt speed from the encoder scaling at the moment of the request — not the robot's v200 speed data, which is robot motion speed and says nothing about the belt.
  • t = 0.1 s of total command delay, covering monitor scan, output handling and drive reaction — an assumed value for this example; measure yours.
  • a = 500 mm/s², the deceleration ramp the conveyor drive delivers on a controlled stop.

Latency term: 300 mm/s × 0.1 s = 30 mm. Braking term: (300 mm/s)² ÷ (2 × 500 mm/s²) = 90,000 mm²/s² ÷ 1,000 mm/s² = 90 mm. Post-request travel: 30 mm + 90 mm = 120 mm. That is a calculated example for these inputs, not a measured result, and the inputs move it hard: at 600 mm/s with the same delay and ramp, the braking term alone quadruples to 360 mm.

The braking term is only as honest as the ramp the drive actually delivers, and on a servo-driven belt how closely the axis follows a stop command is set by its loop tuning — the reason the KV factor varies between axes. If your drive coasts, or the real profile is not close to constant-deceleration, drop the formula and log encoder travel from request to standstill, then use the worst case. When you measure that on the live line, no one reaches into the guarded envelope and the belt stays treated as live until standstill is confirmed.

Why can't a digital output in the tracking program stop the belt? #

A sequential output instruction executes only when program flow reaches it, so it cannot watch an object cross a threshold while the robot is waiting for a part, running a long approach, or busy with a different object.

Setting the same instruction earlier in the sequence changes when it executes, not whether it depends on the sequence. While the motion program sits at the wait-for-object instruction or covers a long approach move, nothing in that program evaluates an object's position at all — the belt keeps running through exactly the window you care about.

Changing a blended zone to a fine point, z1 to fine on the tracked moves, is a different mechanism again: a fine point makes the robot reach each programmed endpoint without blending, which can make program timing easier to read. It creates no object-position monitor, extends no usable tracking distance, and every added endpoint stop costs cycle time and consumes conveyor travel. Treat it as a motion-sequencing diagnostic, not as a correction for an object-connection fault.

Which object does the stop decision follow? #

Follow every object that still needs placement, attached or not: an encoder count on its own is only belt displacement, so the monitor needs each object's registered position and identity from the tracking queue.

Separate three states that look identical in a signal trace: the object exists in the tracking queue, the robot has acquired it — the wait-for-object instruction, spelled WaitWObj, does that — and placement into it is complete. DropWObj releases the association, and neither instruction by itself proves the work was done. A monitor that watches only the currently attached work object goes blind precisely in the case that motivates a stop window: the object is still approaching and no acquisition has happened.

This is the same discipline as tracking conveyor parts with an encoder and a FIFO buffer: identity, registered position and measured displacement, kept per object. The decision rule: evaluate every queued object whose placement is incomplete, acquired or not, and request the stop when any of them crosses the threshold.

What happens to tracking while the conveyor is stopped? #

Keep the tracking measurement running through the stop: a stopped belt simply stops advancing the work-object frame, and the robot can keep finishing motion relative to that stationary frame while the association stays valid.

The frame advances with measured encoder travel, not with the conveyor's run command, so it holds at standstill and resumes cleanly at restart. A process stop therefore does not ask you to drop the association: deactivate no tracking, reset no position reference, and let the robot complete its moves relative to the stopped frame.

If the stop instead ends tracking, the robot decelerates on its own clock: the controller documentation for ending tracking states that a requested time shorter than the robot's maximum deceleration permits is ignored, and the robot decelerates at maximum — reserve robot-side room for that too. And if positions still wander along the belt with the measurement running, that is the between-box drift fault described in why conveyor tracking drifts further from each box, not a stop-window problem.

What limits the usable tracking distance besides the configured maximum? #

The usable boundary is the smaller of the configured maximum tracking distance and what the robot can physically reach and finish; a long conveyor creates no tracking range, and raising Maxdistance never extends reach.

The controller's conveyor tracking application manual documents the maximum tracking distance as a configured value past which the robot stops tracking the object, alongside matching minimum-distance and window settings. Read its exact definition, units and reference direction in the manual matching the installed controller, because reference directions differ between setups. Then subtract everything physical from the nominal range: mounting positions, approach and retreat paths, tool orientation limits, and the space the placement path itself sweeps.

For example, a 1200 mm conveyor does not offer anything like 1200 mm of tracking range once those are taken out. Decide the boundary as the smaller of the two limits — configured maximum versus reach-and-path limit — and size the stop window from the smaller one.

Which tracking settings should I check when objects fail to connect? #

Check the acquisition window (spelled startwinwidth here), the registration spacing (Syncseparation) and the queue length (queuedistance) against what your registration hardware actually delivers; objects that fail to connect usually mean the acquisition window never overlaps the object in time.

The parameter spellings come from this configuration; yours may differ, so read definitions, units and reference directions in the manual that matches what is installed. startwinwidth is the acquisition window where the controller connects a registered object to the program; if an object can cross the whole window between two position updates, or the window sits misaligned with the registered position, acquisition fails and the robot reports that it cannot connect. Syncseparation must match the actual spacing your registration hardware delivers, and queuedistance must hold every object that can be inside the windows at once.

Order of operations: fix the connection settings first. A stop window sits on top of a cell that acquires objects reliably — valid acquisition, remaining travel after acquisition and correct conveyor feedback are prerequisites, not things a stop request can substitute for.

How do I stop the conveyor independently of the robot program? #

Run the threshold comparison in a monitor with its own execution context — a concurrent controller task, the tracking option's configured window control, or a PLC receiving object position and completion data — and let that monitor own the conveyor stop command.

Choose the mechanism from what the installed system actually offers, and before adding a writer to the conveyor start/stop command, trace who owns it now. In a configured tracking application the command often lives in the application's configuration and I/O mapping rather than in any instruction in the motion program, which is why a search through the motion program finds nothing. Two writers conflict in a specific way: one component latches a stop request and another restarts the belt on the next cycle.

The monitor's rule, in one line: for each queued object whose placement is incomplete, if measured travel has crossed the stop threshold, latch a stop request, keep the tracking measurement live, and release it only when placement completes or the object is deliberately abandoned. Set the window in that independent monitor, sized by the post-request travel from the worked example — a sequential output inside the motion program will not do either job.

Questions asked

Does raising Maxdistance give the robot more room to finish a placement?

No. The setting only defines where the controller gives up tracking an object; it does not extend the robot's reach or the paths your program can cover. Raising it past the usable range moves the abandonment point further downstream, so objects travel farther before the system drops them, and the belt has less room to stop them in order.

How do I measure the latency term for the margin calculation?

Log encoder position on the conveyor coordinate with timestamps, capture the instant of the stop request and the instant of standstill, and read the travel between them on the same reference. Repeat across a full shift, including a cold start and a fully loaded belt, and use the worst case to sanity-check the two-term result.

What if the conveyor drive coasts to a stop instead of following a controlled ramp?

The constant-deceleration term no longer applies, because coast distance depends on load, belt friction and lubrication rather than a commanded ramp. Measure the request-to-standstill travel with your lightest and heaviest product, take the worst case, and set the threshold from that measured value. A drive with a controlled stop ramp makes the margin predictable and usually smaller.

Can one stop window serve a line with two conveyors?

Evaluate each conveyor against its own coordinate reference, its own tracking boundary and its own post-request travel; never share one position number between belts. Combine the results so that each belt's decision stops its own belt, and a shared main stop should be the logical OR of the per-conveyor requests.

Keep reading

  • Troubleshooting

    Servo axis stuck beyond its travel limit: safe recovery

    Never wire a servo motor straight to mains or release its brake to free an axis that sits outside its travel limits. An overtravel lockout is a position-permission fault: decide whether the joint is physically overtravelled or has lost its reference, then move it back inside the permitted range under drive-controlled jog at low speed, using the documented recovery procedure.

    Servo and stepper motion

  • Troubleshooting

    Why a Stepper Axis Stays Blocked on a Low Limit After E-Stop

    The axis blocks on three stacked conditions: motion permission removed by the E-stop, a latched low-limit error, and a Homed status that disabling the axis erases. Recover in that order — safety reset, enable the axis, MC_Reset to acknowledge the error, then MC_Home so the axis moves away from the active limit. On a reported S7-1214C DC/DC/DC at firmware V4.2, that sequence cleared the alarm with no manual move.

    Servo and stepper motion

  • 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