question

Craig DIckson avatar image
0 Likes"
Craig DIckson asked Ryan Clark commented

Stopped items restarting on conveyor

I am working on a model that uses process flow to stop items on a conveyor so they can be removed. There is some delay between stopping the item and removing it. Sometimes if the downstream items start moving again during the delay, the stopped item does too -- it seems like the accumulation restart is overriding my stop activity. How can I make it so that when I stop an item, it stays stopped until I tell it otherwise?

You can see it in the attached model. Watch the blue items at t=235 and t=255. (Items change color when they are stopped.)

(A little more info - the item is pushed to a list on arrival at a control point, and then removed from the list when the photoeye clears. The control points are in locations that correspond closely to the locations that items will accumulate. The list is used to find the box in the right location and pull it. Note that the needed stop locations aren't quite evenly spaced: there are groups of four, separated by some extra distance.)

Conveyor indexing testing_1.fsm

FlexSim 21.2.3
conveyoraccumulationstopping items
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Ryan Clark avatar image
0 Likes"
Ryan Clark answered Ryan Clark commented

Hello @Craig DIckson,

I'm not sure why the "Stop Item on Conveyor" isn't working correctly. That seems to be a bug of some sort. I also noticed that when you use the automatic option for stopping an item in the Custom Code activity, it uses a deprecated function (but it also doesn't work when you use the updated version, so...).

Regardless, I was able to find a workaround that should suit your purposes. I simply replaced the "Stop Item on Conveyor" with the "Set Conveyor Speed" option. I set the speed to 0 where you had the "Stop Item" previously, and I also added an activity to reset the conveyor speed to 1 (original speed) after the box leaves the conveyor. Here's my modified version of your model: conveyor-indexing-testing-1-rc-v3.fsm

I hope this helps! Let us know if you have further questions!


· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Craig DIckson avatar image Craig DIckson commented ·

@Ryan Clark That gets close, but has the unfortunate side effect of occasionally also stopping boxes that are downstream of the stopped box.

Since the problem appeared to be with the accumulation function of the conveyor, I rewrote the model so that all of the indexing is handled in process flow rather than by the conveyor itself. The photoeyes create tokens when blocked, and the tokens do all of the control. Works well; the only tricky part was needing another photo eye to handle the gaps between the groups of four locations.

Conveyor indexing testing_3.fsm

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark Craig DIckson commented ·
@Craig DIckson Very nice! I'm glad you were able to figure it out!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.