question

Cody F avatar image
0 Likes"
Cody F asked Joseph Gillespie commented

How to stop item until pallet count reached?

I am trying to get my conveyor system to fill up with the correct amount of pallets. However, when I run the model, the system is able to complete a full cycle before the line is full creating a shortage of pallets. How can I get just one station to hold the first item until the correct amount is reached?

FlexSim 19.1.0
conveyor
· 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.

Braydn T avatar image Braydn T commented ·

Hey @Cody F

Could you upload your model so we could take a look? If it contains proprietary information we can change this question to private.

Thanks!

0 Likes 0 ·
Cody F avatar image Cody F commented ·
0 Likes 0 ·
model.fsm (13.3 MiB)

1 Answer

·
Joseph Gillespie avatar image
0 Likes"
Joseph Gillespie answered Joseph Gillespie commented

Hi @Cody F,

I wasn't sure how to do this with an individual station, but it's fairly easy with process flow.

This process flow creates a token at the beginning of the simulation, waits for an item to reach a specific station, stops the item (and all the items behind it), waits for all of the pallets to be produced, and then allows the items to resume.

Here is the model with this process flow working: modelanswer.fsm


capture10.png (7.2 KiB)
modelanswer.fsm (13.3 MiB)
modelanswer.fsm (13.3 MiB)
· 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.

Cody F avatar image Cody F commented ·

So this was working as it should until I had to add some more elevators. I'm not sure if they are related or not, but now the model (Elevator3 specifically) does something weird and then production stops around 15000 seconds. I tried to keep the same logic when adding the elevators to avoid issues, but i'm new to the software and I would appreciate some feedback on where I went wrong. model.fsm

0 Likes 0 ·
model.fsm (13.4 MiB)
Joseph Gillespie avatar image Joseph Gillespie Cody F commented ·

@Cody F

Your main problem is that you had one of your "Wait for Event" activities set to assign labels instead of matching them:

The difference between assign and match is that "assign" will give all the waiting tokens a reference to the item that caused the event. For "match", when an item triggers an event, only the token with the matching item label will be released. What was happening with your model was that items were being assigned to tokens at "DP3 Arrive" (which is what should happen) but then at the first "Wait for Event" when an item came through it became assigned to all of the tokens waiting at that activity. Basically you had lots of tokens that controlled a single box, and that is what made Elevator3 freak out and stop working. By setting the first "Wait for Event" to "match" it fixes this problem.

I also found an error that would pop up at time 10556 as the first item reached DP2 by Elevator1. The problem with this is that you had the decision point set to rotate items "OnArrival", but in process flow you also had it set to load the item on to the elevator "OnArrival". Since it can't do both at the same time, it would cause an error. I changed the "Wait for Event" so that it would fire for "OnContinue" instead:

This is what you have the rest of your "Wait for Event" activities set to anyway, so it makes sense for this one to be set to "OnContinue" as well.

Here is the model with both problems fixed: modelanswer.fsm

0 Likes 0 ·
modelanswer.fsm (13.3 MiB)
capture16.png (2.9 KiB)
capture15.png (8.6 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.