question

Oscar C13 avatar image
0 Likes"
Oscar C13 asked Felix Möhlmann answered

Choose Task Excuter

Hi,
I have 3 ASRS in a list and 4 racks. Depending where the item is, I want it to take one ASRS or another, but it always take the same one.

ChooseASRS.fsm

FlexSim 21.2.2
process flowasrs vehicle
chooseasrs.fsm (61.7 KiB)
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

There are two issues in your model:

1) You react to the "On Exit" event of Queue2. This event happens (perhaps somewhat unintuitively) when an item is about to exit the queue, but it hasn't done so yet when the event fires. When the event triggered source creates a token, it will go through all activities in the process flow (up to the point where time has to pass in the model, for example the travel activity) before the rest of the logic of the event is evaluated. This means that, when your logic that determines the ASRS is evaluated, the item is actually still in the queue.

To have the exit event finish before the token continues, place a 0 second delay behind the event triggered source.

2) You have to use "==" in your if-conditions. "=" is the assignment operator; the variable on the left takes on the value on the right. "==" compares the values and returns either true or false.

1642495693723.png


1642495693723.png (50.6 KiB)
5 |100000

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

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.