question

Andre T6 avatar image
0 Likes"
Andre T6 asked Andre T6 commented

How to make FIFO in crane

Hi everyone,
I have a problem with FIFO with a crane. Here is how my model should have been work.
1. At time 0, queue 2 and queue 3 will be full of box, so the crane will be moving the box to queue 5.
2. When another box arrive in queue 1, the crane should be moving the box from queue 1 to queue 4 until the queue 4 full and didnt send it to queue 2 or 3 because it will destroy the FIFO system (the item in queue 4 should be full first so that the box from queue 1 can be send to queue 2 and 3)

But my model likely send the box to the shortest distance, like queue 2 and queue 3 when there are space in there.
Could anyone help me in this problem
Semi-FIFO Model.fsm

FlexSim 21.2.2
process flowcranefifo
semi-fifo-model.fsm (51.5 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

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

Hello @Andre T6,

I was able to accomplish your desired objective by removing the trigger on Queue1 to set the Destination and doing that in process flow instead. The flow I have checks to see if the item being pulled is originating from Queue1, then determines which queue to send it to based on a comparison between the current content and the max content of Queue4 (prioritizing Queue4 if it still has space, then choosing randomly between Queue2 and Queue3 if Queue4 is full).

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

· 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.

Andre T6 avatar image Andre T6 commented ·

Hello @Ryan Clark,
How do i set the trigger in the process flow?

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark Andre T6 commented ·

Hi @Andre T6,

The way I did it was using a custom code to set the destination based on the criteria I mentioned previously. Here's a modified version of your model with that change made: crane-fifo-rc.fsm

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

0 Likes 0 ·
crane-fifo-rc.fsm (50.9 KiB)
Andre T6 avatar image Andre T6 Ryan Clark commented ·

@Ryan Clark thanks for fixing my model.

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.