question

Sachin T avatar image
0 Likes"
Sachin T asked Andrew O commented

control flow in to the conveyor

i haeve 2 conveyors and one is accumulating and other one is a slug forming conveyor. after 30 items passed through the sllug conveyor I want to stop incoming objects into the sliug. The conveyor behind will still accumulate the parts but it wont move any items to slug conv for 500 seconds. Once 500seconds are passed I will again start moving the items to slug conveyor.

I tried closeinput, closeinputall & closeip but nothing is working. Can anyone help to resolve this issue.

@Matthew Gillespie @Joerg Vogel


I am not able to attach model for some reason. 1662485729837.png

FlexSim 22.1.4
conveyor
1662485729837.png (124.1 KiB)
· 3
5 |100000

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

Jacob W2 avatar image Jacob W2 ♦ commented ·

Hi @Sachin T,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question. You can upload your models or other files by appending ".jpg" to the filename. Files ending in .jpg are not effected by the bug. You can also upload your model and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Sachin T avatar image Sachin T Jacob W2 ♦ commented ·

i uploaded the file by the name "controlObjectFlowin Conveyor" . Please check and the question remains the same.

0 Likes 0 ·
Andrew O avatar image Andrew O commented ·

Hi @Sachin T, was Logan Gold's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Logan Gold avatar image
0 Likes"
Logan Gold answered Felix Möhlmann commented

You'll need to use Conveyor.Item.stop() to stop an item on a Conveyor (and any upstream items that follow). You can also use a Custom Code activity with the dropdown option Control > Conveyor > Stop / Resume Item on Conveyor:

customcodeactivity-stopresumeitemonconveyor.png

Or with a Decision Point's triggers:

decisionpoint-stopitem.png


The tricky part is getting the right item to stop, since the 30th item that triggers the 500 seconds of stopped time is different than the 31st item that is actually stopped. The easiest way to handle that would be to have the 30th item set a label somewhere, like on the Conveyor or in the Process Flow, and then use that label in part of your logic to determine when to stop the 31st item.

Then, the same part of the logic that sets the label will wait for 500 seconds before clearing the label and resuming the 31st item if there is one (in case it takes more than 500 seconds for the 31st item to arrive). Again, you'll probably want to use a label to keep track of which item is stopped, and then use that label when resuming the item after the 500 second delay.

I can come up with an example model if anything is unclear. Let me know if that is needed and the best way to get you that model (email, temporary link, etc.). I believe you can post a comment that only the moderators (FlexSim U.S. employees) can see if you don't want to publicly share an email address.


· 3
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

In this particuar case, I would suggest to use the "Stop Item and Delay" option of a Photo Eye (or Decision Point). A label on the Photo Eye determines when the next item should be allowed to continue onto the slug conveyor. Items are only stopped if that time is larger than the current model time.1662531334322.png

1662531317208.png

This way, you only have to set the label on the Photo Eye to stop the input to the slug conveyor. Resuming the flow happens automatically at the specified time.

1 Like 1 ·
1662531317208.png (52.6 KiB)
1662531334322.png (68.3 KiB)
Sachin T avatar image Sachin T Felix Möhlmann commented ·
thank you for the answer. The purpose of this is to let the conveyor accumulate but not pass it to the slug conveyor because the system is executing a special Grid Lock situation. So it cannot let the slug to form until the system is out of Grid Lock. In the sample model i put the waiting just to replicate a simplified version. Ideally there is no time limit to how long the Accumulating conveyor behind slugs will not pass..it may be 100 seconds or may be hours. hence the above logic its practically difficult to know how long the items will be blocked on previous conveyor. I hope this gives a little context.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Sachin T commented ·

Then you can do as Logan suggested: Stop the item based on a label and later resume it from the process flow. For this you can first check if there is actually an item waiting at the photo eye in a decide activity.

1662567879406.png

1662567891147.png

0 Likes 0 ·
1662567879406.png (17.6 KiB)
1662567891147.png (80.5 KiB)

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.