question

Ben R4 avatar image
0 Likes"
Ben R4 asked Ben R4 commented

Using rack slots to sort items by label, and then picking once slot is full?

sort-and-put-away.fsm

Hi all,

I've got a little model I'm working on (please see attached) where flow units are assigned a random label, 1 to 66. Ideally I would like the process flow to proceed as such -

-The operator to take the first flow item from the conveyor, and puts it in the first available slot in the racks.

- Subsequent flow items with different labels then go on the next available slots.

- When a flow item arrives that matches a previous "type" label, it gets put away in the same slot.

- When a slot has 4 flow items with the same "type" stored in it, the operator then stops picking from the conveyor and puts the stored 4 flow items in the first available queue location.

I've tried using the paint slots function, which means I can label the rack slots 1-66, so flow allocation occurs. But that doesn't help with populating the rack logically from the first available space. Is slot painting any use in the situation?

I'm thinking I'll have to use a dispatcher for controlling the operator. But at the moment my main issue is how can I fill the rack from the first position, but have subsequent flow items with matching labels go to the same storage slot?

My apologies in advance if any of this isn't very clear, and many thanks in advance if anyone can offer me some advice!

Kind regards,

Ben

FlexSim 20.0.0
labelsflow itemssortingslots
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 Ben R4 commented

See attached if this is what you are looking for. I used this expression in the Rack's Slot Assignment Strategy field:

slot.slotItems.length > 0 ? slot.slotItems[1].Type == item.Type : true

basically this says if there are items in a given slot, then the 'Type' of the first item in the slot must match the 'Type' of the item looking for a slot. If the slot is empty go ahead and use it. Since this field uses a 'for' loop in the code, it should just default to the first slot with space. No slot painting required.

first-or-matching-slot.fsm


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

Ben R4 avatar image Ben R4 commented ·

Thanks Regan, lovely bit of code!

0 Likes 0 ·