The Merge That Jams Twice a Month

A merge that locks a couple of times a month, a photo eye everyone blames, and the release rung that was the real cause. Found in 1:50, tested on the plant model, a pending edit by 2:20.

The symptom

Line C takes cases from two infeed lanes and merges them onto one belt. Each lane holds a case at a stop blade until the merge is clear, then releases it. Most of the time it just runs. A couple of times a month the merge locks: a case sits wedged over the lane A blade, lane B queues behind it, and someone walks over and pulls the case out. Nobody logs it. The story on the floor is that the lane A exit eye is flaky, and the eye has been swapped more than once.

It jammed again. In 1:50 the cause was named. By 2:20 the fix was a pending edit in Studio 5000.

Ask without the plant, get a guess

Asked cold, "Line C's merge jammed again. Why?" gets the answer you would expect: a misaligned eye, merge timing, a worn blade. All reasonable, none of them checked against anything.

Connect the Compiled Plant for Line C and the same question has something to work against: a plant model built from the program the controller is running, and Studio 5000 online to that controller.

What happens in that second

Claude replayed the last jam on the plant model and traced the three seconds before it: the lane A exit eye, the lane A release, the stop blade.

  • The release starts and the case rides toward the merge. The exit eye goes blocked as the case reaches it.
  • For 60 ms the eye reads clear while the case is still over the stop blade. A label, a gap between flaps, a shiny tape seam: it does not matter which.
  • The release rung ends the release on the first scan the eye reads clear. So the release drops on the blink, the stop blade comes back up under the case, and the case wedges. The merge stays occupied, and both lanes wait for a merge that never clears.

The rung

The Merge routine ends each lane's release on its own rung. Before, in plain words: end the release on the first scan the exit eye reads clear.

Lane A release rung as found in Studio 5000
Before: the lane A release ends on the first scan the exit eye reads clear.

After, in plain words: end the release only once the exit eye has been clear for 200 ms.

Lane A release rung with the exit-eye debounce timer in Studio 5000
After: the release ends only once the exit eye has been clear for 200 ms.

One rung changed, one timer added, everything else identical to the running program. The backstop timer (Rel_A_T) is untouched. No new eye, no new card.

The accumulation zones on this line already wait 100 ms on their own eyes, so a 100 ms debounce is the plant's own idiom. Either one holds through a 60 ms blink.

Prove it before the controller sees it

Before anything touched the controller, the fix ran on the plant model with the same dropout at the same moment. The release stays on through the blink, the case clears the eye, and the blade comes up behind the case instead of under it. Lane B releases normally after.

Then a full minute on the plant model with the dropout: no jam. Lane A was producing for 34 s of the minute with the fix, against 16 s as found.

Pending edit, then assemble

Only then did it go to Studio 5000, as a pending edit: the new rung staged above the old one, the old one still running. Tested on the controller, then assembled, and the new rung replaced the old one.

Claude also flagged that lane B has the same flaw on its own release rung, and left it alone because it was asked for one rung.

Nothing was redesigned. The eye was never the problem; the rung trusted one scan of it.

If this is your plant

If you have a jam everyone has a theory about, send me the program export and tell me where it stops. What's the merge on your line waiting for?

Contact ASQI →

ASQI builds AI-assisted engineering tooling for industrial automation, and custom software for manufacturers.