question

Jim avatar image
0 Likes"
Jim asked Jim commented

Moving items from buffer to queues under conditions

receive_and_putaway.fsm

Hello dear community,

In my model i have 6 queues where batches of pallets are created in them by having matching label values for each pallet inside a queue at a time and only if a queue is empty. If all of them are busy and a new order comes then its placed in a buffer queue and sent to the others when one is available again. I cant figure out how to move the pallets with the same label value from the buffer to the first available queue , they all have the same label "orders" but different values of it, and how to stop the operators from loading the pallets from the buffer. I tried changing the item station to only the group of 6 queues but i couldnt make it work. I would appreciate your help.


Regards,

Jim

FlexSim 21.1.5
operator assignmentqueue logicfill queue in order
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
1 Like"
Felix Möhlmann answered Jim commented

My suggestion would be as follows:

Add an extra label to the tokens that denotes how many pallets belong to the respective order. Each token creates its pallet in the buffer at first.

1679918174336.png

All tokens of an order are then batched together into one, creating an array out of the Pallet labels. This single token per order can then pull a queue (actually remove from the list) and moves all items into it.

1679918195344.png

1679918234684.png

From here on the rest of the Process Flow works as before, just as a subflow, since there is only one token for all pallets in one order.

1679918216544.png

The queues push themselves back to the list in their exit trigger, when they are about to become empty again (current.subnodes.length == 1).

1679918250884.png


1679918174336.png (5.1 KiB)
1679918195344.png (17.5 KiB)
1679918216544.png (18.6 KiB)
1679918234684.png (25.0 KiB)
1679918250884.png (3.5 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.

Jim avatar image Jim commented ·

Thank you so much for your help! When a new order is created and there is no queue available ( with queuesize==0) the following message appears and the pallets arent sent to the queues , even when the queues are empty. screenshot-2023-03-27-212852.png I dont know if i have made a mistake in creating the logic for pulling the queues or moving the pallets, or maybe if a descicion process should be created to check for available queues and redirect to a wait timer, if there arent any. I am attaching both the photos for the procesess and the new model. I would appreciate your help. screenshot-2023-03-27-214453.pngreceive_and_putaway_new.fsmscreenshot-2023-03-27-214422.png

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Jim commented ·

You still have "token.children.length" set as the pull quantity (which didn't make sense in the first place - why did you not just type in 0?).

capture.png

The quantity should be 1 since you actually want to remove the queue from the list. The exit triggers to put the queues back onto the list once they are empty are also still missing. And finally you have to remove the query from the Pull from List activity, since the queues won't technically be empty yet when they are put back onto the list.

0 Likes 0 ·
capture.png (10.2 KiB)
Jim avatar image Jim Felix Möhlmann commented ·

I had the exit trigger but because i had the logic for the pull activity wrong it created a problem. It works perfectly fine now , thanks again for your time and your advices , i apreciate it.

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.