question

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

How to force flow items to travel full path before elevator pulls them?

In my model, the first item that flows through the process hits every station along the conveyor. However, once the first item is loaded and unloaded by the elevator, regardless of where the other items are at in the process, the elevator will just keep pulling the items in order until all are passed through. Then the process keeps going and once the first item of the next wave comes into the elevator, the same issue occurs. How can I make sure that the items travel to the decision point prior to Elevator1 for them to wait to be loaded?

elevatorconeyorsmodel.fsm

FlexSim 19.1.0
conveyorselevator
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

Regan Blackett avatar image
1 Like"
Regan Blackett answered Cody F commented

The key to making your model work they way you want in understanding what happens when multiple tokens are all waiting for the same event. At time 912.5 right as the first flowitem arrives at DP2 there are 20 flowitems all waiting for DP2's OnArrival event. By default, this means once all the tokens hear the event happen they are all released to the Acquire activity, even though the flowitems those tokens represent aren't actually at DP2. So once the first token releases the elevator, the next token immediately acquires the elevator even though the item is way upstream of the elevator.

Luckily there is a simple fix. Under the Wait for Event;s properties you will see this table:

This shows data that is available from the event you are listening to. Make it look like this instead:

This means that in order for a token to be released from the activity, the token's 'item' label has to match the flowitem that actually caused the OnArrival event. So only one token gets released to your acquire, instead of all the waiting tokens.

On an unrelated note, you don't need your "Send item" picklist option on DP2, since your process flow is doing the loading and unloading, and since it's throwing an Array index out of bounds exception, I'd remove it.


itemmatching.png (10.0 KiB)
· 1
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 ·

Thank you

0 Likes 0 ·