question

Jason V2 avatar image
0 Likes"
Jason V2 asked Jason Lightfoot edited

Packed Pallets in Racking

FlexSim 20.0.0
palletsrackingslot assignment strategy
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

Jason V2 avatar image
0 Likes"
Jason V2 answered Jason Lightfoot edited

· 10
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
0 Likes 0 ·
Jason V2 avatar image Jason V2 Joerg Vogel commented ·
0 Likes 0 ·
Jason V2 avatar image Jason V2 Joerg Vogel commented ·

I was able to condense my code down to the following thanks to the references you provided:

/**Custom Code*/
Storage.Object current = ownerobject(c);
Object item = param(1);
Storage.Item(item).assignedSlot = Storage.system.findSlot("WHERE slot.slotItems.length < 1 ORDER BY slot.bayID ASC, slot.levelID ASC");

Moderator comment:

It looks like others are copying this code. It will not filter on the storage object 'current' where the assignment strategy sits, therefore can return slots for other objects. To rectify this you need to add to the WHERE clause:

AND slot.storageObject=$1

and pass in 'current' as parameter 2.

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier Jason V2 commented ·

Jason, I copied your condensed code version and it doesn't work for me. After the 1st pallet enters the rack I get the error "No slot was assigned to item".

I can't find the problem. Did it work for you exactly as is?

Thanks,

0 Likes 0 ·
Show more comments